org.eclipse.cdt.ui.tests.DOMAST
Class DOMAST
java.lang.Object
org.eclipse.core.commands.common.EventManager
org.eclipse.ui.part.WorkbenchPart
org.eclipse.ui.part.ViewPart
org.eclipse.cdt.ui.tests.DOMAST.DOMAST
- All Implemented Interfaces:
- org.eclipse.core.runtime.IAdaptable, org.eclipse.core.runtime.IExecutableExtension, org.eclipse.ui.IPersistable, org.eclipse.ui.IViewPart, org.eclipse.ui.IWorkbenchPart, org.eclipse.ui.IWorkbenchPart2, org.eclipse.ui.part.IWorkbenchPartOrientation
public class DOMAST
- extends org.eclipse.ui.part.ViewPart
This is a simple DOM AST View used for development testing.
Fields inherited from interface org.eclipse.ui.IWorkbenchPart |
PROP_TITLE |
Method Summary |
void |
createPartControl(org.eclipse.swt.widgets.Composite parent)
This is a callback that will allow us to create the viewer and initialize
it. |
org.eclipse.jface.viewers.IContentProvider |
getContentProvider()
|
static org.eclipse.ui.IViewPart |
openDOMASTView(org.eclipse.ui.IEditorPart editor)
Open the DOM AST View and return a reference to it. |
static org.eclipse.ui.IViewPart |
openDOMASTViewRunAction(org.eclipse.ui.IEditorPart editor,
java.lang.Runnable runnable,
java.lang.String nameOfJob)
Open the DOM AST View and return a reference to it. |
void |
setContentProvider(DOMAST.ViewContentProvider vcp)
|
void |
setFocus()
Passing the focus request to the viewer's control. |
void |
setPart(org.eclipse.ui.IEditorPart part)
|
void |
setTranslationUnit(org.eclipse.cdt.core.model.ITranslationUnit tu)
|
Methods inherited from class org.eclipse.ui.part.ViewPart |
getViewSite, init, init, saveState, setInitializationData |
Methods inherited from class org.eclipse.ui.part.WorkbenchPart |
addPropertyListener, dispose, getAdapter, getContentDescription, getOrientation, getPartName, getSite, getTitle, getTitleImage, getTitleToolTip, removePropertyListener, showBusy |
Methods inherited from class java.lang.Object |
equals, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
Methods inherited from interface org.eclipse.ui.IWorkbenchPart |
addPropertyListener, dispose, getSite, getTitle, getTitleImage, getTitleToolTip, removePropertyListener |
Methods inherited from interface org.eclipse.core.runtime.IAdaptable |
getAdapter |
VIEW_ID
public static final java.lang.String VIEW_ID
- See Also:
- Constant Field Values
VIEW_NAME
public static final java.lang.String VIEW_NAME
- See Also:
- Constant Field Values
DOMAST
public DOMAST()
createPartControl
public void createPartControl(org.eclipse.swt.widgets.Composite parent)
- This is a callback that will allow us to create the viewer and initialize
it.
- Specified by:
createPartControl
in interface org.eclipse.ui.IWorkbenchPart
- Specified by:
createPartControl
in class org.eclipse.ui.part.WorkbenchPart
setContentProvider
public void setContentProvider(DOMAST.ViewContentProvider vcp)
getContentProvider
public org.eclipse.jface.viewers.IContentProvider getContentProvider()
setFocus
public void setFocus()
- Passing the focus request to the viewer's control.
- Specified by:
setFocus
in interface org.eclipse.ui.IWorkbenchPart
- Specified by:
setFocus
in class org.eclipse.ui.part.WorkbenchPart
setPart
public void setPart(org.eclipse.ui.IEditorPart part)
setTranslationUnit
public void setTranslationUnit(org.eclipse.cdt.core.model.ITranslationUnit tu)
openDOMASTViewRunAction
public static org.eclipse.ui.IViewPart openDOMASTViewRunAction(org.eclipse.ui.IEditorPart editor,
java.lang.Runnable runnable,
java.lang.String nameOfJob)
- Open the DOM AST View and return a reference to it. This helper method can also be used to run an
Action after the DOM AST View has been fully loaded (like find/select nodes in the view).
Note: The action is not guaranteed to run. An example would be if loading the view is canceled.
- Parameters:
editor
- action
-
- Returns:
openDOMASTView
public static org.eclipse.ui.IViewPart openDOMASTView(org.eclipse.ui.IEditorPart editor)
- Open the DOM AST View and return a reference to it.
- Parameters:
editor
-
- Returns: