Author: adietish
Date: 2011-01-04 11:26:56 -0500 (Tue, 04 Jan 2011)
New Revision: 27874
Modified:
trunk/deltacloud/plugins/org.jboss.tools.deltacloud.core/src/org/jboss/tools/deltacloud/core/DeltaCloudManager.java
Log:
cleanup
Modified:
trunk/deltacloud/plugins/org.jboss.tools.deltacloud.core/src/org/jboss/tools/deltacloud/core/DeltaCloudManager.java
===================================================================
---
trunk/deltacloud/plugins/org.jboss.tools.deltacloud.core/src/org/jboss/tools/deltacloud/core/DeltaCloudManager.java 2011-01-04
16:19:50 UTC (rev 27873)
+++
trunk/deltacloud/plugins/org.jboss.tools.deltacloud.core/src/org/jboss/tools/deltacloud/core/DeltaCloudManager.java 2011-01-04
16:26:56 UTC (rev 27874)
@@ -53,10 +53,9 @@
private void loadClouds() throws DeltaCloudException {
this.clouds = new ArrayList<DeltaCloud>(); // clear present clouds
DeltaCloudMultiException connectionException = new DeltaCloudMultiException("Could
not load some clouds");
- IPath stateLocation = Activator.getDefault().getStateLocation();
- File cloudFile = stateLocation.append(CLOUDFILE_NAME).toFile();
- DocumentBuilderFactory dbf = DocumentBuilderFactory.newInstance();
try {
+ File cloudFile = getOrCreateCloudFile();
+ DocumentBuilderFactory dbf = DocumentBuilderFactory.newInstance();
DocumentBuilder db = dbf.newDocumentBuilder();
if (cloudFile.exists()) {
Document d = db.parse(cloudFile);
Show replies by date