Remote Systems
v6.4.1

com.ibm.etools.systems.core.ui.view
Class SystemViewRemoteOutputAdapter

java.lang.Object
  extended bycom.ibm.etools.systems.core.ui.view.AbstractSystemViewAdapter
      extended bycom.ibm.etools.systems.core.ui.view.SystemViewRemoteOutputAdapter
All Implemented Interfaces:
IRemoteObjectIdentifier, ISystemDragDropAdapter, ISystemOutputRemoteTypes, ISystemPropertyConstants, ISystemRemoteElementAdapter, ISystemViewActionFilter, ISystemViewElementAdapter
Direct Known Subclasses:
SystemViewRemoteErrorAdapter

public class SystemViewRemoteOutputAdapter
extends AbstractSystemViewAdapter
implements ISystemViewElementAdapter, ISystemRemoteElementAdapter, ISystemOutputRemoteTypes

This is the adapter for smart output from remote commands, such that they can support right click actions and such.


Field Summary
protected  IPropertyDescriptor[] _propertyDescriptors
           
static String Copyright
           
 
Fields inherited from class com.ibm.etools.systems.core.ui.view.AbstractSystemViewAdapter
_lastResults, _lastSelected, canceledObject, copyright, 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
copyright, noActions
 
Fields inherited from interface com.ibm.etools.systems.core.ui.view.ISystemRemoteElementAdapter
copyright
 
Fields inherited from interface com.ibm.etools.systems.commands.ISystemOutputRemoteTypes
copyright, TYPE_COMMAND, TYPE_DIRECTORY, TYPE_ENVVAR, TYPE_ENVVAR_LIBPATH, TYPE_ENVVAR_PATH, TYPE_ERROR, TYPE_FILE, TYPE_GREP, TYPE_INFORMATIONAL, TYPE_PROCESS, TYPE_PROMPT, TYPE_WARNING, TYPECATEGORY
 
Fields inherited from interface com.ibm.etools.systems.core.ui.view.ISystemPropertyConstants
P_ARCHIVE_COMMENT, P_ARCHIVE_EXPANDEDSIZE, P_CCSID, P_COMMAND, P_COMMENT, P_COMPILETYPE_TYPES, P_DEFAULTUSERID, P_DESCRIPTION, P_ENVLIST, P_ERROR, P_ERROR_FILENAME, P_ERROR_LINENO, P_FILE_CANONICAL_PATH, P_FILE_CLASSIFICATION, P_FILE_HIDDEN, P_FILE_LASTMODIFIED, P_FILE_PATH, P_FILE_READABLE, P_FILE_READONLY, P_FILE_SIZE, P_FILE_WRITABLE, P_FILTER, P_FILTERS, P_FILTERSTRING, P_FILTERSTRINGS, P_FILTERSTRINGS_COUNT, P_HAS_CHILDREN, P_HOSTNAME, P_IS_ACTIVE, P_IS_CONNECTED, P_IS_CONNECTION_PRIVATE, P_NBRCHILDREN, P_NEWNAME, P_OK, P_ORIGIN, P_PARENT_FILTER, P_PARENT_FILTERPOOL, P_PASSWORD, P_PORT, P_PREFIX, P_PROFILE, P_RELATED_CONNECTION, P_SEARCH_LINE, P_SHELL_CONTEXT, P_SHELL_STATUS, P_SYSTEMTYPE, P_TYPE, P_USERACTION_DOMAIN, P_USERID, P_VENDOR, P_VIRTUAL_COMMENT, P_VIRTUAL_COMPRESSEDSIZE, P_VIRTUAL_COMPRESSIONMETHOD, P_VIRTUAL_COMPRESSIONRATIO, P_VRM
 
Constructor Summary
SystemViewRemoteOutputAdapter()
           
 
Method Summary
 void addActions(SystemMenuManager menu, IStructuredSelection selection, Shell shell, String menuGroup)
          Used to add context menu actions for the given remote output
 boolean canDelete(Object element)
          Return true if this object is deletable by the user.
 boolean canDrag(Object element)
          Indicates whether the specified object can be copied
 boolean canDrop(Object element)
          Indicates whether the specified object can have another object copied to it
 boolean canEdit(Object element)
          Determines whether the line of remote output can be edited in an editor
 boolean canRename(Object element)
          Return true if this object is renamable by the user.
 Object doDrag(Object element, boolean sameSystemType, IProgressMonitor monitor)
          Copy the specified remote output object.
 Object doDrop(Object src, Object target, boolean sameSystemType, boolean sameSystem, int srcType, IProgressMonitor monitor)
          Perform a copy via drag and drop.
 boolean doRename(Shell shell, Object element, String name)
          Perform the rename action.
 String getAbsoluteName(Object element)
          Return the fully qualified name of this remote object.
 String getAbsoluteParentName(Object element)
          Return fully qualified name that uniquely identifies this remote object's remote parent within its subsystem
 Object[] getChildren(Object element)
          Returns the children of a remote command if the element is a remote command
 ISystemEditableRemoteObject getEditableRemoteObject(Object element)
          Returns the associated remote editable object for this line of output
 String getFilterStringFor(Object object)
          Return a filter string that corresponds to this object.
 ImageDescriptor getImageDescriptor(Object element)
          Returns the icon to display for this object
 Object getParent(Object element)
          Returns the parent command object for a line of output
 Object getPropertyValue(Object property, boolean formatted)
          Returns the current value for the named property.
 Object getRemoteParent(Shell shell, Object element)
          Given a remote object, returns it remote parent object.
 String[] getRemoteParentNamesInUse(Shell shell, Object element)
          Given a remote object, return the unqualified names of the objects contained in that parent.
 String getRemoteSourceType(Object element)
          Return the source type of the selected object.
 String getRemoteSubSubType(Object element)
          Return a value for the sub-subtype property for this object.
 String getRemoteSubType(Object element)
          Return a value for the subtype property for this object.
 String getRemoteType(Object element)
          Return a value for the type property for this object The value must not be translated, so that property pages registered via xml can subset by it.
 String getRemoteTypeCategory(Object element)
          Return a value for the type category property for this object The value must not be translated, so that property pages registered via xml can subset by it.
 List getShellActions(RemoteCmdSubSystemFactory factory)
           
 SubSystem getSubSystem(Object element)
          Returns the associated subsystem for this line of remote output or remote command
 String getSubSystemFactoryId(Object element)
          Return the subsystem factory id that owns this remote object The value must not be translated, so that property pages registered via xml can subset by it.
 String getText(Object element)
          Returns the text to display in a view for this element.
 String getType(Object element)
          Returns the type attribute of a line of output or command.
 IPropertyDescriptor[] getUniquePropertyDescriptors()
          Returns the list of property descriptors that are unique for this particular adapter - that is the difference between the default property descriptors and the total list of property descriptors.
 boolean handleDoubleClick(Object element)
          Opens the appropriate editor for a remote output object
 boolean hasChildren(Object element)
          Returns true if the element is a remote command and false if it is a remote output.
protected  IPropertyDescriptor[] internalGetPropertyDescriptors()
          Abstract.
protected  Object internalGetPropertyValue(Object key)
          Returns the current collection of property descriptors.
protected  boolean openWorkspaceFile(IRemoteFile remoteFile, IRemoteOutput output)
          Open workspace file associated with IRemoteCommandShell.
static IRemoteFile outputToFile(IRemoteOutput output)
          Returns the associated IRemoteFile for this line of remote output if one exists
 boolean refreshRemoteObject(Object oldElement, Object newElement)
          Some view has updated the name or properties of this remote object.
 boolean showDelete(Object element)
          Return true if we should show the delete action in the popup for the given element.
 boolean showOpenViewActions(Object element)
          Return true if we should show the refresh action in the popup for the given element.
 boolean showRefresh(Object element)
          Return true if we should show the refresh 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 supportsUserDefinedActions(Object object)
          Returns false.
 boolean validateDrop(Object src, Object target, boolean sameSystem)
          Return true if it is valid for the src object to be dropped in the target
 
