|
RSE Release 1.0 |
|||||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | |||||||||||
java.lang.Objectorg.eclipse.rse.ui.view.AbstractSystemViewAdapter
Base class for adapters needed for the SystemView viewer. It implements the ISystemViewElementAdapter interface.
AbstractSystemRemoteAdapterFactory| Field Summary | |
|---|---|
protected Object[] |
_lastResults
A variable that can be used in getChildren to cache last returned results, if desired |
protected Object |
_lastSelected
A variable that can be used to cache last selection, if desired |
protected SystemMessageObject |
canceledObject
Frequently returned msg object from getChildren: "operation canceled" |
protected static String[] |
EMPTY_STRING_LIST
A handy constant of "new String[0]" |
protected Object[] |
emptyList
For returning an empty list from getChildren: new Object[0] |
protected SystemMessageObject |
errorObject
Frequently returned msg object from getChildren: "operation ended in error" |
protected String |
filterString
|
static String |
MEMENTO_DELIM
Delimiter for each object's key in a memento, used to persist tree view expansion state: "///" |
protected static String |
MSG_SUB_PREFIX
Message substitution prefix: "&" |
protected static String |
MSG_SUB1
Message substitution variable 1: "&1" |
protected static String |
MSG_SUB2
Message substitution variable 2: "&2" |
protected Object[] |
msgList
For returning a msg object from getChildren. |
protected SystemMessageObject |
nullObject
Frequently returned msg object from getChildren: "empty list" |
protected Object |
propertySourceInput
Current input provider. |
protected Shell |
shell
Current shell, set by the content provider |
protected Viewer |
viewer
Current viewer. |
| Fields inherited from interface org.eclipse.rse.ui.view.ISystemViewElementAdapter |
|---|
noActions |
| Fields inherited from interface org.eclipse.jface.viewers.IBasicPropertyConstants |
|---|
P_CHILDREN, P_IMAGE, P_PARENT, P_TEXT |
| Constructor Summary | |
|---|---|
AbstractSystemViewAdapter()
|
|
| Method Summary | |
|---|---|
abstract void |
addActions(SystemMenuManager menu,
IStructuredSelection selection,
Shell parent,
String menuGroup)
This is your opportunity to add actions to the popup menu for the given selection. |
void |
addCommonRemoteActions(SystemMenuManager menu,
IStructuredSelection selection,
Shell shell,
String menuGroup)
Called by SystemView viewer. |
void |
addDynamicPopupMenuActions(SystemMenuManager menu,
IStructuredSelection selection,
Shell shell,
String menuGroup)
Called by system viewers. |
boolean |
canDelete(Object element)
Overridable by subclasses, and usually is. |
boolean |
canDrag(Object element)
Overridable by subclasses, and is iff drag and drop supported. |
boolean |
canDrag(SystemRemoteResourceSet elements)
Overridable by subclasses, and is iff drag and drop supported. |
boolean |
canDrop(Object element)
Overridable by subclasses, and is iff drag and drop supported. |
boolean |
canEdit(Object object)
Overridable by subclasses, and must be for editable objects. |
boolean |
canRename(Object element)
Overridable by subclasses, and usually is. |
protected Object[] |
checkForNull(Object[] children,
boolean returnNullMsg)
Callable by subclasses. |
protected static PropertyDescriptor |
createSimplePropertyDescriptor(String propertyKey,
String label,
String description)
Callable by subclasses. |
boolean |
doDelete(Shell shell,
Object element)
Deprecated. use the one with the monitor |
boolean |
doDelete(Shell shell,
Object element,
IProgressMonitor monitor)
Overridable by subclasses, and usually is. |
boolean |
doDeleteBatch(Shell shell,
List resourceSet,
IProgressMonitor monitor)
Overridable by subclasses, and usually is. |
Object |
doDrag(Object element,
boolean sameSystemType,
IProgressMonitor monitor)
Overridable by subclasses, and is iff drag and drop supported. |
ISystemResourceSet |
doDrag(SystemRemoteResourceSet set,
IProgressMonitor monitor)
Overridable by subclasses, and is iff drag and drop supported. |
ISystemResourceSet |
doDrop(ISystemResourceSet fromSet,
Object to,
boolean sameSystemType,
boolean sameSystem,
int srcType,
IProgressMonitor monitor)
Overridable by subclasses, and is iff drag and drop supported. |
Object |
doDrop(Object from,
Object to,
boolean sameSystemType,
boolean sameSystem,
int srcType,
IProgressMonitor monitor)
Overridable by subclasses, and is iff drag and drop supported. |
Object |
doDrop(Object from,
Object to,
boolean sameSystemType,
boolean sameSystem,
IProgressMonitor monitor)
Deprecated. use doDrop(Object from, Object to, boolean sameSystemType, boolean sameSystem, int srcType, IProgressMonitor monitor) instead |
boolean |
doRename(Shell shell,
Object element,
String name)
Overridable by subclasses, and usually is. |
void |
fetchDeferredChildren(Object o,
IElementCollector collector,
IProgressMonitor monitor)
|
abstract String |
getAbsoluteName(Object object)
Abstract. |
protected ISystemViewElementAdapter |
getAdapter(Object o)
Callable by subclasses. |
String |
getAlternateText(Object element)
Return the alternate label for this object. |
protected Object[] |
getCancelledMessageObject()
Callable by subclasses. |
String |
getCanonicalNewName(Object element,
String newName)
Overridable by subclasses, and usually is iff canRename is. |
Object[] |
getChildren(IProgressMonitor monitor,
Object element)
This should be overridden by subclasses in order to provide deferred query support via the Eclipse Jobs mechanism Return the children of this object. |
abstract Object[] |
getChildren(Object element)
Abstract. |
Object[] |
getChildrenUsingExpandToFilter(Object element,
String expandToFilter)
Overridable by subclasses, but rarely needs to be. |
protected ISystemTree |
getCurrentTreeView()
Getter method. |
protected static IPropertyDescriptor[] |
getDefaultDescriptors()
Callable by subclasses. |
ISystemEditableRemoteObject |
getEditableRemoteObject(Object object)
Overridable by subclasses, and must be for editable objects. |
Object |
getEditableValue()
Needed by framework for property sheet. |
protected Object[] |
getEmptyMessageObject()
Callable by subclasses. |
protected Object[] |
getFailedMessageObject()
Callable by subclasses. |
String |
getFilterString()
Gets filter context for querying. |
String |
getFilterStringFor(Object object)
Return a filter string that corresponds to this object. |
protected Object |
getFirstSelection(IStructuredSelection selection)
Callable by subclasses. |
abstract ImageDescriptor |
getImageDescriptor(Object element)
Abstract. |
ISystemViewInputProvider |
getInput()
Getter method. |
String |
getInputMementoHandle(Object element)
Overridable by subclasses, but usually is not. |
String |
getLabel(Object element)
Internal use. |
String |
getMementoHandle(Object element)
Overridable by subclasses, but usually is not. |
String |
getMementoHandleKey(Object element)
Overridable by subclasses, but usually is not. |
String |
getName(Object element)
Overridable by subclasses, but rarely needs to be. |
ISystemValidator |
getNameValidator(Object element)
Overridable by subclasses, and usually is iff canRename is. |
abstract Object |
getParent(Object element)
Abstract. |
IPropertyDescriptor[] |
getPropertyDescriptors()
Implemented. |
Object |
getPropertyValue(Object key)
Implemented. |
Object |
getPropertyValue(Object key,
boolean formatted)
Overridable by subclasses, but usually is not. |
protected ISystemRemoteElementAdapter |
getRemoteAdapter(Object o)
Callable by subclasses. |
String |
getRemoteSourceType(Object element)
Overridable by subclasses, but usually is not. |
String |
getRemoteSubSubType(Object element)
Overridable by subclasses, but usually is not. |
ISchedulingRule |
getRule(Object element)
|
Shell |
getShell()
Getter method. |
String |
getStatusLineText(Object element)
Overridable by subclasses, but rarely needs to be. |
ISubSystem |
getSubSystem(Object element)
Overridable by subclasses. |
protected SystemFetchOperation |
getSystemFetchOperation(Object o,
IElementCollector collector)
Returns the SystemFetchOperation to be used in performing a query. |
protected ISystemTree |
getSystemTree()
Callable by subclasses. |
abstract String |
getText(Object element)
Abstract. |
protected String |
getTranslatedFalse()
Callable by subclasses. |
protected String |
getTranslatedNo()
Callable by subclasses. |
protected String |
getTranslatedNotApplicable()
Callable by subclasses. |
protected String |
getTranslatedNotAvailable()
Callable by subclasses. |
protected String |
getTranslatedTrue()
Callable by subclasses. |
String |
getTranslatedYes()
Callable by subclasses. |
abstract String |
getType(Object element)
Abstract. |
IPropertyDescriptor[] |
getUniquePropertyDescriptors()
Callable by subclasses. |
Viewer |
getViewer()
Getter method. |
boolean |
handleDoubleClick(Object element)
Overridable by subclasses, but usually is not. |
abstract boolean |
hasChildren(Object element)
Abstract. |
protected void |
initMsgObjects()
Internal use. |
protected abstract IPropertyDescriptor[] |
internalGetPropertyDescriptors()
Abstract. |
protected abstract Object |
internalGetPropertyValue(Object key)
Abstract. |
boolean |
isContainer()
|
boolean |
isPromptable(Object element)
Overridable by subclasses, but usually is not. |
boolean |
isPropertySet(Object key)
Overridable by subclasses. |
boolean |
namesAreEqual(Object element,
String newName)
Overridable by subclasses, but usually is not. |
void |
resetPropertyValue(Object key)
Overridable by subclasses. |
boolean |
saveExpansionState(Object element)
Overridable by subclasses, but usually is not. |
void |
selectionChanged(Object element)
Overridable by subclasses, but usually is not. |
void |
setFilterString(String filterString)
Sets filter context for querying. |
void |
setInput(ISystemViewInputProvider input)
Configuration method. |
void |
setPropertySourceInput(Object propertySourceInput)
Called from adapter factories. |
void |
setPropertyValue(Object key,
Object value)
Overridable by subclasses. |
void |
setShell(Shell shell)
Configuration method. |
void |
setViewer(Viewer viewer)
Configuration method. |
boolean |
showDelete(Object element)
Overridable by subclasses, but usually is not. |
boolean |
showGenericShowInTableAction(Object element)
Overridable by subclasses, and usually is NOT. |
boolean |
showOpenViewActions(Object element)
Overridable by subclasses, and usually is NOT. |
boolean |
showRefresh(Object element)
Overridable by subclasses, and usually is. |
boolean |
showRename(Object element)
Overridable by subclasses, but usually is not. |
static String |
sub(String msg,
String subOld,
String subNew)
Callable by subclasses. |
boolean |
supportsDeferredQueries()
these methods are for deferred fetch operations |
boolean |
testAttribute(Object target,
String name,
String value)
Overridable by subclasses, typically if additional properties are supported. |
boolean |
validateDrop(ISystemResourceSet set,
Object target,
boolean sameSystem)
Return true if it is valid for the src objects to be dropped in the target |
boolean |
validateDrop(Object src,
Object target,
boolean sameSystem)
Overridable by subclasses, and usually is iff drag and drop supported.. |
| Methods inherited from class java.lang.Object |
|---|
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
| Field Detail |
protected String filterString
protected Viewer viewer
protected Object propertySourceInput
protected Shell shell
protected Object[] emptyList
protected Object[] msgList
protected SystemMessageObject nullObject
protected SystemMessageObject canceledObject
protected SystemMessageObject errorObject
protected static final String MSG_SUB_PREFIX
protected static final String MSG_SUB1
protected static final String MSG_SUB2
public static final String MEMENTO_DELIM
protected static final String[] EMPTY_STRING_LIST
protected Object[] _lastResults
protected Object _lastSelected
| Constructor Detail |
public AbstractSystemViewAdapter()
| Method Detail |
public void setViewer(Viewer viewer)
setViewer in interface ISystemViewElementAdapterpublic void setShell(Shell shell)
setShell in interface ISystemViewElementAdapterpublic void setInput(ISystemViewInputProvider input)
setInput in interface ISystemViewElementAdapterpublic Shell getShell()
getShell in interface ISystemViewElementAdapterpublic Viewer getViewer()
getViewer in interface ISystemViewElementAdapterprotected ISystemTree getCurrentTreeView()
public ISystemViewInputProvider getInput()
getInput in interface ISystemViewElementAdapterpublic ISubSystem getSubSystem(Object element)
AbstractResource,
it calls getSubSystem on it, else returns null.
getSubSystem in interface ISystemViewElementAdapter
public void addCommonRemoteActions(SystemMenuManager menu,
IStructuredSelection selection,
Shell shell,
String menuGroup)
menu - The menu to contribute actions toselection - The window's current selection.shell - of viewer calling this. Most dialogs require a shell.menuGroup - recommended menu group to add actions to. If added to another group, you must be sure to create that group first.
public void addDynamicPopupMenuActions(SystemMenuManager menu,
IStructuredSelection selection,
Shell shell,
String menuGroup)
dynamicPopupMenuExtensions extension point. Unlike
addCommonRemoteActions(), these contributions are for any artifact in the RSE views and are contributed
independently of subsystem factories.
menu - The menu to contribute actions toselection - The window's current selection.shell - of viewer calling this. Most dialogs require a shell.menuGroup - recommended menu group to add actions to. If added to another group, you must be sure to create that group first.
public abstract void addActions(SystemMenuManager menu,
IStructuredSelection selection,
Shell parent,
String menuGroup)
To put your action into the given menu, use the menu's add method.
If you don't care where it goes within the popup, just pass the given menuGroup location id,
otherwise pass one of the GROUP_XXX values from ISystemContextMenuConstants. If you pass one that
identifies a pre-defined cascading menu, such as GROUP_OPENWITH, your action will magically appear in that
cascading menu, even if it was otherwise empty.
For the actions themselves, you will probably use one of the base action classes:
SystemBaseAction. For a simple action doesn't present any UI.
SystemBaseDialogAction. For an action that presents a dialog.
SystemBaseWizardAction. For an action that presents a wizard.
SystemBaseSubMenuAction. For an action that cascades into a submenu with other actions.
addActions in interface ISystemViewElementAdaptermenu - the popup menu you can contribute toselection - the current selection in the calling tree or table viewparent - the shell of the calling tree or table viewmenuGroup - the default menu group to place actions into if you don't care where they. Pass this to the SystemMenuManager add method.ISystemViewElementAdapter.addActions(SystemMenuManager, IStructuredSelection, Shell, String)public abstract ImageDescriptor getImageDescriptor(Object element)
getImageDescriptor in interface ISystemViewElementAdapterelement - The element for which an image is desiredpublic abstract String getText(Object element)
getText in interface ISystemViewElementAdaptergetName(Object),
getAbsoluteName(Object)public String getAlternateText(Object element)
getAlternateText in interface ISystemViewElementAdaptergetName(Object),
getAbsoluteName(Object)public String getName(Object element)
Called by common rename and delete actions, and used to populate property sheet.
getName in interface ISystemViewElementAdaptergetText(Object),
getAbsoluteName(Object)public abstract String getAbsoluteName(Object object)
getAbsoluteName in interface IRemoteObjectIdentifiergetText(Object),
getName(Object)public String getLabel(Object element)
getLabel in interface IWorkbenchAdapterpublic abstract String getType(Object element)
getType in interface ISystemViewElementAdapterpublic String getStatusLineText(Object element)
getType(): getName()
getStatusLineText in interface ISystemViewElementAdapterpublic abstract Object getParent(Object element)
getParent in interface ISystemViewElementAdapterpublic abstract boolean hasChildren(Object element)
hasChildren in interface ISystemViewElementAdapterpublic abstract Object[] getChildren(Object element)
getChildren in interface ISystemViewElementAdapter
public Object[] getChildren(IProgressMonitor monitor,
Object element)
getChildren in interface ISystemViewElementAdapter
public Object[] getChildrenUsingExpandToFilter(Object element,
String expandToFilter)
getChildrenUsingExpandToFilter in interface ISystemViewElementAdapterprotected static IPropertyDescriptor[] getDefaultDescriptors()
protected static PropertyDescriptor createSimplePropertyDescriptor(String propertyKey,
String label,
String description)
propertyKey - Key for this property, sent back in getPropertyValue.label - description - public Object getEditableValue()
getEditableValue in interface IPropertySourcepublic IPropertyDescriptor[] getPropertyDescriptors()
internalGetPropertyDescriptors().
getPropertyDescriptors in interface IPropertySourceinternalGetPropertyDescriptors()protected abstract IPropertyDescriptor[] internalGetPropertyDescriptors()
Override if want to include more properties in the property sheet,
If you override this for readonly properties, you must also override:
If you override this for editable properties, you must also override:
createSimplePropertyDescriptor(String, String, String)public IPropertyDescriptor[] getUniquePropertyDescriptors()
If internalGetPropertyDescriptors() returns non-null, then returns that, else computes the difference.
This is called by the table views like SystemTableView.
getUniquePropertyDescriptors in interface ISystemViewElementAdapter
public Object getPropertyValue(Object key,
boolean formatted)
This is called by the table views in order to get values that can be sorted when the user clicks on the column heading. To support this for a numeric property say, return a Long/Integer object if false, versus returning string.
getPropertyValue in interface ISystemViewElementAdapterkey - the name or key of the property as named by its property descriptorformatted - indication of whether to return the value in formatted or raw form
public Object getPropertyValue(Object key)
internalGetPropertyValue(Object).internalGetPropertyValue(Object) for
subclasses.
propertySourceInput, which is the currently selected object. Just case it to what you expect the selected object's type to be.
getPropertyValue in interface IPropertySourcekey - the name of the property as named by its property descriptor
protected abstract Object internalGetPropertyValue(Object key)
key - the name of the property as named by its property descriptor
public boolean isPropertySet(Object key)
isPropertySet in interface IPropertySourcetrue if the value of the specified property has changed
from its original default value; false otherwise.public void resetPropertyValue(Object key)
resetPropertyValue in interface IPropertySourcekey - the key identifying property to reset
public void setPropertyValue(Object key,
Object value)
setPropertyValue in interface IPropertySourcekey - the key identifying property to resetvalue - the new value for the propertypublic void setPropertySourceInput(Object propertySourceInput)
setPropertySourceInput in interface ISystemViewElementAdapterpublic boolean handleDoubleClick(Object element)
handleDoubleClick in interface ISystemViewElementAdapterpublic boolean showDelete(Object element)
By default, returns true.
showDelete in interface ISystemViewElementAdaptercanDelete(Object),
doDelete(Shell,Object)public boolean canDelete(Object element)
By default, returns false. Override if your object is deletable.
canDelete in interface ISystemViewElementAdaptershowDelete(Object),
doDelete(Shell,Object)
public boolean doDelete(Shell shell,
Object element,
IProgressMonitor monitor)
throws Exception
doDelete in interface ISystemViewElementAdapterExceptionshowDelete(Object),
canDelete(Object)
public boolean doDeleteBatch(Shell shell,
List resourceSet,
IProgressMonitor monitor)
throws Exception
doDeleteBatch in interface ISystemViewElementAdaptertrue if the delete was successful, false if it was not.
Exception
public boolean doDelete(Shell shell,
Object element)
throws Exception
doDelete in interface ISystemViewElementAdapterExceptionshowDelete(Object),
canDelete(Object)public boolean showRename(Object element)
By default, returns true.
showRename in interface ISystemViewElementAdaptercanRename(Object),
doRename(Shell,Object,String)public boolean canRename(Object element)
canRename in interface ISystemViewElementAdaptershowRename(Object),
doRename(Shell,Object,String),
getNameValidator(Object),
getCanonicalNewName(Object,String),
namesAreEqual(Object,String)
public boolean doRename(Shell shell,
Object element,
String name)
throws Exception
doRename in interface ISystemViewElementAdapterExceptionshowRename(Object),
canRename(Object)public ISystemValidator getNameValidator(Object element)
Used in the common rename dialogs, and only if you return true to canRename(Object).
Suggest you use at least UniqueStringValidator or a subclass to ensure new name is at least unique.
getNameValidator in interface ISystemViewElementAdaptercanRename(Object)
public String getCanonicalNewName(Object element,
String newName)
For example, two connections or filter pools can have the same name if they are in different profiles. Two iSeries QSYS objects can have the same name if their object types are different.
Used in the common rename dialogs, and only if you return true to canRename(Object).
This method returns a name that can be used for uniqueness checking because it is qualified sufficiently to make it unique.
By default, this simply returns the given name. It is overridden by child classes when appropriate.
getCanonicalNewName in interface ISystemViewElementAdaptercanRename(Object)
public boolean namesAreEqual(Object element,
String newName)
Used in the common rename dialogs, and only if you return true to canRename(Object).
By default does an equalsIgnoreCase comparison
namesAreEqual in interface ISystemViewElementAdaptercanRename(Object)public boolean showRefresh(Object element)
Default is true.
showRefresh in interface ISystemViewElementAdapterpublic boolean showOpenViewActions(Object element)
Only applicable for non-remote resources. Remote always show Go To only.
showOpenViewActions in interface ISystemViewElementAdapterpublic boolean showGenericShowInTableAction(Object element)
showGenericShowInTableAction in interface ISystemViewElementAdapterpublic boolean canDrag(Object element)
canDrag in interface ISystemDragDropAdapterdoDrag(Object,boolean,IProgressMonitor),
canDrop(Object),
doDrop(Object,Object,boolean,boolean,IProgressMonitor),
validateDrop(Object,Object,boolean)public boolean canDrag(SystemRemoteResourceSet elements)
canDrag in interface ISystemDragDropAdapter
public Object doDrag(Object element,
boolean sameSystemType,
IProgressMonitor monitor)
doDrag in interface ISystemDragDropAdapterelement - the object to copysameSystemType - indication of whether the source and target reside on the same type of systemmonitor - the progress monitor
canDrag(Object),
canDrop(Object),
doDrop(Object,Object,boolean,boolean,IProgressMonitor),
validateDrop(Object,Object,boolean)public boolean canDrop(Object element)
canDrop in interface ISystemDragDropAdapterelement - the target of a drop operation
canDrag(Object),
doDrag(Object,boolean,IProgressMonitor),
doDrop(Object,Object,boolean,boolean,IProgressMonitor),
validateDrop(Object,Object,boolean)
public ISystemResourceSet doDrag(SystemRemoteResourceSet set,
IProgressMonitor monitor)
doDrag in interface ISystemDragDropAdapterset - the set of objects to copymonitor - the progress monitor
public ISystemResourceSet doDrop(ISystemResourceSet fromSet,
Object to,
boolean sameSystemType,
boolean sameSystem,
int srcType,
IProgressMonitor monitor)
doDrop in interface ISystemDragDropAdapterfromSet - the source objects for the dropto - the target object for the dropsameSystemType - indication of whether the source and target reside of the same type of systemsameSystem - indication of whether the source and target are on the same systemsrcType - the type of objects to be droppedmonitor - the progress monitor
public void setFilterString(String filterString)
setFilterString in interface ISystemViewElementAdapterpublic String getFilterString()
getFilterString in interface ISystemViewElementAdapter
public Object doDrop(Object from,
Object to,
boolean sameSystemType,
boolean sameSystem,
int srcType,
IProgressMonitor monitor)
doDrop in interface ISystemDragDropAdapterfrom - the source object for the dropto - the target object for the dropsameSystemType - indication of whether the source and target reside of the same type of systemsameSystem - indication of whether the source and target are on the same systemsrcType - the type of object to be dropped.monitor - the progress monitor
canDrag(Object),
doDrag(Object,boolean,IProgressMonitor),
canDrop(Object),
validateDrop(Object,Object,boolean)
public Object doDrop(Object from,
Object to,
boolean sameSystemType,
boolean sameSystem,
IProgressMonitor monitor)
canDrag(Object),
doDrag(Object,boolean,IProgressMonitor),
canDrop(Object),
validateDrop(Object,Object,boolean)
public boolean validateDrop(Object src,
Object target,
boolean sameSystem)
validateDrop in interface ISystemDragDropAdaptersrc - the object to droptarget - the object which src is dropped insameSystem - whether this is the same system or not
canDrag(Object),
doDrag(Object,boolean,IProgressMonitor),
canDrop(Object),
doDrop(Object,Object,boolean,boolean,IProgressMonitor)
public boolean validateDrop(ISystemResourceSet set,
Object target,
boolean sameSystem)
ISystemDragDropAdapter
validateDrop in interface ISystemDragDropAdapterset - set of resources to drop on the targettarget - the object which src is dropped insameSystem - whether this is the same system
public String getMementoHandle(Object element)
getMementoHandle in interface ISystemViewElementAdapterpublic String getInputMementoHandle(Object element)
getInputMementoHandle in interface ISystemViewElementAdapterpublic String getMementoHandleKey(Object element)
getMementoHandleKey in interface ISystemViewElementAdapterpublic boolean saveExpansionState(Object element)
saveExpansionState in interface ISystemViewElementAdapterpublic boolean isPromptable(Object element)
Default is false unless element implements ISystemPromptable object. Override as appropriate.
isPromptable in interface ISystemViewElementAdapterpublic void selectionChanged(Object element)
selectionChanged in interface ISystemViewElementAdapterelement - - first selected object
public boolean testAttribute(Object target,
String name,
String value)
If desired, override, and call super(), to support additional filter criteria for <filter>, <enablement> and <visibility>.
testAttribute in interface IActionFilterIActionFilter.testAttribute(Object, String, String)public String getRemoteSubSubType(Object element)
ISystemRemoteElementAdapter.getRemoteSubSubType(Object).
Pre-supplied for convenience for subclasses that want to implement this interface for
remote object adapters.
Returns null. Override if you want to supply a sub-sub-type for filtering in the popupMenus extension point.
public String getRemoteSourceType(Object element)
ISystemRemoteElementAdapter.getRemoteSubSubType(Object).
Pre-supplied for convenience for subclasses that want to implement this interface for
remote object adapters.
Returns null. Override if the remote resource is compilable.
public ISystemEditableRemoteObject getEditableRemoteObject(Object object)
object - the object to edit
public boolean canEdit(Object object)
object - the object to edit
protected ISystemViewElementAdapter getAdapter(Object o)
Just a convenient shortcut to SystemAdapterHelpers.getAdapter(Object, Viewer)
protected ISystemRemoteElementAdapter getRemoteAdapter(Object o)
Just a convenient shortcut to SystemAdapterHelpers.getRemoteAdapter(Object, Viewer)
public static String sub(String msg,
String subOld,
String subNew)
msg - message containing substitution variable. Eg "Connect failed with return code &1"subOld - substitution variable. Eg "%1"subNew - substitution data. Eg "001"
protected ISystemTree getSystemTree()
public String getTranslatedYes()
protected String getTranslatedNo()
protected String getTranslatedTrue()
protected String getTranslatedFalse()
protected String getTranslatedNotApplicable()
protected String getTranslatedNotAvailable()
protected void initMsgObjects()
protected Object[] checkForNull(Object[] children,
boolean returnNullMsg)
protected Object[] getCancelledMessageObject()
protected Object[] getFailedMessageObject()
protected Object[] getEmptyMessageObject()
protected Object getFirstSelection(IStructuredSelection selection)
public String getFilterStringFor(Object object)
object - the object to obtain a filter string for
public boolean supportsDeferredQueries()
supportsDeferredQueries in interface ISystemViewElementAdaptertrue if it supports deferred queries, false otherwise.
public void fetchDeferredChildren(Object o,
IElementCollector collector,
IProgressMonitor monitor)
fetchDeferredChildren in interface IDeferredWorkbenchAdapter
protected SystemFetchOperation getSystemFetchOperation(Object o,
IElementCollector collector)
o - collector -
public boolean isContainer()
isContainer in interface IDeferredWorkbenchAdapterpublic ISchedulingRule getRule(Object element)
getRule in interface IDeferredWorkbenchAdapter
|
RSE Release 1.0 |
|||||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | |||||||||||