public class MultiPageCompilationUnitEditor extends PtolemyEditor
Constructor and Description |
---|
MultiPageCompilationUnitEditor() |
Modifier and Type | Method and Description |
---|---|
protected void |
_update()
Update the "Preview" tab if the source code is changed in the
"Raw" tab.
|
void |
createPartControl(org.eclipse.swt.widgets.Composite parent)
Create the controls for this editor.
|
void |
dispose()
Dispose the two views in this editor.
|
void |
setActivePage(int pageIndex)
Set the active tab of the editor.
|
protected void |
setTitleImage(org.eclipse.swt.graphics.Image titleImage)
Override the title image so that the Ptolemy icon is always used as the
editor's title image.
|
void |
test()
Set the preview tab so it is not editable.
|
_installSemanticHighlighting, aboutToBeReconciled, addJavaReconcileListener, reconciled, removeJavaReconcileListener
public void createPartControl(org.eclipse.swt.widgets.Composite parent)
createPartControl
in class PtolemyEditor
parent
- The parent of the editor.public void dispose()
public void setActivePage(int pageIndex)
pageIndex
- The index of the tab to change to. 0 for "Raw" tab; 1
for "Preview" tab.public void test()
protected void _update()
protected void setTitleImage(org.eclipse.swt.graphics.Image titleImage)
titleImage
- The new title image to be set, which is always
ignored.