JBoss Tools SVN: r27398 - trunk/cdi/plugins/org.jboss.tools.cdi.ui/src/org/jboss/tools/cdi/ui/marker.
by jbosstools-commits@lists.jboss.org
Author: dazarov
Date: 2010-12-13 04:30:23 -0500 (Mon, 13 Dec 2010)
New Revision: 27398
Modified:
trunk/cdi/plugins/org.jboss.tools.cdi.ui/src/org/jboss/tools/cdi/ui/marker/CDIProblemMarkerResolutionGenerator.java
Log:
https://issues.jboss.org/browse/JBIDE-7672
Modified: trunk/cdi/plugins/org.jboss.tools.cdi.ui/src/org/jboss/tools/cdi/ui/marker/CDIProblemMarkerResolutionGenerator.java
===================================================================
--- trunk/cdi/plugins/org.jboss.tools.cdi.ui/src/org/jboss/tools/cdi/ui/marker/CDIProblemMarkerResolutionGenerator.java 2010-12-13 09:28:46 UTC (rev 27397)
+++ trunk/cdi/plugins/org.jboss.tools.cdi.ui/src/org/jboss/tools/cdi/ui/marker/CDIProblemMarkerResolutionGenerator.java 2010-12-13 09:30:23 UTC (rev 27398)
@@ -80,7 +80,7 @@
IMethod method = findMethod(file, start);
if(method != null){
List<IType> types = findLocalAnnotattedInterfaces(method);
- if(types.size() == 0){
+ if(types.size() == 0 && !isMethodPublic(method)){
return new IMarkerResolution[] {
new MakeMethodPublicMarkerResolution(method, file)
};
@@ -156,7 +156,7 @@
if(javaElement != null && javaElement instanceof IField){
IField field = (IField)javaElement;
- if((field.getFlags() & Flags.AccStatic) == 0 && !field.isBinary())
+ if(!Flags.isStatic(field.getFlags()) && !field.isBinary())
return field;
}
}catch(CoreException ex){
@@ -165,6 +165,12 @@
return null;
}
+ private boolean isMethodPublic(IMethod method) throws JavaModelException{
+ if(Flags.isPublic(method.getFlags()))
+ return true;
+ return false;
+ }
+
public boolean hasResolutions(IMarker marker) {
try {
if (findResolutions(marker).length != 0)
14 years
JBoss Tools SVN: r27397 - trunk/deltacloud/plugins/org.jboss.tools.deltacloud.ui/src/org/jboss/tools/deltacloud/ui/adapter.
by jbosstools-commits@lists.jboss.org
Author: adietish
Date: 2010-12-13 04:28:46 -0500 (Mon, 13 Dec 2010)
New Revision: 27397
Modified:
trunk/deltacloud/plugins/org.jboss.tools.deltacloud.ui/src/org/jboss/tools/deltacloud/ui/adapter/CloudViewElementAdapterFactory.java
Log:
[JBIDE-7864] added hasImages property tester, rename CreateInstanceHandler2 to CreateInstanceFromAnyImage,renamed CreateInstanceHandler to CreateInstanceFromSpecificImage
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-12-13 09:27:23 UTC (rev 27396)
+++ trunk/deltacloud/plugins/org.jboss.tools.deltacloud.ui/src/org/jboss/tools/deltacloud/ui/adapter/CloudViewElementAdapterFactory.java 2010-12-13 09:28:46 UTC (rev 27397)
@@ -16,9 +16,9 @@
import org.jboss.tools.deltacloud.core.DeltaCloud;
import org.jboss.tools.deltacloud.core.DeltaCloudImage;
import org.jboss.tools.deltacloud.core.DeltaCloudInstance;
+import org.jboss.tools.deltacloud.ui.views.cloud.DeltaCloudViewItem;
import org.jboss.tools.deltacloud.ui.views.cloud.ImageItem;
import org.jboss.tools.deltacloud.ui.views.cloud.InstanceItem;
-import org.jboss.tools.deltacloud.ui.views.cloud.DeltaCloudViewItem;
import org.jboss.tools.internal.deltacloud.ui.utils.CloudViewElementUtils;
public class CloudViewElementAdapterFactory implements IAdapterFactory {
@@ -48,7 +48,7 @@
}
}
- private DeltaCloudInstance getDeltaCloudInstance(DeltaCloudViewItem element) {
+ private DeltaCloudInstance getDeltaCloudInstance(DeltaCloudViewItem<?> element) {
if (element instanceof InstanceItem) {
return (DeltaCloudInstance) element.getModel();
} else {
@@ -56,7 +56,7 @@
}
}
- private DeltaCloudImage getDeltaCloudImage(DeltaCloudViewItem element) {
+ private DeltaCloudImage getDeltaCloudImage(DeltaCloudViewItem<?> element) {
if (element instanceof ImageItem) {
return (DeltaCloudImage) element.getModel();
} else {
14 years
JBoss Tools SVN: r27396 - trunk/deltacloud/plugins/org.jboss.tools.deltacloud.ui.
by jbosstools-commits@lists.jboss.org
Author: adietish
Date: 2010-12-13 04:27:23 -0500 (Mon, 13 Dec 2010)
New Revision: 27396
Modified:
trunk/deltacloud/plugins/org.jboss.tools.deltacloud.ui/plugin.xml
Log:
[JBIDE-7864] added hasImages property tester, rename CreateInstanceHandler2 to CreateInstanceFromAnyImage,renamed CreateInstanceHandler to CreateInstanceFromSpecificImage
Modified: trunk/deltacloud/plugins/org.jboss.tools.deltacloud.ui/plugin.xml
===================================================================
--- trunk/deltacloud/plugins/org.jboss.tools.deltacloud.ui/plugin.xml 2010-12-13 09:25:26 UTC (rev 27395)
+++ trunk/deltacloud/plugins/org.jboss.tools.deltacloud.ui/plugin.xml 2010-12-13 09:27:23 UTC (rev 27396)
@@ -42,7 +42,8 @@
contributorId="org.jboss.tools.deltacloud.ui.views.CloudView"
typeMapper="org.jboss.tools.deltacloud.ui.views.cloud.DeltaCloudViewElementTypeMapper">
<propertyCategory
- category="main"></propertyCategory>
+ category="main">
+ </propertyCategory>
</propertyContributor>
</extension>
<extension
14 years
JBoss Tools SVN: r27395 - 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-13 04:25:26 -0500 (Mon, 13 Dec 2010)
New Revision: 27395
Added:
trunk/deltacloud/plugins/org.jboss.tools.deltacloud.ui/src/org/jboss/tools/deltacloud/ui/commands/CreateInstanceFromAnyImageHandler.java
trunk/deltacloud/plugins/org.jboss.tools.deltacloud.ui/src/org/jboss/tools/deltacloud/ui/commands/CreateInstanceFromSpecificImageHandler.java
trunk/deltacloud/plugins/org.jboss.tools.deltacloud.ui/src/org/jboss/tools/deltacloud/ui/commands/DeltaCloudInstancePropertyTester.java
trunk/deltacloud/plugins/org.jboss.tools.deltacloud.ui/src/org/jboss/tools/deltacloud/ui/commands/DeltaCloudPropertyTester.java
Removed:
trunk/deltacloud/plugins/org.jboss.tools.deltacloud.ui/src/org/jboss/tools/deltacloud/ui/commands/CreateInstanceHandler.java
trunk/deltacloud/plugins/org.jboss.tools.deltacloud.ui/src/org/jboss/tools/deltacloud/ui/commands/CreateInstanceHandler2.java
trunk/deltacloud/plugins/org.jboss.tools.deltacloud.ui/src/org/jboss/tools/deltacloud/ui/commands/InstancePropertyTester.java
Modified:
trunk/deltacloud/plugins/org.jboss.tools.deltacloud.ui/ChangeLog
trunk/deltacloud/plugins/org.jboss.tools.deltacloud.ui/plugin.xml
Log:
[JBIDE-7864] added hasImages property tester, rename CreateInstanceHandler2 to CreateInstanceFromAnyImage,renamed CreateInstanceHandler to CreateInstanceFromSpecificImage
Modified: trunk/deltacloud/plugins/org.jboss.tools.deltacloud.ui/ChangeLog
===================================================================
--- trunk/deltacloud/plugins/org.jboss.tools.deltacloud.ui/ChangeLog 2010-12-13 09:01:14 UTC (rev 27394)
+++ trunk/deltacloud/plugins/org.jboss.tools.deltacloud.ui/ChangeLog 2010-12-13 09:25:26 UTC (rev 27395)
@@ -1,3 +1,9 @@
+2010-12-13 André Dietisheim <adietish(a)redhat.com>
+
+ * plugin.xml:
+ [JBIDE-7864] added hasImages property tester, rename CreateInstanceHandler2 to CreateInstanceFromAnyImage,
+ renamed CreateInstanceHandler to CreateInstanceFromSpecificImage
+
2010-12-10 André Dietisheim <adietish(a)redhat.com>
* src/org/jboss/tools/deltacloud/ui/views/cloudelements/AbstractCloudElementTableView.java
Modified: trunk/deltacloud/plugins/org.jboss.tools.deltacloud.ui/plugin.xml
===================================================================
--- trunk/deltacloud/plugins/org.jboss.tools.deltacloud.ui/plugin.xml 2010-12-13 09:01:14 UTC (rev 27394)
+++ trunk/deltacloud/plugins/org.jboss.tools.deltacloud.ui/plugin.xml 2010-12-13 09:25:26 UTC (rev 27395)
@@ -292,17 +292,19 @@
</enabledWhen>
</handler>
<handler
- class="org.jboss.tools.deltacloud.ui.commands.CreateInstanceHandler2"
- commandId="org.jboss.tools.deltacloud.ui.createinstance2">
+ class="org.jboss.tools.deltacloud.ui.commands.CreateInstanceFromAnyImageHandler"
+ commandId="org.jboss.tools.deltacloud.ui.createinstanceFromAnyImage">
<activeWhen>
- <with
- variable="selection">
- <iterate>
- <instanceof
- value="org.jboss.tools.deltacloud.ui.views.cloud.DeltaCloudViewItem">
- </instanceof>
- </iterate>
- </with>
+ <with
+ variable="selection">
+ <iterate operator="and">
+ <adapt
+ type="org.jboss.tools.deltacloud.core.DeltaCloud">
+ <test property="org.jboss.tools.deltacloud.ui.commands.hasImages"
+ value="true"/>
+ </adapt>
+ </iterate>
+ </with>
</activeWhen>
<enabledWhen>
<with
@@ -316,8 +318,8 @@
point="org.eclipse.ui.handlers">
<!-- image command handlers -->
<handler
- class="org.jboss.tools.deltacloud.ui.commands.CreateInstanceHandler"
- commandId="org.jboss.tools.deltacloud.ui.createinstance">
+ class="org.jboss.tools.deltacloud.ui.commands.CreateInstanceFromSpecificImageHandler"
+ commandId="org.jboss.tools.deltacloud.ui.createinstanceFromSpecificImage">
<activeWhen>
<with
variable="selection">
@@ -664,7 +666,7 @@
locationURI="popup:org.jboss.tools.deltacloud.ui.views.DeltaCloudView?after=images">
<!-- image commands -->
<command
- commandId="org.jboss.tools.deltacloud.ui.createinstance"
+ commandId="org.jboss.tools.deltacloud.ui.createinstanceFromSpecificImage"
icon="icons/instance.gif"
label="%command.createinstance.label"
style="push"
@@ -687,7 +689,7 @@
locationURI="popup:org.jboss.tools.deltacloud.ui.views.DeltaCloudView?after=images">
<!-- image commands -->
<command
- commandId="org.jboss.tools.deltacloud.ui.createinstance2"
+ commandId="org.jboss.tools.deltacloud.ui.createinstanceFromAnyImage"
icon="icons/instance.gif"
label="%command.createinstance.label"
style="push"
@@ -763,7 +765,7 @@
locationURI="popup:org.jboss.tools.deltacloud.ui.views.ImageView?after=images">
<!-- image commands -->
<command
- commandId="org.jboss.tools.deltacloud.ui.createinstance"
+ commandId="org.jboss.tools.deltacloud.ui.createinstanceFromSpecificImage"
icon="icons/instance.gif"
label="%command.createinstance.label"
style="push"
@@ -810,13 +812,13 @@
</command>
<command
description="%command.createinstance.description"
- id="org.jboss.tools.deltacloud.ui.createinstance2"
+ id="org.jboss.tools.deltacloud.ui.createinstanceFromAnyImage"
name="%command.createinstance.name">
</command>
<!-- image commands -->
<command
description="%command.createinstance.description"
- id="org.jboss.tools.deltacloud.ui.createinstance"
+ id="org.jboss.tools.deltacloud.ui.createinstanceFromSpecificImage"
name="%command.createinstance.name">
</command>
<!-- instance commands -->
@@ -860,12 +862,19 @@
</extension>
<extension point="org.eclipse.core.expressions.propertyTesters">
<propertyTester
- class="org.jboss.tools.deltacloud.ui.commands.InstancePropertyTester"
+ class="org.jboss.tools.deltacloud.ui.commands.DeltaCloudInstancePropertyTester"
id="org.jboss.tools.deltacloud.ui.commands.instancepropertytester"
namespace="org.jboss.tools.deltacloud.ui.commands"
properties="canStart,canStop,canReboot,canDestroy,isRunning"
type="org.jboss.tools.deltacloud.core.DeltaCloudInstance">
</propertyTester>
+ <propertyTester
+ class="org.jboss.tools.deltacloud.ui.commands.DeltaCloudPropertyTester"
+ id="org.jboss.tools.deltacloud.ui.commands.cloudpropertytester"
+ namespace="org.jboss.tools.deltacloud.ui.commands"
+ properties="hasImages"
+ type="org.jboss.tools.deltacloud.core.DeltaCloud">
+ </propertyTester>
</extension>
<extension
point="org.eclipse.core.runtime.adapters">
Copied: trunk/deltacloud/plugins/org.jboss.tools.deltacloud.ui/src/org/jboss/tools/deltacloud/ui/commands/CreateInstanceFromAnyImageHandler.java (from rev 27393, trunk/deltacloud/plugins/org.jboss.tools.deltacloud.ui/src/org/jboss/tools/deltacloud/ui/commands/CreateInstanceHandler2.java)
===================================================================
--- trunk/deltacloud/plugins/org.jboss.tools.deltacloud.ui/src/org/jboss/tools/deltacloud/ui/commands/CreateInstanceFromAnyImageHandler.java (rev 0)
+++ trunk/deltacloud/plugins/org.jboss.tools.deltacloud.ui/src/org/jboss/tools/deltacloud/ui/commands/CreateInstanceFromAnyImageHandler.java 2010-12-13 09:25:26 UTC (rev 27395)
@@ -0,0 +1,48 @@
+/*******************************************************************************
+ * 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.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.Status;
+import org.eclipse.jface.viewers.ISelection;
+import org.eclipse.jface.viewers.IStructuredSelection;
+import org.eclipse.jface.wizard.IWizard;
+import org.eclipse.jface.wizard.WizardDialog;
+import org.eclipse.ui.handlers.HandlerUtil;
+import org.jboss.tools.deltacloud.core.DeltaCloud;
+import org.jboss.tools.internal.deltacloud.ui.utils.UIUtils;
+import org.jboss.tools.internal.deltacloud.ui.wizards.NewInstanceWizard;
+
+/**
+ * @author Jeff Johnston
+ * @author André Dietisheim
+ */
+public class CreateInstanceFromAnyImageHandler extends AbstractHandler implements IHandler {
+
+ @Override
+ public Object execute(ExecutionEvent event) throws ExecutionException {
+ ISelection selection = HandlerUtil.getCurrentSelection(event);
+ if (selection instanceof IStructuredSelection) {
+ DeltaCloud cloud = UIUtils.getFirstAdaptedElement(selection, DeltaCloud.class);
+ IWizard wizard = new NewInstanceWizard(cloud);
+ WizardDialog dialog = new WizardDialog(UIUtils.getActiveWorkbenchWindow().getShell(),
+ wizard);
+ dialog.create();
+ dialog.open();
+ }
+
+ return Status.OK_STATUS;
+ }
+
+}
Property changes on: trunk/deltacloud/plugins/org.jboss.tools.deltacloud.ui/src/org/jboss/tools/deltacloud/ui/commands/CreateInstanceFromAnyImageHandler.java
___________________________________________________________________
Name: svn:mime-type
+ text/plain
Copied: trunk/deltacloud/plugins/org.jboss.tools.deltacloud.ui/src/org/jboss/tools/deltacloud/ui/commands/CreateInstanceFromSpecificImageHandler.java (from rev 27269, trunk/deltacloud/plugins/org.jboss.tools.deltacloud.ui/src/org/jboss/tools/deltacloud/ui/commands/CreateInstanceHandler.java)
===================================================================
--- trunk/deltacloud/plugins/org.jboss.tools.deltacloud.ui/src/org/jboss/tools/deltacloud/ui/commands/CreateInstanceFromSpecificImageHandler.java (rev 0)
+++ trunk/deltacloud/plugins/org.jboss.tools.deltacloud.ui/src/org/jboss/tools/deltacloud/ui/commands/CreateInstanceFromSpecificImageHandler.java 2010-12-13 09:25:26 UTC (rev 27395)
@@ -0,0 +1,54 @@
+/*******************************************************************************
+ * 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.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.Status;
+import org.eclipse.jface.viewers.ISelection;
+import org.eclipse.jface.viewers.IStructuredSelection;
+import org.eclipse.jface.wizard.IWizard;
+import org.eclipse.jface.wizard.WizardDialog;
+import org.eclipse.swt.widgets.Shell;
+import org.eclipse.ui.handlers.HandlerUtil;
+import org.jboss.tools.deltacloud.core.DeltaCloud;
+import org.jboss.tools.deltacloud.core.DeltaCloudImage;
+import org.jboss.tools.internal.deltacloud.ui.utils.UIUtils;
+import org.jboss.tools.internal.deltacloud.ui.wizards.NewInstanceWizard;
+
+/**
+ * @author Andre Dietisheim
+ */
+public class CreateInstanceFromSpecificImageHandler extends AbstractHandler implements IHandler {
+
+ @Override
+ public Object execute(ExecutionEvent event) throws ExecutionException {
+ ISelection selection = HandlerUtil.getCurrentSelection(event);
+ if (selection instanceof IStructuredSelection) {
+ DeltaCloudImage deltaCloudImage = UIUtils.getFirstAdaptedElement(selection, DeltaCloudImage.class);
+ createInstance(deltaCloudImage, HandlerUtil.getActiveShell(event));
+ }
+
+ return Status.OK_STATUS;
+ }
+
+ private void createInstance(DeltaCloudImage deltaCloudImage, Shell shell) {
+ if (deltaCloudImage != null) {
+ DeltaCloud deltaCloud = deltaCloudImage.getDeltaCloud();
+ IWizard wizard = new NewInstanceWizard(deltaCloud, deltaCloudImage);
+ WizardDialog dialog = new WizardDialog(shell, wizard);
+ dialog.create();
+ dialog.open();
+ }
+ }
+}
Property changes on: trunk/deltacloud/plugins/org.jboss.tools.deltacloud.ui/src/org/jboss/tools/deltacloud/ui/commands/CreateInstanceFromSpecificImageHandler.java
___________________________________________________________________
Name: svn:mime-type
+ text/plain
Deleted: trunk/deltacloud/plugins/org.jboss.tools.deltacloud.ui/src/org/jboss/tools/deltacloud/ui/commands/CreateInstanceHandler.java
===================================================================
--- trunk/deltacloud/plugins/org.jboss.tools.deltacloud.ui/src/org/jboss/tools/deltacloud/ui/commands/CreateInstanceHandler.java 2010-12-13 09:01:14 UTC (rev 27394)
+++ trunk/deltacloud/plugins/org.jboss.tools.deltacloud.ui/src/org/jboss/tools/deltacloud/ui/commands/CreateInstanceHandler.java 2010-12-13 09:25:26 UTC (rev 27395)
@@ -1,54 +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.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.Status;
-import org.eclipse.jface.viewers.ISelection;
-import org.eclipse.jface.viewers.IStructuredSelection;
-import org.eclipse.jface.wizard.IWizard;
-import org.eclipse.jface.wizard.WizardDialog;
-import org.eclipse.swt.widgets.Shell;
-import org.eclipse.ui.handlers.HandlerUtil;
-import org.jboss.tools.deltacloud.core.DeltaCloud;
-import org.jboss.tools.deltacloud.core.DeltaCloudImage;
-import org.jboss.tools.internal.deltacloud.ui.utils.UIUtils;
-import org.jboss.tools.internal.deltacloud.ui.wizards.NewInstanceWizard;
-
-/**
- * @author Andre Dietisheim
- */
-public class CreateInstanceHandler extends AbstractHandler implements IHandler {
-
- @Override
- public Object execute(ExecutionEvent event) throws ExecutionException {
- ISelection selection = HandlerUtil.getCurrentSelection(event);
- if (selection instanceof IStructuredSelection) {
- DeltaCloudImage deltaCloudImage = UIUtils.getFirstAdaptedElement(selection, DeltaCloudImage.class);
- createInstance(deltaCloudImage, HandlerUtil.getActiveShell(event));
- }
-
- return Status.OK_STATUS;
- }
-
- private void createInstance(DeltaCloudImage deltaCloudImage, Shell shell) {
- if (deltaCloudImage != null) {
- DeltaCloud deltaCloud = deltaCloudImage.getDeltaCloud();
- IWizard wizard = new NewInstanceWizard(deltaCloud, deltaCloudImage);
- WizardDialog dialog = new WizardDialog(shell, wizard);
- dialog.create();
- dialog.open();
- }
- }
-}
Deleted: trunk/deltacloud/plugins/org.jboss.tools.deltacloud.ui/src/org/jboss/tools/deltacloud/ui/commands/CreateInstanceHandler2.java
===================================================================
--- trunk/deltacloud/plugins/org.jboss.tools.deltacloud.ui/src/org/jboss/tools/deltacloud/ui/commands/CreateInstanceHandler2.java 2010-12-13 09:01:14 UTC (rev 27394)
+++ trunk/deltacloud/plugins/org.jboss.tools.deltacloud.ui/src/org/jboss/tools/deltacloud/ui/commands/CreateInstanceHandler2.java 2010-12-13 09:25:26 UTC (rev 27395)
@@ -1,56 +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.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.Status;
-import org.eclipse.jface.viewers.ISelection;
-import org.eclipse.jface.viewers.IStructuredSelection;
-import org.eclipse.jface.wizard.IWizard;
-import org.eclipse.jface.wizard.WizardDialog;
-import org.eclipse.ui.handlers.HandlerUtil;
-import org.jboss.tools.deltacloud.core.DeltaCloud;
-import org.jboss.tools.deltacloud.ui.views.cloud.CloudItem;
-import org.jboss.tools.deltacloud.ui.views.cloud.DeltaCloudViewItem;
-import org.jboss.tools.internal.deltacloud.ui.utils.UIUtils;
-import org.jboss.tools.internal.deltacloud.ui.wizards.NewInstanceWizard;
-
-/**
- * @author Jeff Johnston
- */
-public class CreateInstanceHandler2 extends AbstractHandler implements IHandler {
-
- @Override
- public Object execute(ExecutionEvent event) throws ExecutionException {
- ISelection selection = HandlerUtil.getCurrentSelection(event);
- if (selection instanceof IStructuredSelection) {
- DeltaCloudViewItem<?> element = UIUtils.getFirstAdaptedElement(selection, DeltaCloudViewItem.class);
- while (element != null && !(element instanceof CloudItem)) {
- element = (DeltaCloudViewItem<?>) element.getParent();
- }
- if (element != null) {
- CloudItem cloudElement = (CloudItem) element;
- DeltaCloud cloud = (DeltaCloud) cloudElement.getModel();
- IWizard wizard = new NewInstanceWizard(cloud);
- WizardDialog dialog = new WizardDialog(UIUtils.getActiveWorkbenchWindow().getShell(),
- wizard);
- dialog.create();
- dialog.open();
- }
- }
-
- return Status.OK_STATUS;
- }
-
-}
Copied: trunk/deltacloud/plugins/org.jboss.tools.deltacloud.ui/src/org/jboss/tools/deltacloud/ui/commands/DeltaCloudInstancePropertyTester.java (from rev 27269, trunk/deltacloud/plugins/org.jboss.tools.deltacloud.ui/src/org/jboss/tools/deltacloud/ui/commands/InstancePropertyTester.java)
===================================================================
--- trunk/deltacloud/plugins/org.jboss.tools.deltacloud.ui/src/org/jboss/tools/deltacloud/ui/commands/DeltaCloudInstancePropertyTester.java (rev 0)
+++ trunk/deltacloud/plugins/org.jboss.tools.deltacloud.ui/src/org/jboss/tools/deltacloud/ui/commands/DeltaCloudInstancePropertyTester.java 2010-12-13 09:25:26 UTC (rev 27395)
@@ -0,0 +1,63 @@
+/*******************************************************************************
+ * 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.commands;
+
+import org.eclipse.core.expressions.PropertyTester;
+import org.eclipse.core.runtime.Assert;
+import org.jboss.tools.deltacloud.core.DeltaCloudInstance;
+import org.jboss.tools.internal.deltacloud.ui.utils.UIUtils;
+
+/**
+ * A property tester for the command framework that answers if the given
+ * instance is stopped
+ *
+ * @author Andre Dietisheim
+ */
+public class DeltaCloudInstancePropertyTester extends PropertyTester {
+
+ private static final String PROPERTY_ACTION_CANSTART = "canStart";
+ private static final String PROPERTY_ACTION_CANSTOP = "canStop";
+ private static final String PROPERTY_ACTION_CANREBOOT = "canReboot";
+ private static final String PROPERTY_ACTION_CANDESTROY = "canDestroy";
+ private static final String PROPERTY_ACTION_ISRUNNING = "isRunning";
+
+ @Override
+ public boolean test(Object receiver, String property, Object[] args, Object expectedValue) {
+ DeltaCloudInstance instance = UIUtils.adapt(receiver, DeltaCloudInstance.class);
+ if (instance == null) {
+ return false;
+ }
+
+ if (PROPERTY_ACTION_CANSTART.equals(property)) {
+ return equalsExpectedValue(instance.canStart(), expectedValue);
+ }
+ else if (PROPERTY_ACTION_CANSTOP.equals(property)) {
+ return equalsExpectedValue(instance.canStop(), expectedValue);
+ }
+ else if (PROPERTY_ACTION_CANREBOOT.equals(property)) {
+ return equalsExpectedValue(instance.canReboot(), expectedValue);
+ }
+ else if (PROPERTY_ACTION_CANDESTROY.equals(property)) {
+ return equalsExpectedValue(instance.canDestroy(), expectedValue);
+ }
+ else if (PROPERTY_ACTION_ISRUNNING.equals(property)) {
+ return equalsExpectedValue(instance.isRunning(), expectedValue);
+ }
+ return false;
+ }
+
+ private boolean equalsExpectedValue(boolean propertyValue, Object expectedValue) {
+ Assert.isTrue(expectedValue instanceof Boolean);
+ Boolean expectedBoolean = (Boolean) expectedValue;
+ return expectedBoolean.equals(propertyValue);
+ }
+
+}
Property changes on: trunk/deltacloud/plugins/org.jboss.tools.deltacloud.ui/src/org/jboss/tools/deltacloud/ui/commands/DeltaCloudInstancePropertyTester.java
___________________________________________________________________
Name: svn:mime-type
+ text/plain
Added: trunk/deltacloud/plugins/org.jboss.tools.deltacloud.ui/src/org/jboss/tools/deltacloud/ui/commands/DeltaCloudPropertyTester.java
===================================================================
--- trunk/deltacloud/plugins/org.jboss.tools.deltacloud.ui/src/org/jboss/tools/deltacloud/ui/commands/DeltaCloudPropertyTester.java (rev 0)
+++ trunk/deltacloud/plugins/org.jboss.tools.deltacloud.ui/src/org/jboss/tools/deltacloud/ui/commands/DeltaCloudPropertyTester.java 2010-12-13 09:25:26 UTC (rev 27395)
@@ -0,0 +1,57 @@
+/*******************************************************************************
+ * 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.commands;
+
+import org.eclipse.core.expressions.PropertyTester;
+import org.eclipse.core.runtime.Assert;
+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.internal.deltacloud.ui.utils.UIUtils;
+
+/**
+ * A property tester for the command framework that answers if the given
+ * DeltaCloud has images
+ *
+ * @author Andre Dietisheim
+ */
+public class DeltaCloudPropertyTester extends PropertyTester {
+
+ private static final String PROPERTY_HAS_IMAGES = "hasImages";
+
+ @Override
+ public boolean test(Object receiver, String property, Object[] args, Object expectedValue) {
+ DeltaCloud cloud = UIUtils.adapt(receiver, DeltaCloud.class);
+ if (cloud == null) {
+ return false;
+ }
+
+ if (PROPERTY_HAS_IMAGES.equals(property)) {
+ return equalsExpectedValue(getImages(cloud), true);
+ }
+ return false;
+ }
+
+ private DeltaCloudImage[] getImages(DeltaCloud cloud) {
+ try {
+ return cloud.getImages();
+ } catch (DeltaCloudException e) {
+ return new DeltaCloudImage[] {};
+ }
+ }
+
+ private boolean equalsExpectedValue(DeltaCloudImage[] images, Object expectedValue) {
+ Assert.isTrue(expectedValue instanceof Boolean);
+ Boolean expectedBoolean = (Boolean) expectedValue;
+ return expectedBoolean.equals(images.length > 0);
+ }
+
+}
Property changes on: trunk/deltacloud/plugins/org.jboss.tools.deltacloud.ui/src/org/jboss/tools/deltacloud/ui/commands/DeltaCloudPropertyTester.java
___________________________________________________________________
Name: svn:mime-type
+ text/plain
Deleted: trunk/deltacloud/plugins/org.jboss.tools.deltacloud.ui/src/org/jboss/tools/deltacloud/ui/commands/InstancePropertyTester.java
===================================================================
--- trunk/deltacloud/plugins/org.jboss.tools.deltacloud.ui/src/org/jboss/tools/deltacloud/ui/commands/InstancePropertyTester.java 2010-12-13 09:01:14 UTC (rev 27394)
+++ trunk/deltacloud/plugins/org.jboss.tools.deltacloud.ui/src/org/jboss/tools/deltacloud/ui/commands/InstancePropertyTester.java 2010-12-13 09:25:26 UTC (rev 27395)
@@ -1,63 +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.commands;
-
-import org.eclipse.core.expressions.PropertyTester;
-import org.eclipse.core.runtime.Assert;
-import org.jboss.tools.deltacloud.core.DeltaCloudInstance;
-import org.jboss.tools.internal.deltacloud.ui.utils.UIUtils;
-
-/**
- * A property tester for the command framework that answers if the given
- * instance is stopped
- *
- * @author Andre Dietisheim
- */
-public class InstancePropertyTester extends PropertyTester {
-
- private static final String PROPERTY_ACTION_CANSTART = "canStart";
- private static final String PROPERTY_ACTION_CANSTOP = "canStop";
- private static final String PROPERTY_ACTION_CANREBOOT = "canReboot";
- private static final String PROPERTY_ACTION_CANDESTROY = "canDestroy";
- private static final String PROPERTY_ACTION_ISRUNNING = "isRunning";
-
- @Override
- public boolean test(Object receiver, String property, Object[] args, Object expectedValue) {
- DeltaCloudInstance instance = UIUtils.adapt(receiver, DeltaCloudInstance.class);
- if (instance == null) {
- return false;
- }
-
- if (PROPERTY_ACTION_CANSTART.equals(property)) {
- return equalsExpectedValue(instance.canStart(), expectedValue);
- }
- else if (PROPERTY_ACTION_CANSTOP.equals(property)) {
- return equalsExpectedValue(instance.canStop(), expectedValue);
- }
- else if (PROPERTY_ACTION_CANREBOOT.equals(property)) {
- return equalsExpectedValue(instance.canReboot(), expectedValue);
- }
- else if (PROPERTY_ACTION_CANDESTROY.equals(property)) {
- return equalsExpectedValue(instance.canDestroy(), expectedValue);
- }
- else if (PROPERTY_ACTION_ISRUNNING.equals(property)) {
- return equalsExpectedValue(instance.isRunning(), expectedValue);
- }
- return false;
- }
-
- private boolean equalsExpectedValue(boolean propertyValue, Object expectedValue) {
- Assert.isTrue(expectedValue instanceof Boolean);
- Boolean expectedBoolean = (Boolean) expectedValue;
- return expectedBoolean.equals(propertyValue);
- }
-
-}
14 years
JBoss Tools SVN: r27394 - trunk/cdi/plugins/org.jboss.tools.cdi.ui/src/org/jboss/tools/cdi/ui/marker.
by jbosstools-commits@lists.jboss.org
Author: dazarov
Date: 2010-12-13 04:01:14 -0500 (Mon, 13 Dec 2010)
New Revision: 27394
Modified:
trunk/cdi/plugins/org.jboss.tools.cdi.ui/src/org/jboss/tools/cdi/ui/marker/CDIProblemMarkerResolutionGenerator.java
trunk/cdi/plugins/org.jboss.tools.cdi.ui/src/org/jboss/tools/cdi/ui/marker/MakeMethodBusinessMarkerResolution.java
Log:
https://issues.jboss.org/browse/JBIDE-7672
Modified: trunk/cdi/plugins/org.jboss.tools.cdi.ui/src/org/jboss/tools/cdi/ui/marker/CDIProblemMarkerResolutionGenerator.java
===================================================================
--- trunk/cdi/plugins/org.jboss.tools.cdi.ui/src/org/jboss/tools/cdi/ui/marker/CDIProblemMarkerResolutionGenerator.java 2010-12-13 08:13:01 UTC (rev 27393)
+++ trunk/cdi/plugins/org.jboss.tools.cdi.ui/src/org/jboss/tools/cdi/ui/marker/CDIProblemMarkerResolutionGenerator.java 2010-12-13 09:01:14 UTC (rev 27394)
@@ -74,7 +74,9 @@
new MakeFieldStaticMarkerResolution(field, file)
};
}
- }else if (messageId == CDIValidationErrorManager.ILLEGAL_PRODUCER_METHOD_IN_SESSION_BEAN_ID) {
+ }else if (messageId == CDIValidationErrorManager.ILLEGAL_PRODUCER_METHOD_IN_SESSION_BEAN_ID ||
+ messageId == CDIValidationErrorManager.ILLEGAL_DISPOSER_IN_SESSION_BEAN_ID ||
+ messageId == CDIValidationErrorManager.ILLEGAL_OBSERVER_IN_SESSION_BEAN_ID) {
IMethod method = findMethod(file, start);
if(method != null){
List<IType> types = findLocalAnnotattedInterfaces(method);
Modified: trunk/cdi/plugins/org.jboss.tools.cdi.ui/src/org/jboss/tools/cdi/ui/marker/MakeMethodBusinessMarkerResolution.java
===================================================================
--- trunk/cdi/plugins/org.jboss.tools.cdi.ui/src/org/jboss/tools/cdi/ui/marker/MakeMethodBusinessMarkerResolution.java 2010-12-13 08:13:01 UTC (rev 27393)
+++ trunk/cdi/plugins/org.jboss.tools.cdi.ui/src/org/jboss/tools/cdi/ui/marker/MakeMethodBusinessMarkerResolution.java 2010-12-13 09:01:14 UTC (rev 27394)
@@ -45,6 +45,7 @@
static final HashSet<String> primitives = new HashSet<String>();
static{
+ primitives.add("void"); //$NON-NLS-1$
primitives.add("int"); //$NON-NLS-1$
primitives.add("java.lang.Integer"); //$NON-NLS-1$
primitives.add("char"); //$NON-NLS-1$
14 years
JBoss Tools SVN: r27393 - trunk/deltacloud/plugins/org.jboss.tools.deltacloud.ui/src/org/jboss/tools/deltacloud/ui/commands.
by jbosstools-commits@lists.jboss.org
Author: adietish
Date: 2010-12-13 03:13:01 -0500 (Mon, 13 Dec 2010)
New Revision: 27393
Modified:
trunk/deltacloud/plugins/org.jboss.tools.deltacloud.ui/src/org/jboss/tools/deltacloud/ui/commands/CreateInstanceHandler2.java
trunk/deltacloud/plugins/org.jboss.tools.deltacloud.ui/src/org/jboss/tools/deltacloud/ui/commands/DisconnectCloudHandler.java
trunk/deltacloud/plugins/org.jboss.tools.deltacloud.ui/src/org/jboss/tools/deltacloud/ui/commands/EditConnectionHandler.java
Log:
corrected warnings
Modified: trunk/deltacloud/plugins/org.jboss.tools.deltacloud.ui/src/org/jboss/tools/deltacloud/ui/commands/CreateInstanceHandler2.java
===================================================================
--- trunk/deltacloud/plugins/org.jboss.tools.deltacloud.ui/src/org/jboss/tools/deltacloud/ui/commands/CreateInstanceHandler2.java 2010-12-13 06:50:40 UTC (rev 27392)
+++ trunk/deltacloud/plugins/org.jboss.tools.deltacloud.ui/src/org/jboss/tools/deltacloud/ui/commands/CreateInstanceHandler2.java 2010-12-13 08:13:01 UTC (rev 27393)
@@ -35,9 +35,9 @@
public Object execute(ExecutionEvent event) throws ExecutionException {
ISelection selection = HandlerUtil.getCurrentSelection(event);
if (selection instanceof IStructuredSelection) {
- DeltaCloudViewItem element = UIUtils.getFirstAdaptedElement(selection, DeltaCloudViewItem.class);
+ DeltaCloudViewItem<?> element = UIUtils.getFirstAdaptedElement(selection, DeltaCloudViewItem.class);
while (element != null && !(element instanceof CloudItem)) {
- element = (DeltaCloudViewItem) element.getParent();
+ element = (DeltaCloudViewItem<?>) element.getParent();
}
if (element != null) {
CloudItem cloudElement = (CloudItem) element;
Modified: trunk/deltacloud/plugins/org.jboss.tools.deltacloud.ui/src/org/jboss/tools/deltacloud/ui/commands/DisconnectCloudHandler.java
===================================================================
--- trunk/deltacloud/plugins/org.jboss.tools.deltacloud.ui/src/org/jboss/tools/deltacloud/ui/commands/DisconnectCloudHandler.java 2010-12-13 06:50:40 UTC (rev 27392)
+++ trunk/deltacloud/plugins/org.jboss.tools.deltacloud.ui/src/org/jboss/tools/deltacloud/ui/commands/DisconnectCloudHandler.java 2010-12-13 08:13:01 UTC (rev 27393)
@@ -158,7 +158,7 @@
return null;
}
- DeltaCloud cloud = getDeltaCloud((DeltaCloudViewItem) item);
+ DeltaCloud cloud = getDeltaCloud((DeltaCloudViewItem<?>) item);
if (cloud == null) {
return null;
@@ -166,7 +166,7 @@
return cloud;
}
- private DeltaCloud getDeltaCloud(DeltaCloudViewItem element) {
+ private DeltaCloud getDeltaCloud(DeltaCloudViewItem<?> element) {
if (element == null) {
return null;
}
@@ -175,7 +175,7 @@
return (DeltaCloud) cloud;
}
- return getDeltaCloud((DeltaCloudViewItem) element.getParent());
+ return getDeltaCloud((DeltaCloudViewItem<?>) element.getParent());
}
private void removeDeltaClouds(Object[] deltaClouds) throws DeltaCloudException {
Modified: trunk/deltacloud/plugins/org.jboss.tools.deltacloud.ui/src/org/jboss/tools/deltacloud/ui/commands/EditConnectionHandler.java
===================================================================
--- trunk/deltacloud/plugins/org.jboss.tools.deltacloud.ui/src/org/jboss/tools/deltacloud/ui/commands/EditConnectionHandler.java 2010-12-13 06:50:40 UTC (rev 27392)
+++ trunk/deltacloud/plugins/org.jboss.tools.deltacloud.ui/src/org/jboss/tools/deltacloud/ui/commands/EditConnectionHandler.java 2010-12-13 08:13:01 UTC (rev 27393)
@@ -35,9 +35,9 @@
public Object execute(ExecutionEvent event) throws ExecutionException {
ISelection selection = HandlerUtil.getCurrentSelection(event);
if (selection instanceof IStructuredSelection) {
- DeltaCloudViewItem element = UIUtils.getFirstAdaptedElement(selection, DeltaCloudViewItem.class);
+ DeltaCloudViewItem<?> element = UIUtils.getFirstAdaptedElement(selection, DeltaCloudViewItem.class);
while (element != null && !(element instanceof CloudItem)) {
- element = (DeltaCloudViewItem) element.getParent();
+ element = (DeltaCloudViewItem<?>) element.getParent();
}
if (element != null) {
CloudItem cloudElement = (CloudItem) element;
14 years
JBoss Tools SVN: r27392 - trunk/as/plugins/org.jboss.ide.eclipse.as.core/jbosscore/org/jboss/ide/eclipse/as/core/server/internal.
by jbosstools-commits@lists.jboss.org
Author: rob.stryker(a)jboss.com
Date: 2010-12-13 01:50:40 -0500 (Mon, 13 Dec 2010)
New Revision: 27392
Modified:
trunk/as/plugins/org.jboss.ide.eclipse.as.core/jbosscore/org/jboss/ide/eclipse/as/core/server/internal/ServerListener.java
Log:
JBIDE-7822 - works for jboss 5 and below. Will file additional bug for jboss 6
Modified: trunk/as/plugins/org.jboss.ide.eclipse.as.core/jbosscore/org/jboss/ide/eclipse/as/core/server/internal/ServerListener.java
===================================================================
--- trunk/as/plugins/org.jboss.ide.eclipse.as.core/jbosscore/org/jboss/ide/eclipse/as/core/server/internal/ServerListener.java 2010-12-13 02:31:08 UTC (rev 27391)
+++ trunk/as/plugins/org.jboss.ide.eclipse.as.core/jbosscore/org/jboss/ide/eclipse/as/core/server/internal/ServerListener.java 2010-12-13 06:50:40 UTC (rev 27392)
@@ -11,6 +11,8 @@
package org.jboss.ide.eclipse.as.core.server.internal;
import java.io.File;
+import java.net.URI;
+import java.net.URLEncoder;
import java.util.ArrayList;
import javax.management.MBeanServerConnection;
@@ -133,9 +135,19 @@
protected void ensureDeployLocationAdded(IServer server,
MBeanServerConnection connection, String[] folders2) throws Exception {
for( int i = 0; i < folders2.length; i++ ) {
- String asURL = new File(folders2[i]).toURL().toString();
+ String asURL = encode(folders2[i]);
ObjectName name = new ObjectName(IJBossRuntimeConstants.DEPLOYMENT_SCANNER_MBEAN_NAME);
connection.invoke(name, IJBossRuntimeConstants.addURL, new Object[] { asURL }, new String[] {String.class.getName()});
}
}
+
+ private String encode(String folder) throws Exception {
+ folder = folder.replace("\\", "/"); //$NON-NLS-1$//$NON-NLS-2$
+ if (! folder.startsWith("/")) { //$NON-NLS-1$
+ folder = "/" + folder; //$NON-NLS-1$
+ }
+ URI uri = new URI("file", null, folder, null); //$NON-NLS-1$
+ //return URLEncoder.encode(uri.toASCIIString());
+ return uri.toASCIIString();
+ }
}
14 years
JBoss Tools SVN: r27391 - trunk/ws/docs/reference/en-US.
by jbosstools-commits@lists.jboss.org
Author: irooskov(a)redhat.com
Date: 2010-12-12 21:31:08 -0500 (Sun, 12 Dec 2010)
New Revision: 27391
Modified:
trunk/ws/docs/reference/en-US/topdown.xml
Log:
updated with links from Chapter 3 to Chapter 2 as detailed in TOOLSDOC-100
Modified: trunk/ws/docs/reference/en-US/topdown.xml
===================================================================
--- trunk/ws/docs/reference/en-US/topdown.xml 2010-12-13 01:30:32 UTC (rev 27390)
+++ trunk/ws/docs/reference/en-US/topdown.xml 2010-12-13 02:31:08 UTC (rev 27391)
@@ -123,7 +123,11 @@
JBoss Web Service facet installed. </para>
<para>See how to make it <link linkend="createproject">here</link> and <link
linkend="addfacet">here</link>.</para>
-
+ <note>
+ <para>
+ To use the <guilabel>Simple Web Service</guilabel> wizard to create this Web Service, replace the <guilabel>Class</guilabel> and <guilabel>Applicaiton Class</guilabel> fields with your specific classes, within the instructions in <xref linkend="simple_web_service" />.
+ </para>
+ </note>
<para>To create a Web Service using JBossWS runtime select<emphasis>
<property>File > New > Other > Web Services > Web Service</property>
</emphasis> to run Web Service creation wizard. </para>
@@ -217,6 +221,11 @@
<para>To create a Web service from a bean using JBoss WS:</para>
<para>Setup <link linkend="preference">JBoss WS and development environment</link>.</para>
<para>Create <link linkend="createproject">a Dynamic Web project</link>.</para>
+ <note>
+ <para>
+ To use the <guilabel>Simple Web Service</guilabel> wizard to create this Web Service, replace the <guilabel>Class</guilabel> and <guilabel>Applicaiton Class</guilabel> fields with your specific classes, within the instructions in <xref linkend="simple_web_service" />.
+ </para>
+ </note>
<para>Add <link linkend="addfacet">JBossWS Facet</link> to Web project.</para>
<para>Create a Web Service from a java bean: </para>
<itemizedlist>
14 years
JBoss Tools SVN: r27390 - trunk/modeshape/docs/ModeShape_Tools_Reference_Guide/en-US/images.
by jbosstools-commits@lists.jboss.org
Author: irooskov(a)redhat.com
Date: 2010-12-12 20:30:32 -0500 (Sun, 12 Dec 2010)
New Revision: 27390
Modified:
trunk/modeshape/docs/ModeShape_Tools_Reference_Guide/en-US/images/Publish_Wizard.png
Log:
updated image to remove underline that should not be there
Modified: trunk/modeshape/docs/ModeShape_Tools_Reference_Guide/en-US/images/Publish_Wizard.png
===================================================================
(Binary files differ)
14 years
JBoss Tools SVN: r27389 - trunk/modeshape/docs/ModeShape_Tools_Reference_Guide/en-US/images.
by jbosstools-commits@lists.jboss.org
Author: irooskov(a)redhat.com
Date: 2010-12-12 20:25:33 -0500 (Sun, 12 Dec 2010)
New Revision: 27389
Modified:
trunk/modeshape/docs/ModeShape_Tools_Reference_Guide/en-US/images/Publish_Wizard.png
Log:
updated publishing wizard screenshot
Modified: trunk/modeshape/docs/ModeShape_Tools_Reference_Guide/en-US/images/Publish_Wizard.png
===================================================================
(Binary files differ)
14 years