com.ibm.ftt.projects.zos.zosnature
Class RuntimeNature

java.lang.Object
  extended by com.ibm.ftt.projects.zos.zosnature.RuntimeNature
All Implemented Interfaces:
ILogicalSubProjectNature
Direct Known Subclasses:
BatchRuntimeNature, CICSRuntimeNature, IMSRuntimeNature

public class RuntimeNature
extends Object
implements ILogicalSubProjectNature

An RDz nature to be associated with zOS subprojects indicating that they are associated with a runtime such as CICS, IMS or Batch.


Field Summary
static String BATCH_RUNTIME_NATURE_ID
           
static String BATCH_RUNTIME_NATURE_NAME
           
static String CICS_RUNTIME_NATURE_ID
           
static String CICS_RUNTIME_NATURE_NAME
           
static String COPY_RIGHT
           
static String IMS_RUNTIME_NATURE_ID
           
static String IMS_RUNTIME_NATURE_NAME
           
 
Constructor Summary
RuntimeNature()
           
 
Method Summary
static void addRuntimeNature(ILogicalSubProject subProject, String runtimeName)
          Add the specified runtime nature to the specified subproject.
static void clearRuntimeNature(ILogicalSubProject subProject)
          Clear out any existing runtime nature from the target subproject.
 void configure()
          Configures this nature for its subproject by adding build commands.
 void deconfigure()
          Unconfigures this nature for its subproject by removing build commands.
static String getCurrentRuntimeID(ILogicalSubProject subProject)
          Get the ID of the runtime nature currently associated with the parent subproject
static String getCurrentRuntimeName(ILogicalSubProject subProject)
          Get the name of the runtime nature currently associated with the parent subproject
 ILogicalSubProject getSubProject()
          Returns the subproject associated with this nature
 void setSubProject(ILogicalSubProject subProject)
          Establishes the subproject associated with this nature
 
Methods inherited from class java.lang.Object
equals, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Field Detail

COPY_RIGHT

public static final String COPY_RIGHT
See Also:
Constant Field Values

BATCH_RUNTIME_NATURE_ID

public static String BATCH_RUNTIME_NATURE_ID

CICS_RUNTIME_NATURE_ID

public static String CICS_RUNTIME_NATURE_ID

IMS_RUNTIME_NATURE_ID

public static String IMS_RUNTIME_NATURE_ID

BATCH_RUNTIME_NATURE_NAME

public static String BATCH_RUNTIME_NATURE_NAME

CICS_RUNTIME_NATURE_NAME

public static String CICS_RUNTIME_NATURE_NAME

IMS_RUNTIME_NATURE_NAME

public static String IMS_RUNTIME_NATURE_NAME
Constructor Detail

RuntimeNature

public RuntimeNature()
Method Detail

addRuntimeNature

public static void addRuntimeNature(ILogicalSubProject subProject,
                                    String runtimeName)
Add the specified runtime nature to the specified subproject. Note that a subproject can only have 0 or 1 runtime natures

Parameters:
subProject -
runtimeName -

clearRuntimeNature

public static void clearRuntimeNature(ILogicalSubProject subProject)
Clear out any existing runtime nature from the target subproject. Note that a subproject can only have 0 or 1 runtime natures

Parameters:
subProject -

configure

public void configure()
               throws CoreException
Configures this nature for its subproject by adding build commands.

Specified by:
configure in interface ILogicalSubProjectNature
Throws:
CoreException - if this method fails.

deconfigure

public void deconfigure()
                 throws CoreException
Unconfigures this nature for its subproject by removing build commands.

Specified by:
deconfigure in interface ILogicalSubProjectNature
Throws:
CoreException - if this method fails.

getCurrentRuntimeID

public static String getCurrentRuntimeID(ILogicalSubProject subProject)
Get the ID of the runtime nature currently associated with the parent subproject

Returns:
selected runtime ID

getCurrentRuntimeName

public static String getCurrentRuntimeName(ILogicalSubProject subProject)
Get the name of the runtime nature currently associated with the parent subproject

Returns:
selected runtime name

getSubProject

public ILogicalSubProject getSubProject()
Returns the subproject associated with this nature

Specified by:
getSubProject in interface ILogicalSubProjectNature
Returns:
the ILogicalSubProject associated with this nature

setSubProject

public void setSubProject(ILogicalSubProject subProject)
Establishes the subproject associated with this nature

Specified by:
setSubProject in interface ILogicalSubProjectNature
Parameters:
subProject - the ILogicalSubProject associated with this nature