Remote Systems
v6.4.1

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

java.lang.Object
  extended bycom.ibm.etools.systems.core.ui.view.AbstractSystemViewAdapter
      extended bycom.ibm.etools.systems.core.ui.view.SystemViewRemoteFileAdapter
All Implemented Interfaces:
IRemoteObjectIdentifier, ISystemDragDropAdapter, ISystemMessages, ISystemPropertyConstants, ISystemRemoteElementAdapter, ISystemViewActionFilter, ISystemViewConstants, ISystemViewElementAdapter

public class SystemViewRemoteFileAdapter
extends AbstractSystemViewAdapter
implements ISystemViewElementAdapter, ISystemRemoteElementAdapter, ISystemMessages, ISystemPropertyConstants, ISystemViewConstants

Adapter for displaying remote file system objects in tree views. These are children of RemoteFileSubSystem filter strings


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
 
Fields inherited from interface com.ibm.etools.systems.core.ISystemMessages
FILEMSG_ARCHIVE_CORRUPTED, FILEMSG_COPY_FILE_FAILED, FILEMSG_COPY_ROOT, FILEMSG_CREATE_FILE_FAILED, FILEMSG_CREATE_FILE_FAILED_EXIST, FILEMSG_CREATE_FOLDER_FAILED, FILEMSG_CREATE_FOLDER_FAILED_EXIST, FILEMSG_CREATE_RESOURCE_NOTVISIBLE, FILEMSG_DELETE_FILE_FAILED, FILEMSG_DELETING, FILEMSG_DESTINATION_CONFLICTING, FILEMSG_DESTINATION_EMPTY, FILEMSG_ERROR_NOFILETYPES, FILEMSG_EXPORT_ERROR, FILEMSG_EXPORT_FAILED, FILEMSG_EXPORT_NONE_SELECTED, FILEMSG_EXPORT_PROBLEMS, FILEMSG_FILE_NOTFOUND, FILEMSG_FOLDER_IS_FILE, FILEMSG_FOLDER_NOTEMPTY, FILEMSG_FOLDER_NOTFOUND, FILEMSG_FOLDER_NOTFOUND_WANTTOCREATE, FILEMSG_IMPORT_ERROR, FILEMSG_IMPORT_FAILED, FILEMSG_IMPORT_FILTERING, FILEMSG_IMPORT_NONE_SELECTED, FILEMSG_IMPORT_PROBLEMS, FILEMSG_IMPORT_SELF, FILEMSG_IO_ERROR, FILEMSG_MOVE_FILE_FAILED, FILEMSG_MOVE_TARGET_DESCENDS_FROM_SOUCE, FILEMSG_MOVE_TARGET_EQUALS_SOURCE, FILEMSG_NOT_WRITABLE, FILEMSG_RENAME_FILE_FAILED, FILEMSG_RENAME_RESOURCE_NOTVISIBLE, FILEMSG_SECURITY_ERROR, FILEMSG_SOURCE_EMPTY, FILEMSG_SOURCE_IS_FILE, FILEMSG_TARGET_EXISTS, FILEMSG_VALIDATE_FILEFILTERSTRING_EMPTY, FILEMSG_VALIDATE_FILEFILTERSTRING_NOINCLUDES, FILEMSG_VALIDATE_FILEFILTERSTRING_NOTUNIQUE, FILEMSG_VALIDATE_FILEFILTERSTRING_NOTVALID, MSG_ADDTO_VIRTUAL_DEST, MSG_CACHE_UNABLE_TO_SYNCH, MSG_CACHE_UPLOAD_BEFORE_DELETE, MSG_COMBINETO_VIRTUAL_DEST, MSG_COMM_AUTH_FAILED, MSG_COMM_CLIENT_OLDER_WARNING, MSG_COMM_CONNECT_FAILED, MSG_COMM_DAEMON_NOTSTARTED, MSG_COMM_ENVVAR_DUPLICATE, MSG_COMM_ENVVAR_INVALIDCHAR, MSG_COMM_ENVVAR_NONAME, MSG_COMM_INCOMPATIBLE_PROTOCOL, MSG_COMM_INCOMPATIBLE_UPDATE, MSG_COMM_INVALID_LOGIN, MSG_COMM_PORT_WARNING, MSG_COMM_PWD_BLANKFIELD, MSG_COMM_PWD_EXISTS, MSG_COMM_PWD_INVALID, MSG_COMM_PWD_MISMATCH, MSG_COMM_REXEC_NOTSTARTED, MSG_COMM_SERVER_NOTSTARTED, MSG_COMM_SERVER_OLDER_WARNING, MSG_CONFIRM_CHANGES, MSG_CONFIRM_CHANGES_CANCELABLE, MSG_CONFIRM_DELETE, MSG_CONFIRM_DELETE_USERACTION, MSG_CONFIRM_DELETE_USERTYPE, MSG_CONFIRM_DELETEPROFILE, MSG_CONFIRM_DELETEREMOTE, MSG_CONFIRM_ENABLE_CLASSIC_HELP, MSG_CONFIRM_RELOADRSE, MSG_CONNECT_CANCELLED, MSG_CONNECT_DAEMON_FAILED, MSG_CONNECT_DAEMON_FAILED_EXCEPTION, MSG_CONNECT_FAILED, MSG_CONNECT_PROGRESS, MSG_CONNECT_SSL_EXCEPTION, MSG_CONNECT_UNKNOWNHOST, MSG_CONNECTING_TO_SERVER, MSG_CONNECTION_DELETED, MSG_CONNECTWITHPORT_PROGRESS, MSG_CONVERTTO_VIRTUAL_DEST, MSG_COPY_PROGRESS, MSG_COPYCONNECTION_PROGRESS, MSG_COPYCONNECTIONS_PROGRESS, MSG_COPYFILTER_PROGRESS, MSG_COPYFILTERPOOL_COMPLETE, MSG_COPYFILTERPOOL_PROGRESS, MSG_COPYFILTERPOOLS_PROGRESS, MSG_COPYFILTERS_PROGRESS, MSG_COPYFILTERSTRING_PROGRESS, MSG_COPYFILTERSTRINGS_PROGRESS, MSG_COPYGENERIC_PROGRESS, MSG_COPYSUBSYSTEMS_PROGRESS, MSG_COPYTHINGGENERIC_PROGRESS, MSG_DEST_NOT_IN_SOURCE, MSG_DEST_TARGET_READONLY, MSG_DISCONNECT_CANCELLED, MSG_DISCONNECT_FAILED, MSG_DISCONNECT_PROGRESS, MSG_DISCONNECTWITHPORT_PROGRESS, MSG_DOWNLOAD_ALREADY_OPEN_IN_EDITOR, MSG_DOWNLOAD_NO_WRITE, MSG_DOWNLOAD_PROGRESS, MSG_DOWNLOADING_PROGRESS, MSG_ERROR_CONNECTION_NOTFOUND, MSG_ERROR_ENABLE_CLASSIC_HELP, MSG_ERROR_EXTENSION_EMPTY, MSG_ERROR_FILE_NOTFOUND, MSG_ERROR_FILENAME_INVALID, MSG_ERROR_FOLDER_NOTFOUND, MSG_ERROR_FOLDERORFILE_NOTFOUND, MSG_ERROR_GENERAL, MSG_ERROR_LIST_TITLE, MSG_ERROR_PROFILE_NOTFOUND, MSG_ERROR_UNEXPECTED, MSG_EXCEPTION_DELETING, MSG_EXCEPTION_MOVING, MSG_EXCEPTION_OCCURRED, MSG_EXCEPTION_RENAMING, MSG_EXPAND_CANCELLED, MSG_EXPAND_CONNECTIONCREATED, MSG_EXPAND_EMPTY, MSG_EXPAND_FAILED, MSG_EXPAND_FILTERCREATED, MSG_EXPAND_PREFIX, MSG_EXTRACT_PROGRESS, MSG_FILE_INUSE, MSG_FILTERPOOL_CREATED, MSG_FOLDER_INUSE, MSG_GENERIC_E, MSG_GENERIC_E_HELP, MSG_GENERIC_E_TWOPARMS_HELP, MSG_GENERIC_I, MSG_GENERIC_I_HELP, MSG_GENERIC_I_TWOPARMS_HELP, MSG_GENERIC_Q, MSG_GENERIC_Q_HELP, MSG_GENERIC_Q_TWOPARMS_HELP, MSG_GENERIC_U, MSG_GENERIC_U_HELP, MSG_GENERIC_U_TWOPARMS_HELP, MSG_GENERIC_W, MSG_GENERIC_W_HELP, MSG_GENERIC_W_TWOPARMS_HELP, MSG_HOSTNAME_NOTFOUND, MSG_HOSTNAME_VERIFYING, MSG_IMPORT_EXPORT_UNABLE_TO_USE_CONNECTION, MSG_IMPORT_EXPORT_UNEXPECTED_EXCEPTION, MSG_INITIALIZING_SERVER, MSG_LIST_CANCELLED, MSG_LIST_PREFIX, MSG_LOADING_PROFILE_SHOULDBE_ACTIVATED, MSG_LOADING_PROFILE_SHOULDNOTBE_DEACTIVATED, MSG_MOVE_PROGRESS, MSG_MOVECONNECTION_PROGRESS, MSG_MOVECONNECTIONS_PROGRESS, MSG_MOVEFILTER_PROGRESS, MSG_MOVEFILTERPOOL_COMPLETE, MSG_MOVEFILTERPOOL_PROGRESS, MSG_MOVEFILTERPOOLS_PROGRESS, MSG_MOVEFILTERS_PROGRESS, MSG_MOVEFILTERSTRING_PROGRESS, MSG_MOVEFILTERSTRINGS_PROGRESS, MSG_MOVEGENERIC_PROGRESS, MSG_MOVETHINGGENERIC_PROGRESS, MSG_OFFLINE_CANT_CONNECT, MSG_OPERATION_CANCELLED, MSG_OPERATION_DISCONNECTED, MSG_OPERATION_FAILED, MSG_OPERATION_FINISHED, MSG_OPERATION_RUNNING, MSG_OPERTION_STOPPED, MSG_PERCENT_DONE, MSG_PREFIX, MSG_QUERY_PROGRESS, MSG_QUERY_PROPERTIES_PROGRESS, MSG_REMOTE_JAR_EXPORT_OVERWRITE_FILE, MSG_REMOTE_SEARCH_INVALID_REGEX, MSG_RENAMEFILTER_FAILED, MSG_RESOLVE_PROGRESS, MSG_RESTORE_FAILED, MSG_RUN_PROGRESS, MSG_SAVE_CHANGES_PENDING, MSG_SAVE_FAILED, MSG_SAVING_PROGRESS, MSG_SET_PROGRESS, MSG_SET_PROPERTIES_PROGRESS, MSG_STARTING_SERVER_VIA_DAEMON, MSG_STARTING_SERVER_VIA_REXEC, MSG_SYNCHRONIZE_PROGRESS, MSG_TRANSFER_INVALID, MSG_UCMD_INVOCATION_EMPTY, MSG_UDA_LOAD_ERROR, MSG_UDA_ROOTTAG_ERROR, MSG_UFF_PATTERN_EMPTY, MSG_UFF_PATTERN_INVALID_REGEX, MSG_UNDERCONSTRUCTION, MSG_UPDATEFILTER_FAILED, MSG_UPLOAD_FILE_EXISTS, MSG_UPLOAD_PROGRESS, MSG_UPLOADING_PROGRESS, MSG_VALIDATE_ARCHIVE_NAME, MSG_VALIDATE_COMPILELABEL_EMPTY, MSG_VALIDATE_COMPILELABEL_NOTUNIQUE, MSG_VALIDATE_COMPILELABEL_NOTVALID, MSG_VALIDATE_COMPILESTRING_EMPTY, MSG_VALIDATE_COMPILESTRING_NOTVALID, MSG_VALIDATE_CONNECTIONNAME_EMPTY, MSG_VALIDATE_CONNECTIONNAME_NOTUNIQUE, MSG_VALIDATE_CONNECTIONNAME_NOTUNIQUE_OTHERPROFILE, MSG_VALIDATE_CONNECTIONNAME_NOTVALID, MSG_VALIDATE_ENTRY_EMPTY, MSG_VALIDATE_ENTRY_NOTUNIQUE, MSG_VALIDATE_ENTRY_NOTVALID, MSG_VALIDATE_FILENAME_NOTVALID, MSG_VALIDATE_FILTERNAME_EMPTY, MSG_VALIDATE_FILTERNAME_NOTUNIQUE, MSG_VALIDATE_FILTERNAME_NOTVALID, MSG_VALIDATE_FILTERPOOLNAME_EMPTY, MSG_VALIDATE_FILTERPOOLNAME_NOTUNIQUE, MSG_VALIDATE_FILTERPOOLNAME_NOTVALID, MSG_VALIDATE_FILTERSTRING_ALREADYEXISTS, MSG_VALIDATE_FILTERSTRING_DUPLICATES, MSG_VALIDATE_FILTERSTRING_EMPTY, MSG_VALIDATE_FILTERSTRING_NOTUNIQUE, MSG_VALIDATE_FILTERSTRING_NOTVALID, MSG_VALIDATE_FOLDERNAME_NOTVALID, MSG_VALIDATE_HOSTNAME_EMPTY, MSG_VALIDATE_NAME_EMPTY, MSG_VALIDATE_NAME_NOTUNIQUE, MSG_VALIDATE_NAME_NOTVALID, MSG_VALIDATE_NOT_NUMERIC, MSG_VALIDATE_NUMBER_EMPTY, MSG_VALIDATE_NUMBER_NOTVALID, MSG_VALIDATE_NUMBER_OUTOFRANGE, MSG_VALIDATE_PASSWORD_EMPTY, MSG_VALIDATE_PASSWORD_EXPIRED, MSG_VALIDATE_PATH_EMPTY, MSG_VALIDATE_PATH_NOTUNIQUE, MSG_VALIDATE_PATH_NOTVALID, MSG_VALIDATE_PORT_EMPTY, MSG_VALIDATE_PORT_NOTVALID, MSG_VALIDATE_PROFILENAME_EMPTY, MSG_VALIDATE_PROFILENAME_NOTUNIQUE, MSG_VALIDATE_PROFILENAME_NOTVALID, MSG_VALIDATE_PROFILENAME_RESERVED, MSG_VALIDATE_RENAME_EMPTY, MSG_VALIDATE_RENAME_NOTUNIQUE, MSG_VALIDATE_RENAME_NOTVALID, MSG_VALIDATE_RENAME_OLDEQUALSNEW, MSG_VALIDATE_SRCTYPE_EMPTY, MSG_VALIDATE_SRCTYPE_NOTUNIQUE, MSG_VALIDATE_SRCTYPE_NOTVALID, MSG_VALIDATE_UDACMD_EMPTY, MSG_VALIDATE_UDACMD_NOTVALID, MSG_VALIDATE_UDACMT_EMPTY, MSG_VALIDATE_UDACMT_NOTVALID, MSG_VALIDATE_UDANAME_EMPTY, MSG_VALIDATE_UDANAME_NOTUNIQUE, MSG_VALIDATE_UDANAME_NOTVALID, MSG_VALIDATE_UDTNAME_EMPTY, MSG_VALIDATE_UDTNAME_NOTUNIQUE, MSG_VALIDATE_UDTNAME_NOTVALID, MSG_VALIDATE_UDTTYPES_EMPTY, MSG_VALIDATE_UDTTYPES_NOTVALID, MSG_VALIDATE_USERID_EMPTY, MSG_VALIDATE_USERID_NOTVALID, MSG_WIZARD_PAGE_ERROR, NEW_FILE_ACTION, NEW_FILE_WIZARD, NEW_FOLDER_ACTION, NEW_FOLDER_WIZARD, PLUGIN_ID, PREFIX, RESID_PREFIX
 
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 com.ibm.etools.systems.core.ui.view.ISystemViewConstants
RESID_PREFIX, RESID_PROPERTY_ALIASNAME_ROOT, RESID_PROPERTY_ARCHIVE_COMMENT_DESCRIPTION, RESID_PROPERTY_ARCHIVE_COMMENT_LABEL, RESID_PROPERTY_ARCHIVE_COMMENT_ROOT, RESID_PROPERTY_ARCHIVE_EXPANDEDSIZE_DESCRIPTION, RESID_PROPERTY_ARCHIVE_EXPANDEDSIZE_LABEL, RESID_PROPERTY_ARCHIVE_EXPANDEDSIZE_ROOT, RESID_PROPERTY_ARCHIVE_EXPANDEDSIZE_VALUE, RESID_PROPERTY_COMMAND_ROOT, RESID_PROPERTY_COMMENT_ROOT, RESID_PROPERTY_COMPILETYPE_TYPES_DESCRIPTION, RESID_PROPERTY_COMPILETYPE_TYPES_LABEL, RESID_PROPERTY_CONNDESCRIPTION_ROOT, RESID_PROPERTY_CONNECTED_ROOT, RESID_PROPERTY_CONNECTION_TYPE_VALUE, RESID_PROPERTY_CONNECTIONSTATUS_CONNECTED_VALUE, RESID_PROPERTY_CONNECTIONSTATUS_DISCONNECTED_VALUE, RESID_PROPERTY_CONNECTIONSTATUS_ROOT, RESID_PROPERTY_DEFAULTUSERID_ROOT, RESID_PROPERTY_ERROR_FILENAME_ROOT, RESID_PROPERTY_ERROR_LINENO_ROOT, RESID_PROPERTY_FILE_CANONICAL_PATH_ROOT, RESID_PROPERTY_FILE_CLASSIFICATION_ROOT, RESID_PROPERTY_FILE_HIDDEN_DESCRIPTION, RESID_PROPERTY_FILE_HIDDEN_LABEL, RESID_PROPERTY_FILE_HIDDEN_ROOT, RESID_PROPERTY_FILE_LASTMODIFIED_DESCRIPTION, RESID_PROPERTY_FILE_LASTMODIFIED_LABEL, RESID_PROPERTY_FILE_LASTMODIFIED_ROOT, RESID_PROPERTY_FILE_PATH_DESCRIPTION, RESID_PROPERTY_FILE_PATH_LABEL, RESID_PROPERTY_FILE_PATH_ROOT, RESID_PROPERTY_FILE_READABLE_DESCRIPTION, RESID_PROPERTY_FILE_READABLE_LABEL, RESID_PROPERTY_FILE_READABLE_ROOT, RESID_PROPERTY_FILE_READONLY_DESCRIPTION, RESID_PROPERTY_FILE_READONLY_LABEL, RESID_PROPERTY_FILE_READONLY_ROOT, RESID_PROPERTY_FILE_SIZE_DESCRIPTION, RESID_PROPERTY_FILE_SIZE_LABEL, RESID_PROPERTY_FILE_SIZE_ROOT, RESID_PROPERTY_FILE_SIZE_VALUE, RESID_PROPERTY_FILE_TYPE_FILE_VALUE, RESID_PROPERTY_FILE_TYPE_FOLDER_VALUE, RESID_PROPERTY_FILE_TYPE_ROOT_VALUE, RESID_PROPERTY_FILE_WRITABLE_DESCRIPTION, RESID_PROPERTY_FILE_WRITABLE_LABEL, RESID_PROPERTY_FILE_WRITABLE_ROOT, RESID_PROPERTY_FILTERPARENTFILTER_ROOT, RESID_PROPERTY_FILTERPARENTPOOL_ROOT, RESID_PROPERTY_FILTERPOOL_TYPE_VALUE, RESID_PROPERTY_FILTERPOOLREFERENCE_IS_CONNECTIONPRIVATE_ROOT, RESID_PROPERTY_FILTERPOOLREFERENCE_PARENTPOOL_ROOT, RESID_PROPERTY_FILTERPOOLREFERENCE_PARENTPROFILE_ROOT, RESID_PROPERTY_FILTERPOOLREFERENCE_RELATEDCONNECTION_ROOT, RESID_PROPERTY_FILTERPOOLREFERENCE_TYPE_VALUE, RESID_PROPERTY_FILTERS_DESCRIPTION, RESID_PROPERTY_FILTERS_LABEL, RESID_PROPERTY_FILTERSTRING_ROOT, RESID_PROPERTY_FILTERSTRINGS_COUNT_ROOT, RESID_PROPERTY_FILTERSTRINGS_ROOT, RESID_PROPERTY_FILTERTYPE_ROOT, RESID_PROPERTY_HOSTNAME_ROOT, RESID_PROPERTY_MESSAGE_TYPE_VALUE, RESID_PROPERTY_NBRCHILDREN_ROOT, RESID_PROPERTY_NBRCHILDRENRETRIEVED_ROOT, RESID_PROPERTY_ORIGIN_IBM_VALUE, RESID_PROPERTY_ORIGIN_IBMUSER_VALUE, RESID_PROPERTY_ORIGIN_ISV_VALUE, RESID_PROPERTY_ORIGIN_ISVUSER_VALUE, RESID_PROPERTY_ORIGIN_ROOT, RESID_PROPERTY_ORIGIN_USER_VALUE, RESID_PROPERTY_PORT_ROOT, RESID_PROPERTY_PROFILE_ROOT, RESID_PROPERTY_PROFILE_TYPE_VALUE, RESID_PROPERTY_PROFILESTATUS_ACTIVE_LABEL, RESID_PROPERTY_PROFILESTATUS_NOTACTIVE_LABEL, RESID_PROPERTY_PROFILESTATUS_ROOT, RESID_PROPERTY_SEARCH_LINE_ROOT, RESID_PROPERTY_SHELL_CONTEXT_ROOT, RESID_PROPERTY_SHELL_STATUS_ACTIVE_VALUE, RESID_PROPERTY_SHELL_STATUS_INACTIVE_VALUE, RESID_PROPERTY_SHELL_STATUS_ROOT, RESID_PROPERTY_STATUS_CANCELLED_VALUE, RESID_PROPERTY_STATUS_DESCRIPTION, RESID_PROPERTY_STATUS_EXPANDED_VALUE, RESID_PROPERTY_STATUS_LABEL, RESID_PROPERTY_STATUS_NOTRETRIEVED_VALUE, RESID_PROPERTY_STATUS_RETRIEVED_VALUE, RESID_PROPERTY_SUBSYSTEM_TYPE_VALUE, RESID_PROPERTY_SYSTEMTYPE_ROOT, RESID_PROPERTY_TEAM_CATEGORY_TYPE_VALUE, RESID_PROPERTY_TEAM_COMPILECMD_TYPE_VALUE, RESID_PROPERTY_TEAM_COMPILETYPE_TYPE_VALUE, RESID_PROPERTY_TEAM_SSFACTORY_TYPE_VALUE, RESID_PROPERTY_TEAM_USERACTION_TYPE_VALUE, RESID_PROPERTY_USERACTION_DOMAIN_ALL_VALUE, RESID_PROPERTY_USERACTION_DOMAIN_ROOT, RESID_PROPERTY_USERACTION_VENDOR_ROOT, RESID_PROPERTY_USERID_ROOT, RESID_PROPERTY_VIRTUALFILE_COMMENT_DESCRIPTION, RESID_PROPERTY_VIRTUALFILE_COMMENT_LABEL, RESID_PROPERTY_VIRTUALFILE_COMMENT_ROOT, RESID_PROPERTY_VIRTUALFILE_COMPRESSEDSIZE_DESCRIPTION, RESID_PROPERTY_VIRTUALFILE_COMPRESSEDSIZE_LABEL, RESID_PROPERTY_VIRTUALFILE_COMPRESSEDSIZE_ROOT, RESID_PROPERTY_VIRTUALFILE_COMPRESSEDSIZE_VALUE, RESID_PROPERTY_VIRTUALFILE_COMPRESSIONMETHOD_DESCRIPTION, RESID_PROPERTY_VIRTUALFILE_COMPRESSIONMETHOD_LABEL, RESID_PROPERTY_VIRTUALFILE_COMPRESSIONMETHOD_ROOT, RESID_PROPERTY_VIRTUALFILE_COMPRESSIONRATIO_DESCRIPTION, RESID_PROPERTY_VIRTUALFILE_COMPRESSIONRATIO_LABEL, RESID_PROPERTY_VIRTUALFILE_COMPRESSIONRATIO_ROOT, RESID_PROPERTY_VRM_ROOT
 
