de.hunsicker.jalopy.plugin.jdeveloper
Class JDevPlugin

java.lang.Object
  |
  +--de.hunsicker.jalopy.plugin.AbstractPlugin
        |
        +--de.hunsicker.jalopy.plugin.jdeveloper.JDevPlugin
All Implemented Interfaces:
oracle.ide.addin.Addin, oracle.ide.addin.ContextMenuListener, oracle.ide.addin.Controller, oracle.javatools.Module

public final class JDevPlugin
extends de.hunsicker.jalopy.plugin.AbstractPlugin
implements oracle.ide.addin.Addin, oracle.ide.addin.ContextMenuListener, oracle.ide.addin.Controller

The Jalopy JDeveloper Extension.

Version:
$Revision: 1.11.2.1 $
Author:
Marco Hunsicker

Field Summary
static java.lang.String FORMAT_CMD
          The Format command string
static int FORMAT_CMD_ID
          The id for the Format command.
static java.lang.String PREFERENCES_CMD
          The Preferences command string
static int PREFERENCES_CMD_ID
          The id for the Preferences command.
 
Fields inherited from class de.hunsicker.jalopy.plugin.AbstractPlugin
appender, jalopy
 
Constructor Summary
JDevPlugin()
          Default constructor.
 
Method Summary
 boolean canShutdown()
          Determines whether the IDE can shutdown.
 void checkCommands(oracle.ide.addin.Context context, oracle.ide.addin.Controller activeController)
          Checks the state of the context sensitive actions.
 de.hunsicker.jalopy.plugin.Project getActiveProject()
          
 de.hunsicker.io.FileFormat getFileFormat()
          
 java.awt.Frame getMainWindow()
          
 de.hunsicker.jalopy.plugin.StatusBar getStatusBar()
          
static java.lang.String getVersion()
          Returns the version information of this Addin.
 boolean handleDefaultAction(oracle.ide.addin.Context context)
          Called when the user double clicks on an item that has a popup menu.
 boolean handleEvent(oracle.ide.IdeAction action, oracle.ide.addin.Context context)
          Called when the user interaction with the View triggers the execution of a command.
 float ideVersion()
          Returns the version of the IDE for which this Addin was implemented.
 void initialize()
          Initializes the Addin.
 void poppingDown(oracle.ide.ContextMenu menu)
          Called just before the context menu disappears.
 void poppingUp(oracle.ide.ContextMenu menu)
          Called just before the context menu is popping up.
 void shutdown()
          Called when shutting down the IDE.
 oracle.ide.addin.Controller supervisor()
          Gets the supervising controller.
 boolean update(oracle.ide.IdeAction action, oracle.ide.addin.Context context)
          Updates the enabled status of the specified action within the specified context.
 float version()
          Returns the version of the Addin.
 
Methods inherited from class de.hunsicker.jalopy.plugin.AbstractPlugin
afterEnd, beforeStart, createProgressMonitor, displayError, executeAsynchron, executeSynchron, getElapsed, getEngine, getLastAction, getState, hideWaitCursor, interrupt, isRunning, performAction, showWaitCursor
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Field Detail

FORMAT_CMD_ID

public static final int FORMAT_CMD_ID
The id for the Format command.


PREFERENCES_CMD_ID

public static final int PREFERENCES_CMD_ID
The id for the Preferences command.


FORMAT_CMD

public static final java.lang.String FORMAT_CMD
The Format command string

See Also:
Constant Field Values

PREFERENCES_CMD

public static final java.lang.String PREFERENCES_CMD
The Preferences command string

See Also:
Constant Field Values
Constructor Detail

JDevPlugin

public JDevPlugin()
Default constructor.

Method Detail

getVersion

public static java.lang.String getVersion()
Returns the version information of this Addin.

Returns:
version information of this Addin.

getActiveProject

public de.hunsicker.jalopy.plugin.Project getActiveProject()

Specified by:
getActiveProject in class de.hunsicker.jalopy.plugin.AbstractPlugin

getFileFormat

public de.hunsicker.io.FileFormat getFileFormat()

Specified by:
getFileFormat in class de.hunsicker.jalopy.plugin.AbstractPlugin

getMainWindow

public java.awt.Frame getMainWindow()

Specified by:
getMainWindow in class de.hunsicker.jalopy.plugin.AbstractPlugin

getStatusBar

public de.hunsicker.jalopy.plugin.StatusBar getStatusBar()

Overrides:
getStatusBar in class de.hunsicker.jalopy.plugin.AbstractPlugin

canShutdown

public boolean canShutdown()
Determines whether the IDE can shutdown.

Specified by:
canShutdown in interface oracle.ide.addin.Addin
Returns:
true

checkCommands

public void checkCommands(oracle.ide.addin.Context context,
                          oracle.ide.addin.Controller activeController)
Checks the state of the context sensitive actions.

Parameters:
context - the current context.
activeController - the controller associated with the active view.

handleDefaultAction

public boolean handleDefaultAction(oracle.ide.addin.Context context)
Called when the user double clicks on an item that has a popup menu.

Specified by:
handleDefaultAction in interface oracle.ide.addin.ContextMenuListener
Parameters:
context - the current context
Returns:
false

handleEvent

public boolean handleEvent(oracle.ide.IdeAction action,
                           oracle.ide.addin.Context context)
Called when the user interaction with the View triggers the execution of a command.

Specified by:
handleEvent in interface oracle.ide.addin.Controller
Parameters:
action - action whose command is to be executed.
context - the context of the action.
Returns:
true if the controller handles the specified command.

ideVersion

public float ideVersion()
Returns the version of the IDE for which this Addin was implemented.

Specified by:
ideVersion in interface oracle.ide.addin.Addin
Returns:
version for which this Addin was implemented.

initialize

public void initialize()
Initializes the Addin.

Specified by:
initialize in interface oracle.ide.addin.Addin

poppingDown

public void poppingDown(oracle.ide.ContextMenu menu)
Called just before the context menu disappears.

Specified by:
poppingDown in interface oracle.ide.addin.ContextMenuListener
Parameters:
menu - the current context menu.

poppingUp

public void poppingUp(oracle.ide.ContextMenu menu)
Called just before the context menu is popping up.

Specified by:
poppingUp in interface oracle.ide.addin.ContextMenuListener
Parameters:
menu - the current context menu.

shutdown

public void shutdown()
Called when shutting down the IDE.

Specified by:
shutdown in interface oracle.ide.addin.Addin

supervisor

public oracle.ide.addin.Controller supervisor()
Gets the supervising controller.

Returns:
null.

update

public boolean update(oracle.ide.IdeAction action,
                      oracle.ide.addin.Context context)
Updates the enabled status of the specified action within the specified context.

Specified by:
update in interface oracle.ide.addin.Controller
Parameters:
action - action whose command is to be executed.
context - the current context.
Returns:
true if the controller handles the specified command.

version

public float version()
Returns the version of the Addin.

Specified by:
version in interface oracle.ide.addin.Addin
Returns:
version of the Addin.


Copyright © 1997-2005 Jalopy. All Rights Reserved.