|
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
org.eclipse.rse.ui.view.SystemViewSubSystemAdapter
Adapter for displaying SubSystem objects in tree views. These are children of SystemConnection objects
| Field Summary | |
|---|---|
protected String |
translatedType
|
| Fields inherited from class org.eclipse.rse.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 org.eclipse.rse.ui.view.ISystemViewElementAdapter |
|---|
noActions |
| Fields inherited from interface org.eclipse.jface.viewers.IBasicPropertyConstants |
|---|
P_CHILDREN, P_IMAGE, P_PARENT, P_TEXT |
| Fields inherited from interface org.eclipse.rse.core.ISystemUserIdConstants |
|---|
USERID_LOCATION_CONNECTION, USERID_LOCATION_DEFAULT_OVERALL, USERID_LOCATION_DEFAULT_SYSTEMTYPE, USERID_LOCATION_NOTSET, USERID_LOCATION_SUBSYSTEM |
| Constructor Summary | |
|---|---|
SystemViewSubSystemAdapter()
|
|
| 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 subsystem object. |
boolean |
canDelete(Object element)
Return true if this object is deletable by the user. |
boolean |
canDrag(Object element)
Indicates whether the subsystem can be dragged. |
boolean |
canRename(Object element)
Return true if this object is renamable by the user. |
boolean |
doDelete(Shell shell,
Object element,
IProgressMonitor monitor)
Perform the delete action. |
Object |
doDrag(Object element,
boolean sameSystemType,
IProgressMonitor monitor)
Returns the subsystem (no phyiscal operation required to drag and subsystem (because it's local) |
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. |
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 System 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 on a rename action. |
Object |
getParent(Object element)
Return the parent of this object. |
IPropertyDescriptor[] |
getPropertyDescriptors()
Returns the current collection of property descriptors for connection objects. |
Object |
getPropertyValue(Object property)
Returns the current value for the named property. |
ISubSystem |
getSubSystem(Object element)
Returns itself |
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 |
isPropertySet(Object propertyObject)
Returns whether the property value has changed from the default. |
void |
resetPropertyValue(Object propertyObject)
Called when user selects the reset button in property sheet. |
void |
setPropertySourceInput(Object propertySourceInput)
Set input object for property source queries. |
void |
setPropertyValue(Object property,
Object value)
Called when user changes property via property sheet. |
boolean |
showDelete(Object element)
Return true if we should show the delete action in the popup for the given element. |
boolean |
showRename(Object element)
Return true if we should show the rename action in the popup for the given element. |
boolean |
testAttribute(Object target,
String name,
String value)
Override of AbstractSystemViewAdapter.testAttribute(Object, String, String). |
| 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.view.ISystemViewElementAdapter |
|---|
doDelete, doDeleteBatch, getAlternateText, getCanonicalNewName, getChildren, getChildrenUsingExpandToFilter, getFilterString, getInput, getPropertyValue, getShell, getStatusLineText, getUniquePropertyDescriptors, getViewer, handleDoubleClick, isPromptable, namesAreEqual, saveExpansionState, selectionChanged, setFilterString, setInput, setShell, setViewer, showGenericShowInTableAction, showOpenViewActions, showRefresh, supportsDeferredQueries |
| Methods inherited from interface org.eclipse.ui.views.properties.IPropertySource |
|---|
getEditableValue |
| Methods inherited from interface org.eclipse.rse.ui.view.ISystemDragDropAdapter |
|---|
canDrag, canDrop, doDrag, doDrop, doDrop, validateDrop, validateDrop |
| Field Detail |
protected String translatedType
| Constructor Detail |
public SystemViewSubSystemAdapter()
| Method Detail |
public void addActions(SystemMenuManager menu,
IStructuredSelection selection,
Shell shell,
String menuGroup)
addActions in interface ISystemViewElementAdapteraddActions in class AbstractSystemViewAdaptermenu - 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 ImageDescriptor getImageDescriptor(Object element)
getImageDescriptor in interface ISystemViewElementAdaptergetImageDescriptor in class AbstractSystemViewAdapterelement - The element for which an image is desiredpublic String getText(Object element)
getText in interface ISystemViewElementAdaptergetText in class AbstractSystemViewAdapterAbstractSystemViewAdapter.getName(Object),
AbstractSystemViewAdapter.getAbsoluteName(Object)public String getName(Object element)
Called by common rename and delete actions.
getName in interface ISystemViewElementAdaptergetName in class AbstractSystemViewAdapterAbstractSystemViewAdapter.getText(Object),
AbstractSystemViewAdapter.getAbsoluteName(Object)public String getAbsoluteName(Object element)
getAbsoluteName in interface IRemoteObjectIdentifiergetAbsoluteName in class AbstractSystemViewAdapterAbstractSystemViewAdapter.getText(Object),
AbstractSystemViewAdapter.getName(Object)public String getType(Object element)
getType in interface ISystemViewElementAdaptergetType in class AbstractSystemViewAdapterpublic Object getParent(Object element)
getParent in interface ISystemViewElementAdaptergetParent in class AbstractSystemViewAdapterpublic Object[] getChildren(Object element)
getChildren in interface ISystemViewElementAdaptergetChildren in class AbstractSystemViewAdapterpublic boolean hasChildren(Object element)
hasChildren in interface ISystemViewElementAdapterhasChildren in class AbstractSystemViewAdapterpublic IPropertyDescriptor[] getPropertyDescriptors()
getPropertyDescriptors in interface IPropertySourcegetPropertyDescriptors in class AbstractSystemViewAdapterAbstractSystemViewAdapter.internalGetPropertyDescriptors()protected IPropertyDescriptor[] internalGetPropertyDescriptors()
internalGetPropertyDescriptors in class AbstractSystemViewAdapter#createSimplePropertyDescriptor(String,ResourceBundle,String)public Object getPropertyValue(Object property)
getPropertyValue in interface IPropertySourcegetPropertyValue in class AbstractSystemViewAdapterproperty - the name of the property as named by its property descriptor
public ISubSystem getSubSystem(Object element)
getSubSystem in interface ISystemViewElementAdaptergetSubSystem in class AbstractSystemViewAdapterpublic Object internalGetPropertyValue(Object key)
internalGetPropertyValue in class AbstractSystemViewAdapterkey - the name of the property as named by its property descriptor
public void setPropertySourceInput(Object propertySourceInput)
setPropertySourceInput in interface ISystemViewElementAdaptersetPropertySourceInput in class AbstractSystemViewAdapterpublic boolean isPropertySet(Object propertyObject)
isPropertySet in interface IPropertySourceisPropertySet in class AbstractSystemViewAdaptertrue if the value of the specified property has changed
from its original default value; false otherwise.public void resetPropertyValue(Object propertyObject)
resetPropertyValue in interface IPropertySourceresetPropertyValue in class AbstractSystemViewAdapterpropertyObject - the key identifying property to reset
public void setPropertyValue(Object property,
Object value)
setPropertyValue in interface IPropertySourcesetPropertyValue in class AbstractSystemViewAdapterproperty - the key identifying property to resetvalue - the new value for the property
public boolean testAttribute(Object target,
String name,
String value)
AbstractSystemViewAdapter.testAttribute(Object, String, String). We add
one more attribute for subsystems:
ISubSystemConfiguration#supportsServerLaunchProperties() method.
testAttribute in interface IActionFiltertestAttribute in class AbstractSystemViewAdapterIActionFilter.testAttribute(Object, String, String)public boolean showDelete(Object element)
showDelete in interface ISystemViewElementAdaptershowDelete in class AbstractSystemViewAdapterAbstractSystemViewAdapter.canDelete(Object),
AbstractSystemViewAdapter.doDelete(Shell,Object)public boolean canDelete(Object element)
canDelete in interface ISystemViewElementAdaptercanDelete in class AbstractSystemViewAdapterAbstractSystemViewAdapter.showDelete(Object),
AbstractSystemViewAdapter.doDelete(Shell,Object)
public boolean doDelete(Shell shell,
Object element,
IProgressMonitor monitor)
doDelete in interface ISystemViewElementAdapterdoDelete in class AbstractSystemViewAdapterAbstractSystemViewAdapter.showDelete(Object),
AbstractSystemViewAdapter.canDelete(Object)public boolean showRename(Object element)
showRename in interface ISystemViewElementAdaptershowRename in class AbstractSystemViewAdapterAbstractSystemViewAdapter.canRename(Object),
AbstractSystemViewAdapter.doRename(Shell,Object,String)public boolean canRename(Object element)
canRename in interface ISystemViewElementAdaptercanRename in class AbstractSystemViewAdapterAbstractSystemViewAdapter.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)
doRename in interface ISystemViewElementAdapterdoRename in class AbstractSystemViewAdapterAbstractSystemViewAdapter.showRename(Object),
AbstractSystemViewAdapter.canRename(Object)public ISystemValidator getNameValidator(Object element)
getNameValidator in interface ISystemViewElementAdaptergetNameValidator in class AbstractSystemViewAdapterAbstractSystemViewAdapter.canRename(Object)public boolean canDrag(Object element)
canDrag in interface ISystemDragDropAdaptercanDrag in class AbstractSystemViewAdapterAbstractSystemViewAdapter.doDrag(Object,boolean,IProgressMonitor),
AbstractSystemViewAdapter.canDrop(Object),
AbstractSystemViewAdapter.doDrop(Object,Object,boolean,boolean,IProgressMonitor),
AbstractSystemViewAdapter.validateDrop(Object,Object,boolean)
public Object doDrag(Object element,
boolean sameSystemType,
IProgressMonitor monitor)
doDrag in interface ISystemDragDropAdapterdoDrag in class AbstractSystemViewAdapterAbstractSystemViewAdapter.canDrag(Object),
AbstractSystemViewAdapter.canDrop(Object),
AbstractSystemViewAdapter.doDrop(Object,Object,boolean,boolean,IProgressMonitor),
AbstractSystemViewAdapter.validateDrop(Object,Object,boolean)public String getMementoHandle(Object element)
getMementoHandle in interface ISystemViewElementAdaptergetMementoHandle in class AbstractSystemViewAdapterpublic String getInputMementoHandle(Object element)
getInputMementoHandle in interface ISystemViewElementAdaptergetInputMementoHandle in class AbstractSystemViewAdapterpublic String getMementoHandleKey(Object element)
getMementoHandleKey in interface ISystemViewElementAdaptergetMementoHandleKey in class AbstractSystemViewAdapter
|
RSE Release 1.0 |
|||||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | |||||||||||