Remote Systems
v6.4.1

com.ibm.etools.systems.launch.sourceLookup
Class AbstractRemoteSourceContainer

java.lang.Object
  extended byAbstractSourceContainer
      extended bycom.ibm.etools.systems.launch.sourceLookup.AbstractRemoteSourceContainer
All Implemented Interfaces:
IUniversalLaunchConstants
Direct Known Subclasses:
RemoteArchiveSourceContainer, RemoteFolderSourceContainer

public abstract class AbstractRemoteSourceContainer
extends AbstractSourceContainer
implements IUniversalLaunchConstants

See Also:
Serialized Form

Field Summary
protected static Object[] EMPTY
           
 
Fields inherited from interface com.ibm.etools.systems.launch.IUniversalLaunchConstants
ATTR_PREFIX, ATTR_SYSTEM_CONNECTION_ALIAS_NAME, ATTR_SYSTEM_CONNECTION_PROFILE_NAME, BROWSE, BROWSEPROMPT, DEBUG_MODE, HISTORY_PREFIX, ICON_EXT, ICON_ROOT, ICON_SOURCELOCATOR_RSE, ICON_SOURCELOCATOR_RSE_ID, ICON_SOURCELOCATOR_RSE_ROOT, ICON_SUFFIX, LABEL, LAUNCH_GENERIC_PREFIX, PLUGIN_ID, PREFIX, REMOTEBUILD_EXPORT_LABEL, REMOTEBUILD_EXPORT_ROOT, REMOTEBUILD_EXPORT_TOOLTIP, REMOTEBUILD_PROGRAM, REMOTEBUILD_PROJECT, REMOTEBUILD_PROJECT_TOOLTIP, REMOTEBUILD_PROJECTCHKBOX, REMOTEEXTTOOLS_CONNECTION_INVALID, REMOTEEXTTOOLS_PROJECT_INVALID, REMOTEEXTTOOLS_WORKINGDIR_INVALID, REMOTEPROGRAM_CONNECTION, REMOTEPROGRAM_CONNECTIONS_LABEL, REMOTEPROGRAM_CONNECTIONS_TOOLTIP, REMOTEPROGRAM_EXPORT_LABEL, REMOTEPROGRAM_EXPORT_ROOT, REMOTEPROGRAM_EXPORT_TOOLTIP, REMOTEPROGRAM_PROGRAM, REMOTESOURCECONTIANER_ARCHIVE_ROOT, REMOTESOURCECONTIANER_DOWNLOAD, REMOTESOURCECONTIANER_FOLDER_ROOT, REMOTESOURCECONTIANER_LOOKUP, REMOTETOOLS_TABS_DEBUG_PREFIX, REMOTETOOLS_TABS_MAIN, REMOTETOOLS_TABS_MAIN_EXPORT_BROWSE_ROOT, REMOTETOOLS_TABS_MAIN_EXPORT_BROWSE_TOOLTIP, REMOTETOOLS_TABS_MAIN_EXPORT_DIALOG_ROOT, REMOTETOOLS_TABS_MAIN_EXPORT_DIALOG_TITLE, REMOTETOOLS_TABS_MAIN_EXPORT_LABEL, REMOTETOOLS_TABS_MAIN_EXPORT_ROOT, REMOTETOOLS_TABS_MAIN_EXPORT_TOOLTIP, REMOTETOOLS_TABS_MAIN_PROJECT_BROWSE_DIALOG_ROOT, REMOTETOOLS_TABS_MAIN_PROJECT_BROWSE_ROOT, REMOTETOOLS_TABS_MAIN_PROJECT_CHECK_ROOT, REMOTETOOLS_TABS_MAIN_PROJECT_ROOT, REMOTETOOLS_TABS_PREFIX, RESID_LAUNCH_PREFRENCE_DEBUG_ROOT, RESID_LAUNCH_PREFRENCE_PREFIX, RESID_PREFIX, RESID_REMOTEBUILD_PREFIX, RESID_REMOTEPROGRAM_PREFIX, RESID_REMOTESOURCECONTAINER_PREFIX, RESID_UI_PREFIX, RSE_ARCHIVE_SOURCECONTAINER_TYPE, RSE_DIRECTORY_SOURCECONTAINER_TYPE, RSE_SOURCECONTAINER_ARCHIVE_SELECTION_INVALID, RSE_SOURCECONTAINER_FOLDER_SELECTION_INVALID, RUN_MODE, SHOWINERRORLIST, TITLE, TOOLTIP
 
Constructor Summary
AbstractRemoteSourceContainer(SystemConnection connection, IPath path, boolean useLocalCopyFirst)
           
AbstractRemoteSourceContainer(SystemConnection connection, IPath path, boolean useLocalCopyFirst, boolean caseSensitive)
           
AbstractRemoteSourceContainer(SystemConnection connection, IPath path, boolean useLocalCopyFirst, boolean caseSensitive, boolean exactMatch)
           
 
Method Summary
 boolean equals(Object obj)
           
 Object[] findSourceElements(String fileToBeSearched)
           
protected  Hashtable getCachedFiles()
           
 boolean getCaseSensitive()
           
 SystemConnection getConnection()
           
 boolean getExactMatch()
           
 String getName()
           
 String getPath()
           
protected  IRunnableContext getRunnableContext(Shell shell)
           
 IRemoteSourceLookupSorter getSourceLookupSorter()
           
protected abstract  SystemSearchString getSystemSearchString(String fileName)
           
abstract  ISourceContainerType getType()
           
 boolean getUseLocalCopyFirst()
           
 int hashCode()
           
protected  Object[] search(Shell shell, String fileName, Object[] resultFiles)
           
protected  Object[] searchCachedResult(String fileName)
           
 void setCaseSenstive(boolean caseSensitive)
           
 void setExactMatch(boolean exactMatch)
           
 void setSourceLookupSorter(IRemoteSourceLookupSorter sorter)
           
protected  Object[] sortResult(Object[] resultFiles)
           
 
Methods inherited from class java.lang.Object
clone, finalize, getClass, notify, notifyAll, toString, wait, wait, wait
 

Field Detail

EMPTY

protected static final Object[] EMPTY
Constructor Detail

AbstractRemoteSourceContainer

public AbstractRemoteSourceContainer(SystemConnection connection,
                                     IPath path,
                                     boolean useLocalCopyFirst)

AbstractRemoteSourceContainer

public AbstractRemoteSourceContainer(SystemConnection connection,
                                     IPath path,
                                     boolean useLocalCopyFirst,
                                     boolean caseSensitive)

AbstractRemoteSourceContainer

public AbstractRemoteSourceContainer(SystemConnection connection,
                                     IPath path,
                                     boolean useLocalCopyFirst,
                                     boolean caseSensitive,
                                     boolean exactMatch)
Method Detail

getSystemSearchString

protected abstract SystemSearchString getSystemSearchString(String fileName)

getType

public abstract ISourceContainerType getType()

getName

public String getName()

equals

public boolean equals(Object obj)

getConnection

public SystemConnection getConnection()
Returns:

getPath

public String getPath()
Returns:

getUseLocalCopyFirst

public boolean getUseLocalCopyFirst()
Returns:

hashCode

public int hashCode()

setSourceLookupSorter

public void setSourceLookupSorter(IRemoteSourceLookupSorter sorter)

getSourceLookupSorter

public IRemoteSourceLookupSorter getSourceLookupSorter()

setCaseSenstive

public void setCaseSenstive(boolean caseSensitive)

getCaseSensitive

public boolean getCaseSensitive()

setExactMatch

public void setExactMatch(boolean exactMatch)

getExactMatch

public boolean getExactMatch()

findSourceElements

public Object[] findSourceElements(String fileToBeSearched)
                            throws CoreException
Throws:
CoreException

sortResult

protected Object[] sortResult(Object[] resultFiles)
Parameters:
resultFiles -
Returns:

searchCachedResult

protected Object[] searchCachedResult(String fileName)
Parameters:
fileName -
Returns:

getCachedFiles

protected Hashtable getCachedFiles()

search

protected Object[] search(Shell shell,
                          String fileName,
                          Object[] resultFiles)

getRunnableContext

protected IRunnableContext getRunnableContext(Shell shell)

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.