Remote Systems
v6.4.1

com.ibm.etools.systems.files.ui.actions
Class SystemSearchEditFileLineAction

java.lang.Object
  extended byAction
      extended bycom.ibm.etools.systems.core.ui.actions.SystemBaseAction
          extended bycom.ibm.etools.systems.files.ui.actions.SystemEditFileAction
              extended bycom.ibm.etools.systems.files.ui.actions.SystemSearchEditFileLineAction
All Implemented Interfaces:
ISystemAction, ISystemRemoteEditConstants
Direct Known Subclasses:
SystemSearchBrowseFileLineAction

public class SystemSearchEditFileLineAction
extends SystemEditFileAction

Edit action used by search to create markers for all matches in a line and highlight the first match.

See Also:
Serialized Form

Field Summary
protected  IRemoteFile _remoteFile
           
protected  IRemoteSearchResult _searchResult
           
 
Fields inherited from class com.ibm.etools.systems.files.ui.actions.SystemEditFileAction
_editorId, Copyright
 
Fields inherited from class com.ibm.etools.systems.core.ui.actions.SystemBaseAction
allowOnMultipleSelection, arrowCursor, copyright, helpId, selectionSensitive, shell, sSelection, traceSelections, traceTarget, viewer, waitCursor
 
Fields inherited from interface com.ibm.etools.systems.core.resources.ISystemRemoteEditConstants
DEFAULT_EDITOR_PROFILE, DOWNLOAD_FILE_MODIFIED_STAMP, EDITOR_COMPARE_LOCATION, EDITOR_GET_FILE_LOCATION, LOAD_TYPE_KEY, LOAD_TYPE_USE_STRING, REMOTE_FILE_BINARY_TRANSFER, REMOTE_FILE_MODIFIED_STAMP, REMOTE_FILE_MOUNTED, REMOTE_FILE_OBJECT_KEY, REMOTE_FILE_PATH_KEY, REMOTE_FILE_SUBSYSTEM_KEY, RESOLVED_MOUNTED_REMOTE_FILE_HOST_KEY, RESOLVED_MOUNTED_REMOTE_FILE_PATH_KEY, TEMP_FILE_DIRTY, TEMP_FILE_READONLY, UNIVERSAL_EDITOR_PROFILE, UNIVERSAL_LOCAL_EDITOR_PROFILE
 
Constructor Summary
SystemSearchEditFileLineAction(String text, String tooltip, ImageDescriptor image, Shell parent, String editorId, IRemoteFile remoteFile, IRemoteSearchResult searchResult)
          Constructor to create an edit action that jumps to a file line.
 
Method Summary
protected static IMarker createMarker(IFile file, int line, int charStart, int charEnd)
           
static void handleGotoLine(IRemoteFile remoteFile, IRemoteSearchResult searchResult)
           
 void process(IRemoteFile remoteFile, IRemoteSearchResult searchResult)
          Process the remote file selection.
 void run()
          Calls process().
 
Methods inherited from class com.ibm.etools.systems.files.ui.actions.SystemEditFileAction
process
 
Methods inherited from class com.ibm.etools.systems.core.ui.actions.SystemBaseAction
allowOnMultipleSelection, checkObjectType, getAdapter, getContextMenuGroup, getCurrentTreeView, getDescription, getFirstSelection, getHelpContextId, getLabel, getNextSelection, getRemoteAdapter, getSelection, getSelectionProvider, getShell, getShell, getString, getStringOrNull, getSystemConnection, getToolTip, getViewer, isDummy, isEnabled, isSelectionSensitive, issueTraceMessage, selectionChanged, setAvailableOffline, setBusyCursor, setContextMenuGroup, setDisplayCursor, setDisplayCursor, setHelp, setInputs, setSelection, setSelectionProvider, setSelectionSensitive, setShell, setSystemConnection, setTracing, setTracing, setViewer, updateSelection
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Field Detail

_remoteFile

protected IRemoteFile _remoteFile

_searchResult

protected IRemoteSearchResult _searchResult
Constructor Detail

SystemSearchEditFileLineAction

public SystemSearchEditFileLineAction(String text,
                                      String tooltip,
                                      ImageDescriptor image,
                                      Shell parent,
                                      String editorId,
                                      IRemoteFile remoteFile,
                                      IRemoteSearchResult searchResult)
Constructor to create an edit action that jumps to a file line.

Parameters:
text - the label for the action.
tooltip - the tooltip for the action.
image - the image for the action.
parent - the parent shell.
editorId - the editor id.
remoteFile - the remote file that is to be opened.
Method Detail

run

public void run()
Calls process().

Overrides:
run in class SystemEditFileAction
See Also:
SystemBaseAction.run()

process

public void process(IRemoteFile remoteFile,
                    IRemoteSearchResult searchResult)
Process the remote file selection.


handleGotoLine

public static void handleGotoLine(IRemoteFile remoteFile,
                                  IRemoteSearchResult searchResult)

createMarker

protected static IMarker createMarker(IFile file,
                                      int line,
                                      int charStart,
                                      int charEnd)
                               throws CoreException
Throws:
CoreException

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.