JBoss Tools SVN: r13482 - in trunk/jmx/plugins: org.jboss.tools.jmx.core/src/org/jboss/tools/jmx/core/tree and 3 other directories.
by jbosstools-commits@lists.jboss.org
Author: rob.stryker(a)jboss.com
Date: 2009-02-05 05:15:58 -0500 (Thu, 05 Feb 2009)
New Revision: 13482
Removed:
trunk/jmx/plugins/org.jboss.tools.jmx.core/src/org/jboss/tools/jmx/core/DomainWrapper.java
Modified:
trunk/jmx/plugins/org.jboss.tools.jmx.core/src/org/jboss/tools/jmx/core/MBeanInfoWrapper.java
trunk/jmx/plugins/org.jboss.tools.jmx.core/src/org/jboss/tools/jmx/core/tree/Node.java
trunk/jmx/plugins/org.jboss.tools.jmx.ui/src/org/jboss/tools/jmx/ui/JMXUIActivator.java
trunk/jmx/plugins/org.jboss.tools.jmx.ui/src/org/jboss/tools/jmx/ui/internal/adapters/JMXAdapterFactory.java
trunk/jmx/plugins/org.jboss.tools.jmx.ui/src/org/jboss/tools/jmx/ui/internal/editors/AttributeDetails.java
trunk/jmx/plugins/org.jboss.tools.jmx.ui/src/org/jboss/tools/jmx/ui/internal/editors/OperationDetails.java
Log:
JBIDE-3276 - editor attribute changes / operation invocations now use connections api
Deleted: trunk/jmx/plugins/org.jboss.tools.jmx.core/src/org/jboss/tools/jmx/core/DomainWrapper.java
===================================================================
--- trunk/jmx/plugins/org.jboss.tools.jmx.core/src/org/jboss/tools/jmx/core/DomainWrapper.java 2009-02-05 08:30:56 UTC (rev 13481)
+++ trunk/jmx/plugins/org.jboss.tools.jmx.core/src/org/jboss/tools/jmx/core/DomainWrapper.java 2009-02-05 10:15:58 UTC (rev 13482)
@@ -1,59 +0,0 @@
-/*******************************************************************************
- * Copyright (c) 2006 Jeff Mesnil
- * All rights reserved. This program and the accompanying materials
- * are 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
- *******************************************************************************/
-
-package org.jboss.tools.jmx.core;
-
-import java.util.Iterator;
-import java.util.Set;
-
-import javax.management.MBeanInfo;
-import javax.management.MBeanServerConnection;
-import javax.management.MalformedObjectNameException;
-import javax.management.ObjectName;
-
-import org.eclipse.core.runtime.Assert;
-
-public class DomainWrapper {
-
- private final String name;
-
- private final MBeanServerConnection mbsc;
-
- public DomainWrapper(String name, MBeanServerConnection mbsc) {
- Assert.isNotNull(name);
- Assert.isNotNull(mbsc);
- this.name = name;
- this.mbsc = mbsc;
- }
-
- private ObjectName getPattern() throws MalformedObjectNameException {
- return new ObjectName(name + ":*"); //$NON-NLS-1$
- }
-
- public String getName() {
- return name;
- }
-
- public MBeanInfoWrapper[] getMBeanInfos() {
- try {
- Set set = mbsc.queryNames(getPattern(), null);
- MBeanInfoWrapper[] instances = new MBeanInfoWrapper[set.size()];
- int i = 0;
- for (Iterator iter = set.iterator(); iter.hasNext();) {
- ObjectName on = (ObjectName) iter.next();
- MBeanInfo info = mbsc.getMBeanInfo(on);
- instances[i] = new MBeanInfoWrapper(on, info, mbsc, this);
- i++;
- }
- return instances;
- } catch (Exception e) {
- e.printStackTrace();
- return new MBeanInfoWrapper[0];
- }
- }
-}
Modified: trunk/jmx/plugins/org.jboss.tools.jmx.core/src/org/jboss/tools/jmx/core/MBeanInfoWrapper.java
===================================================================
--- trunk/jmx/plugins/org.jboss.tools.jmx.core/src/org/jboss/tools/jmx/core/MBeanInfoWrapper.java 2009-02-05 08:30:56 UTC (rev 13481)
+++ trunk/jmx/plugins/org.jboss.tools.jmx.core/src/org/jboss/tools/jmx/core/MBeanInfoWrapper.java 2009-02-05 10:15:58 UTC (rev 13482)
@@ -8,8 +8,6 @@
package org.jboss.tools.jmx.core;
-import java.util.Arrays;
-
import javax.management.MBeanAttributeInfo;
import javax.management.MBeanInfo;
import javax.management.MBeanNotificationInfo;
@@ -19,16 +17,17 @@
import javax.management.ObjectName;
import org.eclipse.core.runtime.Assert;
+import org.jboss.tools.jmx.core.tree.ObjectNameNode;
import org.jboss.tools.jmx.core.util.EqualsUtil;
public class MBeanInfoWrapper implements Comparable {
private final ObjectName on;
private final MBeanInfo info;
private final MBeanServerConnection mbsc;
- private final Object parent;
+ private final ObjectNameNode parent;
public MBeanInfoWrapper(ObjectName on, MBeanInfo info,
- MBeanServerConnection mbsc, Object parent) {
+ MBeanServerConnection mbsc, ObjectNameNode parent) {
Assert.isNotNull(on);
Assert.isNotNull(info);
Assert.isNotNull(mbsc);
@@ -38,7 +37,7 @@
this.parent = parent;
}
- public Object getParent() {
+ public ObjectNameNode getParent() {
return parent;
}
Modified: trunk/jmx/plugins/org.jboss.tools.jmx.core/src/org/jboss/tools/jmx/core/tree/Node.java
===================================================================
--- trunk/jmx/plugins/org.jboss.tools.jmx.core/src/org/jboss/tools/jmx/core/tree/Node.java 2009-02-05 08:30:56 UTC (rev 13481)
+++ trunk/jmx/plugins/org.jboss.tools.jmx.core/src/org/jboss/tools/jmx/core/tree/Node.java 2009-02-05 10:15:58 UTC (rev 13482)
@@ -11,6 +11,8 @@
import java.util.Collections;
import java.util.List;
+import org.jboss.tools.jmx.core.IConnectionWrapper;
+
@SuppressWarnings("unchecked")
public abstract class Node implements Comparable {
@@ -49,5 +51,10 @@
}
return getRoot(parent.getParent());
}
+
+ public IConnectionWrapper getConnection() {
+ Root r = getRoot(this);
+ return r.getConnection();
+ }
}
Modified: trunk/jmx/plugins/org.jboss.tools.jmx.ui/src/org/jboss/tools/jmx/ui/JMXUIActivator.java
===================================================================
--- trunk/jmx/plugins/org.jboss.tools.jmx.ui/src/org/jboss/tools/jmx/ui/JMXUIActivator.java 2009-02-05 08:30:56 UTC (rev 13481)
+++ trunk/jmx/plugins/org.jboss.tools.jmx.ui/src/org/jboss/tools/jmx/ui/JMXUIActivator.java 2009-02-05 10:15:58 UTC (rev 13482)
@@ -9,7 +9,6 @@
import javax.management.MBeanServerConnection;
-
import org.eclipse.core.runtime.IStatus;
import org.eclipse.core.runtime.Platform;
import org.eclipse.core.runtime.Status;
@@ -17,7 +16,6 @@
import org.eclipse.ui.IWorkbenchPage;
import org.eclipse.ui.IWorkbenchWindow;
import org.eclipse.ui.plugin.AbstractUIPlugin;
-import org.jboss.tools.jmx.core.DomainWrapper;
import org.jboss.tools.jmx.core.MBeanAttributeInfoWrapper;
import org.jboss.tools.jmx.core.MBeanInfoWrapper;
import org.jboss.tools.jmx.core.MBeanOperationInfoWrapper;
@@ -115,8 +113,6 @@
private void registerAdapters() {
adapterFactory = new JMXAdapterFactory();
Platform.getAdapterManager().registerAdapters(adapterFactory,
- DomainWrapper.class);
- Platform.getAdapterManager().registerAdapters(adapterFactory,
MBeanInfoWrapper.class);
Platform.getAdapterManager().registerAdapters(adapterFactory,
MBeanAttributeInfoWrapper.class);
@@ -126,8 +122,6 @@
private void unregisterAdapters() {
Platform.getAdapterManager().unregisterAdapters(adapterFactory,
- DomainWrapper.class);
- Platform.getAdapterManager().unregisterAdapters(adapterFactory,
MBeanInfoWrapper.class);
Platform.getAdapterManager().unregisterAdapters(adapterFactory,
MBeanAttributeInfoWrapper.class);
Modified: trunk/jmx/plugins/org.jboss.tools.jmx.ui/src/org/jboss/tools/jmx/ui/internal/adapters/JMXAdapterFactory.java
===================================================================
--- trunk/jmx/plugins/org.jboss.tools.jmx.ui/src/org/jboss/tools/jmx/ui/internal/adapters/JMXAdapterFactory.java 2009-02-05 08:30:56 UTC (rev 13481)
+++ trunk/jmx/plugins/org.jboss.tools.jmx.ui/src/org/jboss/tools/jmx/ui/internal/adapters/JMXAdapterFactory.java 2009-02-05 10:15:58 UTC (rev 13482)
@@ -11,7 +11,6 @@
import org.eclipse.core.runtime.IAdapterFactory;
import org.eclipse.ui.views.properties.IPropertySource;
-import org.jboss.tools.jmx.core.DomainWrapper;
import org.jboss.tools.jmx.core.MBeanAttributeInfoWrapper;
import org.jboss.tools.jmx.core.MBeanInfoWrapper;
import org.jboss.tools.jmx.core.MBeanOperationInfoWrapper;
@@ -39,10 +38,6 @@
}
private IPropertySource adaptToPropertySource(Object adaptableObject) {
- if (adaptableObject instanceof DomainWrapper) {
- DomainWrapper domain = (DomainWrapper) adaptableObject;
- return new DomainPropertySourceAdapter(domain.getName());
- }
if (adaptableObject instanceof MBeanInfoWrapper) {
MBeanInfoWrapper wrapper = (MBeanInfoWrapper) adaptableObject;
return new MBeanInfoPropertySourceAdapter(wrapper.getObjectName(),
Modified: trunk/jmx/plugins/org.jboss.tools.jmx.ui/src/org/jboss/tools/jmx/ui/internal/editors/AttributeDetails.java
===================================================================
--- trunk/jmx/plugins/org.jboss.tools.jmx.ui/src/org/jboss/tools/jmx/ui/internal/editors/AttributeDetails.java 2009-02-05 08:30:56 UTC (rev 13481)
+++ trunk/jmx/plugins/org.jboss.tools.jmx.ui/src/org/jboss/tools/jmx/ui/internal/editors/AttributeDetails.java 2009-02-05 10:15:58 UTC (rev 13482)
@@ -38,6 +38,9 @@
import org.eclipse.ui.forms.widgets.Section;
import org.eclipse.ui.forms.widgets.TableWrapData;
import org.eclipse.ui.forms.widgets.TableWrapLayout;
+import org.jboss.tools.jmx.core.IConnectionWrapper;
+import org.jboss.tools.jmx.core.IJMXRunnable;
+import org.jboss.tools.jmx.core.JMXException;
import org.jboss.tools.jmx.core.MBeanAttributeInfoWrapper;
import org.jboss.tools.jmx.ui.Messages;
import org.jboss.tools.jmx.ui.extensions.IWritableAttributeHandler;
@@ -67,27 +70,38 @@
public void write(final Object newValue) {
new Thread() {
public void run() {
- try {
- MBeanServerConnection mbsc = wrapper.getMBeanServerConnection();
- String attrName = wrapper.getMBeanAttributeInfo().getName();
- Attribute attr = new Attribute(attrName, newValue);
- mbsc.setAttribute(wrapper.getObjectName(), attr);
- Display.getDefault().asyncExec(new Runnable() { public void run() {
- masterSection.refresh();
- }});
- } catch (final Exception e) {
- Display.getDefault().asyncExec(new Runnable() { public void run() {
- MessageDialog.openError(getManagedForm().getForm().getDisplay()
- .getActiveShell(),
- Messages.AttributeDetailsSection_errorTitle, e
- .getLocalizedMessage());
- }});
- }
+ IConnectionWrapper connection = wrapper.getMBeanInfoWrapper().getParent().getConnection();
+ try {
+ connection.run(new IJMXRunnable() {
+ public void run(MBeanServerConnection connection)
+ throws Exception {
+ execAttributeUpdate(connection, newValue);
+ } });
+ } catch(JMXException jmxe) {
+ }
}
}.start();
}
};
+ protected void execAttributeUpdate(MBeanServerConnection connection, Object newValue) {
+ try {
+ String attrName = wrapper.getMBeanAttributeInfo().getName();
+ Attribute attr = new Attribute(attrName, newValue);
+ connection.setAttribute(wrapper.getObjectName(), attr);
+ Display.getDefault().asyncExec(new Runnable() { public void run() {
+ masterSection.refresh();
+ }});
+ } catch (final Exception e) {
+ Display.getDefault().asyncExec(new Runnable() { public void run() {
+ MessageDialog.openError(getManagedForm().getForm().getDisplay()
+ .getActiveShell(),
+ Messages.AttributeDetailsSection_errorTitle, e
+ .getLocalizedMessage());
+ }});
+ }
+ }
+
public AttributeDetails(IFormPart masterSection) {
this.masterSection = masterSection;
}
Modified: trunk/jmx/plugins/org.jboss.tools.jmx.ui/src/org/jboss/tools/jmx/ui/internal/editors/OperationDetails.java
===================================================================
--- trunk/jmx/plugins/org.jboss.tools.jmx.ui/src/org/jboss/tools/jmx/ui/internal/editors/OperationDetails.java 2009-02-05 08:30:56 UTC (rev 13481)
+++ trunk/jmx/plugins/org.jboss.tools.jmx.ui/src/org/jboss/tools/jmx/ui/internal/editors/OperationDetails.java 2009-02-05 10:15:58 UTC (rev 13482)
@@ -35,6 +35,9 @@
import org.eclipse.ui.forms.widgets.Section;
import org.eclipse.ui.forms.widgets.TableWrapData;
import org.eclipse.ui.forms.widgets.TableWrapLayout;
+import org.jboss.tools.jmx.core.IConnectionWrapper;
+import org.jboss.tools.jmx.core.IJMXRunnable;
+import org.jboss.tools.jmx.core.JMXException;
import org.jboss.tools.jmx.core.MBeanOperationInfoWrapper;
import org.jboss.tools.jmx.ui.JMXUIActivator;
import org.jboss.tools.jmx.ui.Messages;
@@ -194,12 +197,20 @@
}
new Thread() {
public void run() {
- widgetSelected2(strs);
+ IConnectionWrapper connection = opInfoWrapper.getMBeanInfoWrapper().getParent().getConnection();
+ try {
+ connection.run(new IJMXRunnable() {
+ public void run(MBeanServerConnection connection)
+ throws Exception {
+ widgetSelected2(connection, strs);
+ } });
+ } catch( JMXException jmxe) {
+ }
}
}.start();
}
- protected void widgetSelected2(String[] strs) {
+ protected void widgetSelected2(MBeanServerConnection connection, String[] strs) {
try {
MBeanParameterInfo[] paramInfos = opInfoWrapper
.getMBeanOperationInfo().getSignature();
@@ -207,8 +218,6 @@
if (textParams != null) {
paramList = MBeanUtils.getParameters(strs, paramInfos);
}
- MBeanServerConnection mbsc = opInfoWrapper
- .getMBeanServerConnection();
ObjectName objectName = opInfoWrapper.getObjectName();
String methodName = opInfoWrapper.getMBeanOperationInfo()
.getName();
@@ -218,10 +227,10 @@
for (int i = 0; i < paramSig.length; i++) {
paramSig[i] = paramInfos[i].getType();
}
- result = mbsc.invoke(objectName, methodName, paramList,
+ result = connection.invoke(objectName, methodName, paramList,
paramSig);
} else {
- result = mbsc.invoke(objectName, methodName, new Object[0],
+ result = connection.invoke(objectName, methodName, new Object[0],
new String[0]);
}
if ("void".equals(opInfoWrapper.getMBeanOperationInfo() //$NON-NLS-1$
17 years, 2 months
JBoss Tools SVN: r13481 - trunk/jmx/plugins/org.jboss.tools.jmx.ui/src/org/jboss/tools/jmx/ui/internal/editors.
by jbosstools-commits@lists.jboss.org
Author: rob.stryker(a)jboss.com
Date: 2009-02-05 03:30:56 -0500 (Thu, 05 Feb 2009)
New Revision: 13481
Modified:
trunk/jmx/plugins/org.jboss.tools.jmx.ui/src/org/jboss/tools/jmx/ui/internal/editors/AttributeDetails.java
trunk/jmx/plugins/org.jboss.tools.jmx.ui/src/org/jboss/tools/jmx/ui/internal/editors/OperationDetails.java
Log:
JBIDE-3277 - operation / attribute changes in JMX now launch in new thread and async update the UI
Modified: trunk/jmx/plugins/org.jboss.tools.jmx.ui/src/org/jboss/tools/jmx/ui/internal/editors/AttributeDetails.java
===================================================================
--- trunk/jmx/plugins/org.jboss.tools.jmx.ui/src/org/jboss/tools/jmx/ui/internal/editors/AttributeDetails.java 2009-02-05 05:07:00 UTC (rev 13480)
+++ trunk/jmx/plugins/org.jboss.tools.jmx.ui/src/org/jboss/tools/jmx/ui/internal/editors/AttributeDetails.java 2009-02-05 08:30:56 UTC (rev 13481)
@@ -18,12 +18,9 @@
import javax.management.MBeanAttributeInfo;
import javax.management.MBeanServerConnection;
-
-import org.eclipse.core.runtime.IStatus;
import org.eclipse.jface.dialogs.MessageDialog;
import org.eclipse.jface.viewers.ISelection;
import org.eclipse.jface.viewers.StructuredSelection;
-import org.eclipse.osgi.util.NLS;
import org.eclipse.swt.SWT;
import org.eclipse.swt.graphics.Font;
import org.eclipse.swt.graphics.FontData;
@@ -31,6 +28,7 @@
import org.eclipse.swt.layout.GridLayout;
import org.eclipse.swt.widgets.Composite;
import org.eclipse.swt.widgets.Control;
+import org.eclipse.swt.widgets.Display;
import org.eclipse.swt.widgets.Label;
import org.eclipse.swt.widgets.Text;
import org.eclipse.ui.forms.AbstractFormPart;
@@ -41,7 +39,6 @@
import org.eclipse.ui.forms.widgets.TableWrapData;
import org.eclipse.ui.forms.widgets.TableWrapLayout;
import org.jboss.tools.jmx.core.MBeanAttributeInfoWrapper;
-import org.jboss.tools.jmx.ui.JMXUIActivator;
import org.jboss.tools.jmx.ui.Messages;
import org.jboss.tools.jmx.ui.extensions.IWritableAttributeHandler;
import org.jboss.tools.jmx.ui.internal.JMXImages;
@@ -67,19 +64,27 @@
private MBeanAttributeInfoWrapper wrapper;
private final IWritableAttributeHandler updateAttributeHandler = new IWritableAttributeHandler() {
- public void write(Object newValue) {
- try {
- MBeanServerConnection mbsc = wrapper.getMBeanServerConnection();
- String attrName = wrapper.getMBeanAttributeInfo().getName();
- Attribute attr = new Attribute(attrName, newValue);
- mbsc.setAttribute(wrapper.getObjectName(), attr);
- masterSection.refresh();
- } catch (Exception e) {
- MessageDialog.openError(getManagedForm().getForm().getDisplay()
- .getActiveShell(),
- Messages.AttributeDetailsSection_errorTitle, e
- .getLocalizedMessage());
- }
+ public void write(final Object newValue) {
+ new Thread() {
+ public void run() {
+ try {
+ MBeanServerConnection mbsc = wrapper.getMBeanServerConnection();
+ String attrName = wrapper.getMBeanAttributeInfo().getName();
+ Attribute attr = new Attribute(attrName, newValue);
+ mbsc.setAttribute(wrapper.getObjectName(), attr);
+ Display.getDefault().asyncExec(new Runnable() { public void run() {
+ masterSection.refresh();
+ }});
+ } catch (final Exception e) {
+ Display.getDefault().asyncExec(new Runnable() { public void run() {
+ MessageDialog.openError(getManagedForm().getForm().getDisplay()
+ .getActiveShell(),
+ Messages.AttributeDetailsSection_errorTitle, e
+ .getLocalizedMessage());
+ }});
+ }
+ }
+ }.start();
}
};
Modified: trunk/jmx/plugins/org.jboss.tools.jmx.ui/src/org/jboss/tools/jmx/ui/internal/editors/OperationDetails.java
===================================================================
--- trunk/jmx/plugins/org.jboss.tools.jmx.ui/src/org/jboss/tools/jmx/ui/internal/editors/OperationDetails.java 2009-02-05 05:07:00 UTC (rev 13480)
+++ trunk/jmx/plugins/org.jboss.tools.jmx.ui/src/org/jboss/tools/jmx/ui/internal/editors/OperationDetails.java 2009-02-05 08:30:56 UTC (rev 13481)
@@ -13,7 +13,6 @@
import javax.management.MBeanServerConnection;
import javax.management.ObjectName;
-
import org.eclipse.core.runtime.IStatus;
import org.eclipse.jface.dialogs.MessageDialog;
import org.eclipse.jface.viewers.ISelection;
@@ -26,6 +25,7 @@
import org.eclipse.swt.widgets.Button;
import org.eclipse.swt.widgets.Composite;
import org.eclipse.swt.widgets.Control;
+import org.eclipse.swt.widgets.Display;
import org.eclipse.swt.widgets.Label;
import org.eclipse.swt.widgets.Text;
import org.eclipse.ui.forms.AbstractFormPart;
@@ -185,16 +185,26 @@
}
@Override
- public void widgetSelected(SelectionEvent event) {
+ public void widgetSelected(final SelectionEvent event) {
+ final String[] strs = textParams == null ? null : new String[textParams.length];
+ if (textParams != null) {
+ for (int i = 0; i < strs.length; i++) {
+ strs[i] = textParams[i].getText();
+ }
+ }
+ new Thread() {
+ public void run() {
+ widgetSelected2(strs);
+ }
+ }.start();
+ }
+
+ protected void widgetSelected2(String[] strs) {
try {
MBeanParameterInfo[] paramInfos = opInfoWrapper
.getMBeanOperationInfo().getSignature();
Object[] paramList = null;
if (textParams != null) {
- String[] strs = new String[textParams.length];
- for (int i = 0; i < strs.length; i++) {
- strs[i] = textParams[i].getText();
- }
paramList = MBeanUtils.getParameters(strs, paramInfos);
}
MBeanServerConnection mbsc = opInfoWrapper
@@ -216,12 +226,17 @@
}
if ("void".equals(opInfoWrapper.getMBeanOperationInfo() //$NON-NLS-1$
.getReturnType())) {
- MessageDialog.openInformation(container.getShell(),
- Messages.OperationDetails_invocationResult,
- Messages.OperationDetails_invocationSuccess);
+ Display.getDefault().asyncExec(new Runnable() { public void run() {
+ MessageDialog.openInformation(container.getShell(),
+ Messages.OperationDetails_invocationResult,
+ Messages.OperationDetails_invocationSuccess);
+ }});
return;
} else {
- OperationInvocationResultDialog.open(container.getShell(), result);
+ final Object result2 = result;
+ Display.getDefault().asyncExec(new Runnable() { public void run() {
+ OperationInvocationResultDialog.open(container.getShell(), result2);
+ }});
}
} catch (Exception e) {
String message = e.getClass().getName() + ": " + e.getLocalizedMessage();
@@ -234,8 +249,11 @@
if (e.getCause() != null) {
message = e.getCause().getClass().getName() + ": " + e.getCause().getLocalizedMessage();
}
- MessageDialog.openError(container.getShell(),
- Messages.OperationDetails_invocationError, message);
+ final String message2 = message;
+ Display.getDefault().asyncExec(new Runnable() { public void run() {
+ MessageDialog.openError(container.getShell(),
+ Messages.OperationDetails_invocationError, message2);
+ }});
}
}
}
17 years, 2 months
JBoss Tools SVN: r13480 - workspace/grid/esb-example.
by jbosstools-commits@lists.jboss.org
Author: Grid.Qian
Date: 2009-02-05 00:07:00 -0500 (Thu, 05 Feb 2009)
New Revision: 13480
Modified:
workspace/grid/esb-example/transform_CSV2XML.zip
workspace/grid/esb-example/transform_CSV2XML_client.zip
workspace/grid/esb-example/transform_XML2POJO.zip
workspace/grid/esb-example/transform_XML2POJO_client.zip
workspace/grid/esb-example/transform_XML2XML_date_manipulation.zip
workspace/grid/esb-example/transform_XML2XML_date_manipulation_client.zip
workspace/grid/esb-example/transform_XML2XML_simple.zip
workspace/grid/esb-example/transform_XML2XML_simple_client.zip
workspace/grid/esb-example/webservice_consumer1.zip
workspace/grid/esb-example/webservice_consumer1_client.zip
workspace/grid/esb-example/webservice_producer.zip
workspace/grid/esb-example/webservice_producer_client.zip
Log:
add readme.txt to these examples
Modified: workspace/grid/esb-example/transform_CSV2XML.zip
===================================================================
(Binary files differ)
Modified: workspace/grid/esb-example/transform_CSV2XML_client.zip
===================================================================
(Binary files differ)
Modified: workspace/grid/esb-example/transform_XML2POJO.zip
===================================================================
(Binary files differ)
Modified: workspace/grid/esb-example/transform_XML2POJO_client.zip
===================================================================
(Binary files differ)
Modified: workspace/grid/esb-example/transform_XML2XML_date_manipulation.zip
===================================================================
(Binary files differ)
Modified: workspace/grid/esb-example/transform_XML2XML_date_manipulation_client.zip
===================================================================
(Binary files differ)
Modified: workspace/grid/esb-example/transform_XML2XML_simple.zip
===================================================================
(Binary files differ)
Modified: workspace/grid/esb-example/transform_XML2XML_simple_client.zip
===================================================================
(Binary files differ)
Modified: workspace/grid/esb-example/webservice_consumer1.zip
===================================================================
(Binary files differ)
Modified: workspace/grid/esb-example/webservice_consumer1_client.zip
===================================================================
(Binary files differ)
Modified: workspace/grid/esb-example/webservice_producer.zip
===================================================================
(Binary files differ)
Modified: workspace/grid/esb-example/webservice_producer_client.zip
===================================================================
(Binary files differ)
17 years, 2 months
JBoss Tools SVN: r13479 - workspace/Denny/esb-example.
by jbosstools-commits@lists.jboss.org
Author: Grid.Qian
Date: 2009-02-05 00:06:27 -0500 (Thu, 05 Feb 2009)
New Revision: 13479
Modified:
workspace/Denny/esb-example/helloworld.zip
workspace/Denny/esb-example/helloworld_action.zip
workspace/Denny/esb-example/helloworld_action_client.zip
workspace/Denny/esb-example/helloworld_file_action.zip
workspace/Denny/esb-example/helloworld_file_action_client.zip
workspace/Denny/esb-example/helloworld_testclient.zip
Log:
add readme.txt to these examples
Modified: workspace/Denny/esb-example/helloworld.zip
===================================================================
(Binary files differ)
Modified: workspace/Denny/esb-example/helloworld_action.zip
===================================================================
(Binary files differ)
Modified: workspace/Denny/esb-example/helloworld_action_client.zip
===================================================================
(Binary files differ)
Modified: workspace/Denny/esb-example/helloworld_file_action.zip
===================================================================
(Binary files differ)
Modified: workspace/Denny/esb-example/helloworld_file_action_client.zip
===================================================================
(Binary files differ)
Modified: workspace/Denny/esb-example/helloworld_testclient.zip
===================================================================
(Binary files differ)
17 years, 2 months
JBoss Tools SVN: r13478 - trunk/jsf/docs/userguide/en/modules.
by jbosstools-commits@lists.jboss.org
Author: nickboldt
Date: 2009-02-04 18:24:13 -0500 (Wed, 04 Feb 2009)
New Revision: 13478
Modified:
trunk/jsf/docs/userguide/en/modules/richfaces_support.xml
Log:
[JBDS-611]
Modified: trunk/jsf/docs/userguide/en/modules/richfaces_support.xml
===================================================================
--- trunk/jsf/docs/userguide/en/modules/richfaces_support.xml 2009-02-04 21:19:48 UTC (rev 13477)
+++ trunk/jsf/docs/userguide/en/modules/richfaces_support.xml 2009-02-04 23:24:13 UTC (rev 13478)
@@ -20,7 +20,7 @@
3.3</ulink> is fully supported in the current version of <property>JBoss Developer Studio</property> (i. e. 2.0.0.GA) and <property>JBoss Tools 3.0.0.GA</property>.</para>
</note>
- <para>The following features are implemented and fully supported for the currant version of the RichFaces components:</para>
+ <para>The following features are implemented and fully supported for the current version of the RichFaces components:</para>
<itemizedlist>
<listitem><para><link linkend="ContentAssistForRF">Content Assist</link></para></listitem>
17 years, 2 months
JBoss Tools SVN: r13477 - in trunk: as/features/org.jboss.ide.eclipse.as.feature and 4 other directories.
by jbosstools-commits@lists.jboss.org
Author: nickboldt
Date: 2009-02-04 16:19:48 -0500 (Wed, 04 Feb 2009)
New Revision: 13477
Modified:
trunk/archives/features/org.jboss.ide.eclipse.archives.feature/feature.properties
trunk/as/features/org.jboss.ide.eclipse.as.feature/feature.properties
trunk/i18n/feature-template/FEATURE.nl-LOCALE_VERSION/feature.properties
trunk/jsf/docs/userguide/en/modules/richfaces_support.xml
trunk/seam/plugins/org.jboss.tools.seam.core/about.properties
trunk/seam/tests/org.jboss.tools.seam.pages.xml.test/plugin.properties
Log:
[JBDS-611] typos and copyrights
Modified: trunk/archives/features/org.jboss.ide.eclipse.archives.feature/feature.properties
===================================================================
--- trunk/archives/features/org.jboss.ide.eclipse.archives.feature/feature.properties 2009-02-04 17:25:38 UTC (rev 13476)
+++ trunk/archives/features/org.jboss.ide.eclipse.archives.feature/feature.properties 2009-02-04 21:19:48 UTC (rev 13477)
@@ -29,4 +29,4 @@
description=Project Archives provides a way to define archives based on include/exclude filesets which then\n\
gets incrementally updated allowing for fluent deployment for any type of Eclipse project.
-copyright=JBoss, Home of Professional Open Source\nCopyright 2006-2009, JBoss, a division of Red Hat, and individual contributors as indicated\nby the @authors tag. See the copyright.txt in the distribution\nfor a full listing of individual contributors.
\ No newline at end of file
+copyright=JBoss, Home of Professional Open Source\nCopyright JBoss, a division of Red Hat, and individual contributors as indicated\nby the @authors tag, 2006-2009. See the copyright.txt in the distribution\nfor a full listing of individual contributors.
\ No newline at end of file
Modified: trunk/as/features/org.jboss.ide.eclipse.as.feature/feature.properties
===================================================================
--- trunk/as/features/org.jboss.ide.eclipse.as.feature/feature.properties 2009-02-04 17:25:38 UTC (rev 13476)
+++ trunk/as/features/org.jboss.ide.eclipse.as.feature/feature.properties 2009-02-04 21:19:48 UTC (rev 13477)
@@ -28,4 +28,4 @@
# "description" property - description of the feature
description=Provides a WTP adapter for JBoss AS 4.x and 5.x. Supports incremental and exploded deployment.
-copyright=JBoss, Home of Professional Open Source\nCopyright 2006-2009, JBoss, a division of Red Hat, and individual contributors as indicated\nby the @authors tag. See the copyright.txt in the distribution\nfor a full listing of individual contributors.
\ No newline at end of file
+copyright=JBoss, Home of Professional Open Source\nCopyright JBoss, a division of Red Hat, and individual contributors as indicated\nby the @authors tag, 2006-2009. See the copyright.txt in the distribution\nfor a full listing of individual contributors.
\ No newline at end of file
Modified: trunk/i18n/feature-template/FEATURE.nl-LOCALE_VERSION/feature.properties
===================================================================
--- trunk/i18n/feature-template/FEATURE.nl-LOCALE_VERSION/feature.properties 2009-02-04 17:25:38 UTC (rev 13476)
+++ trunk/i18n/feature-template/FEATURE.nl-LOCALE_VERSION/feature.properties 2009-02-04 21:19:48 UTC (rev 13477)
@@ -1,6 +1,6 @@
providerName=JBoss, a division of Red Hat
-copyright=JBoss, Home of Professional Open Source\nCopyright 2006-2009, JBoss, a division of Red Hat, and individual contributors as indicated\nby the @authors tag. See the copyright.txt in the distribution\nfor a full listing of individual contributors.
+copyright=JBoss, Home of Professional Open Source\nCopyright JBoss, a division of Red Hat, and individual contributors as indicated\nby the @authors tag, 2006-2009. See the copyright.txt in the distribution\nfor a full listing of individual contributors.
################ end of copyright property ####################################
licenseURL=license.txt
Modified: trunk/jsf/docs/userguide/en/modules/richfaces_support.xml
===================================================================
--- trunk/jsf/docs/userguide/en/modules/richfaces_support.xml 2009-02-04 17:25:38 UTC (rev 13476)
+++ trunk/jsf/docs/userguide/en/modules/richfaces_support.xml 2009-02-04 21:19:48 UTC (rev 13477)
@@ -17,7 +17,7 @@
<note>
<title>Note:</title>
<para><ulink url="http://www.jboss.org/jbossrichfaces/downloads/">RichFaces
- 3.3</ulink> is fully supported in the currant version of <property>JBoss Developer Studio</property> (i. e. 2.0.0.CR2) and <property>JBoss Tools 3.0.0.CR2</property>.</para>
+ 3.3</ulink> is fully supported in the current version of <property>JBoss Developer Studio</property> (i. e. 2.0.0.GA) and <property>JBoss Tools 3.0.0.GA</property>.</para>
</note>
<para>The following features are implemented and fully supported for the currant version of the RichFaces components:</para>
Modified: trunk/seam/plugins/org.jboss.tools.seam.core/about.properties
===================================================================
--- trunk/seam/plugins/org.jboss.tools.seam.core/about.properties 2009-02-04 17:25:38 UTC (rev 13476)
+++ trunk/seam/plugins/org.jboss.tools.seam.core/about.properties 2009-02-04 21:19:48 UTC (rev 13477)
@@ -2,6 +2,6 @@
\n\
Version: {featureVersion}\n\
\n\
-Copyright (c) 2007 Red Hat, Inc 2007 - 2008. All rights reserved.\n\
+Copyright (c) JBoss, a division of Red Hat, 2007 - 2009. All rights reserved.\n\
Visit http://www.jboss.org/tools and http://www.seamframework.org
Modified: trunk/seam/tests/org.jboss.tools.seam.pages.xml.test/plugin.properties
===================================================================
--- trunk/seam/tests/org.jboss.tools.seam.pages.xml.test/plugin.properties 2009-02-04 17:25:38 UTC (rev 13476)
+++ trunk/seam/tests/org.jboss.tools.seam.pages.xml.test/plugin.properties 2009-02-04 21:19:48 UTC (rev 13477)
@@ -1,3 +1,3 @@
#Properties file for org.jboss.tools.seam.pages.xml.test
-Bundle-Vendor.0 = Red Hat, Inc.
+Bundle-Vendor.0 = JBoss, a division of Red Hat
Bundle-Name.0 = Seam Pages XML Tests Plug-in
\ No newline at end of file
17 years, 2 months
JBoss Tools SVN: r13476 - trunk/jst/plugins/org.jboss.tools.jst.jsp/src/org/jboss/tools/jst/jsp/drop/treeviewer/ui.
by jbosstools-commits@lists.jboss.org
Author: scabanovich
Date: 2009-02-04 12:25:38 -0500 (Wed, 04 Feb 2009)
New Revision: 13476
Modified:
trunk/jst/plugins/org.jboss.tools.jst.jsp/src/org/jboss/tools/jst/jsp/drop/treeviewer/ui/AttributeValueLabelProvider.java
Log:
JBIDE-3747
Modified: trunk/jst/plugins/org.jboss.tools.jst.jsp/src/org/jboss/tools/jst/jsp/drop/treeviewer/ui/AttributeValueLabelProvider.java
===================================================================
--- trunk/jst/plugins/org.jboss.tools.jst.jsp/src/org/jboss/tools/jst/jsp/drop/treeviewer/ui/AttributeValueLabelProvider.java 2009-02-04 17:25:08 UTC (rev 13475)
+++ trunk/jst/plugins/org.jboss.tools.jst.jsp/src/org/jboss/tools/jst/jsp/drop/treeviewer/ui/AttributeValueLabelProvider.java 2009-02-04 17:25:38 UTC (rev 13476)
@@ -107,7 +107,7 @@
if (image == null) {
Object path = imagesPathes.get(element.getClass());
if(path==null) {
- path = "images/process/error.gif";
+ path = "images/java/error.gif";
}
image = EclipseResourceUtil.getImage((String)path);
imageCache.put(element, image);
17 years, 2 months
JBoss Tools SVN: r13475 - trunk/common/plugins/org.jboss.tools.common.model/images/java.
by jbosstools-commits@lists.jboss.org
Author: scabanovich
Date: 2009-02-04 12:25:08 -0500 (Wed, 04 Feb 2009)
New Revision: 13475
Added:
trunk/common/plugins/org.jboss.tools.common.model/images/java/error.gif
Log:
JBIDE-3747
Added: trunk/common/plugins/org.jboss.tools.common.model/images/java/error.gif
===================================================================
(Binary files differ)
Property changes on: trunk/common/plugins/org.jboss.tools.common.model/images/java/error.gif
___________________________________________________________________
Name: svn:mime-type
+ application/octet-stream
17 years, 2 months
JBoss Tools SVN: r13474 - trunk/common/plugins/org.jboss.tools.common.model/src/org/jboss/tools/common/model/markers.
by jbosstools-commits@lists.jboss.org
Author: scabanovich
Date: 2009-02-04 11:49:22 -0500 (Wed, 04 Feb 2009)
New Revision: 13474
Modified:
trunk/common/plugins/org.jboss.tools.common.model/src/org/jboss/tools/common/model/markers/XMarkerManager.java
Log:
JBIDE-3730
Modified: trunk/common/plugins/org.jboss.tools.common.model/src/org/jboss/tools/common/model/markers/XMarkerManager.java
===================================================================
--- trunk/common/plugins/org.jboss.tools.common.model/src/org/jboss/tools/common/model/markers/XMarkerManager.java 2009-02-04 16:11:56 UTC (rev 13473)
+++ trunk/common/plugins/org.jboss.tools.common.model/src/org/jboss/tools/common/model/markers/XMarkerManager.java 2009-02-04 16:49:22 UTC (rev 13474)
@@ -14,7 +14,9 @@
import org.eclipse.core.resources.*;
import org.eclipse.core.runtime.CoreException;
+import org.jboss.tools.common.model.XJob;
import org.jboss.tools.common.model.XModelObject;
+import org.jboss.tools.common.model.XJob.XRunnable;
import org.jboss.tools.common.model.impl.XModelObjectImpl;
import org.jboss.tools.common.model.plugin.ModelPlugin;
import org.jboss.tools.common.model.util.EclipseResourceUtil;
@@ -39,7 +41,18 @@
}
public void resourceChanged(IResourceChangeEvent event) {
- reload();
+ if(ResourcesPlugin.getWorkspace().isTreeLocked()) {
+ XJob.addRunnable(new XRunnable() {
+ public String getId() {
+ return "XMarkerManager";
+ }
+ public void run() {
+ reload();
+ }
+ });
+ } else {
+ reload();
+ }
}
public void reload() {
17 years, 2 months
JBoss Tools SVN: r13473 - trunk/as/plugins/org.jboss.ide.eclipse.as.classpath.core/src/org/jboss/ide/eclipse/as/classpath/core/jee.
by jbosstools-commits@lists.jboss.org
Author: snjeza
Date: 2009-02-04 11:11:56 -0500 (Wed, 04 Feb 2009)
New Revision: 13473
Modified:
trunk/as/plugins/org.jboss.ide.eclipse.as.classpath.core/src/org/jboss/ide/eclipse/as/classpath/core/jee/AbstractClasspathContainer.java
trunk/as/plugins/org.jboss.ide.eclipse.as.classpath.core/src/org/jboss/ide/eclipse/as/classpath/core/jee/AbstractClasspathContainerInitializer.java
trunk/as/plugins/org.jboss.ide.eclipse.as.classpath.core/src/org/jboss/ide/eclipse/as/classpath/core/jee/J2EE13ClasspathContainerInitializer.java
trunk/as/plugins/org.jboss.ide.eclipse.as.classpath.core/src/org/jboss/ide/eclipse/as/classpath/core/jee/J2EE14ClasspathContainerInitializer.java
trunk/as/plugins/org.jboss.ide.eclipse.as.classpath.core/src/org/jboss/ide/eclipse/as/classpath/core/jee/J2EE50ClasspathContainerInitializer.java
Log:
JBIDE-3733 JBoss ESB classpath container does not set source attachment location
Modified: trunk/as/plugins/org.jboss.ide.eclipse.as.classpath.core/src/org/jboss/ide/eclipse/as/classpath/core/jee/AbstractClasspathContainer.java
===================================================================
--- trunk/as/plugins/org.jboss.ide.eclipse.as.classpath.core/src/org/jboss/ide/eclipse/as/classpath/core/jee/AbstractClasspathContainer.java 2009-02-04 16:11:50 UTC (rev 13472)
+++ trunk/as/plugins/org.jboss.ide.eclipse.as.classpath.core/src/org/jboss/ide/eclipse/as/classpath/core/jee/AbstractClasspathContainer.java 2009-02-04 16:11:56 UTC (rev 13473)
@@ -27,6 +27,7 @@
import java.net.URL;
import java.util.ArrayList;
+import org.eclipse.core.runtime.CoreException;
import org.eclipse.core.runtime.FileLocator;
import org.eclipse.core.runtime.IPath;
import org.eclipse.core.runtime.IStatus;
@@ -36,6 +37,7 @@
import org.eclipse.jdt.core.IClasspathAttribute;
import org.eclipse.jdt.core.IClasspathContainer;
import org.eclipse.jdt.core.IClasspathEntry;
+import org.eclipse.jdt.core.IJavaProject;
import org.eclipse.jdt.core.JavaCore;
import org.jboss.ide.eclipse.as.classpath.core.ClasspathCorePlugin;
import org.jboss.ide.eclipse.as.classpath.core.xpl.ClasspathDecorations;
@@ -56,6 +58,7 @@
protected IPath path;
protected String description;
protected String libFolder;
+ protected IJavaProject javaProject;
protected static ClasspathDecorationsManager decorations;
static {
@@ -64,10 +67,11 @@
}
public AbstractClasspathContainer(IPath path, String description,
- String libFolder) {
+ String libFolder, IJavaProject project) {
this.path = path;
this.description = description;
this.libFolder = libFolder;
+ this.javaProject = project;
}
public IClasspathEntry[] getClasspathEntries() {
@@ -168,8 +172,17 @@
return decorations;
}
- public void refresh() {
+ public void install() {
entries = computeEntries();
+ IJavaProject[] javaProjects = new IJavaProject[] {javaProject};
+ final IClasspathContainer[] conts = new IClasspathContainer[] { this };
+ try {
+ JavaCore.setClasspathContainer(path, javaProjects, conts, null);
+ } catch (CoreException e) {
+ ClasspathCorePlugin.log(e.getMessage(), e);
+ }
}
+
+ public abstract void refresh();
}
Modified: trunk/as/plugins/org.jboss.ide.eclipse.as.classpath.core/src/org/jboss/ide/eclipse/as/classpath/core/jee/AbstractClasspathContainerInitializer.java
===================================================================
--- trunk/as/plugins/org.jboss.ide.eclipse.as.classpath.core/src/org/jboss/ide/eclipse/as/classpath/core/jee/AbstractClasspathContainerInitializer.java 2009-02-04 16:11:50 UTC (rev 13472)
+++ trunk/as/plugins/org.jboss.ide.eclipse.as.classpath.core/src/org/jboss/ide/eclipse/as/classpath/core/jee/AbstractClasspathContainerInitializer.java 2009-02-04 16:11:56 UTC (rev 13473)
@@ -40,6 +40,7 @@
public abstract class AbstractClasspathContainerInitializer extends
ClasspathContainerInitializer {
+ protected IJavaProject javaProject;
public AbstractClasspathContainerInitializer() {
}
@@ -55,6 +56,7 @@
*/
public void initialize(IPath containerPath, IJavaProject project)
throws CoreException {
+ this.javaProject = project;
int size = containerPath.segmentCount();
if (size > 0) {
AbstractClasspathContainer container = createClasspathContainer(containerPath);
Modified: trunk/as/plugins/org.jboss.ide.eclipse.as.classpath.core/src/org/jboss/ide/eclipse/as/classpath/core/jee/J2EE13ClasspathContainerInitializer.java
===================================================================
--- trunk/as/plugins/org.jboss.ide.eclipse.as.classpath.core/src/org/jboss/ide/eclipse/as/classpath/core/jee/J2EE13ClasspathContainerInitializer.java 2009-02-04 16:11:50 UTC (rev 13472)
+++ trunk/as/plugins/org.jboss.ide.eclipse.as.classpath.core/src/org/jboss/ide/eclipse/as/classpath/core/jee/J2EE13ClasspathContainerInitializer.java 2009-02-04 16:11:56 UTC (rev 13473)
@@ -37,7 +37,7 @@
}
protected AbstractClasspathContainer createClasspathContainer(IPath path) {
- return new J2EE13ClasspathContainer(path);
+ return new J2EE13ClasspathContainer(path, javaProject);
}
protected String getClasspathContainerID() {
@@ -50,8 +50,13 @@
+ "." + J2EE13ClasspathContainer.SUFFIX;//$NON-NLS-1$
public final static String DESCRIPTION = "J2EE 1.3 Libraries (JBoss Tools)";
- public J2EE13ClasspathContainer(IPath path) {
- super(path, DESCRIPTION, SUFFIX);
+ public J2EE13ClasspathContainer(IPath path, IJavaProject javaProject) {
+ super(path, DESCRIPTION, SUFFIX, javaProject);
}
+
+ @Override
+ public void refresh() {
+ new J2EE13ClasspathContainer(path,javaProject).install();
+ }
}
}
Modified: trunk/as/plugins/org.jboss.ide.eclipse.as.classpath.core/src/org/jboss/ide/eclipse/as/classpath/core/jee/J2EE14ClasspathContainerInitializer.java
===================================================================
--- trunk/as/plugins/org.jboss.ide.eclipse.as.classpath.core/src/org/jboss/ide/eclipse/as/classpath/core/jee/J2EE14ClasspathContainerInitializer.java 2009-02-04 16:11:50 UTC (rev 13472)
+++ trunk/as/plugins/org.jboss.ide.eclipse.as.classpath.core/src/org/jboss/ide/eclipse/as/classpath/core/jee/J2EE14ClasspathContainerInitializer.java 2009-02-04 16:11:56 UTC (rev 13473)
@@ -2,6 +2,7 @@
import org.eclipse.core.runtime.IPath;
import org.eclipse.jdt.core.IJavaProject;
+import org.jboss.ide.eclipse.as.classpath.core.jee.J2EE13ClasspathContainerInitializer.J2EE13ClasspathContainer;
/**
*
@@ -16,7 +17,7 @@
}
protected AbstractClasspathContainer createClasspathContainer(IPath path) {
- return new J2EE14ClasspathContainer(path);
+ return new J2EE14ClasspathContainer(path, javaProject);
}
protected String getClasspathContainerID() {
@@ -29,8 +30,13 @@
+ "." + J2EE14ClasspathContainer.SUFFIX;//$NON-NLS-1$
public final static String DESCRIPTION = "J2EE 1.4 Libraries (JBoss Tools)";
- public J2EE14ClasspathContainer(IPath path) {
- super(path, DESCRIPTION, SUFFIX);
+ public J2EE14ClasspathContainer(IPath path, IJavaProject javaProject) {
+ super(path, DESCRIPTION, SUFFIX, javaProject);
}
+
+ @Override
+ public void refresh() {
+ new J2EE14ClasspathContainer(path,javaProject).install();
+ }
}
}
Modified: trunk/as/plugins/org.jboss.ide.eclipse.as.classpath.core/src/org/jboss/ide/eclipse/as/classpath/core/jee/J2EE50ClasspathContainerInitializer.java
===================================================================
--- trunk/as/plugins/org.jboss.ide.eclipse.as.classpath.core/src/org/jboss/ide/eclipse/as/classpath/core/jee/J2EE50ClasspathContainerInitializer.java 2009-02-04 16:11:50 UTC (rev 13472)
+++ trunk/as/plugins/org.jboss.ide.eclipse.as.classpath.core/src/org/jboss/ide/eclipse/as/classpath/core/jee/J2EE50ClasspathContainerInitializer.java 2009-02-04 16:11:56 UTC (rev 13473)
@@ -23,6 +23,7 @@
import org.eclipse.core.runtime.IPath;
import org.eclipse.jdt.core.IJavaProject;
+import org.jboss.ide.eclipse.as.classpath.core.jee.J2EE13ClasspathContainerInitializer.J2EE13ClasspathContainer;
/**
*
@@ -37,7 +38,7 @@
}
protected AbstractClasspathContainer createClasspathContainer(IPath path) {
- return new J2EE50ClasspathContainer(path);
+ return new J2EE50ClasspathContainer(path, javaProject);
}
protected String getClasspathContainerID() {
@@ -50,8 +51,13 @@
+ "." + J2EE50ClasspathContainer.SUFFIX;//$NON-NLS-1$
public final static String DESCRIPTION = "J2EE 5.0 Libraries (JBoss Tools)";
- public J2EE50ClasspathContainer(IPath path) {
- super(path, DESCRIPTION, SUFFIX);
+ public J2EE50ClasspathContainer(IPath path, IJavaProject javaProject) {
+ super(path, DESCRIPTION, SUFFIX, javaProject);
}
+
+ @Override
+ public void refresh() {
+ new J2EE50ClasspathContainer(path,javaProject).install();
+ }
}
}
17 years, 2 months