Constructor Summary
SystemViewRemoteFileAdapter()
          Constructor
SystemViewRemoteFileAdapter(boolean foldersOnly, boolean filesOnly)
          Constructor for folders or files only
 
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 string object.
 boolean canDelete(Object element)
          Yes, remote file objects are deletable!
 boolean canDrag(Object element)
          Indicates whether the specified object can be copied or not.
 boolean canDrop(Object element)
          Indicates whether the specified object can have another object copied to it
 boolean canEdit(Object element)
          Indicates whether the specified object can be edited or not.
 boolean canRename(Object element)
          Yes, remote file objects are renamable!
protected  String checkForCollision(Shell shell, IRemoteFile targetFolder, String oldName)
           
protected static PropertyDescriptor createSimplePropertyDescriptor(String keyAndLabel)
          Create and return a simple string readonly property descriptor.
 boolean doDelete(Shell shell, Object element)
          Perform the delete action.
 Object doDrag(Object element, boolean sameSystem, IProgressMonitor monitor)
          Performs a drag copy operation.
 Object doDrop(Object src, Object target, boolean sameSystemType, boolean sameSystem, int sourceType, IProgressMonitor monitor)
          Perform a copy via drag and drop.
 boolean doRename(Shell shell, Object element, String newName)
          Perform the rename action.
 String getAbsoluteName(Object element)
          Return fully qualified name that uniquely identifies this object within its subsystem
 String getAbsoluteParentName(Object element)
          Return fully qualified name that uniquely identifies this remote object's remote parent within its subsystem
 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.
 ISystemEditableRemoteObject getEditableRemoteObject(Object element)
          Return the remote edit wrapper for this object.
 String getFilterString()
          Get the current filter string being used to subset the list by.
 String getFilterStringFor(Object object)
          Return a filter string that corresponds to this object.
 ImageDescriptor getImageDescriptor(Object element)
          Returns an image descriptor for the image.
 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
 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 the untranslated sub-subtype for this object.
 String getRemoteSubType(Object element)
          Return the untranslated subtype for this object.
 String getRemoteType(Object element)
          Return the untranslated type for this object.
 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.
 String getStatusLineText(Object element)
          Return the string to display in the status line when the given object is selected.
 SubSystem getSubSystem(Object element)
          Return subsystem
 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.
protected  SystemFetchOperation getSystemFetchOperation(Object o, IElementCollector collector)
          Returns the SystemFetchOperation to be used in performing a query.
 String getText(Object element)
          Return the label for this object.
 String getType(Object element)
          Return the type label for this object
 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)
          User has double clicked on an object.
 boolean hasChildren(Object element)
          Return true if this object has children.
protected  IPropertyDescriptor[] internalGetPropertyDescriptors()
          Return our unique property descriptors
protected  Object internalGetPropertyValue(Object key)
          Returns the current value for the named property.
 boolean namesAreEqual(Object element, String newName)
          Parent override.
 boolean refreshRemoteObject(Object oldElement, Object newElement)
          Some view has updated the name or properties of this remote object.
 void setFilterString(String filterString)
          Set a filter string to subset the list by.
 boolean supportsDeferredQueries()
          Return whether deferred queries are supported.
 boolean supportsUserDefinedActions(Object object)
          Returns false if the file is a virtual file, otherwise defaults to asking the subsystem factory.
 boolean testAttribute(Object target, String name, String value)
          From IActionFilter, it exposes properties for decorator and popupMenus extension points.
 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, doDrop, fetchDeferredChildren, getAdapter, getCancelledMessageObject, getChildrenUsingExpandToFilter, getCurrentTreeView, getDefaultDescriptors, getEditableValue, getEmptyMessageObject, getFailedMessageObject, getFirstSelection, getInput, getInputMementoHandle, getLabel, getMementoHandle, getPropertyDescriptors, getPropertyValue, getRemoteAdapter, getRule, getShell, getSystemTree, getTranslatedFalse, getTranslatedNo, getTranslatedNotApplicable, getTranslatedNotAvailable, getTranslatedTrue, getTranslatedYes, getViewer, initMsgObjects, isContainer, isPromptable, isPropertySet, resetPropertyValue, saveExpansionState, selectionChanged, setInput, setPropertySourceInput, setPropertyValue, setShell, setViewer, showDelete, showGenericShowInTableAction, showOpenViewActions, showRefresh, showRename, sub
 
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, getInput, getInputMementoHandle, getMementoHandle, getShell, getViewer, isPromptable, saveExpansionState, selectionChanged, setInput, setPropertySourceInput, setShell, setViewer, showDelete, showGenericShowInTableAction, showOpenViewActions, showRefresh, showRename
 
