tardate.jdev.ide.filter
Class CodePaneAddin
java.lang.Object
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
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 |
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 |
FILTER_CMD_ID
public static final int FILTER_CMD_ID
CodePaneAddin
public CodePaneAddin()
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 executedcontext
- 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 executedcontext
- 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