iSeries Remote Systems
v6.0.0

com.ibm.etools.iseries.core.ui.view
Class ISeriesBaseAdapter

java.lang.Object
  extended bycom.ibm.etools.systems.core.ui.view.AbstractSystemViewAdapter
      extended bycom.ibm.etools.iseries.core.ui.view.ISeriesBaseAdapter
All Implemented Interfaces:
IActionFilter, IBasicPropertyConstants, IDeferredWorkbenchAdapter, IPropertySource, com.ibm.etools.systems.subsystems.IRemoteObjectIdentifier, com.ibm.etools.systems.core.ui.view.ISystemDragDropAdapter, com.ibm.etools.systems.core.ui.view.ISystemPropertyConstants, com.ibm.etools.systems.core.ui.view.ISystemRemoteElementAdapter, com.ibm.etools.systems.core.ui.view.ISystemViewActionFilter, com.ibm.etools.systems.core.ui.view.ISystemViewElementAdapter, IWorkbenchAdapter
Direct Known Subclasses:
ISeriesDataElementAdapter, ISeriesMessageDescriptionAdapter

public abstract class ISeriesBaseAdapter
extends com.ibm.etools.systems.core.ui.view.AbstractSystemViewAdapter
implements com.ibm.etools.systems.core.ui.view.ISystemRemoteElementAdapter

Base Adapter for iSeries remote 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.subsystems.IRemoteObjectIdentifier
Copyright
 
Fields inherited from interface com.ibm.etools.systems.core.ui.view.ISystemViewElementAdapter
noActions
 
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
 
Fields inherited from interface org.eclipse.jface.viewers.IBasicPropertyConstants
P_CHILDREN, P_IMAGE, P_PARENT, P_TEXT
 
Constructor Summary
ISeriesBaseAdapter()
           
 
Method Summary
 boolean canEdit(Object element)
          Implementation for ISystemRemoteElementAdapter.
abstract  String getDescription(Object element)
          Get the description for the selected iSeries object.
 com.ibm.etools.systems.core.resources.ISystemEditableRemoteObject getEditableRemoteObject(Object element)
          Implementation for ISystemRemoteElementAdapter.
 String getFilterStringFor(Object object)
          Return a filter string that corresponds to this object.
 String getRemoteSubSubType(Object element)
          Return the untranslated sub-subtype for this object.
 String getRemoteSubType(Object element)
          Return the subtype of this element.
 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 getStatusLineText(Object element)
          Return the string to display in the status line when the given object is selected.
 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.
 boolean supportsUserDefinedActions(Object object)
          Defaults to asking the subsystem factory.
 
Methods inherited from class com.ibm.etools.systems.core.ui.view.AbstractSystemViewAdapter
addActions, addCommonRemoteActions, addDynamicPopupMenuActions, canDelete, canDrag, canDrop, canRename, checkForNull, createSimplePropertyDescriptor, createSimplePropertyDescriptor, doDelete, doDrag, doDrop, doDrop, doRename, fetchDeferredChildren, getAbsoluteName, getAdapter, getCancelledMessageObject, getCanonicalNewName, getChildren, getChildren, getChildrenUsingExpandToFilter, getCurrentTreeView, getDefaultDescriptors, getEditableValue, getEmptyMessageObject, getFailedMessageObject, getFilterString, getFirstSelection, getImageDescriptor, getInput, getInputMementoHandle, getLabel, getMementoHandle, getMementoHandleKey, getName, getNameValidator, getParent, getPropertyDescriptors, getPropertyValue, getPropertyValue, getRemoteAdapter, getRemoteSourceType, getRule, getShell, getSubSystem, getSystemFetchOperation, getSystemTree, getText, getTranslatedFalse, getTranslatedNo, getTranslatedNotApplicable, getTranslatedNotAvailable, getTranslatedTrue, getTranslatedYes, getType, getUniquePropertyDescriptors, getViewer, handleDoubleClick, hasChildren, initMsgObjects, internalGetPropertyDescriptors, internalGetPropertyValue, isContainer, isPromptable, isPropertySet, namesAreEqual, resetPropertyValue, saveExpansionState, selectionChanged, setFilterString, setInput, setPropertySourceInput, setPropertyValue, setShell, setViewer, showDelete, showGenericShowInTableAction, showOpenViewActions, showRefresh, showRename, sub, supportsDeferredQueries, testAttribute, validateDrop
 
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.ISystemRemoteElementAdapter
getAbsoluteName, getAbsoluteParentName, getName, getRemoteParent, getRemoteParentNamesInUse, getRemoteSourceType, getRemoteTypeCategory, getSubSystem, refreshRemoteObject
 

Field Detail

copyright

public static final String copyright
See Also:
Constant Field Values
Constructor Detail

ISeriesBaseAdapter

public ISeriesBaseAdapter()
Method Detail

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 com.ibm.etools.systems.core.ui.view.ISystemRemoteElementAdapter

getRemoteSubType

public String getRemoteSubType(Object element)
Return the subtype of this element. This is the only method in ISystemRemoteElement not already in ISystemViewElement

We return null here. Override if applicable

Specified by:
getRemoteSubType in interface com.ibm.etools.systems.core.ui.view.ISystemRemoteElementAdapter

getRemoteSubSubType

public String getRemoteSubSubType(Object element)
Return the untranslated sub-subtype for this object. Returns null for now.

Specified by:
getRemoteSubSubType in interface com.ibm.etools.systems.core.ui.view.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 com.ibm.etools.systems.core.ui.view.ISystemRemoteElementAdapter

getStatusLineText

public String getStatusLineText(Object element)
Return the string to display in the status line when the given object is selected. The default is: -

Specified by:
getStatusLineText in interface com.ibm.etools.systems.core.ui.view.ISystemViewElementAdapter

getDescription

public abstract String getDescription(Object element)
Get the description for the selected iSeries object. Used in ISeriesBaseAdapter to show information for selected object, in status line.


canEdit

public boolean canEdit(Object element)
Implementation for ISystemRemoteElementAdapter. Override to provide specific support

Specified by:
canEdit in interface com.ibm.etools.systems.core.ui.view.ISystemRemoteElementAdapter

getEditableRemoteObject

public com.ibm.etools.systems.core.resources.ISystemEditableRemoteObject getEditableRemoteObject(Object element)
Implementation for ISystemRemoteElementAdapter. Override to provide specific support

Specified by:
getEditableRemoteObject in interface com.ibm.etools.systems.core.ui.view.ISystemRemoteElementAdapter

getFilterStringFor

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

Specified by:
getFilterStringFor in interface com.ibm.etools.systems.core.ui.view.ISystemRemoteElementAdapter
Parameters:
object - the object to obtain a filter string for
Returns:
the corresponding filter string if applicable

supportsUserDefinedActions

public boolean supportsUserDefinedActions(Object object)
Defaults to asking the subsystem factory.

Specified by:
supportsUserDefinedActions in interface com.ibm.etools.systems.core.ui.view.ISystemRemoteElementAdapter
See Also:
ISystemRemoteElementAdapter.supportsUserDefinedActions(java.lang.Object)

iSeries Remote Systems
v6.0.0

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.