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

Robert Stryker rawblem at gmail.com
Tue Nov 14 14:30:41 EST 2006


  User: rawb    
  Date: 06/11/14 14:30:41

  Modified:    as/plugins/org.jboss.ide.eclipse.as.core/jbosscore/org/jboss/ide/eclipse/as/core/model 
                        DescriptorModel.java
  Log:
  made it actually work instead of sit disconnected and broken. 
  
  Revision  Changes    Path
  1.9       +8 -13     jbosside/as/plugins/org.jboss.ide.eclipse.as.core/jbosscore/org/jboss/ide/eclipse/as/core/model/DescriptorModel.java
  
  (In the diff below, changes in quantity of whitespace are not shown.)
  
  Index: DescriptorModel.java
  ===================================================================
  RCS file: /cvsroot/jboss/jbosside/as/plugins/org.jboss.ide.eclipse.as.core/jbosscore/org/jboss/ide/eclipse/as/core/model/DescriptorModel.java,v
  retrieving revision 1.8
  retrieving revision 1.9
  diff -u -b -r1.8 -r1.9
  --- DescriptorModel.java	10 Nov 2006 00:26:25 -0000	1.8
  +++ DescriptorModel.java	14 Nov 2006 19:30:41 -0000	1.9
  @@ -66,34 +66,29 @@
   		map = new HashMap();
   	}
   
  -	public ServerDescriptorModel getServerModel(IPath home, IPath configName) {
  -		String key = home.toOSString() + "::" + configName.toOSString();
  +	public ServerDescriptorModel getServerModel(IPath configPath) {
  +		String key = configPath.toOSString();
   		Object o = map.get(key);
   		if( o == null ) {
  -			o = createEntity(home, configName);
  +			o = createEntity(configPath);
   		}
   		return (ServerDescriptorModel)o;
   	}
   	
  -	private ServerDescriptorModel createEntity(IPath home, IPath configName) {
  -		ServerDescriptorModel val = new ServerDescriptorModel(home.toOSString(), configName.toOSString());
  -		map.put(home.toOSString() + configName.toOSString(), val);
  +	private ServerDescriptorModel createEntity(IPath configPath) {
  +		ServerDescriptorModel val = new ServerDescriptorModel(configPath.toOSString());
  +		map.put(configPath.toOSString(), val);
   		return val;
   	}
   
   	public static class ServerDescriptorModel {
  -		private String home, config, key;
   		private String configPath;
   		
   		private HashMap pathToDocument;
   		private HashMap pathToLastRead;
   		
  -		public ServerDescriptorModel(String home, String config) {
  -			this.key = home + "::" + config;
  -			this.home = home;
  -			this.config = config;
  -			configPath = + Path.SEPARATOR + "server" + Path.SEPARATOR + config;
  -			
  +		public ServerDescriptorModel(String configPath) {
  +			this.configPath = configPath;
   			pathToDocument = new HashMap();
   			pathToLastRead = new HashMap();
   		}
  
  
  



More information about the jboss-cvs-commits mailing list