Class WorkspaceProjectStartRequest


  • public final class WorkspaceProjectStartRequest
    extends Object
    Workspace project start request.
    • Constructor Detail

      • WorkspaceProjectStartRequest

        public WorkspaceProjectStartRequest​(org.eclipse.core.resources.IProject workspaceProject,
                                            ProjectStartType startType)
        Constructs a new instance.
        Parameters:
        workspaceProject - The workspace project to start. May not be null.
        startType - The start type. May not be null.
      • WorkspaceProjectStartRequest

        public WorkspaceProjectStartRequest​(org.eclipse.core.resources.IProject workspaceProject,
                                            ProjectStartType startType,
                                            boolean snapshotRestoration)
        Constructs a new instance.
        Parameters:
        workspaceProject - The workspace project to start. May not be null.
        startType - The start type. May not be null.
        snapshotRestoration - Whether the project start is requested after snapshot restoration.
    • Method Detail

      • getWorkspaceProject

        public org.eclipse.core.resources.IProject getWorkspaceProject()
        Gets the workspace project to start.
        Returns:
        the workspace project to start. Never null.
      • getStartType

        public ProjectStartType getStartType()
        Gets the start type.
        Returns:
        the start type. Never null.
      • getCustomProperties

        public Map<String,​Object> getCustomProperties()
        Returns the custom properties unmodifiable map.
        Returns:
        the custom properties unmodifiable map, never null
      • startAfterSnapshotRestoration

        public boolean startAfterSnapshotRestoration()
        Gets whether the project start is requested after snapshot restoration.
        Returns:
        true if the project is to be started after snapshot restoration.
      • putCustomProperty

        public void putCustomProperty​(String name,
                                      Object value)
        Adds a custom property. The custom property can be used to further affect logic during the project start process.
        Parameters:
        name - the custom property name, cannot be null
        value - the custom property value, cannot be null
      • hashCode

        public int hashCode()
        Overrides:
        hashCode in class Object