tardate.jdev.ide.filter
Class CodePaneAddin

java.lang.Object
  extended by tardate.jdev.ide.filter.CodePaneAddin
All Implemented Interfaces:
oracle.ide.Addin, oracle.ide.controller.Controller

public final class CodePaneAddin
extends java.lang.Object
implements oracle.ide.Addin, oracle.ide.controller.Controller

JDeveloper filter add-in class


Field Summary
static int FILTER_CMD_ID
           
 
Fields inherited from interface oracle.ide.controller.Controller
UPDATE_FROM_ACTION_PERFORMED, UPDATE_FROM_ACTIVE_VIEW_CHANGED, UPDATE_FROM_UNDO, UPDATE_FROM_USER_EXTENSION, UPDATE_FROM_VIEW_SELECTION_CHANGED
 
Constructor Summary
CodePaneAddin()
           
 
Method Summary
 boolean handleEvent(oracle.ide.controller.IdeAction action, oracle.ide.Context context)
          This method is called when a user interaction with a View triggers the execution of a command
 void initialize()
          Initialise the class.
static boolean isMenuAvailable(oracle.ide.Context context)
          Restricts menu availability to only when text is in the editor context
 boolean update(oracle.ide.controller.IdeAction action, oracle.ide.Context context)
          This method updates the enabled status of the specified action within the specified context
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Field Detail

FILTER_CMD_ID

public static final int FILTER_CMD_ID
Constructor Detail

CodePaneAddin

public CodePaneAddin()
Method Detail

initialize

public void initialize()
Initialise the class. Initialises config data (if required). Creates the filter menu.

Specified by:
initialize in interface oracle.ide.Addin

handleEvent

public boolean handleEvent(oracle.ide.controller.IdeAction action,
                           oracle.ide.Context context)
This method is called when a user interaction with a View triggers the execution of a command

Specified by:
handleEvent in interface oracle.ide.controller.Controller
Parameters:
action - action whose command is to be executed
context - the JDeveloper IDE Context
Returns:
boolean true if the event was handled

update

public boolean update(oracle.ide.controller.IdeAction action,
                      oracle.ide.Context context)
This method updates the enabled status of the specified action within the specified context

Specified by:
update in interface oracle.ide.controller.Controller
Parameters:
action - action whose command is to be executed
context - the JDeveloper IDE Context
Returns:
boolean true if the event was handled

isMenuAvailable

public static boolean isMenuAvailable(oracle.ide.Context context)
Restricts menu availability to only when text is in the editor context

Parameters:
context - the JDeveloper IDE Context
Returns:
boolean true if menu available