Methods inherited from class com.ibm.etools.systems.core.ui.view.AbstractSystemViewAdapter
addCommonRemoteActions, addDynamicPopupMenuActions, checkForNull, createSimplePropertyDescriptor, createSimplePropertyDescriptor, doDelete, doDrop, fetchDeferredChildren, getAdapter, getCancelledMessageObject, getCanonicalNewName, getChildren, getChildrenUsingExpandToFilter, getCurrentTreeView, getDefaultDescriptors, getEditableValue, getEmptyMessageObject, getFailedMessageObject, getFilterString, getFirstSelection, getInput, getInputMementoHandle, getLabel, getMementoHandle, getMementoHandleKey, getName, getNameValidator, getPropertyDescriptors, getPropertyValue, getRemoteAdapter, getRule, getShell, getStatusLineText, getSystemFetchOperation, getSystemTree, getTranslatedFalse, getTranslatedNo, getTranslatedNotApplicable, getTranslatedNotAvailable, getTranslatedTrue, getTranslatedYes, getViewer, initMsgObjects, isContainer, isPromptable, isPropertySet, namesAreEqual, resetPropertyValue, saveExpansionState, selectionChanged, setFilterString, setInput, setPropertySourceInput, setPropertyValue, setShell, setViewer, showGenericShowInTableAction, sub, supportsDeferredQueries, testAttribute
 
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
doDelete, getCanonicalNewName, getChildren, getChildrenUsingExpandToFilter, getFilterString, getInput, getInputMementoHandle, getMementoHandle, getMementoHandleKey, getName, getNameValidator, getShell, getStatusLineText, getViewer, isPromptable, namesAreEqual, saveExpansionState, selectionChanged, setFilterString, setInput, setPropertySourceInput, setShell, setViewer, showGenericShowInTableAction, supportsDeferredQueries
 
Methods inherited from interface com.ibm.etools.systems.core.ui.view.ISystemDragDropAdapter
doDrop
 
Methods inherited from interface com.ibm.etools.systems.core.ui.view.ISystemRemoteElementAdapter
getName
 

Field Detail

Copyright

public static final String Copyright
See Also:
Constant Field Values

_propertyDescriptors

protected IPropertyDescriptor[] _propertyDescriptors
Constructor Detail

SystemViewRemoteOutputAdapter

public SystemViewRemoteOutputAdapter()
Method Detail

addActions

public void addActions(SystemMenuManager menu,
                       IStructuredSelection selection,
                       Shell shell,
                       String menuGroup)
Used to add context menu actions for the given remote output

Specified by:
addActions in interface ISystemViewElementAdapter
Specified by:
addActions in class AbstractSystemViewAdapter
Parameters:
menu - the popup menu you can contribute to
selection - the current selection in the calling tree or table view
shell - the shell of the calling tree or table view
menuGroup - the default menu group to place actions into if you don't care where they. Pass this to the SystemMenuManager add method.
See Also:
ISystemViewElementAdapter.addActions(SystemMenuManager, IStructuredSelection, Shell, String)

getShellActions

public List getShellActions(RemoteCmdSubSystemFactory factory)

getParent

public Object getParent(Object element)
Returns the parent command object for a line of output

Specified by:
getParent in interface ISystemViewElementAdapter
Specified by:
getParent in class AbstractSystemViewAdapter

getText

public String getText(Object element)
Returns the text to display in a view for this element.

Specified by:
getText in interface ISystemViewElementAdapter
Specified by:
getText in class AbstractSystemViewAdapter
See Also:
AbstractSystemViewAdapter.getName(Object), AbstractSystemViewAdapter.getAbsoluteName(Object)

getType

public String getType(Object element)
Returns the type attribute of a line of output or command.

Specified by:
getType in interface ISystemViewElementAdapter
Specified by:
getType in class AbstractSystemViewAdapter

getChildren

public Object[] getChildren(Object element)
Returns the children of a remote command if the element is a remote command

Specified by:
getChildren in interface ISystemViewElementAdapter
Specified by:
getChildren in class AbstractSystemViewAdapter

hasChildren

public boolean hasChildren(Object element)
Returns true if the element is a remote command and false if it is a remote output.

Specified by:
hasChildren in interface ISystemViewElementAdapter
Specified by:
hasChildren in class AbstractSystemViewAdapter

outputToFile

public static IRemoteFile outputToFile(IRemoteOutput output)
Returns the associated IRemoteFile for this line of remote output if one exists

Parameters:
output - the line of remote output
Returns:
the associated remote file

openWorkspaceFile

protected boolean openWorkspaceFile(IRemoteFile remoteFile,
                                    IRemoteOutput output)
Open workspace file associated with IRemoteCommandShell. If there is no associated project return.

Parameters:
remoteFile -
output -
Returns:

handleDoubleClick

public boolean handleDoubleClick(Object element)
Opens the appropriate editor for a remote output object

Specified by:
handleDoubleClick in interface ISystemViewElementAdapter
Overrides:
handleDoubleClick in class AbstractSystemViewAdapter

getSubSystem

public SubSystem getSubSystem(Object element)
Returns the associated subsystem for this line of remote output or remote command

Specified by:
getSubSystem in interface ISystemViewElementAdapter
Overrides:
getSubSystem in class AbstractSystemViewAdapter

getAbsoluteName

public String getAbsoluteName(Object element)
Return the fully qualified name of this remote object.

Specified by:
getAbsoluteName in interface IRemoteObjectIdentifier
Specified by:
getAbsoluteName in class AbstractSystemViewAdapter
See Also:
AbstractSystemViewAdapter.getText(Object), AbstractSystemViewAdapter.getName(Object)

getAbsoluteParentName

public String getAbsoluteParentName(Object element)
Return fully qualified name that uniquely identifies this remote object's remote parent within its subsystem

Specified by:
getAbsoluteParentName in interface ISystemRemoteElementAdapter

getSubSystemFactoryId

public String getSubSystemFactoryId(Object element)
Return the subsystem factory id that owns this remote object The value must not be translated, so that property pages registered via xml can subset by it.

Specified by:
getSubSystemFactoryId in interface ISystemRemoteElementAdapter

getRemoteTypeCategory

public String getRemoteTypeCategory(Object element)
Return a value for the type category property for this object The value must not be translated, so that property pages registered via xml can subset by it.

Specified by:
getRemoteTypeCategory in interface ISystemRemoteElementAdapter

getRemoteType

public String getRemoteType(Object element)
Return a value for the type property for this object The value must not be translated, so that property pages registered via xml can subset by it.

Specified by:
getRemoteType in interface ISystemRemoteElementAdapter

getRemoteSubType

public String getRemoteSubType(Object element)
Return a value for the subtype property for this object. Not all object types support a subtype, so returning null is ok. The value must not be translated, so that property pages registered via xml can subset by it.

Specified by:
getRemoteSubType in interface ISystemRemoteElementAdapter

getRemoteSubSubType

public String getRemoteSubSubType(Object element)
Return a value for the sub-subtype property for this object. Not all object types support a sub-subtype, so returning null is ok. The value must not be translated, so that property pages registered via xml can subset by it.

Specified by:
getRemoteSubSubType in interface ISystemRemoteElementAdapter
Overrides:
getRemoteSubSubType in class AbstractSystemViewAdapter

getRemoteSourceType

public String getRemoteSourceType(Object element)
Return the source type of the selected object. Typically, this only makes sense for compilable source members. For non-compilable remote objects, this typically just returns null.

Specified by:
getRemoteSourceType in interface ISystemRemoteElementAdapter
Overrides:
getRemoteSourceType in class AbstractSystemViewAdapter

refreshRemoteObject

public boolean refreshRemoteObject(Object oldElement,
                                   Object newElement)
Some view has updated the name or properties of this remote object. As a result, the remote object's contents need to be refreshed. You are given the old remote object that has old data, and you are given the new remote object that has the new data. For example, on a rename the old object still has the old name attribute while the new object has the new new attribute.

This is called by viewers like SystemView in response to rename and property change events.

Specified by:
refreshRemoteObject in interface ISystemRemoteElementAdapter
Parameters:
oldElement - the element that was found in the tree
newElement - the updated element that was passed in the REFRESH_REMOTE event
Returns:
true if you want the viewer that called this to refresh the children of this object, such as is needed on a rename of a folder, say.

getRemoteParent

public Object getRemoteParent(Shell shell,
                              Object element)
                       throws Exception
Given a remote object, returns it remote parent object. Eg, given a file, return the folder it is contained in.

Specified by:
getRemoteParent in interface ISystemRemoteElementAdapter
Throws:
Exception

getRemoteParentNamesInUse

public String[] getRemoteParentNamesInUse(Shell shell,
                                          Object element)
                                   throws Exception
Given a remote object, return the unqualified names of the objects contained in that parent. This is used for testing for uniqueness on a rename operation, for example. Sometimes, it is not enough to just enumerate all the objects in the parent for this purpose, because duplicate names are allowed if the types are different, such as on iSeries. In this case return only the names which should be used to do name-uniqueness validation on a rename operation.

Specified by:
getRemoteParentNamesInUse in interface ISystemRemoteElementAdapter
Throws:
Exception

internalGetPropertyValue

protected Object internalGetPropertyValue(Object key)
Returns the current collection of property descriptors. By default returns descriptors for name and type only. Override if desired.

Specified by:
internalGetPropertyValue in class AbstractSystemViewAdapter
Parameters:
key - the name of the property as named by its property descriptor
Returns:
an array containing all descriptors.

getImageDescriptor

public ImageDescriptor getImageDescriptor(Object element)
Returns the icon to display for this object

Specified by:
getImageDescriptor in interface ISystemViewElementAdapter
Specified by:
getImageDescriptor in class AbstractSystemViewAdapter
Parameters:
element - the remote output object
Returns:
the associated image descriptor

showDelete

public boolean showDelete(Object element)
Return true if we should show the delete action in the popup for the given element. If true, then canDelete will be called to decide whether to enable delete or not.

Specified by:
showDelete in interface ISystemViewElementAdapter
Overrides:
showDelete in class AbstractSystemViewAdapter
See Also:
AbstractSystemViewAdapter.canDelete(Object), AbstractSystemViewAdapter.doDelete(Shell,Object)

canDelete

public boolean canDelete(Object element)
Return true if this object is deletable by the user. If so, when selected, the Edit->Delete menu item will be enabled. By default, returns false. Override if your object is deletable.

Specified by:
canDelete in interface ISystemViewElementAdapter
Overrides:
canDelete in class AbstractSystemViewAdapter
See Also:
AbstractSystemViewAdapter.showDelete(Object), AbstractSystemViewAdapter.doDelete(Shell,Object)

showRefresh

public boolean showRefresh(Object element)
Return true if we should show the refresh action in the popup for the given element.

Specified by:
showRefresh in interface ISystemViewElementAdapter
Overrides:
showRefresh in class AbstractSystemViewAdapter

showOpenViewActions

public boolean showOpenViewActions(Object element)
Return true if we should show the refresh action in the popup for the given element.

Specified by:
showOpenViewActions in interface ISystemViewElementAdapter
Overrides:
showOpenViewActions in class AbstractSystemViewAdapter

showRename

public boolean showRename(Object element)
Return true if we should show the rename action in the popup for the given element. If true, then canRename will be called to decide whether to enable rename or not.

Specified by:
showRename in interface ISystemViewElementAdapter
Overrides:
showRename in class AbstractSystemViewAdapter
Returns:
true if we should show the rename action in the popup for the given element.
See Also:
AbstractSystemViewAdapter.canRename(Object), AbstractSystemViewAdapter.doRename(Shell,Object,String)

canRename

public boolean canRename(Object element)
Return true if this object is renamable by the user. If so, when selected, the Rename popup menu item will be enabled. By default, returns false. Override if your object is renamable.

