getDataObjectContextForDocument(DesignDocument document) Returns a DataObjectContext for a specific document.
It founds a context only for those documents that are active and currently assigned to the context.
There is only one active document per each context.
public static Project
getProject(String projectID) Returns a project instance for a project id.
Returns a DataObjectContext for a specific document.
It founds a context only for those documents that are active and currently assigned to the context.
There is only one active document per each context. Documents, that are loading process, are not claimed at active.
Parameters: document - the document the context; null if no context found
getProject
public static Project getProject(String projectID)(Code)
Returns a project instance for a project id.
Parameters: projectID - the project id the project; null if not exists throws: RuntimeException - when project id has invalid format
Returns a project instance for a context.
Parameters: context - the context the project throws: NullPointerException - when the context parameter is null
Returns a project instance for a data object.
Parameters: document - the document the project throws: NullPointerException - when the DesignDocument parameter is null
getProjectID
public static String getProjectID(Project project)(Code)
Returns a project id for a project.
Parameters: project - the project the project id throws: NullPointerException - when the project parameter is null
getSourceEditorViewDisplayName
public static String getSourceEditorViewDisplayName()(Code)
Returns a display name for source editor views
the display name
Returns a list of SourceGroups for a specific data object context.
Parameters: context - the data object context the list of SourceGroups See Also: org.netbeans.api.project.SourceGroup
getSourceGroups
public static List<SourceGroup> getSourceGroups(String projectID)(Code)
Returns a list of SourceGroups for a specific projectID.
Parameters: projectID - the ID of prject the list of SourceGroups See Also: org.netbeans.api.project.SourceGroup