RSE
Release 1.0

org.eclipse.rse.files.ui.actions
Class SystemSearchEditFileLineAction

java.lang.Object
  extended byorg.eclipse.core.commands.common.EventManager
      extended byorg.eclipse.jface.action.AbstractAction
          extended byorg.eclipse.jface.action.Action
              extended byorg.eclipse.rse.ui.actions.SystemBaseAction
                  extended byorg.eclipse.rse.files.ui.actions.SystemEditFileAction
                      extended byorg.eclipse.rse.files.ui.actions.SystemSearchEditFileLineAction
All Implemented Interfaces:
IAction, ISelectionChangedListener, 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.


Field Summary
protected  IRemoteFile _remoteFile
           
protected  IRemoteSearchResult _searchResult
           
 
Fields inherited from class org.eclipse.rse.files.ui.actions.SystemEditFileAction
_editorId
 
Fields inherited from class org.eclipse.rse.ui.actions.SystemBaseAction
allowOnMultipleSelection, arrowCursor, helpId, selectionSensitive, shell, sSelection, traceSelections, traceTarget, viewer, waitCursor
 
Fields inherited from interface org.eclipse.rse.files.ui.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
 
Fields inherited from interface org.eclipse.jface.action.IAction
AS_CHECK_BOX, AS_DROP_DOWN_MENU, AS_PUSH_BUTTON, AS_RADIO_BUTTON, AS_UNSPECIFIED, CHECKED, DESCRIPTION, ENABLED, HANDLED, IMAGE, RESULT, TEXT, TOOL_TIP_TEXT
 
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 org.eclipse.rse.files.ui.actions.SystemEditFileAction
process
 
Methods inherited from class org.eclipse.rse.ui.actions.SystemBaseAction
allowOnMultipleSelection, checkObjectType, getAdapter, getContextMenuGroup, getCurrentTreeView, getFirstSelection, getHelpContextId, getNextSelection, getRemoteAdapter, getSelection, getSelectionProvider, getShell, getShell, getSystemConnection, getViewer, isDummy, isEnabled, isSelectionSensitive, issueTraceMessage, selectionChanged, setAvailableOffline, setBusyCursor, setContextMenuGroup, setDisplayCursor, setDisplayCursor, setHelp, setHost, setInputs, setSelection, setSelectionProvider, setSelectionSensitive, setShell, setTracing, setTracing, setViewer, updateSelection
 
Methods inherited from class org.eclipse.jface.action.Action
convertAccelerator, convertAccelerator, findKeyCode, findKeyString, findModifier, findModifierString, getAccelerator, getActionDefinitionId, getDescription, getDisabledImageDescriptor, getHelpListener, getHoverImageDescriptor, getId, getImageDescriptor, getMenuCreator, getStyle, getText, getToolTipText, isChecked, isHandled, notifyResult, removeAcceleratorText, removeMnemonics, runWithEvent, setAccelerator, setActionDefinitionId, setChecked, setDescription, setDisabledImageDescriptor, setEnabled, setHelpListener, setHoverImageDescriptor, setId, setImageDescriptor, setMenuCreator, setText, setToolTipText
 
Methods inherited from class org.eclipse.jface.action.AbstractAction
addPropertyChangeListener, firePropertyChange, firePropertyChange, removePropertyChangeListener
 
Methods inherited from class org.eclipse.core.commands.common.EventManager
addListenerObject, clearListeners, getListeners, isListenerAttached, removeListenerObject
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 
Methods inherited from interface org.eclipse.jface.action.IAction
addPropertyChangeListener, getAccelerator, getActionDefinitionId, getDescription, getDisabledImageDescriptor, getHelpListener, getHoverImageDescriptor, getId, getImageDescriptor, getMenuCreator, getStyle, getText, getToolTipText, isChecked, isHandled, removePropertyChangeListener, runWithEvent, setAccelerator, setActionDefinitionId, setChecked, setDescription, setDisabledImageDescriptor, setEnabled, setHelpListener, setHoverImageDescriptor, setId, setImageDescriptor, setMenuCreator, setText, setToolTipText
 

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().

Specified by:
run in interface IAction
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

RSE
Release 1.0

Copyright (c) IBM Corporation and others 2000, 2006. All Rights Reserved.