public abstract class FormEditor
extends java.lang.Object
implements org.eclipse.jface.dialogs.IPageChangeProvider
Pages are added 'lazily' i.e. adding a page reserves a tab for it but does not cause the page control to be created. Page control is created when an attempt is made to select the page in question. This allows editors with several tabs and complex pages to open quickly.
Subclasses should extend this class and implement addPages
method. One of the two addPage
methods should be called to
contribute pages to the editor. One adds complete (standalone) editors as
nested tabs. These editors will be created right away and will be hooked so
that key bindings, selection service etc. is compatible with the one for the
standalone case. The other method adds classes that implement
IFormPage
interface. These pages will be created lazily and
they will share the common key binding and selection service. Since 3.1,
FormEditor is a page change provider. It allows listeners to attach to it and
get notified when pages are changed. This new API in JFace allows dynamic
help to update on page changes.
Constructor and Description |
---|
FormEditor() |
Modifier and Type | Method and Description |
---|---|
void |
addPageChangedListener(org.eclipse.jface.dialogs.IPageChangedListener listener) |
void |
editorDirtyStateChanged() |
FormPage |
getActivePageInstance() |
FormToolkit |
getToolkit() |
void |
removePageChangedListener(org.eclipse.jface.dialogs.IPageChangedListener listener) |
public FormToolkit getToolkit()
public void editorDirtyStateChanged()
public FormPage getActivePageInstance()
public void addPageChangedListener(org.eclipse.jface.dialogs.IPageChangedListener listener)
addPageChangedListener
in interface org.eclipse.jface.dialogs.IPageChangeProvider
public void removePageChangedListener(org.eclipse.jface.dialogs.IPageChangedListener listener)
removePageChangedListener
in interface org.eclipse.jface.dialogs.IPageChangeProvider
Copyright © 2007–2020. All rights reserved.