org.openbp.cockpit.plugins.finder
Class FinderPlugin.Events

java.lang.Object
  extended by org.openbp.jaspira.plugin.EventModule
      extended by org.openbp.cockpit.plugins.finder.FinderPlugin.Events
All Implemented Interfaces:
JaspiraEventListener
Enclosing class:
FinderPlugin

public class FinderPlugin.Events
extends EventModule

Event module.


Field Summary
 
Fields inherited from class org.openbp.jaspira.plugin.EventModule
EVENT_CONSUMED, EVENT_HANDLED, EVENT_IGNORED, MODULE_POST_GLOBAL, MODULE_PRE_GLOBAL, MODULE_TREE
 
Constructor Summary
FinderPlugin.Events()
           
 
Method Summary
 JaspiraEventHandlerCode findref(JaspiraActionEvent je)
          Event handler: Find references of a component.
 java.lang.String getName()
          The name of this module like "editor.file".
 JaspiraEventHandlerCode global_page_added(JaspiraEvent je)
          Event handler: Add the finder result plugin to the modeler page.
 JaspiraEventHandlerCode register(AskEvent ae)
          Event handler: Create the instance of the finder result plugin, if it does not exist already.
 
Methods inherited from class org.openbp.jaspira.plugin.EventModule
eventFired, getEventActionNames, getForeignEventNames, getModuleType, getPriority, handleUnaccountedEvent
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Constructor Detail

FinderPlugin.Events

public FinderPlugin.Events()
Method Detail

getName

public java.lang.String getName()
Description copied from class: EventModule
The name of this module like "editor.file". Decides which events will be received.

Specified by:
getName in class EventModule

findref

public JaspiraEventHandlerCode findref(JaspiraActionEvent je)
Event handler: Find references of a component.

Parameters:
je - Event
Returns:
The event status code

register

public JaspiraEventHandlerCode register(AskEvent ae)
Event handler: Create the instance of the finder result plugin, if it does not exist already. Then register the plugin in the modeler if it is not already registered. The instance of the finder plugin is returned as the answer.

Parameters:
ae - AskEvent
Returns:
The event status code

global_page_added

public JaspiraEventHandlerCode global_page_added(JaspiraEvent je)
Event handler: Add the finder result plugin to the modeler page.

Parameters:
je - JaspiraEvent
Returns:
The event status code


Copyright © 2011. All Rights Reserved.