|
|||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |
java.lang.ObjectEditorPart
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. |
Constructor Summary | |
---|---|
ServerEditorPart()
Create a new server editor part. |
Method Summary | |
---|---|
void |
dispose()
Dispose of the editor. |
void |
doSave(IProgressMonitor monitor)
|
void |
doSaveAs()
|
void |
execute(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. |
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 edited. |
void |
init(IEditorSite site,
IEditorInput input)
|
void |
insertSections(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 java.lang.Object |
---|
equals, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
Field Detail |
---|
public static final int PROP_ERROR
Constructor Detail |
---|
public ServerEditorPart()
Method Detail |
---|
public void doSave(IProgressMonitor monitor)
org.eclipse.ui.IEditorPart#doSave(IProgressMonitor)
public void doSaveAs()
org.eclipse.ui.IEditorPart#doSaveAs()
public boolean isDirty()
org.eclipse.ui.IEditorPart#isDirty()
public boolean isSaveAsAllowed()
org.eclipse.ui.IEditorPart#isSaveAsAllowed()
public void setErrorMessage(java.lang.String error)
error
- the error messageUse forms UI based for errors via {@link org.eclipse.ui.forms.IMessageManager}
on the message form instead of this method
public void updateErrorMessage()
Use forms UI based for errors via {@link org.eclipse.ui.forms.IMessageManager}
on the message form instead of this method
public java.lang.String getErrorMessage()
Use forms UI based for errors via {@link org.eclipse.ui.forms.IMessageManager}
on the message form instead of this method
public IStatus[] getSaveStatus()
Use forms UI based for errors via {@link org.eclipse.ui.forms.IMessageManager}
on the message form instead of this method
public void init(IEditorSite site, IEditorInput input)
org.eclipse.ui.IEditorPart#init(org.eclipse.ui.IEditorSite, org.eclipse.ui.IEditorInput)
public void execute(IUndoableOperation operation)
operation
- an operation ready to be executedpublic IServerWorkingCopy getServer()
public void insertSections(Composite parent, java.lang.String id)
parent
- the composite to add the section(s) toid
- the section insertion idpublic void dispose()
|
|||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |