Package org.eclipse.epsilon.picto.source
Class EglPictoSource
- java.lang.Object
-
- org.eclipse.epsilon.picto.source.EglPictoSource
-
- All Implemented Interfaces:
PictoSource
- Direct Known Subclasses:
ExternalMetadataSource
,FlexmiSource
,SimpleSource
public abstract class EglPictoSource extends Object implements PictoSource
-
-
Field Summary
Fields Modifier and Type Field Description protected Collection<IModel>
models
-
Constructor Summary
Constructors Constructor Description EglPictoSource()
-
Method Summary
All Methods Instance Methods Abstract Methods Concrete Methods Modifier and Type Method Description protected ViewTree
createEmptyViewTree()
protected Parameter
createParameter(String name, Object value)
void
dispose()
protected String
getDefaultFormat()
protected String
getDefaultIcon()
protected abstract org.eclipse.core.resources.IFile
getFile(org.eclipse.ui.IEditorPart editorPart)
org.eclipse.core.runtime.IPath
getPath(org.eclipse.ui.IEditorPart editorPart)
protected abstract Picto
getRenderingMetadata(org.eclipse.ui.IEditorPart editorPart)
protected abstract org.eclipse.emf.ecore.resource.Resource
getResource(org.eclipse.ui.IEditorPart editorPart)
Object
getValue(Parameter parameter)
ViewTree
getViewTree(org.eclipse.ui.IEditorPart editor)
protected IModel
loadModel(Model model, File baseFile)
boolean
supports(org.eclipse.ui.IEditorPart editorPart)
protected abstract boolean
supportsEditorType(org.eclipse.ui.IEditorPart editorPart)
protected org.eclipse.core.runtime.IPath
waitForPath(org.eclipse.ui.IEditorPart editorPart)
-
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
-
Methods inherited from interface org.eclipse.epsilon.picto.source.PictoSource
showElement
-
-
-
-
Field Detail
-
models
protected Collection<IModel> models
-
-
Method Detail
-
getViewTree
public ViewTree getViewTree(org.eclipse.ui.IEditorPart editor) throws Exception
- Specified by:
getViewTree
in interfacePictoSource
- Throws:
Exception
-
waitForPath
protected org.eclipse.core.runtime.IPath waitForPath(org.eclipse.ui.IEditorPart editorPart)
-
createEmptyViewTree
protected ViewTree createEmptyViewTree()
-
dispose
public void dispose()
- Specified by:
dispose
in interfacePictoSource
-
loadModel
protected IModel loadModel(Model model, File baseFile) throws Exception
- Throws:
Exception
-
getDefaultFormat
protected String getDefaultFormat()
-
getDefaultIcon
protected String getDefaultIcon()
-
supports
public boolean supports(org.eclipse.ui.IEditorPart editorPart)
- Specified by:
supports
in interfacePictoSource
-
getRenderingMetadata
protected abstract Picto getRenderingMetadata(org.eclipse.ui.IEditorPart editorPart)
-
getResource
protected abstract org.eclipse.emf.ecore.resource.Resource getResource(org.eclipse.ui.IEditorPart editorPart)
-
getPath
public org.eclipse.core.runtime.IPath getPath(org.eclipse.ui.IEditorPart editorPart)
-
getFile
protected abstract org.eclipse.core.resources.IFile getFile(org.eclipse.ui.IEditorPart editorPart)
-
supportsEditorType
protected abstract boolean supportsEditorType(org.eclipse.ui.IEditorPart editorPart)
-
-