public interface IEditorForm
extends org.eclipse.core.runtime.IAdaptable
| Modifier and Type | Method and Description |
|---|---|
void |
addPart(IEditorPart part)
Adds the new part to the form.
|
boolean |
addStateListener(IEditorStateListener stateListener) |
void |
commit(boolean onSave)
Commits the dirty form.
|
void |
dirtyStateChanged()
Notifies the form that the dirty state of one of its parts has changed.
|
void |
fireSelectionChanged(IEditorPart part,
org.eclipse.jface.viewers.ISelection selection)
A part can use this method to notify other parts that implement
IPartSelectionListener about selection changes.
|
org.eclipse.swt.widgets.Composite |
getBody() |
Object |
getInput()
Returns the current page input.
|
org.eclipse.ui.forms.IMessageManager |
getMessageManager()
Returns the message manager that will keep track of messages in this
form.
|
IEditorPart[] |
getParts()
Returns all the parts currently managed by this form.
|
org.eclipse.swt.widgets.Shell |
getShell() |
EditorWidgetFactory |
getWidgetFactory()
Returns the toolkit used by this form.
|
void |
initialize()
Initializes the form by looping through the managed parts and
initializing them.
|
boolean |
isDirty()
Tests if form is dirty.
|
boolean |
isStale()
Tests if form is stale.
|
void |
reflow(boolean changed) |
void |
refreshStale()
Refreshes the form by refreshing every part that is stale.
|
void |
removePart(IEditorPart part)
Removes the part from the form.
|
boolean |
removeStateListener(IEditorStateListener stateListener) |
boolean |
setInput(Object input)
Sets the input of this page to the provided object.
|
void |
staleStateChanged()
Notifies the form that the stale state of one of its parts has changed.
|
void initialize()
EditorWidgetFactory getWidgetFactory()
void fireSelectionChanged(IEditorPart part, org.eclipse.jface.viewers.ISelection selection)
part - the part that broadcasts the selectionselection - the selection in the partIEditorPart[] getParts()
void addPart(IEditorPart part)
part - the part to addvoid removePart(IEditorPart part)
part - the part to removeboolean setInput(Object input)
input - the new page inputtrue if the form contains this object,
false otherwise.Object getInput()
null if not applicable.boolean isDirty()
true if at least one managed part is dirty,
false otherwise.void dirtyStateChanged()
isDirty()void commit(boolean onSave)
onSave - boolean isStale()
true if the form is stale, false
otherwise.void staleStateChanged()
void refreshStale()
org.eclipse.ui.forms.IMessageManager getMessageManager()
org.eclipse.swt.widgets.Shell getShell()
org.eclipse.swt.widgets.Composite getBody()
boolean addStateListener(IEditorStateListener stateListener)
boolean removeStateListener(IEditorStateListener stateListener)
void reflow(boolean changed)
Copyright © 2022 Fraunhofer IWU. All rights reserved.