|
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.SystemViewFilterReferenceAdapter
Adapter for displaying SystemFilterReference objects in tree views. These are children of SystemFilterPoolReference and SystemFilterReference objects
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 | |
---|---|
SystemViewFilterReferenceAdapter()
|
Method Summary | |
---|---|
void |
addActions(SystemMenuManager menu,
IStructuredSelection selection,
Shell shell,
String menuGroup)
Returns any actions that should be contributed to the popup menu for the given filter object. |
boolean |
canDelete(Object element)
Return true if this object is deletable by the user. |
boolean |
canDrag(Object element)
drag support is handled directly for filter references, rather than delegated here. |
boolean |
canDrop(Object element)
Can this object be added as part of the filter? |
boolean |
canRename(Object element)
Return true if this object is renamable by the user. |
boolean |
doDelete(Shell shell,
Object element)
Perform the delete action. |
Object |
doDrag(Object element,
boolean sameSystemType,
IProgressMonitor monitor)
drag support is handled directory for filter references, rather than delegated here. |
Object |
doDrop(Object from,
Object to,
boolean sameSystemType,
boolean sameSystem,
int srcType,
IProgressMonitor monitor)
Add the absolute name of the from object to the list of filter strings for this filter |
boolean |
doRename(Shell shell,
Object element,
String name)
Perform the rename action. |
String |
getAbsoluteName(Object element)
Return the absolute name, versus just display name, of this object |
String |
getCanonicalNewName(Object element,
String newName)
Parent override. |
Object[] |
getChildren(IProgressMonitor monitor,
Object element)
Return the children 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 |
getInputMementoHandle(Object element)
Return what to save to disk to identify this element when it is the input object to a secondary Remote Systems Explorer perspective. |
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. |
String |
getName(Object element)
Return the name of this object, which may be different than the display text ({#link #getText(Object)}. |
ISystemValidator |
getNameValidator(Object element)
Return a validator for verifying the new name is correct. |
Object |
getParent(Object element)
Return the parent of this object |
SubSystem |
getSubSystem(Object element)
Overridden from parent. |
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 Object[] |
internalGetChildren(IProgressMonitor monitor,
Object element)
|
protected IPropertyDescriptor[] |
internalGetPropertyDescriptors()
Return our unique property descriptors |
protected Object |
internalGetPropertyValue(Object key)
Return our unique property values |
static boolean |
isCommandFilter(SystemFilter filter)
Return true if the given filter is from a command subsystem |
static boolean |
isJobFilter(SystemFilter filter)
Return true if the given filter is from a job subsystem |
boolean |
isPromptable(Object element)
Return true if this object is a "prompting" object that prompts the user when expanded. |
boolean |
saveExpansionState(Object element)
Somtimes we don't want to remember an element's expansion state, such as for temporarily inserted messages. |
boolean |
showGenericShowInTableAction(Object element)
Don't show generic "Show in Table" if the factory asks not to |
boolean |
showOpenViewActions(Object element)
Don't show "Open in new perspective" if this is promptable |
boolean |
showRefresh(Object element)
Return true if we should show the refresh action in the popup for the element. |
boolean |
supportsDeferredQueries()
Return whether deferred queries are supported. |
boolean |
testAttribute(Object target,
String name,
String value)
Overide of parent method. |
boolean |
validateDrop(Object src,
Object target,
boolean sameSystem)
Validate that the source and target for the drag and drop operation are compatable. |
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 |
---|
getChildrenUsingExpandToFilter, getFilterString, getInput, getPropertyValue, getShell, getStatusLineText, getUniquePropertyDescriptors, getViewer, handleDoubleClick, namesAreEqual, selectionChanged, setFilterString, setInput, setPropertySourceInput, setShell, setViewer, showDelete, showRename |
Methods inherited from interface com.ibm.etools.systems.core.ui.view.ISystemDragDropAdapter |
---|
doDrop |
Field Detail |
public static final String copyright
Constructor Detail |
public SystemViewFilterReferenceAdapter()
Method Detail |
public void addActions(SystemMenuManager menu, IStructuredSelection selection, Shell shell, String menuGroup)
addActions
in interface ISystemViewElementAdapter
addActions
in class AbstractSystemViewAdapter
menu
- The menu to contribute actions toselection
- The window's current selection.shell
- Shell of viewermenuGroup
- recommended menu group to add actions to. If added to another group, you must be sure to create that group first.ISystemViewElementAdapter.addActions(SystemMenuManager, IStructuredSelection, Shell, String)
public SubSystem getSubSystem(Object element)
getSubSystem
in interface ISystemViewElementAdapter
getSubSystem
in class AbstractSystemViewAdapter
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 getName(Object element)
Called by common rename and delete actions.
getName
in interface ISystemViewElementAdapter
getName
in class AbstractSystemViewAdapter
AbstractSystemViewAdapter.getText(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(IProgressMonitor monitor, Object element)
getChildren
in interface ISystemViewElementAdapter
getChildren
in class AbstractSystemViewAdapter
public Object[] getChildren(Object element)
getChildren
in interface ISystemViewElementAdapter
getChildren
in class AbstractSystemViewAdapter
protected Object[] internalGetChildren(IProgressMonitor monitor, Object element)
public boolean hasChildren(Object element)
hasChildren
in interface ISystemViewElementAdapter
hasChildren
in class AbstractSystemViewAdapter
public boolean isPromptable(Object element)
Default is false unless this is a prompting filter
isPromptable
in interface ISystemViewElementAdapter
isPromptable
in class AbstractSystemViewAdapter
public boolean testAttribute(Object target, String name, String value)
testAttribute
in class AbstractSystemViewAdapter
IActionFilter
protected IPropertyDescriptor[] internalGetPropertyDescriptors()
internalGetPropertyDescriptors
in class AbstractSystemViewAdapter
AbstractSystemViewAdapter.createSimplePropertyDescriptor(String,ResourceBundle,String)
protected Object internalGetPropertyValue(Object key)
internalGetPropertyValue
in class AbstractSystemViewAdapter
key
- the name of the property as named by its property descriptor
public boolean canDelete(Object element)
canDelete
in interface ISystemViewElementAdapter
canDelete
in class AbstractSystemViewAdapter
AbstractSystemViewAdapter.showDelete(Object)
,
AbstractSystemViewAdapter.doDelete(Shell,Object)
public boolean doDelete(Shell shell, Object element) throws Exception
doDelete
in interface ISystemViewElementAdapter
doDelete
in class AbstractSystemViewAdapter
Exception
AbstractSystemViewAdapter.showDelete(Object)
,
AbstractSystemViewAdapter.canDelete(Object)
public boolean canRename(Object element)
canRename
in interface ISystemViewElementAdapter
canRename
in class AbstractSystemViewAdapter
AbstractSystemViewAdapter.showRename(Object)
,
AbstractSystemViewAdapter.doRename(Shell,Object,String)
,
AbstractSystemViewAdapter.getNameValidator(Object)
,
AbstractSystemViewAdapter.getCanonicalNewName(Object,String)
,
AbstractSystemViewAdapter.namesAreEqual(Object,String)
public boolean doRename(Shell shell, Object element, String name) throws Exception
doRename
in interface ISystemViewElementAdapter
doRename
in class AbstractSystemViewAdapter
Exception
AbstractSystemViewAdapter.showRename(Object)
,
AbstractSystemViewAdapter.canRename(Object)
public ISystemValidator getNameValidator(Object element)
getNameValidator
in interface ISystemViewElementAdapter
getNameValidator
in class AbstractSystemViewAdapter
AbstractSystemViewAdapter.canRename(Object)
public String getCanonicalNewName(Object element, String newName)
Form and return a new canonical (unique) name for this object, given a candidate for the new name. This is called by the generic multi-rename dialog to test that all new names are unique. To do this right, sometimes more than the raw name itself is required to do uniqueness checking.
Returns mgrName.poolName.filterName, upperCased
getCanonicalNewName
in interface ISystemViewElementAdapter
getCanonicalNewName
in class AbstractSystemViewAdapter
AbstractSystemViewAdapter.canRename(Object)
public boolean showOpenViewActions(Object element)
showOpenViewActions
in interface ISystemViewElementAdapter
showOpenViewActions
in class AbstractSystemViewAdapter
public boolean showGenericShowInTableAction(Object element)
showGenericShowInTableAction
in interface ISystemViewElementAdapter
showGenericShowInTableAction
in class AbstractSystemViewAdapter
public boolean showRefresh(Object element)
showRefresh
in interface ISystemViewElementAdapter
showRefresh
in class AbstractSystemViewAdapter
public String getMementoHandle(Object element)
getMementoHandle
in interface ISystemViewElementAdapter
getMementoHandle
in class AbstractSystemViewAdapter
public String getInputMementoHandle(Object element)
getInputMementoHandle
in interface ISystemViewElementAdapter
getInputMementoHandle
in class AbstractSystemViewAdapter
public String getMementoHandleKey(Object element)
getMementoHandleKey
in interface ISystemViewElementAdapter
getMementoHandleKey
in class AbstractSystemViewAdapter
public boolean saveExpansionState(Object element)
WE RETURN FALSE IF THIS IS A PROMPTABLE FILTER, COMMAND FILTER OR JOB FILTER.
saveExpansionState
in interface ISystemViewElementAdapter
saveExpansionState
in class AbstractSystemViewAdapter
public static boolean isCommandFilter(SystemFilter filter)
public static boolean isJobFilter(SystemFilter filter)
public boolean canDrag(Object element)
canDrag
in interface ISystemDragDropAdapter
canDrag
in class AbstractSystemViewAdapter
AbstractSystemViewAdapter.doDrag(Object,boolean,IProgressMonitor)
,
AbstractSystemViewAdapter.canDrop(Object)
,
AbstractSystemViewAdapter.doDrop(Object,Object,boolean,boolean,IProgressMonitor)
,
AbstractSystemViewAdapter.validateDrop(Object,Object,boolean)
public boolean canDrop(Object element)
canDrop
in interface ISystemDragDropAdapter
canDrop
in class AbstractSystemViewAdapter
AbstractSystemViewAdapter.canDrag(Object)
,
AbstractSystemViewAdapter.doDrag(Object,boolean,IProgressMonitor)
,
AbstractSystemViewAdapter.doDrop(Object,Object,boolean,boolean,IProgressMonitor)
,
AbstractSystemViewAdapter.validateDrop(Object,Object,boolean)
public Object doDrag(Object element, boolean sameSystemType, IProgressMonitor monitor)
doDrag
in interface ISystemDragDropAdapter
doDrag
in class AbstractSystemViewAdapter
AbstractSystemViewAdapter.canDrag(Object)
,
AbstractSystemViewAdapter.canDrop(Object)
,
AbstractSystemViewAdapter.doDrop(Object,Object,boolean,boolean,IProgressMonitor)
,
AbstractSystemViewAdapter.validateDrop(Object,Object,boolean)
public Object doDrop(Object from, Object to, boolean sameSystemType, boolean sameSystem, int srcType, IProgressMonitor monitor)
doDrop
in interface ISystemDragDropAdapter
doDrop
in class AbstractSystemViewAdapter
AbstractSystemViewAdapter.canDrag(Object)
,
AbstractSystemViewAdapter.doDrag(Object,boolean,IProgressMonitor)
,
AbstractSystemViewAdapter.canDrop(Object)
,
AbstractSystemViewAdapter.validateDrop(Object,Object,boolean)
public boolean validateDrop(Object src, Object target, boolean sameSystem)
validateDrop
in interface ISystemDragDropAdapter
validateDrop
in class AbstractSystemViewAdapter
src
- the object to droptarget
- the object which src is dropped insameSystem
- whether this is the same system or not
AbstractSystemViewAdapter.canDrag(Object)
,
AbstractSystemViewAdapter.doDrag(Object,boolean,IProgressMonitor)
,
AbstractSystemViewAdapter.canDrop(Object)
,
AbstractSystemViewAdapter.doDrop(Object,Object,boolean,boolean,IProgressMonitor)
public boolean supportsDeferredQueries()
ISystemViewElementAdapter
supportsDeferredQueries
in interface ISystemViewElementAdapter
supportsDeferredQueries
in class AbstractSystemViewAdapter
|
Remote Systems v6.4.1 |
||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |