|
|||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |
java.lang.Object org.eclipse.core.commands.common.EventManager org.eclipse.ui.part.WorkbenchPart org.eclipse.ui.part.ViewPart org.eclipse.xtext.xtext.ui.graph.RailroadView
public class RailroadView
A railroad diagram view for Xtext grammars.
Field Summary | |
---|---|
static java.lang.String |
ID
|
Fields inherited from interface org.eclipse.ui.IWorkbenchPart |
---|
PROP_TITLE |
Constructor Summary | |
---|---|
RailroadView()
|
Method Summary | |
---|---|
void |
createPartControl(org.eclipse.swt.widgets.Composite parent)
Creates the SWT controls for this workbench part. |
void |
dispose()
The WorkbenchPart implementation of this
IWorkbenchPart method disposes the title image
loaded by setInitializationData . |
org.eclipse.draw2d.IFigure |
findFigureAt(org.eclipse.draw2d.geometry.Point location)
|
org.eclipse.draw2d.IFigure |
getContents()
|
org.eclipse.swt.widgets.Control |
getControl()
|
void |
init(org.eclipse.ui.IViewSite site)
Initializes this view with the given view site. |
void |
reveal(org.eclipse.draw2d.IFigure figure)
|
void |
setContents(org.eclipse.draw2d.IFigure newContents)
|
void |
setFocus()
Asks this part to take focus within the workbench. |
Methods inherited from class org.eclipse.ui.part.ViewPart |
---|
checkSite, getViewSite, init, saveState, setContentDescription, setInitializationData, setPartName |
Methods inherited from class org.eclipse.ui.part.WorkbenchPart |
---|
addPartPropertyListener, addPropertyListener, firePartPropertyChanged, firePropertyChange, getAdapter, getConfigurationElement, getContentDescription, getDefaultImage, getOrientation, getPartName, getPartProperties, getPartProperty, getSite, getTitle, getTitleImage, getTitleToolTip, removePartPropertyListener, removePropertyListener, setPartProperty, setSite, setTitle, setTitleImage, setTitleToolTip, showBusy |
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.ui.IWorkbenchPart |
---|
addPropertyListener, getSite, getTitle, getTitleImage, getTitleToolTip, removePropertyListener |
Methods inherited from interface org.eclipse.core.runtime.IAdaptable |
---|
getAdapter |
Field Detail |
---|
public static final java.lang.String ID
Constructor Detail |
---|
public RailroadView()
Method Detail |
---|
public void createPartControl(org.eclipse.swt.widgets.Composite parent)
org.eclipse.ui.IWorkbenchPart
Clients should not call this method (the workbench calls this method when it needs to, which may be never).
For implementors this is a multi-step process:
IActionBars
.ISelectionService
(optional).
createPartControl
in interface org.eclipse.ui.IWorkbenchPart
createPartControl
in class org.eclipse.ui.part.WorkbenchPart
parent
- the parent controlpublic void init(org.eclipse.ui.IViewSite site) throws org.eclipse.ui.PartInitException
org.eclipse.ui.IViewPart
This method is automatically called by the workbench shortly after the part is instantiated. It marks the start of the views's lifecycle. Clients must not call this method.
init
in interface org.eclipse.ui.IViewPart
init
in class org.eclipse.ui.part.ViewPart
site
- the view site
org.eclipse.ui.PartInitException
- if this view was not initialized successfullypublic void dispose()
org.eclipse.ui.part.WorkbenchPart
WorkbenchPart
implementation of this
IWorkbenchPart
method disposes the title image
loaded by setInitializationData
. Subclasses may extend.
dispose
in interface org.eclipse.ui.IWorkbenchPart
dispose
in class org.eclipse.ui.part.WorkbenchPart
public void setContents(org.eclipse.draw2d.IFigure newContents)
public org.eclipse.draw2d.IFigure getContents()
public org.eclipse.draw2d.IFigure findFigureAt(org.eclipse.draw2d.geometry.Point location)
public void reveal(org.eclipse.draw2d.IFigure figure)
public void setFocus()
org.eclipse.ui.IWorkbenchPart
Clients should not call this method (the workbench calls this method at
appropriate times). To have the workbench activate a part, use
IWorkbenchPage.activate(IWorkbenchPart) instead
.
setFocus
in interface org.eclipse.ui.IWorkbenchPart
setFocus
in class org.eclipse.ui.part.WorkbenchPart
public org.eclipse.swt.widgets.Control getControl()
|
|||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |