JBoss Tools SVN: r27378 - in trunk: maven/features/org.jboss.tools.maven.portlet.feature and 1 other directory.
by jbosstools-commits@lists.jboss.org
Author: snjeza
Date: 2010-12-11 06:54:48 -0500 (Sat, 11 Dec 2010)
New Revision: 27378
Modified:
trunk/examples/features/org.jboss.tools.project.examples.feature/feature.xml
trunk/maven/features/org.jboss.tools.maven.portlet.feature/feature.properties
Log:
JBIDE-6214 Support project example with no Eclipse metadata, only pom.xml, in zip
Modified: trunk/examples/features/org.jboss.tools.project.examples.feature/feature.xml
===================================================================
--- trunk/examples/features/org.jboss.tools.project.examples.feature/feature.xml 2010-12-11 11:49:35 UTC (rev 27377)
+++ trunk/examples/features/org.jboss.tools.project.examples.feature/feature.xml 2010-12-11 11:54:48 UTC (rev 27378)
@@ -2,7 +2,7 @@
<feature
id="org.jboss.tools.project.examples.feature"
label="%featureName"
- version="1.1.0.qualifier"
+ version="1.2.0.qualifier"
provider-name="%providerName"
plugin="org.jboss.tools.project.examples">
Modified: trunk/maven/features/org.jboss.tools.maven.portlet.feature/feature.properties
===================================================================
--- trunk/maven/features/org.jboss.tools.maven.portlet.feature/feature.properties 2010-12-11 11:49:35 UTC (rev 27377)
+++ trunk/maven/features/org.jboss.tools.maven.portlet.feature/feature.properties 2010-12-11 11:54:48 UTC (rev 27378)
@@ -24,7 +24,7 @@
updateSiteName=JBossTools Update Site
# "description" property - description of the feature
-description=JBoss Maven Seam Integration
+description=JBoss Maven Portlet Integration
# "copyright" property - text of the "Feature Update Copyright"
copyright=Copyright (c) 2010 JBoss by Red Hat and others.\n\
14 years
JBoss Tools SVN: r27377 - trunk/maven/features.
by jbosstools-commits@lists.jboss.org
Author: snjeza
Date: 2010-12-11 06:49:35 -0500 (Sat, 11 Dec 2010)
New Revision: 27377
Added:
trunk/maven/features/org.jboss.tools.maven.project.examples.feature/
Log:
Initial import.
14 years
JBoss Tools SVN: r27376 - trunk/maven/plugins.
by jbosstools-commits@lists.jboss.org
Author: snjeza
Date: 2010-12-11 06:48:23 -0500 (Sat, 11 Dec 2010)
New Revision: 27376
Added:
trunk/maven/plugins/org.jboss.tools.maven.project.examples/
Log:
Initial import.
14 years
JBoss Tools SVN: r27375 - workspace/snjeza/weld-examples.
by jbosstools-commits@lists.jboss.org
Author: snjeza
Date: 2010-12-11 06:46:14 -0500 (Sat, 11 Dec 2010)
New Revision: 27375
Added:
workspace/snjeza/weld-examples/.project
workspace/snjeza/weld-examples/weld-jsf-login-1.0.1-examples.zip
Log:
JBIDE-6214 Support project example with no Eclipse metadata, only pom.xml, in zip
Added: workspace/snjeza/weld-examples/.project
===================================================================
--- workspace/snjeza/weld-examples/.project (rev 0)
+++ workspace/snjeza/weld-examples/.project 2010-12-11 11:46:14 UTC (rev 27375)
@@ -0,0 +1,11 @@
+<?xml version="1.0" encoding="UTF-8"?>
+<projectDescription>
+ <name>weld-examples</name>
+ <comment></comment>
+ <projects>
+ </projects>
+ <buildSpec>
+ </buildSpec>
+ <natures>
+ </natures>
+</projectDescription>
Added: workspace/snjeza/weld-examples/weld-jsf-login-1.0.1-examples.zip
===================================================================
(Binary files differ)
Property changes on: workspace/snjeza/weld-examples/weld-jsf-login-1.0.1-examples.zip
___________________________________________________________________
Name: svn:mime-type
+ application/octet-stream
14 years
JBoss Tools SVN: r27374 - workspace/snjeza.
by jbosstools-commits@lists.jboss.org
Author: snjeza
Date: 2010-12-11 06:44:59 -0500 (Sat, 11 Dec 2010)
New Revision: 27374
Added:
workspace/snjeza/weld-examples/
Log:
Initial import.
14 years
JBoss Tools SVN: r27373 - trunk/usage/tests/org.jboss.tools.usage.test.
by jbosstools-commits@lists.jboss.org
Author: nickboldt
Date: 2010-12-10 15:26:30 -0500 (Fri, 10 Dec 2010)
New Revision: 27373
Modified:
trunk/usage/tests/org.jboss.tools.usage.test/pom.xml
Log:
enable this plugin as a test-plugin (JBIDE-7873)
Modified: trunk/usage/tests/org.jboss.tools.usage.test/pom.xml
===================================================================
--- trunk/usage/tests/org.jboss.tools.usage.test/pom.xml 2010-12-10 20:20:17 UTC (rev 27372)
+++ trunk/usage/tests/org.jboss.tools.usage.test/pom.xml 2010-12-10 20:26:30 UTC (rev 27373)
@@ -9,7 +9,7 @@
<groupId>org.jboss.tools.usage.tests</groupId>
<artifactId>org.jboss.tools.usage.test</artifactId>
<version>1.0.0-SNAPSHOT</version>
- <packaging>eclipse-plugin</packaging>
+ <packaging>eclipse-test-plugin</packaging>
<properties>
<emma.filter/>
<emma.instrument.bundles/>
14 years
JBoss Tools SVN: r27372 - trunk/common/site.
by jbosstools-commits@lists.jboss.org
Author: nickboldt
Date: 2010-12-10 15:20:17 -0500 (Fri, 10 Dec 2010)
New Revision: 27372
Modified:
trunk/common/site/site.xml
Log:
add tests plugins to common's update site, since downstream projects like ESB depend on them
Modified: trunk/common/site/site.xml
===================================================================
--- trunk/common/site/site.xml 2010-12-10 18:52:56 UTC (rev 27371)
+++ trunk/common/site/site.xml 2010-12-10 20:20:17 UTC (rev 27372)
@@ -24,4 +24,9 @@
<category name="JBoss Tools common Nightly Build Update Site"/>
</feature>
+ <!-- add tests plugins since downstream projects like ESB depend on them -->
+ <feature url="features/org.jboss.tools.common.all.tests.feature_0.0.0.jar" id="org.jboss.tools.common.all.tests.feature" version="0.0.0">
+ <category name="JBoss Tools common Nightly Build Update Site"/>
+ </feature>
+
</site>
14 years
JBoss Tools SVN: r27371 - in trunk/deltacloud/plugins/org.jboss.tools.deltacloud.ui: src/org/jboss/tools/deltacloud/ui/views/cloudelements and 1 other directory.
by jbosstools-commits@lists.jboss.org
Author: adietish
Date: 2010-12-10 13:52:56 -0500 (Fri, 10 Dec 2010)
New Revision: 27371
Modified:
trunk/deltacloud/plugins/org.jboss.tools.deltacloud.ui/ChangeLog
trunk/deltacloud/plugins/org.jboss.tools.deltacloud.ui/src/org/jboss/tools/deltacloud/ui/views/cloudelements/AbstractCloudElementTableView.java
Log:
[JBIDE-7872] fixed case where new cloud == null was erroneously detected as new selected cloud
Modified: trunk/deltacloud/plugins/org.jboss.tools.deltacloud.ui/ChangeLog
===================================================================
--- trunk/deltacloud/plugins/org.jboss.tools.deltacloud.ui/ChangeLog 2010-12-10 17:02:53 UTC (rev 27370)
+++ trunk/deltacloud/plugins/org.jboss.tools.deltacloud.ui/ChangeLog 2010-12-10 18:52:56 UTC (rev 27371)
@@ -1,5 +1,8 @@
2010-12-10 André Dietisheim <adietish(a)redhat.com>
+ * src/org/jboss/tools/deltacloud/ui/views/cloudelements/AbstractCloudElementTableView.java
+ (isNewCloud):
+ [JBIDE-7872] fixed case where new cloud == null was erroneously detected as new selected cloud
* src/org/jboss/tools/deltacloud/ui/commands/RefreshImagesHandler.java:
* src/org/jboss/tools/deltacloud/ui/commands/RefreshInstancesHandler.java:
[JBIDE-7738] RefreshImagesHandler and RefreshInstancesHandler are now subclasses of
Modified: trunk/deltacloud/plugins/org.jboss.tools.deltacloud.ui/src/org/jboss/tools/deltacloud/ui/views/cloudelements/AbstractCloudElementTableView.java
===================================================================
--- trunk/deltacloud/plugins/org.jboss.tools.deltacloud.ui/src/org/jboss/tools/deltacloud/ui/views/cloudelements/AbstractCloudElementTableView.java 2010-12-10 17:02:53 UTC (rev 27370)
+++ trunk/deltacloud/plugins/org.jboss.tools.deltacloud.ui/src/org/jboss/tools/deltacloud/ui/views/cloudelements/AbstractCloudElementTableView.java 2010-12-10 18:52:56 UTC (rev 27371)
@@ -147,6 +147,10 @@
}
private boolean isNewCloud(DeltaCloud cloud) {
+ if (cloud == null) {
+ return false;
+ }
+
return currentCloud == null
|| !currentCloud.equals(cloud);
}
@@ -396,7 +400,7 @@
cloud.addPropertyChangeListener(DeltaCloud.PROP_NAME, this);
}
}
-
+
protected void removePropertyChangeListener(DeltaCloud cloud) {
if (cloud != null) {
cloud.removePropertyChangeListener(this);
14 years
JBoss Tools SVN: r27370 - in trunk/deltacloud/plugins/org.jboss.tools.deltacloud.ui: src/org/jboss/tools/deltacloud/ui/commands and 1 other directory.
by jbosstools-commits@lists.jboss.org
Author: adietish
Date: 2010-12-10 12:02:53 -0500 (Fri, 10 Dec 2010)
New Revision: 27370
Modified:
trunk/deltacloud/plugins/org.jboss.tools.deltacloud.ui/ChangeLog
trunk/deltacloud/plugins/org.jboss.tools.deltacloud.ui/src/org/jboss/tools/deltacloud/ui/commands/RefreshCloudHandler.java
trunk/deltacloud/plugins/org.jboss.tools.deltacloud.ui/src/org/jboss/tools/deltacloud/ui/commands/RefreshImagesHandler.java
trunk/deltacloud/plugins/org.jboss.tools.deltacloud.ui/src/org/jboss/tools/deltacloud/ui/commands/RefreshInstancesHandler.java
Log:
[JBIDE-7738]
* made ImageView and InstanceView adaptable, so that RefreshImageHandler and RefreshInstanceHandler may pick the cloud it shows
* added #getDeltaCloud so that it may be used by subclasses: RefreshImagesHandler, RefreshInstancesHandler
* RefreshImagesHandler and RefreshInstancesHandler are now subclasses of RefreshCloudHandler that only refresh images / instances
Modified: trunk/deltacloud/plugins/org.jboss.tools.deltacloud.ui/ChangeLog
===================================================================
--- trunk/deltacloud/plugins/org.jboss.tools.deltacloud.ui/ChangeLog 2010-12-10 16:55:28 UTC (rev 27369)
+++ trunk/deltacloud/plugins/org.jboss.tools.deltacloud.ui/ChangeLog 2010-12-10 17:02:53 UTC (rev 27370)
@@ -1,5 +1,15 @@
2010-12-10 André Dietisheim <adietish(a)redhat.com>
+ * src/org/jboss/tools/deltacloud/ui/commands/RefreshImagesHandler.java:
+ * src/org/jboss/tools/deltacloud/ui/commands/RefreshInstancesHandler.java:
+ [JBIDE-7738] RefreshImagesHandler and RefreshInstancesHandler are now subclasses of
+ RefreshCloudHandler that only refresh images / instances
+ * src/org/jboss/tools/deltacloud/ui/commands/RefreshCloudHandler.java (getDeltaCloud):
+ [JBIDE-7738] added #getDeltaCloud so that it may be used by subclasses: RefreshImagesHandler, RefreshInstancesHandler
+ * src/org/jboss/tools/deltacloud/ui/views/cloudelements/AbstractCloudElementTableView.java
+ (getAdapter):
+ [JBIDE-7738] made ImageView and InstanceView adaptable, so that RefreshImageHandler and
+ RefreshInstanceHandler may pick the cloud it shows
* src/org/jboss/tools/deltacloud/ui/views/cloudelements/AbstractCloudElementTableView.java:
(updateCloudSelector):
[JBIDE-7862] layouting the combo's parent as soon as the cloud name gets edited
Modified: trunk/deltacloud/plugins/org.jboss.tools.deltacloud.ui/src/org/jboss/tools/deltacloud/ui/commands/RefreshCloudHandler.java
===================================================================
--- trunk/deltacloud/plugins/org.jboss.tools.deltacloud.ui/src/org/jboss/tools/deltacloud/ui/commands/RefreshCloudHandler.java 2010-12-10 16:55:28 UTC (rev 27369)
+++ trunk/deltacloud/plugins/org.jboss.tools.deltacloud.ui/src/org/jboss/tools/deltacloud/ui/commands/RefreshCloudHandler.java 2010-12-10 17:02:53 UTC (rev 27370)
@@ -17,8 +17,6 @@
import org.eclipse.core.runtime.IProgressMonitor;
import org.eclipse.core.runtime.IStatus;
import org.eclipse.core.runtime.Status;
-import org.eclipse.jface.viewers.ISelection;
-import org.eclipse.jface.viewers.IStructuredSelection;
import org.eclipse.ui.handlers.HandlerUtil;
import org.jboss.tools.deltacloud.core.DeltaCloud;
import org.jboss.tools.deltacloud.core.DeltaCloudException;
@@ -34,32 +32,40 @@
@Override
public Object execute(ExecutionEvent event) throws ExecutionException {
- ISelection selection = HandlerUtil.getCurrentSelection(event);
- if (selection instanceof IStructuredSelection) {
- DeltaCloud cloud = UIUtils.getFirstAdaptedElement(selection, DeltaCloud.class);
+ DeltaCloud cloud = getDeltaCloud(event);
+ if (cloud != null) {
refresh(cloud);
}
return Status.OK_STATUS;
}
- private void refresh(final DeltaCloud cloud) {
- if (cloud != null) {
- // TODO: internationalize strings
- new AbstractCloudJob("Refreshing images and instances on " + cloud.getName(), cloud) {
-
- @Override
- protected IStatus doRun(IProgressMonitor monitor) throws DeltaCloudException {
- try {
- monitor.worked(1);
- cloud.loadChildren();
- monitor.done();
- } catch (DeltaCloudMultiException e) {
- return ErrorUtils.createMultiStatus(e);
- }
- return Status.OK_STATUS;
- }
- }.schedule();
+ private DeltaCloud getDeltaCloud(ExecutionEvent event) {
+ DeltaCloud cloud = null;
+ // first try selected item
+ cloud = UIUtils.getFirstAdaptedElement(HandlerUtil.getCurrentSelection(event), DeltaCloud.class);
+ if (cloud == null) {
+ // no item selected: try active part
+ cloud = UIUtils.adapt(HandlerUtil.getActivePart(event), DeltaCloud.class);
}
+ return cloud;
}
+
+ protected void refresh(final DeltaCloud cloud) {
+ // TODO: internationalize strings
+ new AbstractCloudJob("Refreshing images and instances on " + cloud.getName(), cloud) {
+
+ @Override
+ protected IStatus doRun(IProgressMonitor monitor) throws DeltaCloudException {
+ try {
+ monitor.worked(1);
+ cloud.loadChildren();
+ monitor.done();
+ } catch (DeltaCloudMultiException e) {
+ return ErrorUtils.createMultiStatus(e);
+ }
+ return Status.OK_STATUS;
+ }
+ }.schedule();
+ }
}
Modified: trunk/deltacloud/plugins/org.jboss.tools.deltacloud.ui/src/org/jboss/tools/deltacloud/ui/commands/RefreshImagesHandler.java
===================================================================
--- trunk/deltacloud/plugins/org.jboss.tools.deltacloud.ui/src/org/jboss/tools/deltacloud/ui/commands/RefreshImagesHandler.java 2010-12-10 16:55:28 UTC (rev 27369)
+++ trunk/deltacloud/plugins/org.jboss.tools.deltacloud.ui/src/org/jboss/tools/deltacloud/ui/commands/RefreshImagesHandler.java 2010-12-10 17:02:53 UTC (rev 27370)
@@ -10,54 +10,29 @@
******************************************************************************/
package org.jboss.tools.deltacloud.ui.commands;
-import org.eclipse.core.commands.AbstractHandler;
-import org.eclipse.core.commands.ExecutionEvent;
-import org.eclipse.core.commands.ExecutionException;
-import org.eclipse.core.commands.IHandler;
import org.eclipse.core.runtime.IProgressMonitor;
import org.eclipse.core.runtime.IStatus;
import org.eclipse.core.runtime.Status;
-import org.eclipse.jface.viewers.ISelection;
-import org.eclipse.jface.viewers.IStructuredSelection;
-import org.eclipse.ui.handlers.HandlerUtil;
import org.jboss.tools.deltacloud.core.DeltaCloud;
import org.jboss.tools.deltacloud.core.DeltaCloudException;
-import org.jboss.tools.deltacloud.core.DeltaCloudImage;
import org.jboss.tools.deltacloud.core.job.AbstractCloudJob;
-import org.jboss.tools.internal.deltacloud.ui.utils.UIUtils;
/**
* @author Andre Dietisheim
*/
-public class RefreshImagesHandler extends AbstractHandler implements IHandler {
+public class RefreshImagesHandler extends RefreshCloudHandler {
- @Override
- public Object execute(ExecutionEvent event) throws ExecutionException {
- ISelection selection = HandlerUtil.getCurrentSelection(event);
- if (selection instanceof IStructuredSelection) {
- DeltaCloudImage deltaCloudImage = UIUtils.getFirstAdaptedElement(selection, DeltaCloudImage.class);
- refresh(deltaCloudImage);
- }
+ protected void refresh(final DeltaCloud cloud) {
+ // TODO: internationalize strings
+ new AbstractCloudJob("Refreshing images on cloud " + cloud.getName(), cloud) {
- return Status.OK_STATUS;
- }
-
- private void refresh(DeltaCloudImage deltaCloudImage) {
- if (deltaCloudImage != null) {
- final DeltaCloud cloud = deltaCloudImage.getDeltaCloud();
- if (cloud != null) {
- // TODO: internationalize strings
- new AbstractCloudJob("Refreshing images on cloud " + cloud.getName(), cloud) {
-
- @Override
- protected IStatus doRun(IProgressMonitor monitor) throws DeltaCloudException {
- monitor.worked(1);
- cloud.loadChildren();
- monitor.done();
- return Status.OK_STATUS;
- }
- }.schedule();
+ @Override
+ protected IStatus doRun(IProgressMonitor monitor) throws DeltaCloudException {
+ monitor.worked(1);
+ cloud.loadImages();
+ monitor.done();
+ return Status.OK_STATUS;
}
- }
+ }.schedule();
}
}
Modified: trunk/deltacloud/plugins/org.jboss.tools.deltacloud.ui/src/org/jboss/tools/deltacloud/ui/commands/RefreshInstancesHandler.java
===================================================================
--- trunk/deltacloud/plugins/org.jboss.tools.deltacloud.ui/src/org/jboss/tools/deltacloud/ui/commands/RefreshInstancesHandler.java 2010-12-10 16:55:28 UTC (rev 27369)
+++ trunk/deltacloud/plugins/org.jboss.tools.deltacloud.ui/src/org/jboss/tools/deltacloud/ui/commands/RefreshInstancesHandler.java 2010-12-10 17:02:53 UTC (rev 27370)
@@ -10,55 +10,32 @@
******************************************************************************/
package org.jboss.tools.deltacloud.ui.commands;
-import org.eclipse.core.commands.AbstractHandler;
-import org.eclipse.core.commands.ExecutionEvent;
-import org.eclipse.core.commands.ExecutionException;
-import org.eclipse.core.commands.IHandler;
import org.eclipse.core.runtime.IProgressMonitor;
import org.eclipse.core.runtime.IStatus;
import org.eclipse.core.runtime.Status;
-import org.eclipse.jface.viewers.ISelection;
-import org.eclipse.jface.viewers.IStructuredSelection;
-import org.eclipse.ui.handlers.HandlerUtil;
import org.jboss.tools.deltacloud.core.DeltaCloud;
import org.jboss.tools.deltacloud.core.DeltaCloudException;
-import org.jboss.tools.deltacloud.core.DeltaCloudInstance;
import org.jboss.tools.deltacloud.core.job.AbstractCloudJob;
-import org.jboss.tools.internal.deltacloud.ui.utils.UIUtils;
/**
* @author Andre Dietisheim
*/
-public class RefreshInstancesHandler extends AbstractHandler implements IHandler {
+public class RefreshInstancesHandler extends RefreshCloudHandler {
- @Override
- public Object execute(ExecutionEvent event) throws ExecutionException {
- ISelection selection = HandlerUtil.getCurrentSelection(event);
- if (selection instanceof IStructuredSelection) {
- DeltaCloudInstance deltaCloudInstance = UIUtils.getFirstAdaptedElement(selection, DeltaCloudInstance.class);
- refresh(deltaCloudInstance);
- }
+ protected void refresh(final DeltaCloud cloud) {
+ if (cloud != null) {
+ // TODO: internationalize strings
+ new AbstractCloudJob("Refreshing instances on cloud " + cloud.getName(), cloud) {
- return Status.OK_STATUS;
- }
+ @Override
+ protected IStatus doRun(IProgressMonitor monitor) throws DeltaCloudException {
+ monitor.worked(1);
+ cloud.loadInstances();
+ monitor.done();
+ return Status.OK_STATUS;
+ }
- private void refresh(final DeltaCloudInstance deltaCloudInstance) {
- if (deltaCloudInstance != null) {
- final DeltaCloud cloud = deltaCloudInstance.getDeltaCloud();
- if (cloud != null) {
- // TODO: internationalize strings
- new AbstractCloudJob("Refreshing instances on cloud " + cloud.getName(), cloud) {
-
- @Override
- protected IStatus doRun(IProgressMonitor monitor) throws DeltaCloudException {
- monitor.worked(1);
- cloud.loadChildren();
- monitor.done();
- return Status.OK_STATUS;
- }
-
- }.setUser(true);
- }
+ }.setUser(true);
}
}
}
14 years
JBoss Tools SVN: r27369 - trunk/deltacloud/plugins/org.jboss.tools.deltacloud.ui/src/org/jboss/tools/deltacloud/ui/views/cloudelements.
by jbosstools-commits@lists.jboss.org
Author: adietish
Date: 2010-12-10 11:55:28 -0500 (Fri, 10 Dec 2010)
New Revision: 27369
Modified:
trunk/deltacloud/plugins/org.jboss.tools.deltacloud.ui/src/org/jboss/tools/deltacloud/ui/views/cloudelements/AbstractCloudElementTableView.java
Log:
[JBIDE-7738] made ImageView and InstanceView adaptable, so that RefreshImageHandler and RefreshInstanceHandler may pick the cloud it shows
Modified: trunk/deltacloud/plugins/org.jboss.tools.deltacloud.ui/src/org/jboss/tools/deltacloud/ui/views/cloudelements/AbstractCloudElementTableView.java
===================================================================
--- trunk/deltacloud/plugins/org.jboss.tools.deltacloud.ui/src/org/jboss/tools/deltacloud/ui/views/cloudelements/AbstractCloudElementTableView.java 2010-12-10 16:53:29 UTC (rev 27368)
+++ trunk/deltacloud/plugins/org.jboss.tools.deltacloud.ui/src/org/jboss/tools/deltacloud/ui/views/cloudelements/AbstractCloudElementTableView.java 2010-12-10 16:55:28 UTC (rev 27369)
@@ -10,11 +10,12 @@
*******************************************************************************/
package org.jboss.tools.deltacloud.ui.views.cloudelements;
-import java.util.ArrayList;
import java.beans.PropertyChangeEvent;
import java.beans.PropertyChangeListener;
+import java.util.ArrayList;
import java.util.List;
+import org.eclipse.core.runtime.IAdaptable;
import org.eclipse.jface.action.IMenuManager;
import org.eclipse.jface.layout.TableColumnLayout;
import org.eclipse.jface.viewers.ColumnWeightData;
@@ -65,7 +66,7 @@
* @author Andre Dietisheim
*/
public abstract class AbstractCloudElementTableView<CLOUDELEMENT extends IDeltaCloudElement> extends ViewPart implements
- IDeltaCloudManagerListener, PropertyChangeListener {
+ IDeltaCloudManagerListener, PropertyChangeListener, IAdaptable {
private final static String CLOUD_SELECTOR_LABEL = "CloudSelector.label"; //$NON-NLS-1$
@@ -434,4 +435,13 @@
DeltaCloudManager.getDefault().removeCloudManagerListener(this);
super.dispose();
}
+
+ @SuppressWarnings("rawtypes")
+ public Object getAdapter(Class adapter) {
+ if (adapter == DeltaCloud.class) {
+ return currentCloud;
+ } else {
+ return super.getAdapter(adapter);
+ }
+ }
}
14 years