JBoss Tools SVN: r26507 - in trunk/deltacloud/plugins/org.jboss.tools.deltacloud.ui: src/org/jboss/tools/deltacloud/ui/views and 1 other directory.
by jbosstools-commits@lists.jboss.org
Author: adietish
Date: 2010-11-12 08:55:49 -0500 (Fri, 12 Nov 2010)
New Revision: 26507
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/PerformInstanceActionThread.java
Log:
[JBIDE-7365] fixed bad thread access (job is not running in display thread)
Modified: trunk/deltacloud/plugins/org.jboss.tools.deltacloud.ui/ChangeLog
===================================================================
--- trunk/deltacloud/plugins/org.jboss.tools.deltacloud.ui/ChangeLog 2010-11-12 13:50:02 UTC (rev 26506)
+++ trunk/deltacloud/plugins/org.jboss.tools.deltacloud.ui/ChangeLog 2010-11-12 13:55:49 UTC (rev 26507)
@@ -1,5 +1,7 @@
2010-11-12 André Dietisheim <adietish(a)redhat.com>
+ * src/org/jboss/tools/deltacloud/ui/views/PerformInstanceActionThread.java (run):
+ [JBIDE-7365] fixed bad thread access (job is not running in display thread)
* src/org/jboss/tools/internal/deltacloud/ui/utils/UIUtils.java (adapt):
* src/org/jboss/tools/deltacloud/ui/commands/StartInstanceHandler.java (startWithDialog):
* src/org/jboss/tools/deltacloud/ui/commands/StopInstanceHandler.java (startWithDialog):
Modified: trunk/deltacloud/plugins/org.jboss.tools.deltacloud.ui/src/org/jboss/tools/deltacloud/ui/views/PerformInstanceActionThread.java
===================================================================
--- trunk/deltacloud/plugins/org.jboss.tools.deltacloud.ui/src/org/jboss/tools/deltacloud/ui/views/PerformInstanceActionThread.java 2010-11-12 13:50:02 UTC (rev 26506)
+++ trunk/deltacloud/plugins/org.jboss.tools.deltacloud.ui/src/org/jboss/tools/deltacloud/ui/views/PerformInstanceActionThread.java 2010-11-12 13:55:49 UTC (rev 26507)
@@ -15,6 +15,7 @@
import org.eclipse.core.runtime.Status;
import org.eclipse.core.runtime.jobs.Job;
import org.eclipse.jface.dialogs.ErrorDialog;
+import org.eclipse.swt.widgets.Display;
import org.jboss.tools.common.log.StatusFactory;
import org.jboss.tools.deltacloud.core.DeltaCloud;
import org.jboss.tools.deltacloud.core.DeltaCloudException;
@@ -73,13 +74,19 @@
}
}
} catch (DeltaCloudException e) {
- IStatus status = StatusFactory.getInstance(IStatus.ERROR, Activator.PLUGIN_ID, e.getMessage(), e);
+ final IStatus status = StatusFactory.getInstance(IStatus.ERROR, Activator.PLUGIN_ID, e.getMessage(), e);
Activator.log(status);
- ErrorDialog.openError(
- UIUtils.getActiveShell(),
- CVMessages.getString(INSTANCEACTION_ERROR_TITLE),
- CVMessages.getFormattedString(INSTANCEACTION_ERROR_MESSAGE, action, instance.getName()),
- status);
+ Display.getDefault().syncExec(new Runnable() {
+ @Override
+ public void run() {
+ ErrorDialog.openError(
+ UIUtils.getActiveShell(),
+ CVMessages.getString(INSTANCEACTION_ERROR_TITLE),
+ CVMessages.getFormattedString(INSTANCEACTION_ERROR_MESSAGE, action, instance.getName()),
+ status);
+ }
+ });
+
} finally {
cloud.removeActionJob(id, this);
pm.done();
15 years, 5 months
JBoss Tools SVN: r26506 - trunk/deltacloud/plugins/org.jboss.tools.deltacloud.ui/src/org/jboss/tools/deltacloud/ui/views.
by jbosstools-commits@lists.jboss.org
Author: adietish
Date: 2010-11-12 08:50:02 -0500 (Fri, 12 Nov 2010)
New Revision: 26506
Modified:
trunk/deltacloud/plugins/org.jboss.tools.deltacloud.ui/src/org/jboss/tools/deltacloud/ui/views/CVMessages.properties
Log:
[JBIDE-7365] corrected error message text
Modified: trunk/deltacloud/plugins/org.jboss.tools.deltacloud.ui/src/org/jboss/tools/deltacloud/ui/views/CVMessages.properties
===================================================================
--- trunk/deltacloud/plugins/org.jboss.tools.deltacloud.ui/src/org/jboss/tools/deltacloud/ui/views/CVMessages.properties 2010-11-12 12:07:19 UTC (rev 26505)
+++ trunk/deltacloud/plugins/org.jboss.tools.deltacloud.ui/src/org/jboss/tools/deltacloud/ui/views/CVMessages.properties 2010-11-12 13:50:02 UTC (rev 26506)
@@ -9,7 +9,7 @@
# Red Hat Incorporated - initial API and implementation
#################################################################################
InstanceActionError.title=Error
-InstanceActionError.msg=Could not {0} on instance {1}
+InstanceActionError.msg=Could not {0} instance {1}
InstanceCategoryName=Instances
ImageCategoryName=Images
15 years, 5 months
JBoss Tools SVN: r26505 - trunk/tests/plugins/org.jboss.tools.ui.bot.ext.
by jbosstools-commits@lists.jboss.org
Author: jpeterka
Date: 2010-11-12 07:07:19 -0500 (Fri, 12 Nov 2010)
New Revision: 26505
Modified:
trunk/tests/plugins/org.jboss.tools.ui.bot.ext/.classpath
trunk/tests/plugins/org.jboss.tools.ui.bot.ext/build.properties
Log:
Bot tests DB Requirement forgotten updates
Modified: trunk/tests/plugins/org.jboss.tools.ui.bot.ext/.classpath
===================================================================
--- trunk/tests/plugins/org.jboss.tools.ui.bot.ext/.classpath 2010-11-12 11:51:57 UTC (rev 26504)
+++ trunk/tests/plugins/org.jboss.tools.ui.bot.ext/.classpath 2010-11-12 12:07:19 UTC (rev 26505)
@@ -1,8 +1,8 @@
<?xml version="1.0" encoding="UTF-8"?>
<classpath>
+ <classpathentry exported="true" kind="lib" path="resources/drv/hsqldb.jar"/>
<classpathentry kind="con" path="org.eclipse.jdt.launching.JRE_CONTAINER/org.eclipse.jdt.internal.debug.ui.launcher.StandardVMType/JavaSE-1.6"/>
<classpathentry kind="con" path="org.eclipse.pde.core.requiredPlugins"/>
<classpathentry kind="src" path="src"/>
- <classpathentry kind="src" path="resources"/>
<classpathentry kind="output" path="bin"/>
</classpath>
Modified: trunk/tests/plugins/org.jboss.tools.ui.bot.ext/build.properties
===================================================================
--- trunk/tests/plugins/org.jboss.tools.ui.bot.ext/build.properties 2010-11-12 11:51:57 UTC (rev 26504)
+++ trunk/tests/plugins/org.jboss.tools.ui.bot.ext/build.properties 2010-11-12 12:07:19 UTC (rev 26505)
@@ -1,4 +1,7 @@
source.. = src/,resources/
output.. = bin/
bin.includes = META-INF/,\
- .
+ .,\
+ resources/drv/hsqldb.jar
+jars.extra.classpath = resources/drv/hsqldb.jar
+src.includes = resources/drv/
15 years, 5 months
JBoss Tools SVN: r26504 - in trunk/deltacloud/plugins/org.jboss.tools.deltacloud.ui: src/org/jboss/tools/deltacloud/ui/commands and 1 other directories.
by jbosstools-commits@lists.jboss.org
Author: adietish
Date: 2010-11-12 06:51:57 -0500 (Fri, 12 Nov 2010)
New Revision: 26504
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/DestroyInstanceHandler.java
trunk/deltacloud/plugins/org.jboss.tools.deltacloud.ui/src/org/jboss/tools/deltacloud/ui/commands/RebootInstanceHandler.java
trunk/deltacloud/plugins/org.jboss.tools.deltacloud.ui/src/org/jboss/tools/deltacloud/ui/commands/StartInstanceHandler.java
trunk/deltacloud/plugins/org.jboss.tools.deltacloud.ui/src/org/jboss/tools/deltacloud/ui/commands/StopInstanceHandler.java
trunk/deltacloud/plugins/org.jboss.tools.deltacloud.ui/src/org/jboss/tools/internal/deltacloud/ui/utils/UIUtils.java
Log:
[JBIDE-7499] fixed ClassCastException by adapting objects to DeltaCloudInstance
Modified: trunk/deltacloud/plugins/org.jboss.tools.deltacloud.ui/ChangeLog
===================================================================
--- trunk/deltacloud/plugins/org.jboss.tools.deltacloud.ui/ChangeLog 2010-11-12 11:39:29 UTC (rev 26503)
+++ trunk/deltacloud/plugins/org.jboss.tools.deltacloud.ui/ChangeLog 2010-11-12 11:51:57 UTC (rev 26504)
@@ -1,5 +1,11 @@
2010-11-12 André Dietisheim <adietish(a)redhat.com>
+ * src/org/jboss/tools/internal/deltacloud/ui/utils/UIUtils.java (adapt):
+ * src/org/jboss/tools/deltacloud/ui/commands/StartInstanceHandler.java (startWithDialog):
+ * src/org/jboss/tools/deltacloud/ui/commands/StopInstanceHandler.java (startWithDialog):
+ * src/org/jboss/tools/deltacloud/ui/commands/DestroyInstanceHandler.java (startWithDialog):
+ * src/org/jboss/tools/deltacloud/ui/commands/RebootInstanceHandler.java (startWithDialog):
+ [JBIDE-7499] fixed ClassCastException by adapting objects to DeltaCloudInstance
* src/org/jboss/tools/internal/deltacloud/ui/utils/StringUtils.java (getFormattedString):
* src/org/jboss/tools/deltacloud/ui/commands/AbstractInstanceHandler.java (getInstanceNames):
* src/org/jboss/tools/deltacloud/ui/commands/StopInstanceHandler.java (execute):
Modified: trunk/deltacloud/plugins/org.jboss.tools.deltacloud.ui/src/org/jboss/tools/deltacloud/ui/commands/DestroyInstanceHandler.java
===================================================================
--- trunk/deltacloud/plugins/org.jboss.tools.deltacloud.ui/src/org/jboss/tools/deltacloud/ui/commands/DestroyInstanceHandler.java 2010-11-12 11:39:29 UTC (rev 26503)
+++ trunk/deltacloud/plugins/org.jboss.tools.deltacloud.ui/src/org/jboss/tools/deltacloud/ui/commands/DestroyInstanceHandler.java 2010-11-12 11:51:57 UTC (rev 26504)
@@ -71,7 +71,7 @@
private void destroyWithDialog(IStructuredSelection selection) {
DeltaCloudInstanceDialog dialog = new DeltaCloudInstanceDialog(
UIUtils.getActiveShell()
- , (List<DeltaCloudInstance>) selection.toList()
+ , UIUtils.adapt((List<DeltaCloudInstance>) selection.toList(), DeltaCloudInstance.class)
, CVMessages.getString(DESTROY_INSTANCE_TITLE)
, CVMessages.getString(DESTROY_INSTANCE_MSG));
if (Dialog.OK == dialog.open()) {
Modified: trunk/deltacloud/plugins/org.jboss.tools.deltacloud.ui/src/org/jboss/tools/deltacloud/ui/commands/RebootInstanceHandler.java
===================================================================
--- trunk/deltacloud/plugins/org.jboss.tools.deltacloud.ui/src/org/jboss/tools/deltacloud/ui/commands/RebootInstanceHandler.java 2010-11-12 11:39:29 UTC (rev 26503)
+++ trunk/deltacloud/plugins/org.jboss.tools.deltacloud.ui/src/org/jboss/tools/deltacloud/ui/commands/RebootInstanceHandler.java 2010-11-12 11:51:57 UTC (rev 26504)
@@ -70,7 +70,7 @@
private void rebootWithDialog(IStructuredSelection selection) {
DeltaCloudInstanceDialog dialog = new DeltaCloudInstanceDialog(
UIUtils.getActiveShell()
- , (List<DeltaCloudInstance>) selection.toList()
+ , UIUtils.adapt((List<DeltaCloudInstance>) selection.toList(), DeltaCloudInstance.class)
, CVMessages.getString(REBOOT_INSTANCE_TITLE)
, CVMessages.getString(REBOOT_INSTANCE_MSG));
if (Dialog.OK == dialog.open()) {
Modified: trunk/deltacloud/plugins/org.jboss.tools.deltacloud.ui/src/org/jboss/tools/deltacloud/ui/commands/StartInstanceHandler.java
===================================================================
--- trunk/deltacloud/plugins/org.jboss.tools.deltacloud.ui/src/org/jboss/tools/deltacloud/ui/commands/StartInstanceHandler.java 2010-11-12 11:39:29 UTC (rev 26503)
+++ trunk/deltacloud/plugins/org.jboss.tools.deltacloud.ui/src/org/jboss/tools/deltacloud/ui/commands/StartInstanceHandler.java 2010-11-12 11:51:57 UTC (rev 26504)
@@ -70,7 +70,7 @@
private void startWithDialog(IStructuredSelection selection) {
DeltaCloudInstanceDialog dialog = new DeltaCloudInstanceDialog(
UIUtils.getActiveShell()
- , (List<DeltaCloudInstance>) selection.toList()
+ , UIUtils.adapt((List<DeltaCloudInstance>) selection.toList(), DeltaCloudInstance.class)
, CVMessages.getString(START_INSTANCES_DIALOG_TITLE)
, CVMessages.getString(START_INSTANCES_DIALOG_MSG));
if (Dialog.OK == dialog.open()) {
Modified: trunk/deltacloud/plugins/org.jboss.tools.deltacloud.ui/src/org/jboss/tools/deltacloud/ui/commands/StopInstanceHandler.java
===================================================================
--- trunk/deltacloud/plugins/org.jboss.tools.deltacloud.ui/src/org/jboss/tools/deltacloud/ui/commands/StopInstanceHandler.java 2010-11-12 11:39:29 UTC (rev 26503)
+++ trunk/deltacloud/plugins/org.jboss.tools.deltacloud.ui/src/org/jboss/tools/deltacloud/ui/commands/StopInstanceHandler.java 2010-11-12 11:51:57 UTC (rev 26504)
@@ -68,7 +68,7 @@
private void stopWithDialog(IStructuredSelection selection) {
DeltaCloudInstanceDialog dialog = new DeltaCloudInstanceDialog(
UIUtils.getActiveShell()
- , (List<DeltaCloudInstance>) selection.toList()
+ , UIUtils.adapt((List<DeltaCloudInstance>) selection.toList(), DeltaCloudInstance.class)
, CVMessages.getString(STOP_INSTANCES_DIALOG_TITLE)
, CVMessages.getString(STOP_INSTANCES_DIALOG_MSG));
if (Dialog.OK == dialog.open()) {
Modified: trunk/deltacloud/plugins/org.jboss.tools.deltacloud.ui/src/org/jboss/tools/internal/deltacloud/ui/utils/UIUtils.java
===================================================================
--- trunk/deltacloud/plugins/org.jboss.tools.deltacloud.ui/src/org/jboss/tools/internal/deltacloud/ui/utils/UIUtils.java 2010-11-12 11:39:29 UTC (rev 26503)
+++ trunk/deltacloud/plugins/org.jboss.tools.deltacloud.ui/src/org/jboss/tools/internal/deltacloud/ui/utils/UIUtils.java 2010-11-12 11:51:57 UTC (rev 26504)
@@ -10,6 +10,9 @@
******************************************************************************/
package org.jboss.tools.internal.deltacloud.ui.utils;
+import java.util.ArrayList;
+import java.util.Collection;
+
import org.eclipse.core.runtime.Assert;
import org.eclipse.core.runtime.IAdaptable;
import org.eclipse.core.runtime.Platform;
@@ -117,6 +120,17 @@
&& getFirstAdaptedElement(selection, expectedClass) != null;
}
+ public static <T> Collection<T> adapt(Collection<?> objects, Class<T> expectedClass) {
+ ArrayList<T> adaptedObjects = new ArrayList<T>();
+ for (Object object : objects) {
+ T adaptedObject = adapt(object, expectedClass);
+ if (adaptedObject != null) {
+ adaptedObjects.add(adaptedObject);
+ }
+ }
+ return adaptedObjects;
+ }
+
/**
* Adapts the given object to the given type. Returns <code>null</code> if
* the given adaption is not possible. Adaption is tried by casting and by adapting it.
15 years, 5 months
JBoss Tools SVN: r26503 - in branches/jbosstools-3.1.x/jbpm/plugins/org.jbpm.gd.jpdl/src/org/jbpm/gd/jpdl: deployment and 1 other directory.
by jbosstools-commits@lists.jboss.org
Author: koen.aers(a)jboss.com
Date: 2010-11-12 06:39:29 -0500 (Fri, 12 Nov 2010)
New Revision: 26503
Modified:
branches/jbosstools-3.1.x/jbpm/plugins/org.jbpm.gd.jpdl/src/org/jbpm/gd/jpdl/action/DeployProcessAction.java
branches/jbosstools-3.1.x/jbpm/plugins/org.jbpm.gd.jpdl/src/org/jbpm/gd/jpdl/action/PingServerAction.java
branches/jbosstools-3.1.x/jbpm/plugins/org.jbpm.gd.jpdl/src/org/jbpm/gd/jpdl/deployment/ProcessArchiveDeployer.java
Log:
JBIDE-7347
Modified: branches/jbosstools-3.1.x/jbpm/plugins/org.jbpm.gd.jpdl/src/org/jbpm/gd/jpdl/action/DeployProcessAction.java
===================================================================
--- branches/jbosstools-3.1.x/jbpm/plugins/org.jbpm.gd.jpdl/src/org/jbpm/gd/jpdl/action/DeployProcessAction.java 2010-11-12 11:34:27 UTC (rev 26502)
+++ branches/jbosstools-3.1.x/jbpm/plugins/org.jbpm.gd.jpdl/src/org/jbpm/gd/jpdl/action/DeployProcessAction.java 2010-11-12 11:39:29 UTC (rev 26503)
@@ -21,6 +21,8 @@
boolean success = new ProcessArchiveDeployer(jpdlEditor).deploy(processArchive);
if (success) {
showSuccessDialog();
+ } else {
+ showFailureDialog();
}
}
@@ -36,4 +38,16 @@
dialog.open();
}
+ private void showFailureDialog() {
+ MessageDialog dialog = new MessageDialog(
+ jpdlEditor.getSite().getShell(),
+ "Deployment Failed",
+ null,
+ "The process archive could not be deployed.",
+ SWT.ICON_ERROR,
+ new String[] { "OK" },
+ 0);
+ dialog.open();
+ }
+
}
Modified: branches/jbosstools-3.1.x/jbpm/plugins/org.jbpm.gd.jpdl/src/org/jbpm/gd/jpdl/action/PingServerAction.java
===================================================================
--- branches/jbosstools-3.1.x/jbpm/plugins/org.jbpm.gd.jpdl/src/org/jbpm/gd/jpdl/action/PingServerAction.java 2010-11-12 11:34:27 UTC (rev 26502)
+++ branches/jbosstools-3.1.x/jbpm/plugins/org.jbpm.gd.jpdl/src/org/jbpm/gd/jpdl/action/PingServerAction.java 2010-11-12 11:39:29 UTC (rev 26503)
@@ -18,6 +18,8 @@
boolean success = new ProcessArchiveDeployer(jpdlEditor).pingServer();
if (success) {
showSuccessDialog();
+ } else {
+ showFailureDialog();
}
}
@@ -33,4 +35,16 @@
dialog.open();
}
+ private void showFailureDialog() {
+ MessageDialog dialog = new MessageDialog(
+ jpdlEditor.getSite().getShell(),
+ "Ping Server Failure",
+ null,
+ "The server could not be reached. Check your connection information.",
+ SWT.ICON_ERROR,
+ new String[] { "OK" },
+ 0);
+ dialog.open();
+ }
+
}
Modified: branches/jbosstools-3.1.x/jbpm/plugins/org.jbpm.gd.jpdl/src/org/jbpm/gd/jpdl/deployment/ProcessArchiveDeployer.java
===================================================================
--- branches/jbosstools-3.1.x/jbpm/plugins/org.jbpm.gd.jpdl/src/org/jbpm/gd/jpdl/deployment/ProcessArchiveDeployer.java 2010-11-12 11:34:27 UTC (rev 26502)
+++ branches/jbosstools-3.1.x/jbpm/plugins/org.jbpm.gd.jpdl/src/org/jbpm/gd/jpdl/deployment/ProcessArchiveDeployer.java 2010-11-12 11:39:29 UTC (rev 26503)
@@ -36,8 +36,7 @@
if (response == null) {
return false;
}
- System.out.println(response);
- return true;
+ return response.contains("deployed successfully");
}
public boolean pingServer() {
@@ -50,8 +49,7 @@
if (response == null) {
return false;
}
- System.out.println(response);
- return true;
+ return response.contains("GPD deployer is operational");
}
private String constructUrlString() {
15 years, 5 months
JBoss Tools SVN: r26502 - in trunk/jbpm/plugins/org.jbpm.gd.jpdl/src/org/jbpm/gd/jpdl: deployment and 1 other directory.
by jbosstools-commits@lists.jboss.org
Author: koen.aers(a)jboss.com
Date: 2010-11-12 06:34:27 -0500 (Fri, 12 Nov 2010)
New Revision: 26502
Modified:
trunk/jbpm/plugins/org.jbpm.gd.jpdl/src/org/jbpm/gd/jpdl/action/DeployProcessAction.java
trunk/jbpm/plugins/org.jbpm.gd.jpdl/src/org/jbpm/gd/jpdl/action/PingServerAction.java
trunk/jbpm/plugins/org.jbpm.gd.jpdl/src/org/jbpm/gd/jpdl/deployment/ProcessArchiveDeployer.java
Log:
JBIDE-7347
Modified: trunk/jbpm/plugins/org.jbpm.gd.jpdl/src/org/jbpm/gd/jpdl/action/DeployProcessAction.java
===================================================================
--- trunk/jbpm/plugins/org.jbpm.gd.jpdl/src/org/jbpm/gd/jpdl/action/DeployProcessAction.java 2010-11-12 11:29:11 UTC (rev 26501)
+++ trunk/jbpm/plugins/org.jbpm.gd.jpdl/src/org/jbpm/gd/jpdl/action/DeployProcessAction.java 2010-11-12 11:34:27 UTC (rev 26502)
@@ -21,6 +21,8 @@
boolean success = new ProcessArchiveDeployer(jpdlEditor).deploy(processArchive);
if (success) {
showSuccessDialog();
+ } else {
+ showFailureDialog();
}
}
@@ -36,4 +38,16 @@
dialog.open();
}
+ private void showFailureDialog() {
+ MessageDialog dialog = new MessageDialog(
+ jpdlEditor.getSite().getShell(),
+ "Deployment Failed",
+ null,
+ "The process archive could not be deployed.",
+ SWT.ICON_ERROR,
+ new String[] { "OK" },
+ 0);
+ dialog.open();
+ }
+
}
Modified: trunk/jbpm/plugins/org.jbpm.gd.jpdl/src/org/jbpm/gd/jpdl/action/PingServerAction.java
===================================================================
--- trunk/jbpm/plugins/org.jbpm.gd.jpdl/src/org/jbpm/gd/jpdl/action/PingServerAction.java 2010-11-12 11:29:11 UTC (rev 26501)
+++ trunk/jbpm/plugins/org.jbpm.gd.jpdl/src/org/jbpm/gd/jpdl/action/PingServerAction.java 2010-11-12 11:34:27 UTC (rev 26502)
@@ -18,6 +18,8 @@
boolean success = new ProcessArchiveDeployer(jpdlEditor).pingServer();
if (success) {
showSuccessDialog();
+ } else {
+ showFailureDialog();
}
}
@@ -33,4 +35,16 @@
dialog.open();
}
+ private void showFailureDialog() {
+ MessageDialog dialog = new MessageDialog(
+ jpdlEditor.getSite().getShell(),
+ "Ping Server Failure",
+ null,
+ "The server could not be reached. Check your connection information.",
+ SWT.ICON_ERROR,
+ new String[] { "OK" },
+ 0);
+ dialog.open();
+ }
+
}
Modified: trunk/jbpm/plugins/org.jbpm.gd.jpdl/src/org/jbpm/gd/jpdl/deployment/ProcessArchiveDeployer.java
===================================================================
--- trunk/jbpm/plugins/org.jbpm.gd.jpdl/src/org/jbpm/gd/jpdl/deployment/ProcessArchiveDeployer.java 2010-11-12 11:29:11 UTC (rev 26501)
+++ trunk/jbpm/plugins/org.jbpm.gd.jpdl/src/org/jbpm/gd/jpdl/deployment/ProcessArchiveDeployer.java 2010-11-12 11:34:27 UTC (rev 26502)
@@ -36,8 +36,7 @@
if (response == null) {
return false;
}
- System.out.println(response);
- return true;
+ return response.contains("deployed successfully");
}
public boolean pingServer() {
@@ -50,8 +49,7 @@
if (response == null) {
return false;
}
- System.out.println(response);
- return true;
+ return response.contains("GPD deployer is operational");
}
private String constructUrlString() {
15 years, 5 months
JBoss Tools SVN: r26501 - in trunk/deltacloud/plugins/org.jboss.tools.deltacloud.ui/src/org/jboss/tools: deltacloud/ui/commands and 2 other directories.
by jbosstools-commits@lists.jboss.org
Author: adietish
Date: 2010-11-12 06:29:11 -0500 (Fri, 12 Nov 2010)
New Revision: 26501
Added:
trunk/deltacloud/plugins/org.jboss.tools.deltacloud.ui/src/org/jboss/tools/internal/deltacloud/ui/utils/CloudViewElementUtils.java
Removed:
trunk/deltacloud/plugins/org.jboss.tools.deltacloud.ui/src/org/jboss/tools/deltacloud/ui/views/CloudViewElementUtils.java
Modified:
trunk/deltacloud/plugins/org.jboss.tools.deltacloud.ui/src/org/jboss/tools/deltacloud/ui/adapter/CloudViewElementAdapterFactory.java
trunk/deltacloud/plugins/org.jboss.tools.deltacloud.ui/src/org/jboss/tools/deltacloud/ui/adapter/DeltaCloudInstanceAdapterFactory.java
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/views/InstancePropertySource.java
Log:
[JBIDE-7499] moved CloudViewElementUtils to utils package
Modified: trunk/deltacloud/plugins/org.jboss.tools.deltacloud.ui/src/org/jboss/tools/deltacloud/ui/adapter/CloudViewElementAdapterFactory.java
===================================================================
--- trunk/deltacloud/plugins/org.jboss.tools.deltacloud.ui/src/org/jboss/tools/deltacloud/ui/adapter/CloudViewElementAdapterFactory.java 2010-11-12 11:27:35 UTC (rev 26500)
+++ trunk/deltacloud/plugins/org.jboss.tools.deltacloud.ui/src/org/jboss/tools/deltacloud/ui/adapter/CloudViewElementAdapterFactory.java 2010-11-12 11:29:11 UTC (rev 26501)
@@ -19,7 +19,7 @@
import org.jboss.tools.deltacloud.ui.views.CVImageElement;
import org.jboss.tools.deltacloud.ui.views.CVInstanceElement;
import org.jboss.tools.deltacloud.ui.views.CloudViewElement;
-import org.jboss.tools.deltacloud.ui.views.CloudViewElementUtils;
+import org.jboss.tools.internal.deltacloud.ui.utils.CloudViewElementUtils;
public class CloudViewElementAdapterFactory implements IAdapterFactory {
Modified: trunk/deltacloud/plugins/org.jboss.tools.deltacloud.ui/src/org/jboss/tools/deltacloud/ui/adapter/DeltaCloudInstanceAdapterFactory.java
===================================================================
--- trunk/deltacloud/plugins/org.jboss.tools.deltacloud.ui/src/org/jboss/tools/deltacloud/ui/adapter/DeltaCloudInstanceAdapterFactory.java 2010-11-12 11:27:35 UTC (rev 26500)
+++ trunk/deltacloud/plugins/org.jboss.tools.deltacloud.ui/src/org/jboss/tools/deltacloud/ui/adapter/DeltaCloudInstanceAdapterFactory.java 2010-11-12 11:29:11 UTC (rev 26501)
@@ -26,7 +26,6 @@
@Override
public Object getAdapter(Object adaptableObject, Class adapterType) {
if (adaptableObject instanceof DeltaCloudInstance) {
- System.err.println("DeltaCloudInstanceAdapterFactory#getAdapter for " + adapterType);
return ((DeltaCloudInstance) adaptableObject).getDeltaCloud();
} else {
return UIUtils.adapt(adaptableObject, DeltaCloud.class);
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-11-12 11:27:35 UTC (rev 26500)
+++ trunk/deltacloud/plugins/org.jboss.tools.deltacloud.ui/src/org/jboss/tools/deltacloud/ui/commands/RefreshCloudHandler.java 2010-11-12 11:29:11 UTC (rev 26501)
@@ -20,7 +20,7 @@
import org.eclipse.ui.handlers.HandlerUtil;
import org.jboss.tools.deltacloud.core.DeltaCloud;
import org.jboss.tools.deltacloud.ui.views.CloudViewElement;
-import org.jboss.tools.deltacloud.ui.views.CloudViewElementUtils;
+import org.jboss.tools.internal.deltacloud.ui.utils.CloudViewElementUtils;
import org.jboss.tools.internal.deltacloud.ui.utils.UIUtils;
/**
Deleted: trunk/deltacloud/plugins/org.jboss.tools.deltacloud.ui/src/org/jboss/tools/deltacloud/ui/views/CloudViewElementUtils.java
===================================================================
--- trunk/deltacloud/plugins/org.jboss.tools.deltacloud.ui/src/org/jboss/tools/deltacloud/ui/views/CloudViewElementUtils.java 2010-11-12 11:27:35 UTC (rev 26500)
+++ trunk/deltacloud/plugins/org.jboss.tools.deltacloud.ui/src/org/jboss/tools/deltacloud/ui/views/CloudViewElementUtils.java 2010-11-12 11:29:11 UTC (rev 26501)
@@ -1,48 +0,0 @@
-/*******************************************************************************
- * Copyright (c) 2010 Red Hat, Inc.
- * Distributed under license by Red Hat, Inc. All rights reserved.
- * This program is made available under the terms of the
- * Eclipse Public License v1.0 which accompanies this distribution,
- * and is available at http://www.eclipse.org/legal/epl-v10.html
- *
- * Contributors:
- * Red Hat, Inc. - initial API and implementation
- ******************************************************************************/
-package org.jboss.tools.deltacloud.ui.views;
-
-import org.jboss.tools.deltacloud.core.DeltaCloud;
-
-public class CloudViewElementUtils {
-
- /**
- * Returns a DeltaCloud instance for a given cloud view element
- *
- * @param element the cloud view element to get the DeltaCloud for
- * @return the cloud for the given CloudViewElement
- *
- * @see DeltaCloud
- * @see CloudViewElement
- */
- public static DeltaCloud getCloud(CloudViewElement element) {
- CVCloudElement cvcloud = getCVCloudElement(element);
- DeltaCloud cloud = (DeltaCloud) cvcloud.getElement();
- return cloud;
- }
-
- /**
- * Returns a CVCloudElement for a given cloud view element
- *
- * @param element the cloud view element to get the CVCloudElement for
- * @return the CVCloudElement for the given CloudViewElement
- *
- * @see CloudViewElement
- * @see CVCloudElement
- */
- public static CVCloudElement getCVCloudElement(CloudViewElement element) {
- while (!(element instanceof CVCloudElement)) {
- element = (CloudViewElement) element.getParent();
- }
- return (CVCloudElement) element;
- }
-
-}
Modified: trunk/deltacloud/plugins/org.jboss.tools.deltacloud.ui/src/org/jboss/tools/deltacloud/ui/views/InstancePropertySource.java
===================================================================
--- trunk/deltacloud/plugins/org.jboss.tools.deltacloud.ui/src/org/jboss/tools/deltacloud/ui/views/InstancePropertySource.java 2010-11-12 11:27:35 UTC (rev 26500)
+++ trunk/deltacloud/plugins/org.jboss.tools.deltacloud.ui/src/org/jboss/tools/deltacloud/ui/views/InstancePropertySource.java 2010-11-12 11:29:11 UTC (rev 26501)
@@ -17,6 +17,7 @@
import org.eclipse.ui.views.properties.PropertyDescriptor;
import org.jboss.tools.deltacloud.core.DeltaCloud;
import org.jboss.tools.deltacloud.core.DeltaCloudInstance;
+import org.jboss.tools.internal.deltacloud.ui.utils.CloudViewElementUtils;
public class InstancePropertySource implements IPropertySource {
Copied: trunk/deltacloud/plugins/org.jboss.tools.deltacloud.ui/src/org/jboss/tools/internal/deltacloud/ui/utils/CloudViewElementUtils.java (from rev 26270, trunk/deltacloud/plugins/org.jboss.tools.deltacloud.ui/src/org/jboss/tools/deltacloud/ui/views/CloudViewElementUtils.java)
===================================================================
--- trunk/deltacloud/plugins/org.jboss.tools.deltacloud.ui/src/org/jboss/tools/internal/deltacloud/ui/utils/CloudViewElementUtils.java (rev 0)
+++ trunk/deltacloud/plugins/org.jboss.tools.deltacloud.ui/src/org/jboss/tools/internal/deltacloud/ui/utils/CloudViewElementUtils.java 2010-11-12 11:29:11 UTC (rev 26501)
@@ -0,0 +1,50 @@
+/*******************************************************************************
+ * Copyright (c) 2010 Red Hat, Inc.
+ * Distributed under license by Red Hat, Inc. All rights reserved.
+ * This program is made available under the terms of the
+ * Eclipse Public License v1.0 which accompanies this distribution,
+ * and is available at http://www.eclipse.org/legal/epl-v10.html
+ *
+ * Contributors:
+ * Red Hat, Inc. - initial API and implementation
+ ******************************************************************************/
+package org.jboss.tools.internal.deltacloud.ui.utils;
+
+import org.jboss.tools.deltacloud.core.DeltaCloud;
+import org.jboss.tools.deltacloud.ui.views.CVCloudElement;
+import org.jboss.tools.deltacloud.ui.views.CloudViewElement;
+
+public class CloudViewElementUtils {
+
+ /**
+ * Returns a DeltaCloud instance for a given cloud view element
+ *
+ * @param element the cloud view element to get the DeltaCloud for
+ * @return the cloud for the given CloudViewElement
+ *
+ * @see DeltaCloud
+ * @see CloudViewElement
+ */
+ public static DeltaCloud getCloud(CloudViewElement element) {
+ CVCloudElement cvcloud = getCVCloudElement(element);
+ DeltaCloud cloud = (DeltaCloud) cvcloud.getElement();
+ return cloud;
+ }
+
+ /**
+ * Returns a CVCloudElement for a given cloud view element
+ *
+ * @param element the cloud view element to get the CVCloudElement for
+ * @return the CVCloudElement for the given CloudViewElement
+ *
+ * @see CloudViewElement
+ * @see CVCloudElement
+ */
+ public static CVCloudElement getCVCloudElement(CloudViewElement element) {
+ while (!(element instanceof CVCloudElement)) {
+ element = (CloudViewElement) element.getParent();
+ }
+ return (CVCloudElement) element;
+ }
+
+}
Property changes on: trunk/deltacloud/plugins/org.jboss.tools.deltacloud.ui/src/org/jboss/tools/internal/deltacloud/ui/utils/CloudViewElementUtils.java
___________________________________________________________________
Name: svn:mime-type
+ text/plain
15 years, 5 months
JBoss Tools SVN: r26500 - trunk/deltacloud/plugins/org.jboss.tools.deltacloud.ui.
by jbosstools-commits@lists.jboss.org
Author: adietish
Date: 2010-11-12 06:27:35 -0500 (Fri, 12 Nov 2010)
New Revision: 26500
Modified:
trunk/deltacloud/plugins/org.jboss.tools.deltacloud.ui/ChangeLog
Log:
[JBIDE-7459] added detailed error reporting with dialog to start/stop/reboot/destroy instances
Modified: trunk/deltacloud/plugins/org.jboss.tools.deltacloud.ui/ChangeLog
===================================================================
--- trunk/deltacloud/plugins/org.jboss.tools.deltacloud.ui/ChangeLog 2010-11-12 11:22:30 UTC (rev 26499)
+++ trunk/deltacloud/plugins/org.jboss.tools.deltacloud.ui/ChangeLog 2010-11-12 11:27:35 UTC (rev 26500)
@@ -1,6 +1,13 @@
2010-11-12 André Dietisheim <adietish(a)redhat.com>
- * src/org/jboss/tools/deltacloud/ui/views/InstanceViewLabelAndContentProvider.java (getStatusIcon):
+ * src/org/jboss/tools/internal/deltacloud/ui/utils/StringUtils.java (getFormattedString):
+ * src/org/jboss/tools/deltacloud/ui/commands/AbstractInstanceHandler.java (getInstanceNames):
+ * src/org/jboss/tools/deltacloud/ui/commands/StopInstanceHandler.java (execute):
+ * src/org/jboss/tools/deltacloud/ui/commands/StartInstanceHandler.java (execute):
+ * src/org/jboss/tools/deltacloud/ui/commands/RebootInstanceHandler.java (execute):
+ * src/org/jboss/tools/deltacloud/ui/commands/DestroyInstanceHandler.java (execute):
+ [JBIDE-7459] added detailed error reporting with dialog to start/stop/reboot/destroy instances
+ * src/org/jboss/tools/deltacloud/ui/views/InstanceViewLabelAndContentProvider.java (getStatusIcon):
* src/org/jboss/tools/deltacloud/ui/SWTImagesFactory.java:
[JBIDE-7566] renamed running.gif to run.gif, stopped to stop.gif, added running.gif and stopped.gif
15 years, 5 months
JBoss Tools SVN: r26499 - in trunk/deltacloud/plugins/org.jboss.tools.deltacloud.ui/src/org/jboss/tools: deltacloud/ui/views and 1 other directories.
by jbosstools-commits@lists.jboss.org
Author: adietish
Date: 2010-11-12 06:22:30 -0500 (Fri, 12 Nov 2010)
New Revision: 26499
Added:
trunk/deltacloud/plugins/org.jboss.tools.deltacloud.ui/src/org/jboss/tools/internal/deltacloud/ui/utils/StringUtils.java
Modified:
trunk/deltacloud/plugins/org.jboss.tools.deltacloud.ui/src/org/jboss/tools/deltacloud/ui/commands/AbstractInstanceHandler.java
trunk/deltacloud/plugins/org.jboss.tools.deltacloud.ui/src/org/jboss/tools/deltacloud/ui/commands/DestroyInstanceHandler.java
trunk/deltacloud/plugins/org.jboss.tools.deltacloud.ui/src/org/jboss/tools/deltacloud/ui/commands/RebootInstanceHandler.java
trunk/deltacloud/plugins/org.jboss.tools.deltacloud.ui/src/org/jboss/tools/deltacloud/ui/commands/StartInstanceHandler.java
trunk/deltacloud/plugins/org.jboss.tools.deltacloud.ui/src/org/jboss/tools/deltacloud/ui/commands/StopInstanceHandler.java
trunk/deltacloud/plugins/org.jboss.tools.deltacloud.ui/src/org/jboss/tools/deltacloud/ui/views/CVMessages.properties
Log:
[JBIDE-7459] added detailed error reporting with dialog to start/stop/reboot/destroy instances
Modified: trunk/deltacloud/plugins/org.jboss.tools.deltacloud.ui/src/org/jboss/tools/deltacloud/ui/commands/AbstractInstanceHandler.java
===================================================================
--- trunk/deltacloud/plugins/org.jboss.tools.deltacloud.ui/src/org/jboss/tools/deltacloud/ui/commands/AbstractInstanceHandler.java 2010-11-12 11:07:55 UTC (rev 26498)
+++ trunk/deltacloud/plugins/org.jboss.tools.deltacloud.ui/src/org/jboss/tools/deltacloud/ui/commands/AbstractInstanceHandler.java 2010-11-12 11:22:30 UTC (rev 26499)
@@ -13,8 +13,11 @@
import org.eclipse.core.commands.AbstractHandler;
import org.eclipse.core.commands.IHandler;
import org.eclipse.jface.viewers.ISelection;
+import org.eclipse.jface.viewers.IStructuredSelection;
import org.jboss.tools.deltacloud.core.DeltaCloudInstance;
import org.jboss.tools.deltacloud.ui.views.PerformInstanceActionThread;
+import org.jboss.tools.internal.deltacloud.ui.utils.StringUtils;
+import org.jboss.tools.internal.deltacloud.ui.utils.StringUtils.IElementFormatter;
import org.jboss.tools.internal.deltacloud.ui.utils.UIUtils;
/**
@@ -42,4 +45,24 @@
protected boolean isSingleInstanceSelected(ISelection selection) {
return UIUtils.isSingleSelection(selection, DeltaCloudInstance.class);
}
+
+ @SuppressWarnings("unchecked")
+ protected String getInstanceNames(ISelection selection) {
+ return StringUtils.getFormattedString(((IStructuredSelection) selection).toList(),
+ new IElementFormatter<Object>() {
+
+ @Override
+ public String format(Object element) {
+ if (element instanceof DeltaCloudInstance) {
+ return new StringBuilder()
+ .append(((DeltaCloudInstance) element).getName())
+ .append(",")
+ .toString();
+ } else {
+ return null;
+ }
+ }
+ });
+ }
+
}
Modified: trunk/deltacloud/plugins/org.jboss.tools.deltacloud.ui/src/org/jboss/tools/deltacloud/ui/commands/DestroyInstanceHandler.java
===================================================================
--- trunk/deltacloud/plugins/org.jboss.tools.deltacloud.ui/src/org/jboss/tools/deltacloud/ui/commands/DestroyInstanceHandler.java 2010-11-12 11:07:55 UTC (rev 26498)
+++ trunk/deltacloud/plugins/org.jboss.tools.deltacloud.ui/src/org/jboss/tools/deltacloud/ui/commands/DestroyInstanceHandler.java 2010-11-12 11:22:30 UTC (rev 26499)
@@ -14,12 +14,16 @@
import org.eclipse.core.commands.ExecutionEvent;
import org.eclipse.core.commands.ExecutionException;
+import org.eclipse.core.runtime.IStatus;
import org.eclipse.core.runtime.Status;
import org.eclipse.jface.dialogs.Dialog;
+import org.eclipse.jface.dialogs.ErrorDialog;
import org.eclipse.jface.viewers.ISelection;
import org.eclipse.jface.viewers.IStructuredSelection;
import org.eclipse.ui.handlers.HandlerUtil;
+import org.jboss.tools.common.log.StatusFactory;
import org.jboss.tools.deltacloud.core.DeltaCloudInstance;
+import org.jboss.tools.deltacloud.ui.Activator;
import org.jboss.tools.deltacloud.ui.views.CVMessages;
import org.jboss.tools.deltacloud.ui.views.PerformDestroyInstanceActionThread;
import org.jboss.tools.internal.deltacloud.ui.utils.UIUtils;
@@ -38,16 +42,29 @@
@Override
public Object execute(ExecutionEvent event) throws ExecutionException {
ISelection selection = HandlerUtil.getCurrentSelection(event);
- if (selection instanceof IStructuredSelection) {
- if (isSingleInstanceSelected(selection)) {
- DeltaCloudInstance cvInstance = UIUtils.getFirstAdaptedElement(selection, DeltaCloudInstance.class);
- destroyInstance(cvInstance);
- } else {
- destroyWithDialog((IStructuredSelection) selection);
+ try {
+ if (selection instanceof IStructuredSelection) {
+ if (isSingleInstanceSelected(selection)) {
+ DeltaCloudInstance cvInstance = UIUtils.getFirstAdaptedElement(selection, DeltaCloudInstance.class);
+ destroyInstance(cvInstance);
+ } else {
+ destroyWithDialog((IStructuredSelection) selection);
+ }
}
+
+ return Status.OK_STATUS;
+ } catch (Exception e) {
+ String message = getInstanceNames(selection);
+ IStatus status = StatusFactory.getInstance(
+ IStatus.ERROR,
+ Activator.PLUGIN_ID,
+ e.getMessage(),
+ e);
+ ErrorDialog.openError(HandlerUtil.getActiveShell(event),
+ CVMessages.getString("DestroyInstancesDialogError.title"),
+ CVMessages.getFormattedString("DestroyInstancesDialogError.msg", message), status);
+ return status;
}
-
- return Status.OK_STATUS;
}
@SuppressWarnings("unchecked")
@@ -67,11 +84,11 @@
destroyInstance((DeltaCloudInstance) cvInstances[i]);
}
}
-
+
private void destroyInstance(DeltaCloudInstance instance) {
if (instance != null) {
PerformDestroyInstanceActionThread t = new PerformDestroyInstanceActionThread(
- instance.getDeltaCloud(),
+ instance.getDeltaCloud(),
instance,
CVMessages.getString(DESTROYING_INSTANCE_TITLE),
CVMessages.getFormattedString(DESTROYING_INSTANCE_MSG, new String[] { instance.getName() }));
Modified: trunk/deltacloud/plugins/org.jboss.tools.deltacloud.ui/src/org/jboss/tools/deltacloud/ui/commands/RebootInstanceHandler.java
===================================================================
--- trunk/deltacloud/plugins/org.jboss.tools.deltacloud.ui/src/org/jboss/tools/deltacloud/ui/commands/RebootInstanceHandler.java 2010-11-12 11:07:55 UTC (rev 26498)
+++ trunk/deltacloud/plugins/org.jboss.tools.deltacloud.ui/src/org/jboss/tools/deltacloud/ui/commands/RebootInstanceHandler.java 2010-11-12 11:22:30 UTC (rev 26499)
@@ -14,12 +14,16 @@
import org.eclipse.core.commands.ExecutionEvent;
import org.eclipse.core.commands.ExecutionException;
+import org.eclipse.core.runtime.IStatus;
import org.eclipse.core.runtime.Status;
import org.eclipse.jface.dialogs.Dialog;
+import org.eclipse.jface.dialogs.ErrorDialog;
import org.eclipse.jface.viewers.ISelection;
import org.eclipse.jface.viewers.IStructuredSelection;
import org.eclipse.ui.handlers.HandlerUtil;
+import org.jboss.tools.common.log.StatusFactory;
import org.jboss.tools.deltacloud.core.DeltaCloudInstance;
+import org.jboss.tools.deltacloud.ui.Activator;
import org.jboss.tools.deltacloud.ui.views.CVMessages;
import org.jboss.tools.internal.deltacloud.ui.utils.UIUtils;
@@ -37,16 +41,29 @@
@Override
public Object execute(ExecutionEvent event) throws ExecutionException {
ISelection selection = HandlerUtil.getCurrentSelection(event);
- if (selection instanceof IStructuredSelection) {
- if (isSingleInstanceSelected(selection)) {
- DeltaCloudInstance cvInstance = UIUtils.getFirstAdaptedElement(selection, DeltaCloudInstance.class);
- rebootInstance(cvInstance);
- } else {
- rebootWithDialog((IStructuredSelection)selection);
+ try {
+ if (selection instanceof IStructuredSelection) {
+ if (isSingleInstanceSelected(selection)) {
+ DeltaCloudInstance cvInstance = UIUtils.getFirstAdaptedElement(selection, DeltaCloudInstance.class);
+ rebootInstance(cvInstance);
+ } else {
+ rebootWithDialog((IStructuredSelection) selection);
+ }
}
+
+ return Status.OK_STATUS;
+ } catch (Exception e) {
+ String message = getInstanceNames(selection);
+ IStatus status = StatusFactory.getInstance(
+ IStatus.ERROR,
+ Activator.PLUGIN_ID,
+ e.getMessage(),
+ e);
+ ErrorDialog.openError(HandlerUtil.getActiveShell(event),
+ CVMessages.getString("RebootInstancesDialogError.title"),
+ CVMessages.getFormattedString("RebootInstancesDialogError.msg", message), status);
+ return status;
}
-
- return Status.OK_STATUS;
}
@SuppressWarnings("unchecked")
@@ -60,13 +77,13 @@
rebootInstances(dialog.getResult());
}
}
-
+
private void rebootInstances(Object[] deltaCloudInstances) {
for (int i = 0; i < deltaCloudInstances.length; i++) {
rebootInstance((DeltaCloudInstance) deltaCloudInstances[i]);
}
}
-
+
private void rebootInstance(DeltaCloudInstance instance) {
if (instance != null) {
executeInstanceAction(
Modified: trunk/deltacloud/plugins/org.jboss.tools.deltacloud.ui/src/org/jboss/tools/deltacloud/ui/commands/StartInstanceHandler.java
===================================================================
--- trunk/deltacloud/plugins/org.jboss.tools.deltacloud.ui/src/org/jboss/tools/deltacloud/ui/commands/StartInstanceHandler.java 2010-11-12 11:07:55 UTC (rev 26498)
+++ trunk/deltacloud/plugins/org.jboss.tools.deltacloud.ui/src/org/jboss/tools/deltacloud/ui/commands/StartInstanceHandler.java 2010-11-12 11:22:30 UTC (rev 26499)
@@ -15,12 +15,16 @@
import org.eclipse.core.commands.ExecutionEvent;
import org.eclipse.core.commands.ExecutionException;
import org.eclipse.core.runtime.Assert;
+import org.eclipse.core.runtime.IStatus;
import org.eclipse.core.runtime.Status;
import org.eclipse.jface.dialogs.Dialog;
+import org.eclipse.jface.dialogs.ErrorDialog;
import org.eclipse.jface.viewers.ISelection;
import org.eclipse.jface.viewers.IStructuredSelection;
import org.eclipse.ui.handlers.HandlerUtil;
+import org.jboss.tools.common.log.StatusFactory;
import org.jboss.tools.deltacloud.core.DeltaCloudInstance;
+import org.jboss.tools.deltacloud.ui.Activator;
import org.jboss.tools.deltacloud.ui.views.CVMessages;
import org.jboss.tools.internal.deltacloud.ui.utils.UIUtils;
@@ -37,16 +41,29 @@
@Override
public Object execute(ExecutionEvent event) throws ExecutionException {
ISelection selection = HandlerUtil.getCurrentSelection(event);
- if (selection instanceof IStructuredSelection) {
- if (isSingleInstanceSelected(selection)) {
- DeltaCloudInstance cvinstance = UIUtils.getFirstAdaptedElement(selection, DeltaCloudInstance.class);
- startInstance(cvinstance);
- } else {
- startWithDialog((IStructuredSelection) selection);
+ try {
+ if (selection instanceof IStructuredSelection) {
+ if (isSingleInstanceSelected(selection)) {
+ DeltaCloudInstance cvinstance = UIUtils.getFirstAdaptedElement(selection, DeltaCloudInstance.class);
+ startInstance(cvinstance);
+ } else {
+ startWithDialog((IStructuredSelection) selection);
+ }
}
+
+ return Status.OK_STATUS;
+ } catch (Exception e) {
+ String message = getInstanceNames(selection);
+ IStatus status = StatusFactory.getInstance(
+ IStatus.ERROR,
+ Activator.PLUGIN_ID,
+ e.getMessage(),
+ e);
+ ErrorDialog.openError(HandlerUtil.getActiveShell(event),
+ CVMessages.getString("StartInstancesDialogError.title"),
+ CVMessages.getFormattedString("StartInstancesDialogError.msg", message), status);
+ return status;
}
-
- return Status.OK_STATUS;
}
@SuppressWarnings("unchecked")
Modified: trunk/deltacloud/plugins/org.jboss.tools.deltacloud.ui/src/org/jboss/tools/deltacloud/ui/commands/StopInstanceHandler.java
===================================================================
--- trunk/deltacloud/plugins/org.jboss.tools.deltacloud.ui/src/org/jboss/tools/deltacloud/ui/commands/StopInstanceHandler.java 2010-11-12 11:07:55 UTC (rev 26498)
+++ trunk/deltacloud/plugins/org.jboss.tools.deltacloud.ui/src/org/jboss/tools/deltacloud/ui/commands/StopInstanceHandler.java 2010-11-12 11:22:30 UTC (rev 26499)
@@ -14,12 +14,16 @@
import org.eclipse.core.commands.ExecutionEvent;
import org.eclipse.core.commands.ExecutionException;
+import org.eclipse.core.runtime.IStatus;
import org.eclipse.core.runtime.Status;
import org.eclipse.jface.dialogs.Dialog;
+import org.eclipse.jface.dialogs.ErrorDialog;
import org.eclipse.jface.viewers.ISelection;
import org.eclipse.jface.viewers.IStructuredSelection;
import org.eclipse.ui.handlers.HandlerUtil;
+import org.jboss.tools.common.log.StatusFactory;
import org.jboss.tools.deltacloud.core.DeltaCloudInstance;
+import org.jboss.tools.deltacloud.ui.Activator;
import org.jboss.tools.deltacloud.ui.views.CVMessages;
import org.jboss.tools.internal.deltacloud.ui.utils.UIUtils;
@@ -36,16 +40,28 @@
@Override
public Object execute(ExecutionEvent event) throws ExecutionException {
ISelection selection = HandlerUtil.getCurrentSelection(event);
- if (selection instanceof IStructuredSelection) {
- if (isSingleInstanceSelected(selection)) {
- DeltaCloudInstance cvInstance = UIUtils.getFirstAdaptedElement(selection, DeltaCloudInstance.class);
- stopInstance(cvInstance);
- } else {
- stopWithDialog((IStructuredSelection) selection);
+ try {
+ if (selection instanceof IStructuredSelection) {
+ if (isSingleInstanceSelected(selection)) {
+ DeltaCloudInstance instance = UIUtils.getFirstAdaptedElement(selection, DeltaCloudInstance.class);
+ stopInstance(instance);
+ } else {
+ stopWithDialog((IStructuredSelection) selection);
+ }
}
+ return Status.OK_STATUS;
+ } catch (Exception e) {
+ String message = getInstanceNames(selection);
+ IStatus status = StatusFactory.getInstance(
+ IStatus.ERROR,
+ Activator.PLUGIN_ID,
+ e.getMessage(),
+ e);
+ ErrorDialog.openError(HandlerUtil.getActiveShell(event),
+ CVMessages.getString("StopInstancesDialogError.title"),
+ CVMessages.getFormattedString("StopInstancesDialogError.msg", message), status);
+ return status;
}
-
- return Status.OK_STATUS;
}
@SuppressWarnings("unchecked")
Modified: trunk/deltacloud/plugins/org.jboss.tools.deltacloud.ui/src/org/jboss/tools/deltacloud/ui/views/CVMessages.properties
===================================================================
--- trunk/deltacloud/plugins/org.jboss.tools.deltacloud.ui/src/org/jboss/tools/deltacloud/ui/views/CVMessages.properties 2010-11-12 11:07:55 UTC (rev 26498)
+++ trunk/deltacloud/plugins/org.jboss.tools.deltacloud.ui/src/org/jboss/tools/deltacloud/ui/views/CVMessages.properties 2010-11-12 11:22:30 UTC (rev 26499)
@@ -49,18 +49,26 @@
StartingInstance.msg=Starting Instance: {0}
StartInstancesDialog.title=Start Instances
StartInstancesDialog.msg=Please choose the instances that shall be started by checking them:
+StartInstancesDialogError.title=Error while starting instance(s)
+StartInstancesDialogError.msg=Could not start instance(s) {0}
StoppingInstance.title=Stopping Instance
StoppingInstance.msg=Stopping Instance: {0}
StopInstancesDialog.title=Stop Instances
StopInstancesDialog.msg=Please choose the instances that shall be stopped by checking them:
+StopInstancesDialogError.title=Error while stopping instance(s)
+StopInstancesDialogError.msg=Could not stop instance(s) {0}
RebootingInstance.title=Rebooting Instance
RebootingInstance.msg=Rebooting Instance: {0}
RebootInstancesDialog.title=Reboot Instances
RebootInstancesDialog.msg=Please choose the clouds that shall be rebooted by checking them:
+RebootInstancesDialogError.title=Error while rebooting instance(s)
+RebootInstancesDialogError.msg=Could not reboot instance(s) {0}
DestroyingInstance.title=Destroying Instance
DestroyingInstance.msg=Destroying Instance: {0}
DestroyInstancesDialog.title=Destroy Instances
DestroyInstancesDialog.msg=Please choose the clouds that shall be destroyed by checking them:
+DestroyInstancesDialogError.title=Error while destroying instance(s)
+DestroyInstancesDialogError.msg=Could not destroy instance(s) {0}
ConnectingRSE.msg=Connecting instance as: {0}
ConfirmCloudDelete.title=Confirm Cloud Disconnect
ConfirmCloudDelete.msg=Please choose the clouds that shall be disconnected by checking them:
Added: trunk/deltacloud/plugins/org.jboss.tools.deltacloud.ui/src/org/jboss/tools/internal/deltacloud/ui/utils/StringUtils.java
===================================================================
--- trunk/deltacloud/plugins/org.jboss.tools.deltacloud.ui/src/org/jboss/tools/internal/deltacloud/ui/utils/StringUtils.java (rev 0)
+++ trunk/deltacloud/plugins/org.jboss.tools.deltacloud.ui/src/org/jboss/tools/internal/deltacloud/ui/utils/StringUtils.java 2010-11-12 11:22:30 UTC (rev 26499)
@@ -0,0 +1,51 @@
+/*******************************************************************************
+ * Copyright (c) 2010 Red Hat, Inc.
+ * Distributed under license by Red Hat, Inc. All rights reserved.
+ * This program is made available under the terms of the
+ * Eclipse Public License v1.0 which accompanies this distribution,
+ * and is available at http://www.eclipse.org/legal/epl-v10.html
+ *
+ * Contributors:
+ * Red Hat, Inc. - initial API and implementation
+ ******************************************************************************/
+package org.jboss.tools.internal.deltacloud.ui.utils;
+
+import java.util.Collection;
+
+/**
+ * @author Andre Dietisheim
+ */
+public class StringUtils {
+
+ /**
+ * Returns a formatted string for a collection of elements that get
+ * formatted by a user supplied element formatter.
+ *
+ * @param <E>
+ * the element type
+ * @param elements
+ * the elements
+ * @param elementFormatter
+ * the element formatter
+ * @return the formatted string
+ */
+ public static <E> String getFormattedString(Collection<E> elements, IElementFormatter<E> elementFormatter) {
+ StringBuilder builder = new StringBuilder();
+ for (E element : elements) {
+ String formattedElement = elementFormatter.format(element);
+ if (formattedElement != null && formattedElement.length() > 0) {
+ builder.append(formattedElement);
+ }
+ }
+ if (builder.length() > 0) {
+ return builder.toString();
+ } else {
+ return "";
+ }
+ }
+
+ public interface IElementFormatter<E> {
+ public String format(E element);
+ }
+
+}
Property changes on: trunk/deltacloud/plugins/org.jboss.tools.deltacloud.ui/src/org/jboss/tools/internal/deltacloud/ui/utils/StringUtils.java
___________________________________________________________________
Name: svn:mime-type
+ text/plain
15 years, 5 months
JBoss Tools SVN: r26498 - in trunk: jsf/tests/org.jboss.tools.jsf.vpe.jsf.test/resources/customFaceletsTestProject/WebContent/pages and 3 other directories.
by jbosstools-commits@lists.jboss.org
Author: dmaliarevich
Date: 2010-11-12 06:07:55 -0500 (Fri, 12 Nov 2010)
New Revision: 26498
Modified:
trunk/jsf/tests/org.jboss.tools.jsf.vpe.facelets.test/resources/faceletsTest/WebContent/pages/components/compositionWithoutTaglibs.xhtml.xml
trunk/jsf/tests/org.jboss.tools.jsf.vpe.facelets.test/resources/faceletsTest/WebContent/pages/components/customFaceletComponent.xhtml.xml
trunk/jsf/tests/org.jboss.tools.jsf.vpe.jsf.test/resources/customFaceletsTestProject/WebContent/pages/incorrectCustomTags.xhtml.xml
trunk/jsf/tests/org.jboss.tools.jsf.vpe.jsf.test/resources/jsf2test/WebContent/pages/JBIDE/5352/jbide5352.xhtml.xml
trunk/jsf/tests/org.jboss.tools.jsf.vpe.jsf.test/src/org/jboss/tools/jsf/vpe/jsf/test/jbide/JBIDE675Test.java
trunk/vpe/plugins/org.jboss.tools.vpe/src/org/jboss/tools/vpe/editor/template/VpeAnyCreator.java
Log:
https://jira.jboss.org/browse/JBIDE-7535 , VpeAnyCreator was updated: one more DIV was added, JUnits were updated.
Modified: trunk/jsf/tests/org.jboss.tools.jsf.vpe.facelets.test/resources/faceletsTest/WebContent/pages/components/compositionWithoutTaglibs.xhtml.xml
===================================================================
--- trunk/jsf/tests/org.jboss.tools.jsf.vpe.facelets.test/resources/faceletsTest/WebContent/pages/components/compositionWithoutTaglibs.xhtml.xml 2010-11-12 09:55:55 UTC (rev 26497)
+++ trunk/jsf/tests/org.jboss.tools.jsf.vpe.facelets.test/resources/faceletsTest/WebContent/pages/components/compositionWithoutTaglibs.xhtml.xml 2010-11-12 11:07:55 UTC (rev 26498)
@@ -5,27 +5,35 @@
</SPAN>
</test>
<test id="id3">
-<DIV CLASS="__any__tag__caption" STYLE="border: 1px solid green; -moz-user-modify: read-only;">
-ui:composition
-<DIV CLASS="__any__tag__caption" STYLE="border: 1px solid green; -moz-user-modify: read-only;">
-ui:define
-<SPAN CLASS="vpe-text">
-Greeting to User
+<DIV STYLE="border: 1px solid green; -moz-user-modify: read-only;">
+ <DIV CLASS="__any__tag__caption" STYLE="">
+ ui:composition
+</DIV>
+ <DIV STYLE="border: 1px solid green; -moz-user-modify: read-only;">
+ <DIV CLASS="__any__tag__caption" STYLE="">
+ ui:define
+</DIV>
+ <SPAN CLASS="vpe-text">
+ Greeting to User
</SPAN>
+ </DIV>
+ <DIV STYLE="border: 1px solid green; -moz-user-modify: read-only;">
+ <DIV CLASS="__any__tag__caption" STYLE="">
+ ui:define
</DIV>
-<DIV CLASS="__any__tag__caption" STYLE="border: 1px solid green; -moz-user-modify: read-only;">
-ui:define
-<SPAN CLASS="vpe-text">
-Greeting Page
+ <SPAN CLASS="vpe-text">
+ Greeting Page
</SPAN>
+ </DIV>
+ <DIV STYLE="border: 1px solid green; -moz-user-modify: read-only;">
+ <DIV CLASS="__any__tag__caption" STYLE="">
+ ui:define
</DIV>
-<DIV CLASS="__any__tag__caption" STYLE="border: 1px solid green; -moz-user-modify: read-only;">
-ui:define
-<SPAN CLASS="vpe-text">
-Hello #{person.name}!
+ <SPAN CLASS="vpe-text">
+ Hello #{person.name}!
</SPAN>
+ </DIV>
</DIV>
-</DIV>
</test>
</tests>
Modified: trunk/jsf/tests/org.jboss.tools.jsf.vpe.facelets.test/resources/faceletsTest/WebContent/pages/components/customFaceletComponent.xhtml.xml
===================================================================
--- trunk/jsf/tests/org.jboss.tools.jsf.vpe.facelets.test/resources/faceletsTest/WebContent/pages/components/customFaceletComponent.xhtml.xml 2010-11-12 09:55:55 UTC (rev 26497)
+++ trunk/jsf/tests/org.jboss.tools.jsf.vpe.facelets.test/resources/faceletsTest/WebContent/pages/components/customFaceletComponent.xhtml.xml 2010-11-12 11:07:55 UTC (rev 26498)
@@ -5,9 +5,11 @@
</SPAN>
</test>
<test id="id2">
- <DIV CLASS="__any__tag__caption" STYLE="border: 1px solid green; -moz-user-modify: read-only;">
- component
- </DIV>
+<DIV STYLE="border: 1px solid green; -moz-user-modify: read-only;">
+ <DIV CLASS="__any__tag__caption" STYLE="">
+ component
+</DIV>
+</DIV>
</test>
<test id="id3">
<SPAN>
Modified: trunk/jsf/tests/org.jboss.tools.jsf.vpe.jsf.test/resources/customFaceletsTestProject/WebContent/pages/incorrectCustomTags.xhtml.xml
===================================================================
--- trunk/jsf/tests/org.jboss.tools.jsf.vpe.jsf.test/resources/customFaceletsTestProject/WebContent/pages/incorrectCustomTags.xhtml.xml 2010-11-12 09:55:55 UTC (rev 26497)
+++ trunk/jsf/tests/org.jboss.tools.jsf.vpe.jsf.test/resources/customFaceletsTestProject/WebContent/pages/incorrectCustomTags.xhtml.xml 2010-11-12 11:07:55 UTC (rev 26498)
@@ -1,18 +1,22 @@
<tests>
<test id="incorrectCustomTags">
-<DIV ID="incorrectCustomTags" >
+<DIV ID="incorrectCustomTags">
<!-- Custom template doesn't defined -->
<DIV VPE:INCLUDE-ELEMENT="yes" >
ma:test<BR VPE:PSEUDO-ELEMENT="yes" />
</DIV>
<!-- Custom template defined, but hasn't source node -->
-<DIV CLASS="__any__tag__caption" STYLE="border: 1px solid green; -moz-user-modify: read-only;">
-mo:paginator<BR VPE:PSEUDO-ELEMENT="yes" STYLE="font-style: italic; color: green; -moz-user-modify: read-only;"/>
+<DIV STYLE="border: 1px solid green; -moz-user-modify: read-only;">
+<DIV CLASS="__any__tag__caption" STYLE="">
+mo:paginator
+</DIV><BR VPE:PSEUDO-ELEMENT="yes" STYLE="font-style: italic; color: green; -moz-user-modify: read-only;"/>
</DIV>
-<DIV CLASS="__any__tag__caption" STYLE="border: 1px solid green; -moz-user-modify: read-only;">
-mo:test<BR VPE:PSEUDO-ELEMENT="yes" STYLE="font-style: italic; color: green; -moz-user-modify: read-only;"/>
+<DIV STYLE="border: 1px solid green; -moz-user-modify: read-only;">
+<DIV CLASS="__any__tag__caption" STYLE="">
+mo:test
+</DIV><BR VPE:PSEUDO-ELEMENT="yes" STYLE="font-style: italic; color: green; -moz-user-modify: read-only;"/>
</DIV>
<DIV VPE:INCLUDE-ELEMENT="yes">
Modified: trunk/jsf/tests/org.jboss.tools.jsf.vpe.jsf.test/resources/jsf2test/WebContent/pages/JBIDE/5352/jbide5352.xhtml.xml
===================================================================
--- trunk/jsf/tests/org.jboss.tools.jsf.vpe.jsf.test/resources/jsf2test/WebContent/pages/JBIDE/5352/jbide5352.xhtml.xml 2010-11-12 09:55:55 UTC (rev 26497)
+++ trunk/jsf/tests/org.jboss.tools.jsf.vpe.jsf.test/resources/jsf2test/WebContent/pages/JBIDE/5352/jbide5352.xhtml.xml 2010-11-12 11:07:55 UTC (rev 26498)
@@ -8,8 +8,10 @@
<SPAN CLASS="vpe-text">
Default namespace detection test page
</SPAN>
-<DIV CLASS="__any__tag__caption" STYLE="border: 1px solid green; -moz-user-modify: read-only;">
-h1<BR VPE:PSEUDO-ELEMENT="yes" STYLE="font-style: italic; color: green; -moz-user-modify: read-only;"/>
+<DIV STYLE="border: 1px solid green; -moz-user-modify: read-only;">
+<DIV CLASS="__any__tag__caption" STYLE="">
+h1
+</DIV><BR VPE:PSEUDO-ELEMENT="yes" STYLE="font-style: italic; color: green; -moz-user-modify: read-only;"/>
</DIV>
<INPUT VALUE="Test"/>
Modified: trunk/jsf/tests/org.jboss.tools.jsf.vpe.jsf.test/src/org/jboss/tools/jsf/vpe/jsf/test/jbide/JBIDE675Test.java
===================================================================
--- trunk/jsf/tests/org.jboss.tools.jsf.vpe.jsf.test/src/org/jboss/tools/jsf/vpe/jsf/test/jbide/JBIDE675Test.java 2010-11-12 09:55:55 UTC (rev 26497)
+++ trunk/jsf/tests/org.jboss.tools.jsf.vpe.jsf.test/src/org/jboss/tools/jsf/vpe/jsf/test/jbide/JBIDE675Test.java 2010-11-12 11:07:55 UTC (rev 26498)
@@ -146,9 +146,10 @@
nsIDOMNode div = nodeMapping.getVisualNode();
- nsIDOMNode textNode = div.getFirstChild();
+ nsIDOMNode textNode = div.getFirstChild().getFirstChild();
- assertEquals(textNode.getNodeType(), nsIDOMNode.TEXT_NODE);
+ assertEquals("Incorrect node types", //$NON-NLS-1$
+ textNode.getNodeType(), nsIDOMNode.TEXT_NODE);
assertNotNull(textNode.getNodeValue());
assertNotNull(node.getNodeName());
@@ -204,9 +205,10 @@
nsIDOMNode div = nodeMapping.getVisualNode();
- nsIDOMNode textNode = div.getFirstChild();
+ nsIDOMNode textNode = div.getFirstChild().getFirstChild();
- assertEquals(textNode.getNodeType(), nsIDOMNode.TEXT_NODE);
+ assertEquals("Incorrect node types", //$NON-NLS-1$
+ textNode.getNodeType(), nsIDOMNode.TEXT_NODE);
assertNotNull(textNode.getNodeValue());
assertNotNull(node.getNodeName());
Modified: trunk/vpe/plugins/org.jboss.tools.vpe/src/org/jboss/tools/vpe/editor/template/VpeAnyCreator.java
===================================================================
--- trunk/vpe/plugins/org.jboss.tools.vpe/src/org/jboss/tools/vpe/editor/template/VpeAnyCreator.java 2010-11-12 09:55:55 UTC (rev 26497)
+++ trunk/vpe/plugins/org.jboss.tools.vpe/src/org/jboss/tools/vpe/editor/template/VpeAnyCreator.java 2010-11-12 11:07:55 UTC (rev 26498)
@@ -166,6 +166,7 @@
}
nsIDOMElement anyElement = visualDocument.createElement(tagForDisplay);
+ nsIDOMElement anyElementName = visualDocument.createElement(tagForDisplay);
VpeCreatorInfo creatorInfo = new VpeCreatorInfo(anyElement);
@@ -174,10 +175,10 @@
img.setAttribute("src","any.gif"); //$NON-NLS-1$//$NON-NLS-2$
img.setAttribute("width","16"); //$NON-NLS-1$ //$NON-NLS-2$
img.setAttribute("height","16"); //$NON-NLS-1$ //$NON-NLS-2$
- anyElement.appendChild(img);
+ anyElementName.appendChild(img);
}
- anyElement.setAttribute(HTML.ATTR_CLASS, CLASS_TAG_CAPTION);
+ anyElementName.setAttribute(HTML.ATTR_CLASS, CLASS_TAG_CAPTION);
String styleString = getExprValue(pageContext, styleExpr, sourceNode);
@@ -192,16 +193,16 @@
// styleString = "border: 1px solid green;" +styleString; //$NON-NLS-1$
// }
- anyElement.setAttribute(HTML.ATTR_STYLE, styleString);
+ anyElementName.setAttribute(HTML.ATTR_STYLE, styleString);
if (propertyCreators != null) {
for (int i = 0; i < propertyCreators.size(); i++) {
VpeCreator creator = (VpeCreator)propertyCreators.get(i);
if (creator != null) {
- VpeCreatorInfo info = creator.create(pageContext, (Element) sourceNode, visualDocument, anyElement, visualNodeMap);
+ VpeCreatorInfo info = creator.create(pageContext, (Element) sourceNode, visualDocument, anyElementName, visualNodeMap);
if (info != null && info.getVisualNode() != null) {
nsIDOMAttr attr = (nsIDOMAttr)info.getVisualNode();
- anyElement.setAttributeNode(attr);
+ anyElementName.setAttributeNode(attr);
}
}
}
@@ -209,7 +210,12 @@
String valueStr = getExprValue(pageContext, valueExpr, sourceNode);
nsIDOMNode valueNode = visualDocument.createTextNode(valueStr);
- anyElement.appendChild(valueNode);
+ /*
+ * 'Any tag name' will be placed in the first child of the root visual element.
+ * If there are other children -- they'll be placed after tag's name
+ */
+ anyElementName.appendChild(valueNode);
+ anyElement.appendChild(anyElementName);
creatorInfo.addDependencySet(dependencySet);
return creatorInfo;
}
15 years, 5 months