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 Details

    • PROP_ELEMENTS

      static final String PROP_ELEMENTS
      Name of the property event fired when the list of elements changes.
      See Also:
    • PROP_LIBRARIES

      static final String PROP_LIBRARIES
      Name of the property event fired when the list of libraries changes.
      See Also:
    • PROP_JAVA_RELEASE

      static final String PROP_JAVA_RELEASE
      Name of the property event fired when the Java release level changes.
      See Also:
  • Method Details

    • setElements

      void setElements(ExecutionLevel level, List<ExecutionElement> elements) throws Exception
      Set the execution elements for the specified execution level of the project.
      Parameters:
      level - execution level
      elements - execution elements
      Throws:
      Exception
    • getElements

      List<ExecutionElement> getElements(ExecutionLevel level)
      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

      void addPropertyChangeListener(PropertyChangeListener listener)
      Add a property change listener.
      Parameters:
      listener - property change listener
    • removePropertyChangeListener

      void removePropertyChangeListener(PropertyChangeListener listener)
      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 level
      file - 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 level
      file - file to remove
      Returns:
      true if the file was found and the elements updated
      Throws:
      Exception
    • addLine

      default void addLine(ExecutionLevel level, String line) throws Exception
      Add a line execution element at the end of the existing elements of the execution level.
      Parameters:
      level - execution level
      line - line of Pcl script
      Throws:
      Exception
    • removeLine

      default boolean removeLine(ExecutionLevel level, String line) throws Exception
      Remove the line execution element(s) matching the specified script in the execution element.
      Parameters:
      level - execution level
      line - line of Pcl script
      Returns:
      true if the line was found and the list of elements updated
      Throws:
      Exception
    • getLibraries

      default List<URI> getLibraries()
      The list of libraries added to the project.
      Returns:
      list of libraries
    • setJavaRelease

      default void setJavaRelease(int release) throws Exception
      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