Specified by:
canRename in interface ISystemViewElementAdapter
Overrides:
canRename in class AbstractSystemViewAdapter
Returns:
true if this object is renamable by the user
See Also:
AbstractSystemViewAdapter.showRename(Object), AbstractSystemViewAdapter.doRename(Shell,Object,String), AbstractSystemViewAdapter.getNameValidator(Object), AbstractSystemViewAdapter.getCanonicalNewName(Object,String), AbstractSystemViewAdapter.namesAreEqual(Object,String)

doRename

public boolean doRename(Shell shell,
                        Object element,
                        String name)
                 throws Exception
Perform the rename action. By default does nothing. Override if your object is renamable. Return true if this was successful. Return false if it failed and you issued a msg. Throw an exception if it failed and you want to use the generic msg.

Specified by:
doRename in interface ISystemViewElementAdapter
Overrides:
doRename in class AbstractSystemViewAdapter
Returns:
true if the rename was successful
Throws:
Exception
See Also:
AbstractSystemViewAdapter.showRename(Object), AbstractSystemViewAdapter.canRename(Object)

canDrop

public boolean canDrop(Object element)
Indicates whether the specified object can have another object copied to it

Specified by:
canDrop in interface ISystemDragDropAdapter
Overrides:
canDrop in class AbstractSystemViewAdapter
Parameters:
element - the object to copy to
Returns:
whether this object can be copied to or not
See Also:
AbstractSystemViewAdapter.canDrag(Object), AbstractSystemViewAdapter.doDrag(Object,boolean,IProgressMonitor), AbstractSystemViewAdapter.doDrop(Object,Object,boolean,boolean,IProgressMonitor), AbstractSystemViewAdapter.validateDrop(Object,Object,boolean)

canDrag

public boolean canDrag(Object element)
Indicates whether the specified object can be copied

Specified by:
canDrag in interface ISystemDragDropAdapter
Overrides:
canDrag in class AbstractSystemViewAdapter
Parameters:
element - the object to copy
See Also:
AbstractSystemViewAdapter.doDrag(Object,boolean,IProgressMonitor), AbstractSystemViewAdapter.canDrop(Object), AbstractSystemViewAdapter.doDrop(Object,Object,boolean,boolean,IProgressMonitor), AbstractSystemViewAdapter.validateDrop(Object,Object,boolean)

doDrag

public Object doDrag(Object element,
                     boolean sameSystemType,
                     IProgressMonitor monitor)
Copy the specified remote output object. This method returns a string representing the text of the remote output;

Specified by:
doDrag in interface ISystemDragDropAdapter
Overrides:
doDrag in class AbstractSystemViewAdapter
Parameters:
element - the output to copy
sameSystemType - not applicable for remote output
monitor - the progress monitor
See Also:
AbstractSystemViewAdapter.canDrag(Object), AbstractSystemViewAdapter.canDrop(Object), AbstractSystemViewAdapter.doDrop(Object,Object,boolean,boolean,IProgressMonitor), AbstractSystemViewAdapter.validateDrop(Object,Object,boolean)

validateDrop

public boolean validateDrop(Object src,
                            Object target,
                            boolean sameSystem)
Return true if it is valid for the src object to be dropped in the target

Specified by:
validateDrop in interface ISystemDragDropAdapter
Overrides:
validateDrop in class AbstractSystemViewAdapter
Parameters:
src - the object to drop
target - the object which src is dropped in
sameSystem - whether this is the same system
Returns:
whether this is a valid operation
See Also:
AbstractSystemViewAdapter.canDrag(Object), AbstractSystemViewAdapter.doDrag(Object,boolean,IProgressMonitor), AbstractSystemViewAdapter.canDrop(Object), AbstractSystemViewAdapter.doDrop(Object,Object,boolean,boolean,IProgressMonitor)

doDrop

public Object doDrop(Object src,
                     Object target,
                     boolean sameSystemType,
                     boolean sameSystem,
                     int srcType,
                     IProgressMonitor monitor)
