public class ProjectManager extends BaseWeakReferencingObservable
Modifier and Type | Class and Description |
---|---|
static interface |
ProjectManager.ProjectEvent |
static class |
ProjectManager.ProjectEventImpl |
addObserver, addObserver, addObservers, beginComplexNotification, clearChanged, clone, countObservers, deleteObserver, deleteObserver, deleteObservers, disableNotifications, enableNotifications, endComplexNotification, hasChanged, inComplex, isEnabledNotifications, notify, notifyObservers, notifyObservers, setChanged
public static ProjectManager getInstance()
public Project getCurrentProject()
public void setCurrentProject(Project project)
public ProjectWindow getCurrentProjectWindow()
public java.util.List<DocumentManager> getDocumentManager()
getDocumentManagers()
instead.public java.util.List<DocumentManager> getDocumentManagers()
public DocumentManager getDocumentManagers(java.lang.String type)
getDocumentManager(String)
instead.public DocumentManager getDocumentManager(java.lang.String type)
public Document createDocument(java.lang.String type)
public Document createDocument(java.lang.String type, java.lang.String name)
public Document createDocumentByUser(java.lang.String type)
createDocumentsByUser(String)
insteadpublic java.util.Iterator<? extends Document> createDocumentsByUser(java.lang.String type)
type
- the type of documents to createpublic java.util.Iterator<? extends Document> createDocumentsByUser(java.lang.String type, Invocable whenDocumentsLoadeds)
public Project createProject()
public ProjectExtent createExtent()
public void registerDocumentFactory(DocumentManager documentManager)
public void registerDocumentFactoryAlias(java.lang.String typeName, java.lang.String alias)
public void registerDocumentAction(java.lang.String typeName, DocumentAction action)
public java.util.List<DocumentAction> getDocumentActions(java.lang.String doctype)
doctype
- public DocumentActionGroup addDocumentActionGroup(java.lang.String id, java.lang.String title, java.lang.String description, int order)
unique
- identifier for the actiontitle
- description
- order
- public ProjectPreferences getProjectPreferences()
public void addProjectListener(BaseListenerSupport.NotificationListener listener)
public BaseListenerSupport.NotificationListener[] getProjectListeners()
public boolean hasProjectListeners()
public void removeProjectListener(BaseListenerSupport.NotificationListener listener)
public void removeAllProjectListener()
public void notifyProjectEvent(ProjectManager.ProjectEvent event)