org.eclipse.cdt.ui.actions
Class ShowInCViewAction

java.lang.Object
  extended by org.eclipse.core.commands.common.EventManager
      extended by org.eclipse.jface.action.AbstractAction
          extended by org.eclipse.jface.action.Action
              extended by org.eclipse.ui.actions.SelectionProviderAction
                  extended by org.eclipse.cdt.ui.actions.ShowInCViewAction
All Implemented Interfaces:
org.eclipse.jface.action.IAction, org.eclipse.jface.viewers.ISelectionChangedListener

Deprecated. Use generic IShowInTarget support instead.

public class ShowInCViewAction
extends org.eclipse.ui.actions.SelectionProviderAction

This class will open the C/C++ Projects view and highlight the selected resource matching the current resouce being edited in the C/C++ Editor. It uses the IShowInSource/IShowInTarget to accomplish this task so as to provide some additional portability and future proofing.


Field Summary
 
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
ShowInCViewAction(org.eclipse.ui.texteditor.ITextEditor editor)
          Deprecated.  
ShowInCViewAction(org.eclipse.ui.IWorkbenchPage page, org.eclipse.jface.viewers.ISelectionProvider viewer)
          Deprecated.  
ShowInCViewAction(org.eclipse.ui.IWorkbenchSite site)
          Deprecated.  
 
Method Summary
 void run()
          Deprecated.  
 void run(org.eclipse.jface.viewers.IStructuredSelection selection)
          Deprecated.  
 void run(org.eclipse.ui.texteditor.ITextEditor editor)
          Deprecated.  
 void selectionChanged(org.eclipse.jface.viewers.IStructuredSelection selection)
          Deprecated.  
 
Methods inherited from class org.eclipse.ui.actions.SelectionProviderAction
dispose, getSelection, getSelectionProvider, getStructuredSelection, selectionChanged, selectionChanged
 
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, isEnabled, 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, removePropertyChangeListener
 
Methods inherited from class java.lang.Object
equals, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 
Methods inherited from interface org.eclipse.jface.action.IAction
addPropertyChangeListener, removePropertyChangeListener
 

Constructor Detail

ShowInCViewAction

public ShowInCViewAction(org.eclipse.ui.IWorkbenchSite site)
Deprecated. 

ShowInCViewAction

public ShowInCViewAction(org.eclipse.ui.texteditor.ITextEditor editor)
Deprecated. 

ShowInCViewAction

public ShowInCViewAction(org.eclipse.ui.IWorkbenchPage page,
                         org.eclipse.jface.viewers.ISelectionProvider viewer)
Deprecated. 
Method Detail

run

public void run()
Deprecated. 
Specified by:
run in interface org.eclipse.jface.action.IAction
Overrides:
run in class org.eclipse.jface.action.Action

run

public void run(org.eclipse.jface.viewers.IStructuredSelection selection)
Deprecated. 

run

public void run(org.eclipse.ui.texteditor.ITextEditor editor)
Deprecated. 

selectionChanged

public void selectionChanged(org.eclipse.jface.viewers.IStructuredSelection selection)
Deprecated. 
Overrides:
selectionChanged in class org.eclipse.ui.actions.SelectionProviderAction