JBoss Tools SVN: r8814 - trunk/seam/tests/org.jboss.tools.seam.ui.test/src/org/jboss/tools/seam/ui/test/wizard.
by jbosstools-commits@lists.jboss.org
Author: dgolovin
Date: 2008-06-17 11:30:49 -0400 (Tue, 17 Jun 2008)
New Revision: 8814
Modified:
trunk/seam/tests/org.jboss.tools.seam.ui.test/src/org/jboss/tools/seam/ui/test/wizard/AbstractSeamNewOperationTest.java
Log:
fix exceptions in tearDown method
Modified: trunk/seam/tests/org.jboss.tools.seam.ui.test/src/org/jboss/tools/seam/ui/test/wizard/AbstractSeamNewOperationTest.java
===================================================================
--- trunk/seam/tests/org.jboss.tools.seam.ui.test/src/org/jboss/tools/seam/ui/test/wizard/AbstractSeamNewOperationTest.java 2008-06-17 15:03:14 UTC (rev 8813)
+++ trunk/seam/tests/org.jboss.tools.seam.ui.test/src/org/jboss/tools/seam/ui/test/wizard/AbstractSeamNewOperationTest.java 2008-06-17 15:30:49 UTC (rev 8814)
@@ -35,6 +35,7 @@
import org.eclipse.core.runtime.IAdaptable;
import org.eclipse.core.runtime.IProgressMonitor;
import org.eclipse.core.runtime.IStatus;
+import org.eclipse.core.runtime.NullProgressMonitor;
import org.eclipse.core.runtime.preferences.IEclipsePreferences;
import org.eclipse.core.runtime.preferences.IScopeContext;
import org.eclipse.ui.IWorkbench;
@@ -117,6 +118,7 @@
for (IResource r : this.resourcesToCleanup) {
try {
System.out.println("Deleting " + r);
+ ((IProject)r).close(null);
r.delete(true, null);
} catch(Exception e) {
System.out.println("Error deleting " + r);
17 years, 10 months
JBoss Tools SVN: r8813 - trunk/common/plugins/org.jboss.tools.common.kb/schemas/tld.
by jbosstools-commits@lists.jboss.org
Author: estherbin
Date: 2008-06-17 11:03:14 -0400 (Tue, 17 Jun 2008)
New Revision: 8813
Modified:
trunk/common/plugins/org.jboss.tools.common.kb/schemas/tld/Facelets.xml
Log:
Correct http://jira.jboss.com/jira/browse/JBIDE-1792 issue.
Modified: trunk/common/plugins/org.jboss.tools.common.kb/schemas/tld/Facelets.xml
===================================================================
--- trunk/common/plugins/org.jboss.tools.common.kb/schemas/tld/Facelets.xml 2008-06-17 14:45:31 UTC (rev 8812)
+++ trunk/common/plugins/org.jboss.tools.common.kb/schemas/tld/Facelets.xml 2008-06-17 15:03:14 UTC (rev 8813)
@@ -17,6 +17,14 @@
</proposal>
</attribute-type>
<attribute type="binding"/>
+ <attribute-type default="" name="xmlns" required="false">
+ <proposal type="taglib"/>
+ </attribute-type>
+ <attribute-type default="" name="xmlns:*" required="false">
+ <proposal type="taglib"/>
+ </attribute-type>
+ <attribute default="" required="false" type="xmlns"/>
+ <attribute default="" required="false" type="xmlns:*"/>
</element-type>
<element-type body-content="allowed" content="mixed" end-tag="required"
name="composition" start-tag="required">
@@ -30,6 +38,14 @@
</proposal>
</attribute-type>
<attribute type="template"/>
+ <attribute-type default="" name="xmlns" required="false">
+ <proposal type="taglib"/>
+ </attribute-type>
+ <attribute-type default="" name="xmlns:*" required="false">
+ <proposal type="taglib"/>
+ </attribute-type>
+ <attribute default="" required="false" type="xmlns"/>
+ <attribute default="" required="false" type="xmlns:*"/>
</element-type>
<element-type body-content="refused" content="mixed" end-tag="required"
name="debug" start-tag="required">
@@ -67,6 +83,14 @@
</proposal>
</attribute-type>
<attribute type="template"/>
+ <attribute-type default="" name="xmlns" required="false">
+ <proposal type="taglib"/>
+ </attribute-type>
+ <attribute-type default="" name="xmlns:*" required="false">
+ <proposal type="taglib"/>
+ </attribute-type>
+ <attribute default="" required="false" type="xmlns"/>
+ <attribute default="" required="false" type="xmlns:*"/>
</element-type>
<element-type body-content="allowed" content="mixed" end-tag="required"
name="define" start-tag="required">
@@ -95,6 +119,14 @@
</proposal>
</attribute-type>
<attribute type="binding"/>
+ <attribute-type default="" name="xmlns" required="false">
+ <proposal type="taglib"/>
+ </attribute-type>
+ <attribute-type default="" name="xmlns:*" required="false">
+ <proposal type="taglib"/>
+ </attribute-type>
+ <attribute default="" required="false" type="xmlns"/>
+ <attribute default="" required="false" type="xmlns:*"/>
</element-type>
<element-type body-content="refused" content="mixed" end-tag="required"
name="include" start-tag="required">
17 years, 10 months
JBoss Tools SVN: r8812 - trunk/vpe/plugins/org.jboss.tools.vpe/src/org/jboss/tools/vpe/editor.
by jbosstools-commits@lists.jboss.org
Author: mareshkau
Date: 2008-06-17 10:45:31 -0400 (Tue, 17 Jun 2008)
New Revision: 8812
Modified:
trunk/vpe/plugins/org.jboss.tools.vpe/src/org/jboss/tools/vpe/editor/VpeController.java
Log:
http://jira.jboss.com/jira/browse/JBIDE-2354
Modified: trunk/vpe/plugins/org.jboss.tools.vpe/src/org/jboss/tools/vpe/editor/VpeController.java
===================================================================
--- trunk/vpe/plugins/org.jboss.tools.vpe/src/org/jboss/tools/vpe/editor/VpeController.java 2008-06-17 13:23:32 UTC (rev 8811)
+++ trunk/vpe/plugins/org.jboss.tools.vpe/src/org/jboss/tools/vpe/editor/VpeController.java 2008-06-17 14:45:31 UTC (rev 8812)
@@ -438,7 +438,6 @@
if (display != null && (Thread.currentThread() == display.getThread())) {
getChangeEvents().addLast(new VpeEventBean(notifier, eventType, feature, oldValue,newValue, pos));
-
if(uiJob==null) {
uiJob = new UIJob(VpeUIMessages.VPE_UPDATE_JOB_TITLE){
@Override
@@ -446,7 +445,7 @@
monitor.beginTask(VpeUIMessages.VPE_UPDATE_JOB_TITLE, 100);
while(getChangeEvents().size()>0) {
-
+
monitor.worked((int)(100/getChangeEvents().size()));
VpeEventBean eventBean = getChangeEvents().getFirst();
if (monitor.isCanceled()) {
@@ -1588,6 +1587,7 @@
if(uiJob!=null) {
uiJob.cancel();
+ getChangeEvents().clear();
}
if (!switcher
.startActiveEditor(ActiveEditorSwitcher.ACTIVE_EDITOR_SOURCE)) {
17 years, 10 months
JBoss Tools SVN: r8811 - trunk/seam/plugins/org.jboss.tools.seam.pages.xml/src/org/jboss/tools/seam/pages/xml/model/helpers.
by jbosstools-commits@lists.jboss.org
Author: scabanovich
Date: 2008-06-17 09:23:32 -0400 (Tue, 17 Jun 2008)
New Revision: 8811
Modified:
trunk/seam/plugins/org.jboss.tools.seam.pages.xml/src/org/jboss/tools/seam/pages/xml/model/helpers/SeamPagesDiagramHelper.java
Log:
JBIDE-2346
Modified: trunk/seam/plugins/org.jboss.tools.seam.pages.xml/src/org/jboss/tools/seam/pages/xml/model/helpers/SeamPagesDiagramHelper.java
===================================================================
--- trunk/seam/plugins/org.jboss.tools.seam.pages.xml/src/org/jboss/tools/seam/pages/xml/model/helpers/SeamPagesDiagramHelper.java 2008-06-17 12:53:15 UTC (rev 8810)
+++ trunk/seam/plugins/org.jboss.tools.seam.pages.xml/src/org/jboss/tools/seam/pages/xml/model/helpers/SeamPagesDiagramHelper.java 2008-06-17 13:23:32 UTC (rev 8811)
@@ -188,6 +188,10 @@
gs = (ReferenceObjectImpl[])targets.values().toArray(new ReferenceObjectImpl[0]);
for (int i = 0; i < gs.length; i++) {
gs[i].setReference(null);
+ XModelObject[] os = gs[i].getChildren(ENT_DIAGRAM_ITEM_OUTPUT);
+ for (int j = 0; j < os.length; j++) {
+ gs[i].removeChild(os[j]);
+ }
updatePageItem(gs[i]);
}
}
17 years, 10 months
JBoss Tools SVN: r8810 - in trunk: hibernatetools/docs/reference/en/modules and 4 other directories.
by jbosstools-commits@lists.jboss.org
Author: smukhina
Date: 2008-06-17 08:53:15 -0400 (Tue, 17 Jun 2008)
New Revision: 8810
Modified:
trunk/as/docs/reference/en/modules/perspective.xml
trunk/as/docs/reference/en/modules/runtimes_servers.xml
trunk/hibernatetools/docs/reference/en/modules/plugins.xml
trunk/hibernatetools/docs/reference/en/modules/preface.xml
trunk/jsf/docs/jsf_tools_ref_guide/en/modules/introduction.xml
trunk/jsf/docs/jsf_tools_ref_guide/en/modules/jsf_support.xml
trunk/jsf/docs/jsf_tools_ref_guide/en/modules/projects.xml
trunk/jsf/docs/userguide/en/modules/Visual_Web_Tools.xml
trunk/seam/docs/reference/en/modules/seam_menus_and_actions.xml
trunk/struts/docs/struts_tools_ref_guide/en/modules/introduction.xml
Log:
http://jira.jboss.com/jira/browse/JBDS-361
text in table is align correctly
Modified: trunk/as/docs/reference/en/modules/perspective.xml
===================================================================
--- trunk/as/docs/reference/en/modules/perspective.xml 2008-06-17 12:09:03 UTC (rev 8809)
+++ trunk/as/docs/reference/en/modules/perspective.xml 2008-06-17 12:53:15 UTC (rev 8810)
@@ -85,7 +85,7 @@
<table>
<title>Server Publish Status</title>
<tgroup cols="2">
- <colspec colnum="1" colwidth="1*"/>
+ <colspec colnum="1" align="left" colwidth="1*"/>
<colspec colnum="2" colwidth="3*"/>
@@ -183,7 +183,7 @@
<table>
<title>Server Properties through the Context Menu</title>
<tgroup cols="2">
- <colspec colnum="1" colwidth="1*"/>
+ <colspec colnum="1" align="left" colwidth="1*"/>
<colspec colnum="2" colwidth="3*"/>
<thead>
@@ -680,7 +680,7 @@
<table>
<title>Context Menu on the Item</title>
<tgroup cols="2">
- <colspec colnum="1" colwidth="1*"/>
+ <colspec colnum="1" align="left" colwidth="1*"/>
<colspec colnum="2" colwidth="3*"/>
Modified: trunk/as/docs/reference/en/modules/runtimes_servers.xml
===================================================================
--- trunk/as/docs/reference/en/modules/runtimes_servers.xml 2008-06-17 12:09:03 UTC (rev 8809)
+++ trunk/as/docs/reference/en/modules/runtimes_servers.xml 2008-06-17 12:53:15 UTC (rev 8810)
@@ -98,7 +98,7 @@
<table>
<title>Server Runtime Wizard Parameters</title>
<tgroup cols="2">
- <colspec colnum="1" colwidth="1*"/>
+ <colspec colnum="1" align="left" colwidth="1*"/>
<colspec colnum="2" colwidth="3*"/>
<thead>
Modified: trunk/hibernatetools/docs/reference/en/modules/plugins.xml
===================================================================
--- trunk/hibernatetools/docs/reference/en/modules/plugins.xml 2008-06-17 12:09:03 UTC (rev 8809)
+++ trunk/hibernatetools/docs/reference/en/modules/plugins.xml 2008-06-17 12:53:15 UTC (rev 8810)
@@ -200,7 +200,7 @@
<title>Hibernate Console Configuration Parameters</title>
<tgroup cols="3">
- <colspec colnum="1" colwidth="1*"/>
+ <colspec colnum="1" align="left" colwidth="1*"/>
<colspec colnum="2" colwidth="3*"/>
@@ -364,7 +364,7 @@
<title>Hibernate Console Configuration Classpath</title>
<tgroup cols="3">
- <colspec colnum="1" colwidth="1*"/>
+ <colspec colnum="1" align="left" colwidth="1*"/>
<colspec colnum="2" colwidth="3*"/>
@@ -443,7 +443,7 @@
<title>Hibernate Console Configuration Mappings</title>
<tgroup cols="3">
- <colspec colnum="1" colwidth="1*"/>
+ <colspec colnum="1" align="left" colwidth="1*"/>
<colspec colnum="2" colwidth="3*"/>
@@ -591,7 +591,7 @@
<title>Code generation "Main" tab fields</title>
<tgroup cols="2">
- <colspec colnum="1" colwidth="1*"/>
+ <colspec colnum="1" align="left" colwidth="1*"/>
<colspec colnum="2" colwidth="3*"/>
@@ -781,7 +781,7 @@
<title>Code generation "Exporter" tab fields</title>
<tgroup cols="2">
- <colspec colnum="1" colwidth="1*"/>
+ <colspec colnum="1" align="left" colwidth="1*"/>
<colspec colnum="2" colwidth="3*"/>
@@ -876,7 +876,7 @@
<title>Exporter Properties</title>
<tgroup cols="2">
- <colspec colnum="1" colwidth="1*"/>
+ <colspec colnum="1" align="left" colwidth="1*"/>
<colspec colnum="2" colwidth="3*"/>
Modified: trunk/hibernatetools/docs/reference/en/modules/preface.xml
===================================================================
--- trunk/hibernatetools/docs/reference/en/modules/preface.xml 2008-06-17 12:09:03 UTC (rev 8809)
+++ trunk/hibernatetools/docs/reference/en/modules/preface.xml 2008-06-17 12:53:15 UTC (rev 8810)
@@ -19,7 +19,7 @@
<title>Key Functionality for Hibernate Tools</title>
<tgroup cols="3">
- <colspec colnum="1" colwidth="1*"/>
+ <colspec colnum="1" align="left" colwidth="1*"/>
<colspec colnum="2" colwidth="5*"/>
<colspec colnum="3" colwidth="1*"/>
Modified: trunk/jsf/docs/jsf_tools_ref_guide/en/modules/introduction.xml
===================================================================
--- trunk/jsf/docs/jsf_tools_ref_guide/en/modules/introduction.xml 2008-06-17 12:09:03 UTC (rev 8809)
+++ trunk/jsf/docs/jsf_tools_ref_guide/en/modules/introduction.xml 2008-06-17 12:53:15 UTC (rev 8810)
@@ -31,7 +31,7 @@
<title>Key Functionality for JSF Tools</title>
<tgroup cols="3">
- <colspec colnum="1" colwidth="2*"/>
+ <colspec colnum="1" align="left" colwidth="2*"/>
<colspec colnum="2" colwidth="4*"/>
<colspec colnum="3" colwidth="2*"/>
Modified: trunk/jsf/docs/jsf_tools_ref_guide/en/modules/jsf_support.xml
===================================================================
--- trunk/jsf/docs/jsf_tools_ref_guide/en/modules/jsf_support.xml 2008-06-17 12:09:03 UTC (rev 8809)
+++ trunk/jsf/docs/jsf_tools_ref_guide/en/modules/jsf_support.xml 2008-06-17 12:53:15 UTC (rev 8810)
@@ -83,7 +83,7 @@
<table>
<title>Facelets Templates</title>
<tgroup cols="2">
- <colspec colnum="1" colwidth="2*"/>
+ <colspec colnum="1" align="left" colwidth="2*"/>
<colspec colnum="2" colwidth="3*"/>
Modified: trunk/jsf/docs/jsf_tools_ref_guide/en/modules/projects.xml
===================================================================
--- trunk/jsf/docs/jsf_tools_ref_guide/en/modules/projects.xml 2008-06-17 12:09:03 UTC (rev 8809)
+++ trunk/jsf/docs/jsf_tools_ref_guide/en/modules/projects.xml 2008-06-17 12:53:15 UTC (rev 8810)
@@ -96,7 +96,7 @@
<table>
<title>JSF Project Templates</title>
<tgroup cols="2">
- <colspec colnum="1" colwidth="1*"/>
+ <colspec colnum="1" align="left" colwidth="1*"/>
<colspec colnum="2" colwidth="3*"/>
Modified: trunk/jsf/docs/userguide/en/modules/Visual_Web_Tools.xml
===================================================================
--- trunk/jsf/docs/userguide/en/modules/Visual_Web_Tools.xml 2008-06-17 12:09:03 UTC (rev 8809)
+++ trunk/jsf/docs/userguide/en/modules/Visual_Web_Tools.xml 2008-06-17 12:53:15 UTC (rev 8810)
@@ -52,7 +52,7 @@
<title>Key Functionality for Visual Web Tools</title>
<tgroup cols="3">
- <colspec colnum="1" colwidth="2*"/>
+ <colspec colnum="1" align="left" colwidth="2*"/>
<colspec colnum="2" colwidth="4*"/>
<colspec colnum="3" colwidth="2*"/>
Modified: trunk/seam/docs/reference/en/modules/seam_menus_and_actions.xml
===================================================================
--- trunk/seam/docs/reference/en/modules/seam_menus_and_actions.xml 2008-06-17 12:09:03 UTC (rev 8809)
+++ trunk/seam/docs/reference/en/modules/seam_menus_and_actions.xml 2008-06-17 12:53:15 UTC (rev 8810)
@@ -38,7 +38,7 @@
<table>
<title>Seam Actions in the New Submenu</title>
<tgroup cols="2">
- <colspec colnum="1" colwidth="1*"/>
+ <colspec colnum="1" align="left" colwidth="1*"/>
<colspec colnum="2" colwidth="4*"/>
<thead>
@@ -192,7 +192,7 @@
<table>
<title>Find Seam References/Declarations actions</title>
<tgroup cols="3">
- <colspec colnum="1" colwidth="1*"/>
+ <colspec colnum="1" align="left" colwidth="1*"/>
<colspec colnum="2" colwidth="4*"/>
<colspec colnum="3" colwidth="2*"/>
@@ -295,7 +295,7 @@
<table>
<title>Open Seam Components Dialog</title>
<tgroup cols="3">
- <colspec colnum="1" colwidth="1*"/>
+ <colspec colnum="1" align="left" colwidth="1*"/>
<colspec colnum="2" colwidth="4*"/>
<colspec colnum="3" colwidth="2*"/>
Modified: trunk/struts/docs/struts_tools_ref_guide/en/modules/introduction.xml
===================================================================
--- trunk/struts/docs/struts_tools_ref_guide/en/modules/introduction.xml 2008-06-17 12:09:03 UTC (rev 8809)
+++ trunk/struts/docs/struts_tools_ref_guide/en/modules/introduction.xml 2008-06-17 12:53:15 UTC (rev 8810)
@@ -36,7 +36,7 @@
<title>Key Functionality for Struts Tools</title>
<tgroup cols="3">
- <colspec colnum="1" colwidth="2*"/>
+ <colspec colnum="1" align="left" colwidth="2*"/>
<colspec colnum="2" colwidth="4*"/>
<colspec colnum="3" colwidth="2*"/>
17 years, 10 months
JBoss Tools SVN: r8809 - branches/jbosstools-2.1.x/seam/plugins/org.jboss.tools.seam.core/src/org/jboss/tools/seam/core.
by jbosstools-commits@lists.jboss.org
Author: scabanovich
Date: 2008-06-17 08:09:03 -0400 (Tue, 17 Jun 2008)
New Revision: 8809
Modified:
branches/jbosstools-2.1.x/seam/plugins/org.jboss.tools.seam.core/src/org/jboss/tools/seam/core/SeamCorePlugin.java
Log:
JBIDE-2260
Modified: branches/jbosstools-2.1.x/seam/plugins/org.jboss.tools.seam.core/src/org/jboss/tools/seam/core/SeamCorePlugin.java
===================================================================
--- branches/jbosstools-2.1.x/seam/plugins/org.jboss.tools.seam.core/src/org/jboss/tools/seam/core/SeamCorePlugin.java 2008-06-17 12:07:20 UTC (rev 8808)
+++ branches/jbosstools-2.1.x/seam/plugins/org.jboss.tools.seam.core/src/org/jboss/tools/seam/core/SeamCorePlugin.java 2008-06-17 12:09:03 UTC (rev 8809)
@@ -15,6 +15,9 @@
import java.util.List;
import org.eclipse.core.resources.IProject;
+import org.eclipse.core.resources.IResource;
+import org.eclipse.core.resources.IResourceChangeEvent;
+import org.eclipse.core.resources.IResourceChangeListener;
import org.eclipse.core.resources.ProjectScope;
import org.eclipse.core.resources.ResourcesPlugin;
import org.eclipse.core.runtime.CoreException;
@@ -28,6 +31,7 @@
import org.jboss.tools.common.log.IPluginLog;
import org.jboss.tools.seam.core.event.ISeamProjectChangeListener;
import org.jboss.tools.seam.core.event.SeamProjectChangeEvent;
+import org.jboss.tools.seam.internal.core.SeamProject;
import org.osgi.framework.BundleContext;
/**
@@ -55,6 +59,7 @@
public void start(BundleContext context) throws Exception {
super.start(context);
cleanCachedProjects();
+ ResourcesPlugin.getWorkspace().addResourceChangeListener(resourceChangeListener);
}
static void cleanCachedProjects() {
@@ -76,11 +81,33 @@
}
+ IResourceChangeListener resourceChangeListener = new RCL();
+
+ class RCL implements IResourceChangeListener {
+
+ public void resourceChanged(IResourceChangeEvent event) {
+ if(event.getType() == IResourceChangeEvent.PRE_DELETE
+ || event.getType() == IResourceChangeEvent.PRE_CLOSE) {
+ IResource r = event.getResource();
+ if(r instanceof IProject) {
+ IProject p = (IProject)r;
+ SeamProject sp = (SeamProject)getSeamProject(p, false);
+ if(sp != null) {
+ sp.clearStorage();
+ }
+ }
+ }
+
+ }
+
+ }
+
/*
* (non-Javadoc)
* @see org.eclipse.ui.plugin.AbstractUIPlugin#stop(org.osgi.framework.BundleContext)
*/
public void stop(BundleContext context) throws Exception {
+ ResourcesPlugin.getWorkspace().removeResourceChangeListener(resourceChangeListener);
plugin = null;
super.stop(context);
}
17 years, 10 months
JBoss Tools SVN: r8808 - trunk/seam/plugins/org.jboss.tools.seam.core/src/org/jboss/tools/seam/core.
by jbosstools-commits@lists.jboss.org
Author: scabanovich
Date: 2008-06-17 08:07:20 -0400 (Tue, 17 Jun 2008)
New Revision: 8808
Modified:
trunk/seam/plugins/org.jboss.tools.seam.core/src/org/jboss/tools/seam/core/SeamCorePlugin.java
Log:
JBIDE-2260
Modified: trunk/seam/plugins/org.jboss.tools.seam.core/src/org/jboss/tools/seam/core/SeamCorePlugin.java
===================================================================
--- trunk/seam/plugins/org.jboss.tools.seam.core/src/org/jboss/tools/seam/core/SeamCorePlugin.java 2008-06-17 06:04:14 UTC (rev 8807)
+++ trunk/seam/plugins/org.jboss.tools.seam.core/src/org/jboss/tools/seam/core/SeamCorePlugin.java 2008-06-17 12:07:20 UTC (rev 8808)
@@ -15,6 +15,9 @@
import java.util.List;
import org.eclipse.core.resources.IProject;
+import org.eclipse.core.resources.IResource;
+import org.eclipse.core.resources.IResourceChangeEvent;
+import org.eclipse.core.resources.IResourceChangeListener;
import org.eclipse.core.resources.ProjectScope;
import org.eclipse.core.resources.ResourcesPlugin;
import org.eclipse.core.runtime.CoreException;
@@ -28,6 +31,7 @@
import org.jboss.tools.common.log.IPluginLog;
import org.jboss.tools.seam.core.event.ISeamProjectChangeListener;
import org.jboss.tools.seam.core.event.SeamProjectChangeEvent;
+import org.jboss.tools.seam.internal.core.SeamProject;
import org.osgi.framework.BundleContext;
/**
@@ -55,6 +59,7 @@
public void start(BundleContext context) throws Exception {
super.start(context);
cleanCachedProjects();
+ ResourcesPlugin.getWorkspace().addResourceChangeListener(resourceChangeListener);
}
static void cleanCachedProjects() {
@@ -76,11 +81,33 @@
}
+ IResourceChangeListener resourceChangeListener = new RCL();
+
+ class RCL implements IResourceChangeListener {
+
+ public void resourceChanged(IResourceChangeEvent event) {
+ if(event.getType() == IResourceChangeEvent.PRE_DELETE
+ || event.getType() == IResourceChangeEvent.PRE_CLOSE) {
+ IResource r = event.getResource();
+ if(r instanceof IProject) {
+ IProject p = (IProject)r;
+ SeamProject sp = (SeamProject)getSeamProject(p, false);
+ if(sp != null) {
+ sp.clearStorage();
+ }
+ }
+ }
+
+ }
+
+ }
+
/*
* (non-Javadoc)
* @see org.eclipse.ui.plugin.AbstractUIPlugin#stop(org.osgi.framework.BundleContext)
*/
public void stop(BundleContext context) throws Exception {
+ ResourcesPlugin.getWorkspace().removeResourceChangeListener(resourceChangeListener);
plugin = null;
super.stop(context);
}
17 years, 10 months
JBoss Tools SVN: r8807 - trunk/ws/plugins/org.jboss.tools.ws.core/src/org/jboss/tools/ws/core/command.
by jbosstools-commits@lists.jboss.org
Author: Grid.Qian
Date: 2008-06-17 02:04:14 -0400 (Tue, 17 Jun 2008)
New Revision: 8807
Removed:
trunk/ws/plugins/org.jboss.tools.ws.core/src/org/jboss/tools/ws/core/command/JbossWSRuntimeCommand.java
Log:
JBIDE-2047: remove unused class
Deleted: trunk/ws/plugins/org.jboss.tools.ws.core/src/org/jboss/tools/ws/core/command/JbossWSRuntimeCommand.java
===================================================================
--- trunk/ws/plugins/org.jboss.tools.ws.core/src/org/jboss/tools/ws/core/command/JbossWSRuntimeCommand.java 2008-06-17 05:47:52 UTC (rev 8806)
+++ trunk/ws/plugins/org.jboss.tools.ws.core/src/org/jboss/tools/ws/core/command/JbossWSRuntimeCommand.java 2008-06-17 06:04:14 UTC (rev 8807)
@@ -1,74 +0,0 @@
-/*******************************************************************************
- * Copyright (c) 2008 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.ws.core.command;
-
-import org.eclipse.core.commands.ExecutionException;
-import org.eclipse.core.resources.IProject;
-import org.eclipse.core.runtime.IAdaptable;
-import org.eclipse.core.runtime.IPath;
-import org.eclipse.core.runtime.IProgressMonitor;
-import org.eclipse.core.runtime.IStatus;
-import org.eclipse.core.runtime.Path;
-import org.eclipse.core.runtime.Status;
-import org.eclipse.osgi.util.NLS;
-import org.eclipse.wst.common.frameworks.datamodel.AbstractDataModelOperation;
-import org.jboss.tools.ws.core.messages.JbossWSCoreMessages;
-import org.jboss.tools.ws.core.utils.JbossWSCoreUtils;
-import org.jboss.tools.ws.core.utils.StatusUtils;
-
-/**
- * @author Grid Qian
- */
-public class JbossWSRuntimeCommand extends AbstractDataModelOperation {
-
- IProject project;
- String runtimeLocation;
-
- public JbossWSRuntimeCommand(IProject project) {
- this.project = project;
- }
-
- public IStatus execute(IProgressMonitor monitor, IAdaptable info)
- throws ExecutionException {
- return executeOverride(monitor);
- }
-
- public IStatus executeOverride(IProgressMonitor monitor) {
- IStatus status = Status.OK_STATUS;
-
- // copy lib jars to project's folder
- IPath wsPath = new Path("");
- IPath libPath = null;
- try {
- libPath = wsPath.append(JbossWSCoreMessages.Dir_Lib);
- } catch (Exception e) {
- status = StatusUtils.errorStatus(NLS.bind(
- JbossWSCoreMessages.Error_WS_Location, new String[] { e
- .getLocalizedMessage() }), e);
- return status;
- }
- IPath targetPath = JbossWSCoreUtils.pathToWebProjectContainer(project
- .toString());
- targetPath = targetPath.append(JbossWSCoreMessages.Dir_Web_Inf).append(
- JbossWSCoreMessages.Dir_Lib);
- status = JbossWSCoreUtils.copy(libPath, targetPath);
-
- if (status == Status.OK_STATUS) {
- // copy client jars to project's folder
- libPath = wsPath.append(JbossWSCoreMessages.Dir_Client);
- status = JbossWSCoreUtils.copy(libPath, targetPath);
- }
-
- return status;
- }
-
-}
\ No newline at end of file
17 years, 10 months
JBoss Tools SVN: r8806 - in trunk/ws/plugins: org.jboss.tools.ws.creation.ui/src/org/jboss/tools/ws/creation/ui/project/facet and 1 other directories.
by jbosstools-commits@lists.jboss.org
Author: dennyxu
Date: 2008-06-17 01:47:52 -0400 (Tue, 17 Jun 2008)
New Revision: 8806
Modified:
trunk/ws/plugins/org.jboss.tools.ws.creation.core/src/org/jboss/tools/ws/creation/core/messages/JBossWSCreationCore.properties
trunk/ws/plugins/org.jboss.tools.ws.creation.core/src/org/jboss/tools/ws/creation/core/messages/JBossWSCreationCoreMessages.java
trunk/ws/plugins/org.jboss.tools.ws.creation.ui/src/org/jboss/tools/ws/creation/ui/project/facet/JBossWSFacetInstallPage.java
trunk/ws/plugins/org.jboss.tools.ws.creation.ui/src/org/jboss/tools/ws/creation/ui/widgets/CodeGenConfigWidget.java
Log:
JBIDE-2343: fixed JbossWS facet installation does not work issue
Modified: trunk/ws/plugins/org.jboss.tools.ws.creation.core/src/org/jboss/tools/ws/creation/core/messages/JBossWSCreationCore.properties
===================================================================
--- trunk/ws/plugins/org.jboss.tools.ws.creation.core/src/org/jboss/tools/ws/creation/core/messages/JBossWSCreationCore.properties 2008-06-17 05:28:10 UTC (rev 8805)
+++ trunk/ws/plugins/org.jboss.tools.ws.creation.core/src/org/jboss/tools/ws/creation/core/messages/JBossWSCreationCore.properties 2008-06-17 05:47:52 UTC (rev 8806)
@@ -1,12 +1,11 @@
Label_Custom_Package_Name=Custom package name
Label_Catalog_File=Catalog file
Label_Button_Text_Seletion= &Add
-Label_Generate_Impelemtation=Generate default Web Service Implementation class
+Label_Generate_Impelemtation=Generate default Web Service Implementation classes
Label_Generate_WSDL=Generete WSDL file
Label_Binding_File=Binding files
Label_JaxWS_Target=JAX-WS specification
-Label_Upate_Webxml=Update default Web.xml
-Label_Update_Webxml=Update default Web.xml
+Label_Update_Webxml=Update the default Web.xml
Value_Target_0=2.0
Value_Target_1=2.1
Label_Button_Text_Remove=Remove
Modified: trunk/ws/plugins/org.jboss.tools.ws.creation.core/src/org/jboss/tools/ws/creation/core/messages/JBossWSCreationCoreMessages.java
===================================================================
--- trunk/ws/plugins/org.jboss.tools.ws.creation.core/src/org/jboss/tools/ws/creation/core/messages/JBossWSCreationCoreMessages.java 2008-06-17 05:28:10 UTC (rev 8805)
+++ trunk/ws/plugins/org.jboss.tools.ws.creation.core/src/org/jboss/tools/ws/creation/core/messages/JBossWSCreationCoreMessages.java 2008-06-17 05:47:52 UTC (rev 8806)
@@ -25,8 +25,6 @@
public static String Label_Generate_WSDL;
public static String Label_JaxWS_Target;
- public static String Label_Upate_Webxml;
-
public static String Label_Update_Webxml;
public static String Value_Target_0;
public static String Value_Target_1;
Modified: trunk/ws/plugins/org.jboss.tools.ws.creation.ui/src/org/jboss/tools/ws/creation/ui/project/facet/JBossWSFacetInstallPage.java
===================================================================
--- trunk/ws/plugins/org.jboss.tools.ws.creation.ui/src/org/jboss/tools/ws/creation/ui/project/facet/JBossWSFacetInstallPage.java 2008-06-17 05:28:10 UTC (rev 8805)
+++ trunk/ws/plugins/org.jboss.tools.ws.creation.ui/src/org/jboss/tools/ws/creation/ui/project/facet/JBossWSFacetInstallPage.java 2008-06-17 05:47:52 UTC (rev 8806)
@@ -15,6 +15,7 @@
import java.util.EventObject;
import java.util.List;
+import org.eclipse.core.resources.IProject;
import org.eclipse.jface.wizard.WizardDialog;
import org.eclipse.swt.SWT;
import org.eclipse.swt.events.MouseAdapter;
@@ -111,12 +112,7 @@
String runtimeName = cmbRuntimes.getText();
JbossWSRuntime jr = (JbossWSRuntime) cmbRuntimes
.getData(runtimeName);
- model.setStringProperty(
- IJBossWSFacetDataModelProperties.JBOSS_WS_RUNTIME_HOME,
- jr.getHomeDir());
- model.setStringProperty(
- IJBossWSFacetDataModelProperties.JBOSS_WS_RUNTIME_ID,
- runtimeName);
+ saveJBosswsRuntimeToModel(jr);
}
});
@@ -143,6 +139,15 @@
changePageStatus();
}
+
+ protected void saveJBosswsRuntimeToModel(JbossWSRuntime jbws){
+ model.setStringProperty(
+ IJBossWSFacetDataModelProperties.JBOSS_WS_RUNTIME_HOME,
+ jbws.getHomeDir());
+ model.setStringProperty(
+ IJBossWSFacetDataModelProperties.JBOSS_WS_RUNTIME_ID,
+ jbws.getName());
+ }
protected void setServerSuppliedSelection(EventObject e) {
btnServerSupplied.setSelection(true);
@@ -197,6 +202,7 @@
// get default jbossws runtime
if (jr.isDefault()) {
cmRuntime.select(i);
+ saveJBosswsRuntimeToModel(jr);
}
}
}
Modified: trunk/ws/plugins/org.jboss.tools.ws.creation.ui/src/org/jboss/tools/ws/creation/ui/widgets/CodeGenConfigWidget.java
===================================================================
--- trunk/ws/plugins/org.jboss.tools.ws.creation.ui/src/org/jboss/tools/ws/creation/ui/widgets/CodeGenConfigWidget.java 2008-06-17 05:28:10 UTC (rev 8805)
+++ trunk/ws/plugins/org.jboss.tools.ws.creation.ui/src/org/jboss/tools/ws/creation/ui/widgets/CodeGenConfigWidget.java 2008-06-17 05:47:52 UTC (rev 8806)
@@ -160,7 +160,7 @@
gd = new GridData();
gd.horizontalSpan = 3;
btnUpdateWebxml.setLayoutData(gd);
- btnUpdateWebxml.setText(JBossWSCreationCoreMessages.Label_Upate_Webxml);
+ btnUpdateWebxml.setText(JBossWSCreationCoreMessages.Label_Update_Webxml);
btnUpdateWebxml.setSelection(true);
btnUpdateWebxml.addSelectionListener(new SelectionAdapter(){
public void widgetSelected(SelectionEvent e) {
17 years, 10 months
JBoss Tools SVN: r8805 - trunk/jsf/tests/org.jboss.tools.jsf.test/src/org/jboss/tools/jsf/test.
by jbosstools-commits@lists.jboss.org
Author: dgolovin
Date: 2008-06-17 01:28:10 -0400 (Tue, 17 Jun 2008)
New Revision: 8805
Modified:
trunk/jsf/tests/org.jboss.tools.jsf.test/src/org/jboss/tools/jsf/test/JsfAllTests.java
Log:
Enabling back JSFPromptingProviderTest
Modified: trunk/jsf/tests/org.jboss.tools.jsf.test/src/org/jboss/tools/jsf/test/JsfAllTests.java
===================================================================
--- trunk/jsf/tests/org.jboss.tools.jsf.test/src/org/jboss/tools/jsf/test/JsfAllTests.java 2008-06-17 05:27:19 UTC (rev 8804)
+++ trunk/jsf/tests/org.jboss.tools.jsf.test/src/org/jboss/tools/jsf/test/JsfAllTests.java 2008-06-17 05:28:10 UTC (rev 8805)
@@ -25,7 +25,7 @@
suite.addTestSuite(ModelFormat_2_0_0_Test.class);
suite.addTestSuite(JSFImportTest.class);
suite.addTestSuite(JSFBeansTest.class);
- //suite.addTestSuite(JSFPromptingProviderTest.class);
+ suite.addTestSuite(JSFPromptingProviderTest.class);
return suite;
}
17 years, 10 months