|
Remote Systems v6.4.1 |
||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |
java.lang.Objectcom.ibm.etools.systems.core.ui.view.AbstractSystemViewAdapter
com.ibm.etools.systems.core.ui.view.SystemViewMessageAdapter
Adapter for displaying temporary message objects when an expand fails or is cancelled.
The objects must all implement com.ibm.etools.systems.model.ISystemExpandablePromptableObject to use this adapter.
Field Summary | |
---|---|
static String |
copyright
|
Fields inherited from class com.ibm.etools.systems.core.ui.view.AbstractSystemViewAdapter |
---|
_lastResults, _lastSelected, canceledObject, EMPTY_STRING_LIST, emptyList, errorObject, filterString, MEMENTO_DELIM, MSG_SUB_PREFIX, MSG_SUB1, MSG_SUB2, msgList, nullObject, propertySourceInput, shell, viewer |
Fields inherited from interface com.ibm.etools.systems.core.ui.view.ISystemViewElementAdapter |
---|
noActions |
Fields inherited from interface com.ibm.etools.systems.subsystems.IRemoteObjectIdentifier |
---|
Copyright |
Constructor Summary | |
---|---|
SystemViewMessageAdapter()
|
Method Summary | |
---|---|
void |
addActions(SystemMenuManager menu,
IStructuredSelection selection,
Shell shell,
String menuGroup)
Add actions to context menu. |
String |
getAbsoluteName(Object element)
Return the absolute name, versus just display name, of this object. |
Object[] |
getChildren(Object element)
Return the children of this object. |
ImageDescriptor |
getImageDescriptor(Object element)
Returns an image descriptor for the image. |
String |
getMementoHandle(Object element)
Return what to save to disk to identify this element in the persisted list of expanded elements. |
String |
getMementoHandleKey(Object element)
Return a short string to uniquely identify the type of resource. |
Object |
getParent(Object element)
Return the parent of this object. |
String |
getText(Object element)
Return the label for this object. |
String |
getType(Object element)
Return the type label for this object |
boolean |
hasChildren(Object element)
Return true if this object has children. |
protected IPropertyDescriptor[] |
internalGetPropertyDescriptors()
Return our unique property descriptors |
Object |
internalGetPropertyValue(Object key)
Return our unique property values |
boolean |
saveExpansionState(Object element)
Somtimes we don't want to remember an element's expansion state, such as for temporarily inserted messages. |
boolean |
showDelete(Object element)
Don't show delete |
boolean |
showOpenViewActions(Object element)
Don't show "Open in new perspective" |
boolean |
showRefresh(Object element)
Don't show refresh |
boolean |
showRename(Object element)
Don't show rename |
Methods inherited from class java.lang.Object |
---|
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
Methods inherited from interface com.ibm.etools.systems.core.ui.view.ISystemViewElementAdapter |
---|
canDelete, canRename, doDelete, doRename, getCanonicalNewName, getChildren, getChildrenUsingExpandToFilter, getFilterString, getInput, getInputMementoHandle, getName, getNameValidator, getPropertyValue, getShell, getStatusLineText, getSubSystem, getUniquePropertyDescriptors, getViewer, handleDoubleClick, isPromptable, namesAreEqual, selectionChanged, setFilterString, setInput, setPropertySourceInput, setShell, setViewer, showGenericShowInTableAction, supportsDeferredQueries |
Methods inherited from interface com.ibm.etools.systems.core.ui.view.ISystemDragDropAdapter |
---|
canDrag, canDrop, doDrag, doDrop, doDrop, validateDrop |
Field Detail |
public static final String copyright
Constructor Detail |
public SystemViewMessageAdapter()
Method Detail |
public void addActions(SystemMenuManager menu, IStructuredSelection selection, Shell shell, String menuGroup)
addActions
in interface ISystemViewElementAdapter
addActions
in class AbstractSystemViewAdapter
menu
- the popup menu you can contribute toselection
- the current selection in the calling tree or table viewshell
- 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 ImageDescriptor getImageDescriptor(Object element)
getImageDescriptor
in interface ISystemViewElementAdapter
getImageDescriptor
in class AbstractSystemViewAdapter
element
- The element for which an image is desiredpublic String getText(Object element)
getText
in interface ISystemViewElementAdapter
getText
in class AbstractSystemViewAdapter
AbstractSystemViewAdapter.getName(Object)
,
AbstractSystemViewAdapter.getAbsoluteName(Object)
public String getAbsoluteName(Object element)
getAbsoluteName
in interface IRemoteObjectIdentifier
getAbsoluteName
in class AbstractSystemViewAdapter
AbstractSystemViewAdapter.getText(Object)
,
AbstractSystemViewAdapter.getName(Object)
public String getType(Object element)
getType
in interface ISystemViewElementAdapter
getType
in class AbstractSystemViewAdapter
public Object getParent(Object element)
getParent
in interface ISystemViewElementAdapter
getParent
in class AbstractSystemViewAdapter
public Object[] getChildren(Object element)
getChildren
in interface ISystemViewElementAdapter
getChildren
in class AbstractSystemViewAdapter
public boolean hasChildren(Object element)
hasChildren
in interface ISystemViewElementAdapter
hasChildren
in class AbstractSystemViewAdapter
protected IPropertyDescriptor[] internalGetPropertyDescriptors()
internalGetPropertyDescriptors
in class AbstractSystemViewAdapter
AbstractSystemViewAdapter.createSimplePropertyDescriptor(String,ResourceBundle,String)
public Object internalGetPropertyValue(Object key)
internalGetPropertyValue
in class AbstractSystemViewAdapter
key
- the name of the property as named by its property descriptor
public boolean showDelete(Object element)
showDelete
in interface ISystemViewElementAdapter
showDelete
in class AbstractSystemViewAdapter
AbstractSystemViewAdapter.canDelete(Object)
,
AbstractSystemViewAdapter.doDelete(Shell,Object)
public boolean showRename(Object element)
showRename
in interface ISystemViewElementAdapter
showRename
in class AbstractSystemViewAdapter
AbstractSystemViewAdapter.canRename(Object)
,
AbstractSystemViewAdapter.doRename(Shell,Object,String)
public boolean showRefresh(Object element)
showRefresh
in interface ISystemViewElementAdapter
showRefresh
in class AbstractSystemViewAdapter
public boolean showOpenViewActions(Object element)
showOpenViewActions
in interface ISystemViewElementAdapter
showOpenViewActions
in class AbstractSystemViewAdapter
public String getMementoHandle(Object element)
getMementoHandle
in interface ISystemViewElementAdapter
getMementoHandle
in class AbstractSystemViewAdapter
public String getMementoHandleKey(Object element)
getMementoHandleKey
in interface ISystemViewElementAdapter
getMementoHandleKey
in class AbstractSystemViewAdapter
public boolean saveExpansionState(Object element)
WE RETURN FALSE.
saveExpansionState
in interface ISystemViewElementAdapter
saveExpansionState
in class AbstractSystemViewAdapter
|
Remote Systems v6.4.1 |
||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |