public abstract class ResCatController extends java.lang.Object implements Controller
Modifier and Type | Field and Description |
---|---|
static int |
ADD_TO_APPLICATION_ID |
static int |
ADD_TO_CATALOG_ID |
static int |
ADVANCED_SEARCH_ID |
static int |
CLEAR_INLINE_SEARCH_ID |
static int |
DISCARD_SEARCH_RESULTS_ID |
static int |
EDIT_CATALOG |
static int |
EXPORT_ID |
static int |
FILTER_ID |
static int |
IMPORT_ID |
static int |
INLINE_SEARCH_ID |
static int |
NEW_ACTION_ID |
static int |
NEW_CATALOG_ID |
static int |
NEW_CONNECTION_ID |
static int |
NEW_DYNAMIC_FOLDER_ID |
static int |
NEW_FOLDER_ID |
static int |
NEW_REPOS_CONN_ID |
static int |
NEW_SEARCH_ID |
static int |
OPEN_RESOURCE_ID |
static int |
REFINE_SEARCH_ID |
static int |
REMOVE_ID |
static int |
RENAME_ID |
static int |
SAVE_SEARCH_ID |
static int |
SEARCH_ACTION_ID |
static int |
SEARCH_DESCR_ID |
static int |
SEARCH_GO_ID |
static int |
SEARCH_HISTORY_ID |
static int |
SEARCH_NAME_ID |
static int |
SEARCH_STOP_ID |
static int |
SEARCH_TYPE_ID |
static int |
SHOW_NODE_PATH_ID |
UPDATE_FROM_ACTION_PERFORMED, UPDATE_FROM_ACTIVE_VIEW_CHANGED, UPDATE_FROM_UNDO, UPDATE_FROM_USER_EXTENSION, UPDATE_FROM_VIEW_SELECTION_CHANGED
Constructor and Description |
---|
ResCatController() |
Modifier and Type | Method and Description |
---|---|
abstract boolean |
callConnectionHelper(IdeAction action,
Context context,
RepositoryRootNode node) |
abstract ToggleAction[] |
getDefaultActions(java.lang.Class<? extends Element> clazz,
boolean checkSuperTypes)
Get the default Actions for an Element subtype.
|
protected static DirContextNode |
getDirContextNode(Element element) |
abstract boolean |
handleEvent(IdeAction action,
Context context)
This method is called when a user interaction with a
View
triggers the execution of a command. |
abstract boolean |
isResourcePaletteView(View view) |
abstract void |
registerAppListener() |
abstract boolean |
update(IdeAction action,
Context context)
This method updates the enabled status of the specified action within the
specified context.
|
abstract void |
whenAdvancedSearch(Element selectedElement) |
abstract void |
whenAdvancedSearch(ElementTree tree) |
abstract boolean |
whenClearInlineSearch(Context context,
boolean doIt) |
abstract boolean |
whenExport(Context context,
boolean doit) |
abstract boolean |
whenInlineSearch(Context context,
boolean doIt) |
abstract boolean |
whenNewCatalog(Context context,
RescatContext rescatContext,
boolean doit) |
abstract boolean |
whenNewDynamicFolder(Context context,
RescatContext rescatContext,
boolean doit) |
abstract boolean |
whenNewFolder(Context context,
boolean doit) |
abstract void |
whenRefineSearch(oracle.jdevimpl.rescat2.model.search.SearchParameters prevSearchParams) |
abstract boolean |
whenRenameCatalog(Context context,
boolean doit) |
abstract boolean |
whenShowPathToConnection(RescatContext rescatContxt,
java.lang.String connectionTypeId,
java.lang.String connectionId,
boolean doit)
Updates the Resource Catalog UI to display a connection in a
RescatContext . |
abstract boolean |
whenShowPathToNode(GenericNode node,
boolean doIt)
Updates the Resource Catalog UI to display the node, showing any parent elements as needed.
|
public static final int REMOVE_ID
public static final int NEW_CONNECTION_ID
public static final int OPEN_RESOURCE_ID
public static final int FILTER_ID
public static final int ADVANCED_SEARCH_ID
public static final int EDIT_CATALOG
public static final int NEW_FOLDER_ID
public static final int NEW_DYNAMIC_FOLDER_ID
public static final int ADD_TO_CATALOG_ID
public static final int IMPORT_ID
public static final int EXPORT_ID
public static final int RENAME_ID
public static final int NEW_CATALOG_ID
public static final int NEW_REPOS_CONN_ID
public static final int NEW_ACTION_ID
public static final int SEARCH_ACTION_ID
public static final int SEARCH_NAME_ID
public static final int SEARCH_TYPE_ID
public static final int SEARCH_DESCR_ID
public static final int SEARCH_HISTORY_ID
public static final int SEARCH_GO_ID
public static final int SEARCH_STOP_ID
public static final int REFINE_SEARCH_ID
public static final int NEW_SEARCH_ID
public static final int SAVE_SEARCH_ID
public static final int DISCARD_SEARCH_RESULTS_ID
public static final int ADD_TO_APPLICATION_ID
public static final int INLINE_SEARCH_ID
public static final int CLEAR_INLINE_SEARCH_ID
public static final int SHOW_NODE_PATH_ID
public abstract boolean isResourcePaletteView(View view)
public abstract boolean handleEvent(IdeAction action, Context context)
Controller
View
triggers the execution of a command.handleEvent
in interface Controller
action
- action whose command is to be executed.public abstract boolean update(IdeAction action, Context context)
Controller
update
in interface Controller
action
- action whose command is to be executed.context
- the current contextpublic abstract void whenAdvancedSearch(ElementTree tree)
public abstract void whenAdvancedSearch(Element selectedElement)
public abstract void whenRefineSearch(oracle.jdevimpl.rescat2.model.search.SearchParameters prevSearchParams)
public abstract boolean whenInlineSearch(Context context, boolean doIt)
public abstract boolean whenClearInlineSearch(Context context, boolean doIt)
public abstract boolean whenNewCatalog(Context context, RescatContext rescatContext, boolean doit)
protected static DirContextNode getDirContextNode(Element element)
public abstract boolean whenRenameCatalog(Context context, boolean doit)
public abstract boolean whenNewDynamicFolder(Context context, RescatContext rescatContext, boolean doit)
public abstract boolean whenNewFolder(Context context, boolean doit)
public abstract boolean whenExport(Context context, boolean doit)
public abstract boolean whenShowPathToNode(GenericNode node, boolean doIt)
RepositoryRootNode
for this to work.public abstract boolean whenShowPathToConnection(RescatContext rescatContxt, java.lang.String connectionTypeId, java.lang.String connectionId, boolean doit)
RescatContext
.public abstract void registerAppListener()
public abstract boolean callConnectionHelper(IdeAction action, Context context, RepositoryRootNode node)
public abstract ToggleAction[] getDefaultActions(java.lang.Class<? extends Element> clazz, boolean checkSuperTypes)
clazz
- checkSuperTypes
- if no actions are found, repeat for each super type till
Element.