|
||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |
java.lang.Objectorg.eclipse.core.commands.common.EventManager
org.eclipse.ui.part.WorkbenchPart
org.eclipse.ui.part.EditorPart
org.eclipse.wst.server.ui.editor.ServerEditorPart
public abstract class ServerEditorPart
An abstract server editor which implements the most common methods from IEditorPart. This class also provides each editor page with an error message which will be displayed on the status bar of the editor.
Field Summary | |
---|---|
static int |
PROP_ERROR
Property change id for the error message. |
Fields inherited from interface org.eclipse.ui.IEditorPart |
---|
PROP_DIRTY, PROP_INPUT |
Fields inherited from interface org.eclipse.ui.IWorkbenchPart |
---|
PROP_TITLE |
Constructor Summary | |
---|---|
ServerEditorPart()
Create a new server editor part. |
Method Summary | |
---|---|
void |
dispose()
Dispose of the editor. |
void |
doSave(org.eclipse.core.runtime.IProgressMonitor monitor)
|
void |
doSaveAs()
|
void |
execute(org.eclipse.core.commands.operations.IUndoableOperation operation)
Executes the given operation and adds it to the operation history with the correct context. |
java.lang.String |
getErrorMessage()
Return the error message for this page. |
org.eclipse.core.runtime.IStatus[] |
getSaveStatus()
Returns error or status messages that will be displayed when the server resource is saved. |
IServerWorkingCopy |
getServer()
Return the server that is being editted. |
void |
init(org.eclipse.ui.IEditorSite site,
org.eclipse.ui.IEditorInput input)
|
void |
insertSections(org.eclipse.swt.widgets.Composite parent,
java.lang.String id)
Inserts editor sections into the given composite. |
boolean |
isDirty()
|
boolean |
isSaveAsAllowed()
|
void |
setErrorMessage(java.lang.String error)
Set an error message for this page. |
void |
updateErrorMessage()
Updates the error message shown in the editor. |
Methods inherited from class org.eclipse.ui.part.EditorPart |
---|
getEditorInput, getEditorSite, getTitleToolTip, isSaveOnCloseNeeded, setInitializationData |
Methods inherited from class org.eclipse.ui.part.WorkbenchPart |
---|
addPartPropertyListener, addPropertyListener, createPartControl, getAdapter, getContentDescription, getOrientation, getPartName, getPartProperties, getPartProperty, getSite, getTitle, getTitleImage, removePartPropertyListener, removePropertyListener, setFocus, setPartProperty, showBusy |
Methods inherited from class java.lang.Object |
---|
equals, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
Methods inherited from interface org.eclipse.ui.IWorkbenchPart |
---|
addPropertyListener, createPartControl, getSite, getTitle, getTitleImage, removePropertyListener, setFocus |
Methods inherited from interface org.eclipse.core.runtime.IAdaptable |
---|
getAdapter |
Field Detail |
---|
public static final int PROP_ERROR
Constructor Detail |
---|
public ServerEditorPart()
Method Detail |
---|
public void doSave(org.eclipse.core.runtime.IProgressMonitor monitor)
doSave
in interface org.eclipse.ui.ISaveablePart
doSave
in class org.eclipse.ui.part.EditorPart
ISaveablePart.doSave(IProgressMonitor)
public void doSaveAs()
doSaveAs
in interface org.eclipse.ui.ISaveablePart
doSaveAs
in class org.eclipse.ui.part.EditorPart
ISaveablePart.doSaveAs()
public boolean isDirty()
isDirty
in interface org.eclipse.ui.ISaveablePart
isDirty
in class org.eclipse.ui.part.EditorPart
ISaveablePart.isDirty()
public boolean isSaveAsAllowed()
isSaveAsAllowed
in interface org.eclipse.ui.ISaveablePart
isSaveAsAllowed
in class org.eclipse.ui.part.EditorPart
ISaveablePart.isSaveAsAllowed()
public void setErrorMessage(java.lang.String error)
error
- java.lang.Stringpublic void updateErrorMessage()
public java.lang.String getErrorMessage()
public org.eclipse.core.runtime.IStatus[] getSaveStatus()
public void init(org.eclipse.ui.IEditorSite site, org.eclipse.ui.IEditorInput input)
init
in interface org.eclipse.ui.IEditorPart
init
in class org.eclipse.ui.part.EditorPart
IEditorPart.init(org.eclipse.ui.IEditorSite, org.eclipse.ui.IEditorInput)
public void execute(org.eclipse.core.commands.operations.IUndoableOperation operation)
operation
- an operation ready to be executedpublic IServerWorkingCopy getServer()
public void insertSections(org.eclipse.swt.widgets.Composite parent, java.lang.String id)
parent
- the composite to add the section(s) toid
- the section insertion idpublic void dispose()
dispose
in interface org.eclipse.ui.IWorkbenchPart
dispose
in class org.eclipse.ui.part.WorkbenchPart
|
||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |