|
org.eclipse.rse.ui.filters.actions
Class SystemChangeFilterAction
java.lang.Object
org.eclipse.core.commands.common.EventManager
org.eclipse.jface.action.AbstractAction
org.eclipse.jface.action.Action
org.eclipse.rse.ui.actions.SystemBaseAction
org.eclipse.rse.ui.actions.SystemBaseDialogAction
org.eclipse.rse.ui.filters.actions.SystemChangeFilterAction
-
All Implemented Interfaces:
-
IAction,
ISelectionChangedListener,
ISystemAction,
ISystemDialogAction
-
public class SystemChangeFilterAction
- extends
SystemBaseDialogAction
The action that displays the Change Filter dialog
Fields inherited from interface org.eclipse.jface.action.
IAction
|
AS_CHECK_BOX,
AS_DROP_DOWN_MENU,
AS_PUSH_BUTTON,
AS_RADIO_BUTTON,
AS_UNSPECIFIED,
CHECKED,
DESCRIPTION,
ENABLED,
HANDLED,
IMAGE,
RESULT,
TEXT,
TOOL_TIP_TEXT
|
Methods inherited from class org.eclipse.rse.ui.actions.
SystemBaseDialogAction
|
getDialogHelpContextId,
getNeedsProgressMonitor,
getProcessAllSelections,
getValue,
run,
setDialogHelp,
setNeedsProgressMonitor,
setProcessAllSelections,
setValue,
wasCancelled,
wasNeedsProgressMonitorSet
|
Methods inherited from class org.eclipse.rse.ui.actions.
SystemBaseAction
|
allowOnMultipleSelection,
getContextMenuGroup,
getCurrentTreeView,
getFirstSelection,
getHelpContextId,
getNextSelection,
getRemoteAdapter,
getSelection,
getSelectionProvider,
getShell,
getShell,
getSystemConnection,
getViewAdapter,
getViewer,
isDummy,
isEnabled,
isSelectionSensitive,
issueTraceMessage,
selectionChanged,
setAvailableOffline,
setBusyCursor,
setContextMenuGroup,
setDisplayCursor,
setDisplayCursor,
setHelp,
setHost,
setInputs,
setSelection,
setSelectionProvider,
setSelectionSensitive,
setShell,
setTracing,
setTracing,
setViewer,
updateSelection
|
Methods inherited from class org.eclipse.jface.action.
Action
|
convertAccelerator,
convertAccelerator,
findKeyCode,
findKeyString,
findModifier,
findModifierString,
getAccelerator,
getActionDefinitionId,
getDescription,
getDisabledImageDescriptor,
getHelpListener,
getHoverImageDescriptor,
getId,
getImageDescriptor,
getMenuCreator,
getStyle,
getText,
getToolTipText,
isChecked,
isHandled,
notifyResult,
removeAcceleratorText,
removeMnemonics,
runWithEvent,
setAccelerator,
setActionDefinitionId,
setChecked,
setDescription,
setDisabledImageDescriptor,
setEnabled,
setHelpListener,
setHoverImageDescriptor,
setId,
setImageDescriptor,
setMenuCreator,
setText,
setToolTipText
|
Methods inherited from class java.lang.
Object
|
clone,
equals,
finalize,
getClass,
hashCode,
notify,
notifyAll,
toString,
wait,
wait,
wait
|
Methods inherited from interface org.eclipse.rse.ui.actions.
ISystemAction
|
allowOnMultipleSelection,
getContextMenuGroup,
getHelpContextId,
getSelection,
getShell,
getViewer,
isDummy,
isSelectionSensitive,
setContextMenuGroup,
setHelp,
setInputs,
setSelection,
setSelectionSensitive,
setShell,
setViewer
|
Methods inherited from interface org.eclipse.jface.action.
IAction
|
addPropertyChangeListener,
getAccelerator,
getActionDefinitionId,
getDescription,
getDisabledImageDescriptor,
getHelpListener,
getHoverImageDescriptor,
getId,
getImageDescriptor,
getMenuCreator,
getStyle,
getText,
getToolTipText,
isChecked,
isEnabled,
isHandled,
removePropertyChangeListener,
runWithEvent,
setAccelerator,
setActionDefinitionId,
setChecked,
setDescription,
setDisabledImageDescriptor,
setEnabled,
setHelpListener,
setHoverImageDescriptor,
setId,
setImageDescriptor,
setMenuCreator,
setText,
setToolTipText
|
SystemChangeFilterAction
public SystemChangeFilterAction(
Shell parent)
- Constructor for default action label and image
SystemChangeFilterAction
public SystemChangeFilterAction(
Shell parent,
String label,
String tooltip)
SystemChangeFilterAction
public SystemChangeFilterAction(
Shell parent,
String label,
String tooltip,
ImageDescriptor image)
setHelpContextId
public void setHelpContextId(
String id)
- Set the help context Id (infoPop) for this action. This must be fully qualified by
plugin ID.
Same as
#setHelp(String)
-
-
See Also:
-
#setDialogHelp(String) ,
#getHelpContextId()
setDialogTitle
public void setDialogTitle(
String title)
- Set the title for the dialog that displays
-
setDialogHelpContextId
public void setDialogHelpContextId(
String id)
- Set the help id for the dialog that displays
-
setFilterStringEditPane
public void setFilterStringEditPane(
SystemFilterStringEditPane editPane)
- Specify an edit pane that prompts the user for the contents of a filter string.
-
getFilterStringEditPane
public
SystemFilterStringEditPane getFilterStringEditPane()
- Return the edit pane specified via
setFilterStringEditPane(SystemFilterStringEditPane)
-
checkObjectType
public boolean checkObjectType(
Object selectedObject)
- Called by SystemBaseAction when selection is set.
Our opportunity to verify we are allowed for this selected type.
-
-
Overrides:
-
checkObjectType
in class
SystemBaseAction
-
createDialog
public
Dialog createDialog(
Shell shell)
- This method creates and configures the filter dialog. It defers to
getFilterDialog(Shell) to create it, and then configures it here.
So, do not override this, but do feel free to override getFilterDialog.
-
-
Specified by:
-
createDialog
in class
SystemBaseDialogAction
-
-
See Also:
-
SystemBaseDialogAction.run()
getFilterDialog
protected
SystemChangeFilterDialog getFilterDialog(
Shell shell)
- Overridable extension point to get our filter dialog. Only override this if you
subclass SystemChangeFilterDialog. Else, override configureFilterDialog.
-
callConfigureFilterDialog
public void callConfigureFilterDialog(
SystemChangeFilterDialog dlg)
- This method is called internally, but had to be made public. You can ignore it.
-
configureFilterDialog
protected void configureFilterDialog(
SystemChangeFilterDialog dlg)
- Overridable extension point to configure the filter dialog. Typically you don't need
to subclass our default dialog.
Note since the dialog has not been opened yet, you cannot assume its shell is ready,
so call getParentShell() versus getShell().
-
getDialogValue
protected
Object getDialogValue(
Dialog dlg)
- Required by parent but we do not use it so return null;
-
-
Specified by:
-
getDialogValue
in class
SystemBaseDialogAction
-
-
Parameters:
-
dlg - The dialog object, after it has returned from open.
getSystemFilterPoolReferenceManagerProvider
public
ISystemFilterPoolReferenceManagerProvider getSystemFilterPoolReferenceManagerProvider()
- Get the contextual system filter pool reference manager provider. Will return non-null if the
current selection is not a reference to a filter pool or filter, or a reference manager
provider.
-
getSystemFilterPoolManagerProvider
public
ISystemFilterPoolManagerProvider getSystemFilterPoolManagerProvider()
- Get the contextual system filter pool manager provider. Will return non-null if the
current selection is not a reference to a filter pool or filter, or a reference manager
provider, or a manager provider.
-
getSelectedFilter
public
ISystemFilter getSelectedFilter()
- Get the selected filter
-
Copyright (c) IBM Corporation and others 2000, 2008. All Rights Reserved.
|
|