Perform a copy via drag and drop.

Specified by:
doDrop in interface ISystemDragDropAdapter
Overrides:
doDrop in class AbstractSystemViewAdapter
Parameters:
src - the object to be copied. If the target and source are not on the same system, then this is a temporary object produced by the doDrag.
target - the object to be copied to.
sameSystem - an indication whether the target and source reside on the same type of system
monitor - the progress monitor
Returns:
an indication whether the operation was successful or not.
See Also:
AbstractSystemViewAdapter.canDrag(Object), AbstractSystemViewAdapter.doDrag(Object,boolean,IProgressMonitor), AbstractSystemViewAdapter.canDrop(Object), AbstractSystemViewAdapter.validateDrop(Object,Object,boolean)

canEdit

public boolean canEdit(Object element)
Determines whether the line of remote output can be edited in an editor

Specified by:
canEdit in interface ISystemRemoteElementAdapter
Overrides:
canEdit in class AbstractSystemViewAdapter
Parameters:
element - the remote output object
Returns:
true if this can be edited in an editor

getEditableRemoteObject

public ISystemEditableRemoteObject getEditableRemoteObject(Object element)
Returns the associated remote editable object for this line of output

Specified by:
getEditableRemoteObject in interface ISystemRemoteElementAdapter
Overrides:
getEditableRemoteObject in class AbstractSystemViewAdapter
Parameters:
element - the remote output object
Returns:
the associated ediable object if one exists

getFilterStringFor

public String getFilterStringFor(Object object)
Return a filter string that corresponds to this object.

Specified by:
getFilterStringFor in interface ISystemRemoteElementAdapter
Overrides:
getFilterStringFor in class AbstractSystemViewAdapter
Parameters:
object - the object to obtain a filter string for
Returns:
the corresponding filter string if applicable

internalGetPropertyDescriptors

protected IPropertyDescriptor[] internalGetPropertyDescriptors()
Description copied from class: AbstractSystemViewAdapter
Abstract.
Implement this to return the property descriptors for the properties in the property sheet. This is beyond the Name, Type and NbrOfChildren properties which already implemented and done for you.

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:

Specified by:
internalGetPropertyDescriptors in class AbstractSystemViewAdapter
Returns:
an array containing all descriptors to be added to the default set of descriptors, or null if no additional properties desired.
See Also:
AbstractSystemViewAdapter.createSimplePropertyDescriptor(String,ResourceBundle,String)

getUniquePropertyDescriptors

public IPropertyDescriptor[] getUniquePropertyDescriptors()
Description copied from interface: ISystemViewElementAdapter
Returns the list of property descriptors that are unique for this particular adapter - that is the difference between the default property descriptors and the total list of property descriptors.

Specified by:
getUniquePropertyDescriptors in interface ISystemViewElementAdapter
Overrides:
getUniquePropertyDescriptors in class AbstractSystemViewAdapter

getPropertyValue

public Object getPropertyValue(Object property,
                               boolean formatted)
Returns the current value for the named property.

Specified by:
getPropertyValue in interface ISystemViewElementAdapter
Overrides:
getPropertyValue in class AbstractSystemViewAdapter
Parameters:
property - the name or key of the property as named by its property descriptor
formatted - indication of whether to return the value in formatted or raw form
Returns:
the current value of the given property

supportsUserDefinedActions

public boolean supportsUserDefinedActions(Object object)
Returns false.

Specified by:
supportsUserDefinedActions in interface ISystemRemoteElementAdapter
Parameters:
object - the object.
Returns:
true if the object supports user defined actions, false otherwise.
See Also:
ISystemRemoteElementAdapter.supportsUserDefinedActions(java.lang.Object)

Remote Systems
v6.4.1

Copyright © 2005 IBM Corp. All Rights Reserved.

Note: This documentation is for part of an interim API that is still under development and expected to change significantly before reaching stability. It is being made available at this early stage to solicit feedback from pioneering adopters on the understanding that any code that uses this API will almost certainly be broken (repeatedly) as the API evolves.