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 java.lang.Object implements PictoSource
-
-
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(java.lang.String name, java.lang.Object value)
void
dispose()
protected java.lang.String
getDefaultFormat()
protected java.lang.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)
java.lang.Object
getValue(Parameter parameter)
ViewTree
getViewTree(org.eclipse.ui.IEditorPart editor)
protected IModel
loadModel(Model model, java.io.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 java.util.Collection<IModel> models
-
-
Method Detail
-
getViewTree
public ViewTree getViewTree(org.eclipse.ui.IEditorPart editor) throws java.lang.Exception
- Specified by:
getViewTree
in interfacePictoSource
- Throws:
java.lang.Exception
-
createParameter
protected Parameter createParameter(java.lang.String name, java.lang.Object value)
-
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, java.io.File baseFile) throws java.lang.Exception
- Throws:
java.lang.Exception
-
getDefaultFormat
protected java.lang.String getDefaultFormat()
-
getDefaultIcon
protected java.lang.String getDefaultIcon()
-
supports
public boolean supports(org.eclipse.ui.IEditorPart editorPart)
- Specified by:
supports
in interfacePictoSource
-
getValue
public java.lang.Object getValue(Parameter parameter)
-
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)
-
-