Oracle Fusion Middleware Java API Reference for Oracle Extension SDK
11g Release 2 (11.1.2.1.0)

E17493-02

oracle.jdeveloper.runner
Class RunConfigurations

java.lang.Object
  extended by oracle.javatools.data.HashStructureAdapter
      extended by oracle.jdeveloper.runner.RunConfigurations

public class RunConfigurations
extends HashStructureAdapter

Manages the set of RunConfiguration objects for the workspace


Field Summary
static java.lang.String DATA_KEY
           
static java.lang.String RUN_CONFIGURATION_ACTIVE_NAME
           
static java.lang.String RUN_CONFIGURATION_DEFINITIONS
           
static java.lang.String RUN_CONFIGURATION_LIST
           
static java.lang.String RUN_CONFIGURATION_NAME
           
 
Fields inherited from class oracle.javatools.data.HashStructureAdapter
_hash
 
Constructor Summary
RunConfigurations(HashStructure hash)
           
 
Method Summary
static void addRunConfiguration(Project project, RunConfiguration runConfiguration)
          Add a RunConfiguration to the collection of defined configurations for the project
static java.lang.String getActiveName(Project project)
          Returns the active name.
static RunConfiguration getActiveRunConfiguration(Project project)
          Returns the currently active RunConfiguration for the supplied project
 java.util.Map getDefinedRunConfigurations()
          Return a Map of all run configurations.
static RunConfigurations getInstance(PropertyStorage propertyStorage)
          Return the singleton instance, constructing it if necessary
static RunConfiguration getRunConfigurationByName(Project project, java.lang.String name)
          Returns the named runconfiguration for the supplied project.
 RunConfiguration[] getVisibleRunConfigurations()
          Return an array of visible RunConfiguration objects.
static boolean isActiveRunConfiguration(Project project, RunConfiguration runConfiguration)
          Returns whether the supplied RunConfiguration is the currently active RunConfiguration for the supplied project.
static void setActiveRunConfiguration(Project project, RunConfiguration runConfiguration)
          Sets the supplied RunConfiguration to be the active RunConfiguration fot the supplied project
 void setRunConfigurations(RunConfiguration[] runConfigs, boolean editingCustomProperties)
          Set the contents of the run configurations HashStructure from the provided array
 
Methods inherited from class oracle.javatools.data.HashStructureAdapter
addStructureChangeListener, containsKey, copyTo, copyToImpl, equals, equalsImpl, findOrCreate, forcedCopyTo, getHashStructure, removeStructureChangeListener, useObjectEquals
 
Methods inherited from class java.lang.Object
clone, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Field Detail

DATA_KEY

public static final java.lang.String DATA_KEY
See Also:
Constant Field Values

RUN_CONFIGURATION_LIST

public static final java.lang.String RUN_CONFIGURATION_LIST
See Also:
Constant Field Values

RUN_CONFIGURATION_DEFINITIONS

public static final java.lang.String RUN_CONFIGURATION_DEFINITIONS
See Also:
Constant Field Values

RUN_CONFIGURATION_NAME

public static final java.lang.String RUN_CONFIGURATION_NAME
See Also:
Constant Field Values

RUN_CONFIGURATION_ACTIVE_NAME

public static final java.lang.String RUN_CONFIGURATION_ACTIVE_NAME
See Also:
Constant Field Values
Constructor Detail

RunConfigurations

public RunConfigurations(HashStructure hash)
Method Detail

getInstance

public static RunConfigurations getInstance(PropertyStorage propertyStorage)
Return the singleton instance, constructing it if necessary


addRunConfiguration

public static void addRunConfiguration(Project project,
                                       RunConfiguration runConfiguration)
Add a RunConfiguration to the collection of defined configurations for the project


getActiveName

public static java.lang.String getActiveName(Project project)
Returns the active name.


getDefinedRunConfigurations

public java.util.Map getDefinedRunConfigurations()
Return a Map of all run configurations. Map key is name (type String) Map value is RunConfiguration


getVisibleRunConfigurations

public RunConfiguration[] getVisibleRunConfigurations()
Return an array of visible RunConfiguration objects.


setRunConfigurations

public void setRunConfigurations(RunConfiguration[] runConfigs,
                                 boolean editingCustomProperties)
Set the contents of the run configurations HashStructure from the provided array


isActiveRunConfiguration

public static boolean isActiveRunConfiguration(Project project,
                                               RunConfiguration runConfiguration)
Returns whether the supplied RunConfiguration is the currently active RunConfiguration for the supplied project.


setActiveRunConfiguration

public static void setActiveRunConfiguration(Project project,
                                             RunConfiguration runConfiguration)
Sets the supplied RunConfiguration to be the active RunConfiguration fot the supplied project


getRunConfigurationByName

public static RunConfiguration getRunConfigurationByName(Project project,
                                                         java.lang.String name)
Returns the named runconfiguration for the supplied project. Returns null if the named RunConfiguration does not exist within the project.


getActiveRunConfiguration

public static RunConfiguration getActiveRunConfiguration(Project project)
Returns the currently active RunConfiguration for the supplied project


Oracle Fusion Middleware Java API Reference for Oracle Extension SDK
11g Release 2 (11.1.2.1.0)

E17493-02

Copyright © 1997, 2011, Oracle. All rights reserved.