Author: svasilyev
Date: 2007-08-14 07:47:16 -0400 (Tue, 14 Aug 2007)
New Revision: 3115
Modified:
branches/jbosstools_xulrunner/vpe/plugins/org.jboss.tools.vpe.xulrunner/src/org/jboss/tools/vpe/xulrunner/browser/AppFileLocProvider.java
Log:
http://jira.jboss.org/jira/browse/EXIN-235 AppFileLocProvider was updated
Modified:
branches/jbosstools_xulrunner/vpe/plugins/org.jboss.tools.vpe.xulrunner/src/org/jboss/tools/vpe/xulrunner/browser/AppFileLocProvider.java
===================================================================
---
branches/jbosstools_xulrunner/vpe/plugins/org.jboss.tools.vpe.xulrunner/src/org/jboss/tools/vpe/xulrunner/browser/AppFileLocProvider.java 2007-08-14
11:25:12 UTC (rev 3114)
+++
branches/jbosstools_xulrunner/vpe/plugins/org.jboss.tools.vpe.xulrunner/src/org/jboss/tools/vpe/xulrunner/browser/AppFileLocProvider.java 2007-08-14
11:47:16 UTC (rev 3115)
@@ -10,11 +10,13 @@
private File xulRunnerPath;
private File userDataPath;
- private final String PLUGINS_DIRECTORY = "plugins";
- private final String HISTORY_FILE = "history.dat";
- private final String COMPREG_FILE = "compreg.dat";
- private final String XPTI_FILE = "xpti.dat";
+ private static final String PLUGINS_DIRECTORY = "plugins"; // $NON-NLS-1$
+ private static final String HISTORY_FILE = "history.dat"; // $NON-NLS-1$
+ private static final String COMPREG_FILE = "compreg.dat"; // $NON-NLS-1$
+ private static final String XPTI_FILE = "xpti.dat"; // $NON-NLS-1$
+ private static final String COMPONENTS_DIRECTORY = "components";
//$NON-NLS-1$
+
public AppFileLocProvider(File xulRunnerPath) {
this.xulRunnerPath = xulRunnerPath;
this.userDataPath = Platform.getLocation().append(".metadata/.plugins") //
$NON-NLS-1$
@@ -36,6 +38,10 @@
return new File(userDataPath, COMPREG_FILE);
} else if ("XptiRegF".equals(prop)) { // $NON-NLS-1$
return new File(userDataPath, XPTI_FILE);
+ } else if ("GreD".equals(prop)) { // $NON-NLS-1$
+ return xulRunnerPath;
+ } else if ("GreComsD".equals(prop) || "ComsD".equals(prop)) { //
$NON-NLS-1$
+ return new File(xulRunnerPath, COMPONENTS_DIRECTORY);
}
return null;