|
||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |
java.lang.Objectorg.jupe.plugin.JupeProject
public class JupeProject
Represents a project that uses Jupe. A Jupe project has to have a UML2 model.
In the current implementation, a project stays a Jupe project even when the last Jupe editor is closed, in order to avoid reloading of the UML2 model.
Constructor Summary | |
---|---|
JupeProject(org.eclipse.core.resources.IProject project,
ClassDiagramEditor editor)
Creates a new JupeProject. |
Method Summary | |
---|---|
void |
addEditor(ClassDiagramEditor editor)
Get a collection of all registered source entities. |
void |
exportModelSubSet(java.util.Collection<org.eclipse.core.resources.IFile> jupeFiles,
org.eclipse.emf.common.util.URI fileURI)
Exports all UML2 element contained in the given diagrams to an XMI file. |
IChangeHandler |
getFileHandler()
|
IChangeHandler |
getFolderHandler()
|
UML2ModelFactory |
getModelFactory()
|
UML2ModelFinder |
getModelFinder()
Get the model finder for this project. |
UML2ModelRoot |
getModelRoot()
Get the UML2 model modelRoot for this Jupe project. |
java.util.Set<ClassDiagram> |
getOpenedDiagrams()
Get the currently opened diagrams in all editors for this project. |
org.eclipse.core.resources.IProject |
getProject()
Get the project that is a Jupe project. |
org.eclipse.core.runtime.jobs.ISchedulingRule |
getSchedulingRule()
Creates a scheduling rule for the this project which is used for jobs which manipulate it. |
ISource |
getSource()
Get the source that is associated with that project. |
boolean |
isAutoSync()
Determines if auto synchronization is enabled. |
void |
loadUML2Model()
Loads the UML2 Model from the location defined in the preferences. |
boolean |
removeEditor(ClassDiagramEditor editor)
Removes a Jupe editor from this project. |
void |
saveUML2Model()
Saves UML2 Model to location defined in the preferences. |
void |
saveUML2Model(org.eclipse.emf.common.util.URI fileURI)
Saves the UML2 model under the given file URI. |
void |
setSource(ISource newSource)
Set the source that is associated with that project. |
Methods inherited from class java.lang.Object |
---|
equals, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
Constructor Detail |
---|
public JupeProject(org.eclipse.core.resources.IProject project, ClassDiagramEditor editor)
JupePlugin.addJupeProject(JupeProject)
afterwards.
project
- The IProject
that uses Jupe.editor
- The Jupe editor that has been created in the project, or null
if none is open right now.Method Detail |
---|
public void addEditor(ClassDiagramEditor editor)
editor
- A Jupe editor used by this project.public void exportModelSubSet(java.util.Collection<org.eclipse.core.resources.IFile> jupeFiles, org.eclipse.emf.common.util.URI fileURI)
jupeFiles
- A collection of .jupe files to export.public IChangeHandler getFileHandler()
public IChangeHandler getFolderHandler()
public UML2ModelFactory getModelFactory()
public UML2ModelFinder getModelFinder()
public UML2ModelRoot getModelRoot()
public java.util.Set<ClassDiagram> getOpenedDiagrams()
public org.eclipse.core.resources.IProject getProject()
public org.eclipse.core.runtime.jobs.ISchedulingRule getSchedulingRule()
public ISource getSource()
JavaSource
for Java projetcs,
or null if it's not defined.public boolean isAutoSync()
public void loadUML2Model()
public boolean removeEditor(ClassDiagramEditor editor)
editor
- The Jupe editor that is closed.
public void saveUML2Model()
public void saveUML2Model(org.eclipse.emf.common.util.URI fileURI)
fileURI
- Model save location.public void setSource(ISource newSource)
newSource
- The source of this project, e.g. JavaSource
for Java
projects.
|
||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |