org.wsmostudio.ui.editors
Class WSMOEditor
java.lang.Object
org.eclipse.ui.part.WorkbenchPart
org.eclipse.ui.part.EditorPart
org.wsmostudio.ui.editors.WSMOEditor
- All Implemented Interfaces:
- java.util.Observer, org.eclipse.core.runtime.IAdaptable, org.eclipse.core.runtime.IExecutableExtension, org.eclipse.jface.viewers.ISelectionProvider, org.eclipse.ui.IEditorPart, org.eclipse.ui.ISaveablePart, org.eclipse.ui.IWorkbenchPart, org.eclipse.ui.IWorkbenchPart2, org.eclipse.ui.part.IWorkbenchPartOrientation
- Direct Known Subclasses:
- AxiomEditor, CapabilityEditor, ConceptEditor, InstanceEditor, InterfaceEditor, MediatorEditor, OntologyEditor, RelationEditor, RelationInstanceEditor, ServiceDescriptionEditor
public abstract class WSMOEditor
- extends org.eclipse.ui.part.EditorPart
- implements org.eclipse.core.runtime.IAdaptable, org.eclipse.jface.viewers.ISelectionProvider, java.util.Observer
An abstract editor component intended to be subclassed by editors capable
to handle with different WSMO-API objects.
This implementation supports a common functionality of most WSMO object
editors. It also outlines some desired subclass functionality like
validation and saving specific inputs.
- Version:
- $Revision: 1.19 $ $Date: 2006/01/09 12:51:13 $
- Author:
- not attributable
| Fields inherited from interface org.eclipse.ui.IEditorPart |
PROP_DIRTY, PROP_INPUT |
| Fields inherited from interface org.eclipse.ui.IWorkbenchPart |
PROP_TITLE |
| Methods inherited from class org.eclipse.ui.part.EditorPart |
checkSite, getEditorInput, getEditorSite, getTitleToolTip, isSaveOnCloseNeeded, setContentDescription, setInitializationData, setInput, setPartName |
| Methods inherited from class org.eclipse.ui.part.WorkbenchPart |
addPropertyListener, createPartControl, firePropertyChange, getConfigurationElement, getContentDescription, getDefaultImage, getOrientation, getPartName, getSite, getTitle, getTitleImage, removePropertyListener, setSite, setTitle, setTitleImage, setTitleToolTip, showBusy |
| Methods inherited from class java.lang.Object |
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
| Methods inherited from interface org.eclipse.ui.IWorkbenchPart |
addPropertyListener, createPartControl, getSite, getTitle, getTitleImage, removePropertyListener |
AXIOM_EDITOR_ID
public static final java.lang.String AXIOM_EDITOR_ID
- See Also:
- Constant Field Values
REL_EDITOR_ID
public static final java.lang.String REL_EDITOR_ID
- See Also:
- Constant Field Values
CONCEPT_EDITOR_ID
public static final java.lang.String CONCEPT_EDITOR_ID
- See Also:
- Constant Field Values
INSTANCE_EDITOR_ID
public static final java.lang.String INSTANCE_EDITOR_ID
- See Also:
- Constant Field Values
REL_INSTANCE_EDITOR_ID
public static final java.lang.String REL_INSTANCE_EDITOR_ID
- See Also:
- Constant Field Values
ONTOLOGY_EDITOR_ID
public static final java.lang.String ONTOLOGY_EDITOR_ID
- See Also:
- Constant Field Values
CAPABILITY_EDITOR_ID
public static final java.lang.String CAPABILITY_EDITOR_ID
- See Also:
- Constant Field Values
WEBSERVICE_EDITOR_ID
public static final java.lang.String WEBSERVICE_EDITOR_ID
- See Also:
- Constant Field Values
INTERFACE_EDITOR_ID
public static final java.lang.String INTERFACE_EDITOR_ID
- See Also:
- Constant Field Values
MEDIATOR_EDITOR_ID
public static final java.lang.String MEDIATOR_EDITOR_ID
- See Also:
- Constant Field Values
GOAL_EDITOR_ID
public static final java.lang.String GOAL_EDITOR_ID
- See Also:
- Constant Field Values
props
protected WSMOPropertiesSource props
WSMOEditor
public WSMOEditor()
init
public void init(org.eclipse.ui.IEditorSite site,
org.eclipse.ui.IEditorInput input)
throws org.eclipse.ui.PartInitException
- Specified by:
init in interface org.eclipse.ui.IEditorPart- Specified by:
init in class org.eclipse.ui.part.EditorPart
- Throws:
org.eclipse.ui.PartInitException
doSave
public void doSave(org.eclipse.core.runtime.IProgressMonitor monitor)
- Specified by:
doSave in interface org.eclipse.ui.ISaveablePart- Specified by:
doSave in class org.eclipse.ui.part.EditorPart
doSaveAs
public void doSaveAs()
- Specified by:
doSaveAs in interface org.eclipse.ui.ISaveablePart- Specified by:
doSaveAs in class org.eclipse.ui.part.EditorPart
isDirty
public boolean isDirty()
- Specified by:
isDirty in interface org.eclipse.ui.ISaveablePart- Specified by:
isDirty in class org.eclipse.ui.part.EditorPart
update
public void update(java.util.Observable o,
java.lang.Object arg)
- Specified by:
update in interface java.util.Observer
setFocus
public void setFocus()
- Specified by:
setFocus in interface org.eclipse.ui.IWorkbenchPart- Specified by:
setFocus in class org.eclipse.ui.part.WorkbenchPart
updateFromModel
protected abstract void updateFromModel()
isSaveAsAllowed
public boolean isSaveAsAllowed()
- Specified by:
isSaveAsAllowed in interface org.eclipse.ui.ISaveablePart- Specified by:
isSaveAsAllowed in class org.eclipse.ui.part.EditorPart
dispose
public void dispose()
- Specified by:
dispose in interface org.eclipse.ui.IWorkbenchPart- Overrides:
dispose in class org.eclipse.ui.part.WorkbenchPart
getAdapter
public java.lang.Object getAdapter(java.lang.Class adapter)
- Specified by:
getAdapter in interface org.eclipse.core.runtime.IAdaptable- Overrides:
getAdapter in class org.eclipse.ui.part.WorkbenchPart
addSelectionChangedListener
public void addSelectionChangedListener(org.eclipse.jface.viewers.ISelectionChangedListener listener)
- Specified by:
addSelectionChangedListener in interface org.eclipse.jface.viewers.ISelectionProvider
getSelection
public org.eclipse.jface.viewers.ISelection getSelection()
- Specified by:
getSelection in interface org.eclipse.jface.viewers.ISelectionProvider
removeSelectionChangedListener
public void removeSelectionChangedListener(org.eclipse.jface.viewers.ISelectionChangedListener listener)
- Specified by:
removeSelectionChangedListener in interface org.eclipse.jface.viewers.ISelectionProvider
setSelection
public void setSelection(org.eclipse.jface.viewers.ISelection selection)
- Specified by:
setSelection in interface org.eclipse.jface.viewers.ISelectionProvider
notifyDirty
public void notifyDirty()
initWorkbenchActions
protected void initWorkbenchActions()
doTryToSave
protected abstract void doTryToSave()
throws java.lang.Exception
- Throws:
java.lang.Exception
Copyright © 2005-2006 Ontotext Lab.. All Rights Reserved.