Package com._1c.g5.v8.dt.core.lifecycle
Class WorkspaceProjectStartRequest
- java.lang.Object
-
- com._1c.g5.v8.dt.core.lifecycle.WorkspaceProjectStartRequest
-
public final class WorkspaceProjectStartRequest extends Object
Workspace project start request.
-
-
Constructor Summary
Constructors Constructor Description WorkspaceProjectStartRequest(org.eclipse.core.resources.IProject workspaceProject, ProjectStartType startType)
Constructs a new instance.WorkspaceProjectStartRequest(org.eclipse.core.resources.IProject workspaceProject, ProjectStartType startType, boolean snapshotRestoration)
Constructs a new instance.
-
Method Summary
All Methods Instance Methods Concrete Methods Modifier and Type Method Description boolean
equals(Object obj)
Map<String,Object>
getCustomProperties()
Returns the custom properties unmodifiable map.ProjectStartType
getStartType()
Gets the start type.org.eclipse.core.resources.IProject
getWorkspaceProject()
Gets the workspace project to start.int
hashCode()
void
putCustomProperty(String name, Object value)
Adds a custom property.boolean
startAfterSnapshotRestoration()
Gets whether the project start is requested after snapshot restoration.String
toString()
-
-
-
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 benull
.startType
- The start type. May not benull
.
-
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 benull
.startType
- The start type. May not benull
.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 benull
value
- the custom property value, cannot benull
-
-