|
Extension SDK | |||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |
java.lang.Objectoracle.jdeveloper.model.JProjectStructureController
The JProjectStructureController
controller is responsible
for handling the project structuring commands.
The controller's handleEvent(oracle.ide.IdeAction, oracle.ide.addin.Context)
method gets called with the
appropriate Command
specified. If the Controller
does not handle the requested command it delegates the Command
to a supervising Controller
.
Controller
s are also responsible for determining the
availability of a specific command. The update(oracle.ide.IdeAction, oracle.ide.addin.Context)
method is
called to do just that.
Command
,
Controller
,
IdeAction
Field Summary | |
static int |
ADD_TO_PROJECT_CMD_ID
|
static int |
CATEGORY_VIEW_CMD_ID
|
static int |
DIRECTORY_TREE_VIEW_CMD_ID
|
static int |
FILE_LIST_VIEW_CMD_ID
|
static int |
PACKAGE_LIST_VIEW_CMD_ID
|
static int |
PACKAGE_TREE_VIEW_CMD_ID
|
static int |
VIEW_ALL_FILES_CMD_ID
|
Constructor Summary | |
JProjectStructureController()
Default constructor for JProjectStructureController |
Method Summary | |
boolean |
canShutdown()
This method is called by the IDE to confirm that the ide can shutdown. |
void |
checkCommands(Context context,
Controller activeController)
checkCommands() should be called on the controller associated with the active view whenever the Context changes. |
static ChildFilter |
findFilter(TNode tnode,
int filterType)
|
boolean |
handleEvent(IdeAction action,
Context context)
This method is called when a user interaction with a View
triggers the execution of a command. |
float |
ideVersion()
This method is called to determine the ide version number for which this feature was implemented. |
void |
initialize()
This method is called by the IDE to request that the feature be initialized. |
static boolean |
isFilteredBy(TNode tnode,
int filterType)
|
static boolean |
isFilterSupported(TNode tnode,
int filter)
Call to determine if the specified tnode can be viewed
using the specified filter . |
static boolean |
isInCategoryView(Context context)
|
static boolean |
isInCategoryView(TNode tnode)
|
static boolean |
isInProject(TNode tnode)
Call to determine if the specified tnode is the descendent
of a project. |
void |
shutdown()
This method is called by the IDE to request that the feature release any resources held before the ide shuts down. |
Controller |
supervisor()
Gets the supervising controller |
boolean |
update(IdeAction action,
Context context)
This method updates the enabled status of the specified action within the specified context. |
float |
version()
This method is called to determine the feature version number, i.e. |
Methods inherited from class java.lang.Object |
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
Field Detail |
public static final int ADD_TO_PROJECT_CMD_ID
public static final int CATEGORY_VIEW_CMD_ID
public static final int DIRECTORY_TREE_VIEW_CMD_ID
public static final int FILE_LIST_VIEW_CMD_ID
public static final int PACKAGE_LIST_VIEW_CMD_ID
public static final int PACKAGE_TREE_VIEW_CMD_ID
public static final int VIEW_ALL_FILES_CMD_ID
Constructor Detail |
public JProjectStructureController()
Method Detail |
public static boolean isFilterSupported(TNode tnode, int filter)
tnode
can be viewed
using the specified filter
.
public static ChildFilter findFilter(TNode tnode, int filterType)
public static boolean isFilteredBy(TNode tnode, int filterType)
public static boolean isInProject(TNode tnode)
tnode
is the descendent
of a project. That is the tnode
is contained within a
project.
public static boolean isInCategoryView(Context context)
public static boolean isInCategoryView(TNode tnode)
public Controller supervisor()
supervisor
in interface Controller
public boolean handleEvent(IdeAction action, Context context)
View
triggers the execution of a command.
handleEvent
in interface Controller
action
- action whose command is to be executed.
public boolean update(IdeAction action, Context context)
update
in interface Controller
action
- action whose command is to be executed.context
- the current context
public void checkCommands(Context context, Controller activeController)
checkCommands
in interface Controller
context
- the current context. Null values are acceptable.activeController
- the controller associated with the active view.
Null values are acceptable.public void initialize()
initialize
in interface Addin
AddinManager
public void shutdown()
shutdown
in interface Addin
public boolean canShutdown()
canShutdown
in interface Addin
public float version()
version
in interface Addin
public float ideVersion()
ideVersion
in interface Addin
|
Extension SDK | |||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |
Copyright ©1997, 2003, Oracle. All rights reserved.