Methods inherited from interface com.ibm.etools.systems.core.ui.view.ISystemDragDropAdapter
doDrop
 

Field Detail

copyright

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

SystemViewRemoteFileAdapter

public SystemViewRemoteFileAdapter()
Constructor


SystemViewRemoteFileAdapter

public SystemViewRemoteFileAdapter(boolean foldersOnly,
                                   boolean filesOnly)
Constructor for folders or files only

Method Detail

setFilterString

public void setFilterString(String filterString)
Set a filter string to subset the list by. For example, "A*.java" or "java,class,". Only valid if filesOnly mode or foldersOnly mode.

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

getFilterString

public String getFilterString()
Get the current filter string being used to subset the list by. Will be null unless setFilterString has previously been called.

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

addActions

public 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 string object.

Specified by:
addActions in interface ISystemViewElementAdapter
Specified by:
addActions in class AbstractSystemViewAdapter
Parameters:
menu - The menu to contribute actions to
selection - The window's current selection.
shell - Shell of viewer
menuGroup - recommended menu group to add actions to. If added to another group, you must be sure to create that group first.
See Also:
ISystemViewElementAdapter.addActions(SystemMenuManager, IStructuredSelection, Shell, String)

getImageDescriptor

public ImageDescriptor getImageDescriptor(Object element)
Returns an image descriptor for the image. More efficient than getting the image.

