|
Rational Developer for Power Systems Software V7.6 |
|||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |
java.lang.Object com.ibm.etools.iseries.perspective.model.util.ISeriesProjectUtil
public class ISeriesProjectUtil
This is a utility class for creating and using iSeries projects.
Field Summary | |
---|---|
static String |
COPYRIGHT
|
protected static int |
nextLocationCounter
counter for generating unique random file system locations |
Constructor Summary | |
---|---|
ISeriesProjectUtil()
|
Method Summary | |
---|---|
static AbstractISeriesProject |
createISeriesProject(IProjectDescription description,
IProject projectHandle,
Properties projectProperties,
IProgressMonitor monitor)
This is a low level utility method for creating an iSeries project given the project handle and description. |
static AbstractISeriesProject |
createISeriesProject(String projectName,
Properties projectProperties,
IProgressMonitor monitor)
Creates a new iSeries project given its properties. |
static AbstractISeriesProject |
createISeriesProject(String projectName,
Properties projectProperties,
IRunnableContext context,
Shell shell)
Creates a new iSeries project given its properties. |
static String |
getAssociatedLibrary(IProject project)
|
static String |
getAssociatedSystem(IProject project)
|
static String |
getTempPath(String path)
Constructs temp directory name |
Methods inherited from class java.lang.Object |
---|
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
Field Detail |
---|
public static final String COPYRIGHT
protected static int nextLocationCounter
Constructor Detail |
---|
public ISeriesProjectUtil()
Method Detail |
---|
public static final AbstractISeriesProject createISeriesProject(String projectName, Properties projectProperties, IProgressMonitor monitor) throws SystemMessageException
The main work of this method is encapsulated in an IWorkspaceRunnable, and so all resource modifications are reported as one delta when operation succeeds.
projectName
- projectProperties
- the project properties.
SystemMessageException
- if the project cannot be created for any reason.IProject#create
,
ISeriesModelConstants
public static final AbstractISeriesProject createISeriesProject(String projectName, Properties projectProperties, IRunnableContext context, Shell shell)
This method is run as a WorkspaceModifyOperation, and so all resource modifications are reported as one delta when operation succeeds.
projectName
- projectProperties
- the project properties.
IProject#create
,
ISeriesModelConstants
public static final AbstractISeriesProject createISeriesProject(IProjectDescription description, IProject projectHandle, Properties projectProperties, IProgressMonitor monitor) throws SystemMessageException
This should be run as a WorkspaceModifyOperation
so that all resource modifications are reported as one delta when
operation succeeds.
description
- The IProjectDescription to create a project resource for.
A nature ID for an iSeries project is added if not present.projectHandle
- the project handle (IProject) to be createdmonitor
- a progress monitor, or null
if progress
reporting and cancellation are not desired.projectProperties
- the project properties.
CoreException
- if the operation fails.
OperationCanceledException
- if the operation is canceled.
SystemMessageException
IProject#create
public static String getAssociatedLibrary(IProject project)
public static String getAssociatedSystem(IProject project)
public static String getTempPath(String path)
|
Rational Developer for Power Systems Software V7.6 |
|||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |