[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
Tue Sep 12 17:30:04 EDT 2006


  User: rawb    
  Date: 06/09/12 17:30:04

  Modified:    as/plugins/org.jboss.ide.eclipse.as.core/jbosscore/org/jboss/ide/eclipse/as/core/server/runtime 
                        JBossServerRuntime.java
  Log:
  Moved from server to runtime some details. 
  
  Revision  Changes    Path
  1.4       +12 -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.3
  retrieving revision 1.4
  diff -u -b -r1.3 -r1.4
  --- JBossServerRuntime.java	6 Sep 2006 19:31:37 -0000	1.3
  +++ JBossServerRuntime.java	12 Sep 2006 21:30:04 -0000	1.4
  @@ -23,17 +23,16 @@
   
   import java.lang.reflect.Constructor;
   import java.util.Hashtable;
  -import java.util.List;
   
   import org.eclipse.core.runtime.CoreException;
   import org.eclipse.core.runtime.NullProgressMonitor;
  +import org.eclipse.core.runtime.Path;
   import org.eclipse.jdt.launching.IVMInstall;
   import org.eclipse.jdt.launching.IVMInstallType;
   import org.eclipse.jdt.launching.JavaRuntime;
   import org.eclipse.wst.server.core.IRuntimeWorkingCopy;
   import org.eclipse.wst.server.core.internal.RuntimeWorkingCopy;
   import org.eclipse.wst.server.core.model.RuntimeDelegate;
  -import org.jboss.ide.eclipse.as.core.server.JBossServer;
   
   
   /**
  @@ -100,6 +99,17 @@
   		}
   	}
   	
  +	public void setLocation(String loc) {
  +		IRuntimeWorkingCopy copy = getRuntimeWorkingCopy();
  +		if( copy instanceof RuntimeWorkingCopy ) {
  +			((RuntimeWorkingCopy)copy).setLocation(new Path(loc));
  +			try {
  +				copy.save(true, new NullProgressMonitor());
  +			} catch( CoreException ce ) {
  +			}
  +		}
  +	}
  +	
   	public IVMInstall getVM() {
   		String id = getAttribute(PROPERTY_VM_ID, (String)null);
   		String type = getAttribute(PROPERTY_VM_TYPE_ID, (String)null);
  
  
  



More information about the jboss-cvs-commits mailing list