Author: scabanovich
Date: 2007-10-25 07:29:16 -0400 (Thu, 25 Oct 2007)
New Revision: 4505
Modified:
trunk/common/plugins/org.jboss.tools.common.model/src/org/jboss/tools/common/model/filesystems/FileSystemsHelper.java
Log:
JBIDE-1182
Modified:
trunk/common/plugins/org.jboss.tools.common.model/src/org/jboss/tools/common/model/filesystems/FileSystemsHelper.java
===================================================================
---
trunk/common/plugins/org.jboss.tools.common.model/src/org/jboss/tools/common/model/filesystems/FileSystemsHelper.java 2007-10-25
11:04:52 UTC (rev 4504)
+++
trunk/common/plugins/org.jboss.tools.common.model/src/org/jboss/tools/common/model/filesystems/FileSystemsHelper.java 2007-10-25
11:29:16 UTC (rev 4505)
@@ -13,21 +13,22 @@
import org.jboss.tools.common.model.*;
public class FileSystemsHelper {
+ public static final String FILE_SYSTEMS = "FileSystems";
public static XModelObject getFileSystems(XModel model) {
- return model.getByPath("FileSystems");
+ return model.getByPath(FILE_SYSTEMS);
}
public static XModelObject getFileSystem(XModel model, String name) {
- return model.getByPath("FileSystems/" + name);
+ return model.getByPath(FILE_SYSTEMS + "/" + name);
}
public static XModelObject getWebRoot(XModel model) {
- return model.getByPath("FileSystems/WEB-ROOT");
+ return model.getByPath(FILE_SYSTEMS + "/WEB-ROOT");
}
public static XModelObject getWebInf(XModel model) {
- return model.getByPath("FileSystems/WEB-INF");
+ return model.getByPath(FILE_SYSTEMS + "/WEB-INF");
}
}
Show replies by date