public abstract class EsxEditorPart
extends EditorPart
Modifier and Type | Field and Description |
---|---|
protected EsxFile |
esxFile |
static java.lang.String |
ID |
protected EsxEditor |
parentEditor |
Constructor and Description |
---|
EsxEditorPart(EsxEditor parent) |
Modifier and Type | Method and Description |
---|---|
protected void |
addColumnToTableViewer(TableViewer tableViewer,
java.lang.String text,
java.lang.Integer width) |
protected void |
addEmfDragAndDropSupport(StructuredViewer viewer) |
protected void |
createContextMenuFor(StructuredViewer viewer,
java.lang.String menuId) |
void |
createPartControl(Composite parent) |
void |
doSave(IProgressMonitor monitor) |
void |
doSaveAs() |
protected AdapterFactory |
getAdapterFactory() |
protected BasicCommandStack |
getCommandStack() |
EditingDomain |
getEditingDomain() |
TableViewer |
getTableViewer() |
void |
init(IEditorSite site,
IEditorInput input) |
boolean |
isDirty() |
boolean |
isSaveAsAllowed() |
void |
menuAboutToShow(IMenuManager manager) |
void |
propertyChange(PropertyChangeEvent event) |
abstract void |
refresh()
Refreshes this editor with information freshly obtained from the editor's model.
|
void |
selectionChanged(IWorkbenchPart part,
ISelection selection) |
void |
setFocus() |
abstract void |
setInput(java.lang.Object input)
Sets the input to this editor.
|
protected TableScrollSpeedListener |
syncScrollSpeedWithPreference(TableViewer viewer,
TableScrollSpeedListener scrollSpeedListener,
java.lang.Integer scrollSpeed,
java.lang.Boolean useScrollSpeed) |
public static final java.lang.String ID
protected EsxEditor parentEditor
protected EsxFile esxFile
public EsxEditorPart(EsxEditor parent)
parent
- public abstract void setInput(java.lang.Object input)
input
- public abstract void refresh()
public void createPartControl(Composite parent)
public void setFocus()
public void selectionChanged(IWorkbenchPart part, ISelection selection)
public void propertyChange(PropertyChangeEvent event)
public void doSave(IProgressMonitor monitor)
public void doSaveAs()
public void init(IEditorSite site, IEditorInput input) throws PartInitException
PartInitException
public boolean isDirty()
public boolean isSaveAsAllowed()
public void menuAboutToShow(IMenuManager manager)
public EditingDomain getEditingDomain()
protected BasicCommandStack getCommandStack()
protected AdapterFactory getAdapterFactory()
protected void createContextMenuFor(StructuredViewer viewer, java.lang.String menuId)
viewer
- the viewer in which to create a context menu formenuManagerId
- the id of the menu managerprotected void addEmfDragAndDropSupport(StructuredViewer viewer)
viewer
- the viewer that will have EMF drag-and-drop supportprotected void addColumnToTableViewer(TableViewer tableViewer, java.lang.String text, java.lang.Integer width)
tableViewer
- The TableViewer that a column will be added totext
- The name of the column. Will show up in the column header.width
- If null, then pack() will be called. If a valid integer, then the column will have this widthprotected TableScrollSpeedListener syncScrollSpeedWithPreference(TableViewer viewer, TableScrollSpeedListener scrollSpeedListener, java.lang.Integer scrollSpeed, java.lang.Boolean useScrollSpeed)
viewer
- scrollSpeedListener
- scrollSpeed
- useScrollSpeed
- public TableViewer getTableViewer()