Specified by:
getImageDescriptor in interface ISystemViewElementAdapter
Specified by:
getImageDescriptor in class AbstractSystemViewAdapter
Parameters:
element - The element for which an image is desired

getText

public String getText(Object element)
Return the label for this object. Uses getName() on the remote file object.

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

getName

public String getName(Object element)
Return the name of this object, which may be different than the display text ({#link #getText(Object)}.

Called by common rename and delete actions.

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

getType

public String getType(Object element)
Return the type label for this object

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

getStatusLineText

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

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

getParent

public Object getParent(Object element)
Return the parent of this object

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

getChildren

public Object[] getChildren(IProgressMonitor monitor,
                            Object element)
Return the children of this object. If this is a folder or root, we list all child folders and files.

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

getChildren

public Object[] getChildren(Object element)
Return the children of this object. If this is a folder or root, we list all child folders and files.

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

hasChildren

public boolean hasChildren(Object element)
Return true if this object has children. Since we can't predict the outcome of resolving the filter string, we return true.

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

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

internalGetPropertyDescriptors

protected IPropertyDescriptor[] internalGetPropertyDescriptors()
Return our unique property descriptors

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)

createSimplePropertyDescriptor

protected static PropertyDescriptor createSimplePropertyDescriptor(String keyAndLabel)
Create and return a simple string readonly property descriptor. For debug purposes


internalGetPropertyValue

protected Object internalGetPropertyValue(Object key)
Returns the current value for the named property.

Specified by:
internalGetPropertyValue in class AbstractSystemViewAdapter
Parameters:
key - the name of the property as named by its property descriptor
Returns:
the current value of the given property

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

canDrag

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

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

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 we want to try 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)

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)

doDrag

public Object doDrag(Object element,
                     boolean sameSystem,
                     IProgressMonitor monitor)
Performs a drag copy operation. The source object is uploaded to a temporary location so that it can later be dropped on another remote system.

Specified by:
doDrag in interface ISystemDragDropAdapter
Overrides:
doDrag in class AbstractSystemViewAdapter
Parameters:
element - the object which is being copied
sameSystem - an indication whether a transfer is being made between the same types of systems.
monitor - a progress monitor
Returns:
the temporary object that was created after the upload
See Also:
AbstractSystemViewAdapter.canDrag(Object), AbstractSystemViewAdapter.canDrop(Object), AbstractSystemViewAdapter.doDrop(Object,Object,boolean,boolean,IProgressMonitor), AbstractSystemViewAdapter.validateDrop(Object,Object,boolean)

doDrop

public Object doDrop(Object src,
                     Object target,
                     boolean sameSystemType,
                     boolean sameSystem,
                     int sourceType,
                     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)

checkForCollision

protected String checkForCollision(Shell shell,
                                   IRemoteFile targetFolder,
                                   String oldName)

canDelete

public boolean canDelete(Object element)
Yes, remote file objects are deletable!

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

doDelete

public boolean doDelete(Shell shell,
                        Object element)
                 throws Exception
Perform the delete action. Defers request to the remote file subsystem

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

canRename

public boolean canRename(Object element)
Yes, remote file objects are 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 newName)
                 throws Exception
Perform the rename action. Defers request to the remote file subsystem

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)

getNameValidator

public ISystemValidator getNameValidator(Object element)
Return a validator for verifying the new name is correct. Defers request to the subsystem factory, calling either getFileNameValidator or getFolderNameValidator.

Specified by:
getNameValidator in interface ISystemViewElementAdapter
Overrides:
getNameValidator in class AbstractSystemViewAdapter
See Also:
AbstractSystemViewAdapter.canRename(Object)

getCanonicalNewName

public String getCanonicalNewName(Object element,
                                  String newName)
Parent override.

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 newName, but uppercased for Windows file systems

Specified by:
getCanonicalNewName in interface ISystemViewElementAdapter
Overrides:
getCanonicalNewName in class AbstractSystemViewAdapter
See Also:
AbstractSystemViewAdapter.canRename(Object)

namesAreEqual

public boolean namesAreEqual(Object element,
                             String newName)
Parent override.

Compare the name of the given element to the given new name to decide if they are equal. Allows adapters to consider case and quotes as appropriate.

For Unix/Linux, returns the result of getName(element).equals(newName), which is to say, it is a case sensitive compare. For windows, it is case insensitive (equalsIgnoreCase).

Specified by:
namesAreEqual in interface ISystemViewElementAdapter
Overrides:
namesAreEqual in class AbstractSystemViewAdapter
See Also:
AbstractSystemViewAdapter.canRename(Object)

getMementoHandleKey

public String getMementoHandleKey(Object element)
Return a short string to uniquely identify the type of resource. Eg "conn" for connection. This just defaults to getType, but if that is not sufficient override it here, since that is a translated string.

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

getAbsoluteName

public String getAbsoluteName(Object element)
Return fully qualified name that uniquely identifies this object within its subsystem

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

getSubSystem

public SubSystem getSubSystem(Object element)
Return subsystem

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

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 the untranslated type for this object. For files, returns the "file" For folders or roots, returns "folder"

Specified by:
getRemoteType in interface ISystemRemoteElementAdapter

getRemoteSubType

public String getRemoteSubType(Object element)
Return the untranslated subtype for this object. For files, returns the file extension. Eg, for abc.java this returns "java". For folders, returns "root" or "subfolder"

Specified by:
getRemoteSubType in interface ISystemRemoteElementAdapter

getRemoteSubSubType

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

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.

For files, this returns the extension. For folders, it 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.

The shell is required in order to set the cursor to a busy state if a remote trip is required.

Specified by:
getRemoteParent in interface ISystemRemoteElementAdapter
Returns:
an IRemoteFile object for the parent
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
Returns:
an array of all file and folder names in the parent of the given IRemoteFile object
Throws:
Exception

handleDoubleClick

public boolean handleDoubleClick(Object element)
User has double clicked on an object. We want to open the object in the applicable editor. Return true to indicate that we are handling the double-click event.

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

canEdit

public boolean canEdit(Object element)
Description copied from interface: ISystemRemoteElementAdapter
Indicates whether the specified object can be edited or not.

Specified by:
canEdit in interface ISystemRemoteElementAdapter
Overrides:
canEdit in class AbstractSystemViewAdapter
Parameters:
element - the object to edit
Returns:
true if the object can be edited. Returns false by default.

getEditableRemoteObject

public ISystemEditableRemoteObject getEditableRemoteObject(Object element)
Description copied from interface: ISystemRemoteElementAdapter
Return the remote edit wrapper for this object.

Specified by:
getEditableRemoteObject in interface ISystemRemoteElementAdapter
Overrides:
getEditableRemoteObject in class AbstractSystemViewAdapter
Parameters:
element - the object to edit
Returns:
the editor wrapper for this object

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

testAttribute

public boolean testAttribute(Object target,
                             String name,
                             String value)
From IActionFilter, it exposes properties for decorator and popupMenus extension points.

  1. name="name". The given value must match the name exactly or if ends with an asterisk the beginning must match. (case sensitiveness depends on the subsystem)
  2. name="absolutePath". The given value must match the absolute path exactly or if ends with an asterisk the beginning must match. (case sensitiveness depends on the subsystem)
  3. name="extension". The given value must match the extension exactly or if ends with an asterisk the beginning must match. (case sensitiveness depends on the subsystem)
  4. name="isRoot". If the given value is true, then returns true if the target is a root file. If the given value is false, then returns true if the target is not root.
  5. name="isFile". If the given value is true, then returns true if the target is a file. If the given value is false, then returns true if the target is not a file.
  6. name="isDirectory". If the given value is true, then returns true if the target is a directory. If the given value is false, then returns true if the target is not a directory.
  7. name="isHidden". If the given value is true, then returns true if the target is a hidden file. If the given value is false, then returns true if the target is not a hidden file.
  8. name="canRead". If the given value is true, then returns true if the target is readable. If the given value is false, then returns true if the target is not readable.
  9. name="canWrite". If the given value is true, then returns true if the target is writable. If the given value is false, then returns true if the target is not writable.
  10. name="isBinary". If the given value is true, then returns true if the target is a binary file. If the given value is false, then returns true if the target is not a binary file.
  11. name="isText". If the given value is true, then returns true if the target is a text file. If the given value is false, then returns true if the target is not a text file.
  12. name="isArchive". If the given value is true, then returns true if the target is an archive file. If the given value is false, then returns true if the target is not an archive file.
  13. name="isVirtual". If the given value is true, then returns true if the target is a virtual file. If the given value is false, then returns true if the target is not a virtual file.

Overrides:
testAttribute in class AbstractSystemViewAdapter
See Also:
IActionFilter

supportsDeferredQueries

public boolean supportsDeferredQueries()
Description copied from interface: ISystemViewElementAdapter
Return whether deferred queries are supported. By default they are not supported. Subclasses must override this to return true if they are to support this.

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

getSystemFetchOperation

protected SystemFetchOperation getSystemFetchOperation(Object o,
                                                       IElementCollector collector)
Description copied from class: AbstractSystemViewAdapter
Returns the SystemFetchOperation to be used in performing a query. Adapters should override this to provide customizations where appropriate.

Overrides:
getSystemFetchOperation in class AbstractSystemViewAdapter
Parameters:
o -
collector -
Returns:
the fetch operation. By default it returns the base implementation

supportsUserDefinedActions

public boolean supportsUserDefinedActions(Object object)
Returns false if the file is a virtual file, otherwise defaults to asking the subsystem factory.

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.