Package org.praxislive.ide.project.api
Interface ProjectProperties
- All Known Implementing Classes:
ProjectPropertiesImpl
public interface ProjectProperties
Support for querying and configuring various aspects of a PraxisCORE project,
including execution elements, libraries and runtime. An implementation of
this interface should be obtained from the project lookup.
-
Field Summary
FieldsModifier and TypeFieldDescriptionstatic final StringName of the property event fired when the list of elements changes.static final StringName of the property event fired when the Java release level changes.static final StringName of the property event fired when the list of libraries changes. -
Method Summary
Modifier and TypeMethodDescriptiondefault voidaddFile(ExecutionLevel level, org.openide.filesystems.FileObject file) Add a file execution element at the end of existing elements of the execution level.default voidaddLine(ExecutionLevel level, String line) Add a line execution element at the end of the existing elements of the execution level.voidAdd a property change listener.getElements(ExecutionLevel level) Get the execution elements for the specified execution level.default intQuery the Java release version required by the project.The list of libraries added to the project.Get the project.default booleanremoveFile(ExecutionLevel level, org.openide.filesystems.FileObject file) Remove the execution element(s) matching the specified file in the execution level.default booleanremoveLine(ExecutionLevel level, String line) Remove the line execution element(s) matching the specified script in the execution element.voidRemove a property change listener.voidsetElements(ExecutionLevel level, List<ExecutionElement> elements) Set the execution elements for the specified execution level of the project.default voidsetJavaRelease(int release) Set the Java release version required by the project.
-
Field Details
-
PROP_ELEMENTS
Name of the property event fired when the list of elements changes.- See Also:
-
PROP_LIBRARIES
Name of the property event fired when the list of libraries changes.- See Also:
-
PROP_JAVA_RELEASE
Name of the property event fired when the Java release level changes.- See Also:
-
-
Method Details
-
setElements
Set the execution elements for the specified execution level of the project.- Parameters:
level- execution levelelements- execution elements- Throws:
Exception
-
getElements
Get the execution elements for the specified execution level.- Parameters:
level- execution level- Returns:
- execution elements for level
-
getProject
PraxisProject getProject()Get the project.- Returns:
- project
-
addPropertyChangeListener
Add a property change listener.- Parameters:
listener- property change listener
-
removePropertyChangeListener
Remove a property change listener.- Parameters:
listener- property change listener
-
addFile
default void addFile(ExecutionLevel level, org.openide.filesystems.FileObject file) throws Exception Add a file execution element at the end of existing elements of the execution level.- Parameters:
level- execution levelfile- file to register- Throws:
Exception
-
removeFile
default boolean removeFile(ExecutionLevel level, org.openide.filesystems.FileObject file) throws Exception Remove the execution element(s) matching the specified file in the execution level.- Parameters:
level- execution levelfile- file to remove- Returns:
- true if the file was found and the elements updated
- Throws:
Exception
-
addLine
Add a line execution element at the end of the existing elements of the execution level.- Parameters:
level- execution levelline- line of Pcl script- Throws:
Exception
-
removeLine
Remove the line execution element(s) matching the specified script in the execution element.- Parameters:
level- execution levelline- line of Pcl script- Returns:
- true if the line was found and the list of elements updated
- Throws:
Exception
-
getLibraries
The list of libraries added to the project.- Returns:
- list of libraries
-
setJavaRelease
Set the Java release version required by the project.- Parameters:
release- java release version- Throws:
Exception
-
getJavaRelease
default int getJavaRelease()Query the Java release version required by the project.- Returns:
- java release version
-