public class ProjectManager extends BaseWeakReferencingObservable
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 ProjectWindow getCurrentProjectWindow()
public List<DocumentManager> getDocumentManager()
getDocumentManagers()
instead.public List<DocumentManager> getDocumentManagers()
public DocumentManager getDocumentManagers(String type)
getDocumentManager(String)
instead.public DocumentManager getDocumentManager(String type)
public Document createDocumentByUser(String type)
createDocumentsByUser(String)
insteadpublic Iterator<? extends Document> createDocumentsByUser(String type)
type
- the type of documents to createpublic Project createProject()
public ProjectExtent createExtent()
public void registerDocumentFactory(DocumentManager documentManager)
public void registerDocumentFactoryAlias(String typeName, String alias)
public void registerDocumentAction(String typeName, DocumentAction action)
public List<DocumentAction> getDocumentActions(String doctype)
doctype
- public DocumentActionGroup addDocumentActionGroup(String id, String title, String description, int order)
unique
- identifier for the actiontitle
- description
- order
- public ProjectPreferences getProjectPreferences()