|
|||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |
java.lang.ObjectMultiPageEditorPart
org.eclipse.weaver.editors.GlobalWeaverEditor
This class is the editor of the model weaver
Constructor Summary | |
GlobalWeaverEditor()
This creates a weaver editor |
Method Summary | |
void |
addSelectionChangedListener(ISelectionChangedListener listener)
|
AdapterFactoryEditingDomain |
createEditingDomain(ComposedAdapterFactory factory)
Creates the editing domain. |
protected void |
createPages()
Creates the page of the editor. |
void |
dispose()
The MultiPageEditorPart implementation of this
IWorkbenchPart method disposes all nested editors.
|
void |
doSave(IProgressMonitor progressMonitor)
|
void |
doSaveAs()
|
protected void |
doSaveAs(URI uri,
IEditorInput editorInput)
Saves the input (resource) with this uri |
void |
firePropertyChange(int propertyId)
|
GlobalWeaverEditorContributor |
getActionBarContributor()
Returns the action bar contribuor (for global editor part) |
IActionBars |
getActionBars()
Returns the actions bars (for global editor part) |
java.lang.Object |
getAdapter(java.lang.Class key)
|
ComposedAdapterFactory |
getAdapterFactory()
Returns the adapterFactory |
java.io.File |
getConfigFile(IFile file)
get the config file (% input editor file) |
PropertySheetPage |
getCreatePropertySheetPage()
Creates a new property sheet page |
EditingDomain |
getEditingDomain()
|
GlobalWeaverEditor |
getGlobalWeaverEditor()
Returns this instance of GlobalWeaverEditor |
WeaverModelManager |
getModelManager()
Returns the model manager |
ISelection |
getSelection()
|
IWeavingPanel |
getWeaverEditorPanel()
|
java.util.List |
getWeaverModelPanels()
|
WeaverXMLMetadata |
getXmlFile()
|
protected void |
hideTabs()
If there is just one page in the multi-page editor part, this hides the single tab at the bottom. |
void |
init(IEditorSite site,
IEditorInput editorInput)
The MultiPageEditorExample implementation of this method
checks that the input is an instance of IFileEditorInput . |
boolean |
isDirty()
|
boolean |
isSaveAsAllowed()
|
protected void |
refreshState()
Refreshs the necessary state |
void |
removeSelectionChangedListener(ISelectionChangedListener listener)
|
protected void |
saveResource()
Saves the editing domain resource (weaving model) |
void |
setFocus()
|
void |
setSelection(ISelection selection)
|
void |
updateXMLConfigFile(IFile file)
Updates the xml config file (metadata properties file) |
Methods inherited from class java.lang.Object |
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
Constructor Detail |
public GlobalWeaverEditor()
Method Detail |
protected void createPages()
protected void hideTabs()
public AdapterFactoryEditingDomain createEditingDomain(ComposedAdapterFactory factory)
factory
-
public void init(IEditorSite site, IEditorInput editorInput) throws PartInitException
MultiPageEditorExample
implementation of this method
checks that the input is an instance of IFileEditorInput
.
PartInitException
public java.io.File getConfigFile(IFile file)
file
- the editor input filepublic void updateXMLConfigFile(IFile file) throws WeaverException
file
- the config file
WeaverException
public void dispose()
MultiPageEditorPart
implementation of this
IWorkbenchPart
method disposes all nested editors.
Subclasses may extend.
public boolean isDirty()
public boolean isSaveAsAllowed()
protected void saveResource()
protected void refreshState()
public void doSave(IProgressMonitor progressMonitor)
public void doSaveAs()
protected void doSaveAs(URI uri, IEditorInput editorInput)
uri
- editorInput
- public void setFocus()
public java.lang.Object getAdapter(java.lang.Class key)
public void firePropertyChange(int propertyId)
public PropertySheetPage getCreatePropertySheetPage()
public GlobalWeaverEditor getGlobalWeaverEditor()
public GlobalWeaverEditorContributor getActionBarContributor()
public IActionBars getActionBars()
public EditingDomain getEditingDomain()
public void addSelectionChangedListener(ISelectionChangedListener listener)
public ISelection getSelection()
public void removeSelectionChangedListener(ISelectionChangedListener listener)
public void setSelection(ISelection selection)
public WeaverModelManager getModelManager()
public ComposedAdapterFactory getAdapterFactory()
public IWeavingPanel getWeaverEditorPanel()
public java.util.List getWeaverModelPanels()
public WeaverXMLMetadata getXmlFile()
|
|||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |