[jboss-cvs] jbosside/as/plugins/org.jboss.ide.eclipse.as.core/jbosscore/org/jboss/ide/eclipse/as/core/server/runtime ...

Robert Stryker rawblem at gmail.com
Wed Sep 6 15:31:37 EDT 2006


  User: rawb    
  Date: 06/09/06 15:31:37

  Modified:    as/plugins/org.jboss.ide.eclipse.as.core/jbosscore/org/jboss/ide/eclipse/as/core/server/runtime  
                        JBossServerRuntime.java
  Removed:     as/plugins/org.jboss.ide.eclipse.as.core/jbosscore/org/jboss/ide/eclipse/as/core/server/runtime  
                        JBossProjectRuntime.java
  Log:
  Moved more data from 'server' object to 'runtime' object to more closely follow the WTP assumptions. 
  
  Revision  Changes    Path
  1.3       +16 -2     jbosside/as/plugins/org.jboss.ide.eclipse.as.core/jbosscore/org/jboss/ide/eclipse/as/core/server/runtime/JBossServerRuntime.java
  
  (In the diff below, changes in quantity of whitespace are not shown.)
  
  Index: JBossServerRuntime.java
  ===================================================================
  RCS file: /cvsroot/jboss/jbosside/as/plugins/org.jboss.ide.eclipse.as.core/jbosscore/org/jboss/ide/eclipse/as/core/server/runtime/JBossServerRuntime.java,v
  retrieving revision 1.2
  retrieving revision 1.3
  diff -u -b -r1.2 -r1.3
  --- JBossServerRuntime.java	26 Aug 2006 02:33:20 -0000	1.2
  +++ JBossServerRuntime.java	6 Sep 2006 19:31:37 -0000	1.3
  @@ -49,6 +49,7 @@
   	public  static String PROPERTY_VM_ID = "PROPERTY_VM_ID";
   	public  static String PROPERTY_VM_TYPE_ID = "PROPERTY_VM_TYPE_ID";
   	
  +	public static String PROPERTY_CONFIGURATION_NAME = "PROPERTY_CONFIG_NAME_";
   	
   	
   	private static Hashtable versionDelegates;
  @@ -71,7 +72,20 @@
   	}
   	
   	
  +	public void setConfigName(String config) {
  +		IRuntimeWorkingCopy copy = getRuntimeWorkingCopy();
  +		if( copy instanceof RuntimeWorkingCopy ) {
  +			((RuntimeWorkingCopy)copy).setAttribute(PROPERTY_CONFIGURATION_NAME, config);
  +			try {
  +				copy.save(true, new NullProgressMonitor());
  +			} catch( CoreException ce ) {
  +			}
  +		}
  +	}
   	
  +	public String getConfigName() {
  +		return getAttribute(PROPERTY_CONFIGURATION_NAME, (String)"");
  +	}
   	
   	public void setVMInstall(IVMInstall selectedVM) {
   		IRuntimeWorkingCopy copy = getRuntimeWorkingCopy();
  
  
  



More information about the jboss-cvs-commits mailing list