JBoss Tools SVN: r18959 - trunk/smooks/plugins/org.jboss.tools.smooks.ui/src/org/jboss/tools/smooks/configuration/editors/uitls.
by jbosstools-commits@lists.jboss.org
Author: tfennelly
Date: 2009-12-01 18:06:15 -0500 (Tue, 01 Dec 2009)
New Revision: 18959
Modified:
trunk/smooks/plugins/org.jboss.tools.smooks.ui/src/org/jboss/tools/smooks/configuration/editors/uitls/ProjectClassLoader.java
Log:
https://jira.jboss.org/jira/browse/JBIDE-5342
ProjectClassLoader not resolving internal project jar files
Modified: trunk/smooks/plugins/org.jboss.tools.smooks.ui/src/org/jboss/tools/smooks/configuration/editors/uitls/ProjectClassLoader.java
===================================================================
--- trunk/smooks/plugins/org.jboss.tools.smooks.ui/src/org/jboss/tools/smooks/configuration/editors/uitls/ProjectClassLoader.java 2009-12-01 23:00:49 UTC (rev 18958)
+++ trunk/smooks/plugins/org.jboss.tools.smooks.ui/src/org/jboss/tools/smooks/configuration/editors/uitls/ProjectClassLoader.java 2009-12-01 23:06:15 UTC (rev 18959)
@@ -8,10 +8,12 @@
import java.util.List;
import org.eclipse.core.resources.IProject;
+import org.eclipse.core.resources.IResource;
import org.eclipse.core.resources.IWorkspaceRoot;
import org.eclipse.core.resources.ResourcesPlugin;
import org.eclipse.core.runtime.FileLocator;
import org.eclipse.core.runtime.IPath;
+import org.eclipse.jdt.core.IJavaElement;
import org.eclipse.jdt.core.IJavaProject;
import org.eclipse.jdt.core.IPackageFragmentRoot;
import org.eclipse.jdt.core.JavaCore;
@@ -84,6 +86,16 @@
roots[i].getPath().makeAbsolute().toFile()
.toURL()).getFile());
}
+ if (!f.exists()) {
+ IJavaElement javaElement = roots[i].getPrimaryElement();
+ String jarName = javaElement.getElementName();
+ IResource jarResource = project.getProject().findMember(jarName);
+
+ if(jarResource != null) {
+ f = jarResource.getRawLocation().toFile();
+ }
+ }
+
list.add(f.toURL());
} else {
IPath path = roots[i].getJavaProject().getOutputLocation();
@@ -99,6 +111,7 @@
}
}
} catch (Exception e) {
+ e.printStackTrace();
}
}
15 years, 1 month
JBoss Tools SVN: r18958 - branches/jbosstools-3.1.0.RC1/smooks/plugins/org.jboss.tools.smooks.ui/src/org/jboss/tools/smooks/configuration/editors/uitls.
by jbosstools-commits@lists.jboss.org
Author: tfennelly
Date: 2009-12-01 18:00:49 -0500 (Tue, 01 Dec 2009)
New Revision: 18958
Modified:
branches/jbosstools-3.1.0.RC1/smooks/plugins/org.jboss.tools.smooks.ui/src/org/jboss/tools/smooks/configuration/editors/uitls/ProjectClassLoader.java
Log:
https://jira.jboss.org/jira/browse/JBIDE-5342
ProjectClassLoader not resolving internal project jar files
Modified: branches/jbosstools-3.1.0.RC1/smooks/plugins/org.jboss.tools.smooks.ui/src/org/jboss/tools/smooks/configuration/editors/uitls/ProjectClassLoader.java
===================================================================
--- branches/jbosstools-3.1.0.RC1/smooks/plugins/org.jboss.tools.smooks.ui/src/org/jboss/tools/smooks/configuration/editors/uitls/ProjectClassLoader.java 2009-12-01 21:42:18 UTC (rev 18957)
+++ branches/jbosstools-3.1.0.RC1/smooks/plugins/org.jboss.tools.smooks.ui/src/org/jboss/tools/smooks/configuration/editors/uitls/ProjectClassLoader.java 2009-12-01 23:00:49 UTC (rev 18958)
@@ -8,10 +8,12 @@
import java.util.List;
import org.eclipse.core.resources.IProject;
+import org.eclipse.core.resources.IResource;
import org.eclipse.core.resources.IWorkspaceRoot;
import org.eclipse.core.resources.ResourcesPlugin;
import org.eclipse.core.runtime.FileLocator;
import org.eclipse.core.runtime.IPath;
+import org.eclipse.jdt.core.IJavaElement;
import org.eclipse.jdt.core.IJavaProject;
import org.eclipse.jdt.core.IPackageFragmentRoot;
import org.eclipse.jdt.core.JavaCore;
@@ -84,6 +86,16 @@
roots[i].getPath().makeAbsolute().toFile()
.toURL()).getFile());
}
+ if (!f.exists()) {
+ IJavaElement javaElement = roots[i].getPrimaryElement();
+ String jarName = javaElement.getElementName();
+ IResource jarResource = project.getProject().findMember(jarName);
+
+ if(jarResource != null) {
+ f = jarResource.getRawLocation().toFile();
+ }
+ }
+
list.add(f.toURL());
} else {
IPath path = roots[i].getJavaProject().getOutputLocation();
@@ -99,6 +111,7 @@
}
}
} catch (Exception e) {
+ e.printStackTrace();
}
}
15 years, 1 month
JBoss Tools SVN: r18956 - in workspace/snjeza/archetypes/org/jboss/portletbridge/archetypes/richfaces-basic: 2.0.0.BETA and 1 other directory.
by jbosstools-commits@lists.jboss.org
Author: snjeza
Date: 2009-12-01 15:26:12 -0500 (Tue, 01 Dec 2009)
New Revision: 18956
Modified:
workspace/snjeza/archetypes/org/jboss/portletbridge/archetypes/richfaces-basic/2.0.0.BETA/richfaces-basic-2.0.0.BETA.jar
workspace/snjeza/archetypes/org/jboss/portletbridge/archetypes/richfaces-basic/2.0.0.BETA/richfaces-basic-2.0.0.BETA.jar.md5
workspace/snjeza/archetypes/org/jboss/portletbridge/archetypes/richfaces-basic/2.0.0.BETA/richfaces-basic-2.0.0.BETA.jar.sha1
workspace/snjeza/archetypes/org/jboss/portletbridge/archetypes/richfaces-basic/maven-metadata.xml
workspace/snjeza/archetypes/org/jboss/portletbridge/archetypes/richfaces-basic/maven-metadata.xml.md5
workspace/snjeza/archetypes/org/jboss/portletbridge/archetypes/richfaces-basic/maven-metadata.xml.sha1
Log:
https://jira.jboss.org/jira/browse/JBIDE-4922 Create portletbridge archetypes to work with JBoss Tools and m2eclipse
Modified: workspace/snjeza/archetypes/org/jboss/portletbridge/archetypes/richfaces-basic/2.0.0.BETA/richfaces-basic-2.0.0.BETA.jar
===================================================================
(Binary files differ)
Modified: workspace/snjeza/archetypes/org/jboss/portletbridge/archetypes/richfaces-basic/2.0.0.BETA/richfaces-basic-2.0.0.BETA.jar.md5
===================================================================
--- workspace/snjeza/archetypes/org/jboss/portletbridge/archetypes/richfaces-basic/2.0.0.BETA/richfaces-basic-2.0.0.BETA.jar.md5 2009-12-01 20:11:42 UTC (rev 18955)
+++ workspace/snjeza/archetypes/org/jboss/portletbridge/archetypes/richfaces-basic/2.0.0.BETA/richfaces-basic-2.0.0.BETA.jar.md5 2009-12-01 20:26:12 UTC (rev 18956)
@@ -1 +1 @@
-b3bd17b89279456ed0a8848f23ee5a28
\ No newline at end of file
+1c1142405b1e2c484224296188670af7
\ No newline at end of file
Modified: workspace/snjeza/archetypes/org/jboss/portletbridge/archetypes/richfaces-basic/2.0.0.BETA/richfaces-basic-2.0.0.BETA.jar.sha1
===================================================================
--- workspace/snjeza/archetypes/org/jboss/portletbridge/archetypes/richfaces-basic/2.0.0.BETA/richfaces-basic-2.0.0.BETA.jar.sha1 2009-12-01 20:11:42 UTC (rev 18955)
+++ workspace/snjeza/archetypes/org/jboss/portletbridge/archetypes/richfaces-basic/2.0.0.BETA/richfaces-basic-2.0.0.BETA.jar.sha1 2009-12-01 20:26:12 UTC (rev 18956)
@@ -1 +1 @@
-54a4be50968d4d5b86f0277e4a3bc41a94210590
\ No newline at end of file
+3771096988667647e9bdfe9979dbb2873010cd76
\ No newline at end of file
Modified: workspace/snjeza/archetypes/org/jboss/portletbridge/archetypes/richfaces-basic/maven-metadata.xml
===================================================================
--- workspace/snjeza/archetypes/org/jboss/portletbridge/archetypes/richfaces-basic/maven-metadata.xml 2009-12-01 20:11:42 UTC (rev 18955)
+++ workspace/snjeza/archetypes/org/jboss/portletbridge/archetypes/richfaces-basic/maven-metadata.xml 2009-12-01 20:26:12 UTC (rev 18956)
@@ -7,6 +7,6 @@
<versions>
<version>2.0.0.BETA</version>
</versions>
- <lastUpdated>20091201195729</lastUpdated>
+ <lastUpdated>20091201202412</lastUpdated>
</versioning>
</metadata>
\ No newline at end of file
Modified: workspace/snjeza/archetypes/org/jboss/portletbridge/archetypes/richfaces-basic/maven-metadata.xml.md5
===================================================================
--- workspace/snjeza/archetypes/org/jboss/portletbridge/archetypes/richfaces-basic/maven-metadata.xml.md5 2009-12-01 20:11:42 UTC (rev 18955)
+++ workspace/snjeza/archetypes/org/jboss/portletbridge/archetypes/richfaces-basic/maven-metadata.xml.md5 2009-12-01 20:26:12 UTC (rev 18956)
@@ -1 +1 @@
-6db9f932c835c8b5a7ba273719c722e6
\ No newline at end of file
+85433e764a1ccbf49dff4c67e8af0c07
\ No newline at end of file
Modified: workspace/snjeza/archetypes/org/jboss/portletbridge/archetypes/richfaces-basic/maven-metadata.xml.sha1
===================================================================
--- workspace/snjeza/archetypes/org/jboss/portletbridge/archetypes/richfaces-basic/maven-metadata.xml.sha1 2009-12-01 20:11:42 UTC (rev 18955)
+++ workspace/snjeza/archetypes/org/jboss/portletbridge/archetypes/richfaces-basic/maven-metadata.xml.sha1 2009-12-01 20:26:12 UTC (rev 18956)
@@ -1 +1 @@
-d9ab12eb04b1b736913c8e7375129163d58dddc1
\ No newline at end of file
+7b581870c4baacbe7eb831259bd29319118c782b
\ No newline at end of file
15 years, 1 month
JBoss Tools SVN: r18955 - trunk/vpe/plugins/org.jboss.tools.vpe/src/org/jboss/tools/vpe/editor/mozilla.
by jbosstools-commits@lists.jboss.org
Author: yradtsevich
Date: 2009-12-01 15:11:42 -0500 (Tue, 01 Dec 2009)
New Revision: 18955
Modified:
trunk/vpe/plugins/org.jboss.tools.vpe/src/org/jboss/tools/vpe/editor/mozilla/MozillaEditor.java
Log:
https://jira.jboss.org/jira/browse/JBIDE-4345
Fix to make the VPE compatible with Eclipse 3.5.0
Modified: trunk/vpe/plugins/org.jboss.tools.vpe/src/org/jboss/tools/vpe/editor/mozilla/MozillaEditor.java
===================================================================
--- trunk/vpe/plugins/org.jboss.tools.vpe/src/org/jboss/tools/vpe/editor/mozilla/MozillaEditor.java 2009-12-01 20:07:56 UTC (rev 18954)
+++ trunk/vpe/plugins/org.jboss.tools.vpe/src/org/jboss/tools/vpe/editor/mozilla/MozillaEditor.java 2009-12-01 20:11:42 UTC (rev 18955)
@@ -616,10 +616,42 @@
protected void setInitialContent() {
final String html = DocTypeUtil.prepareInitFile(
INIT_FILE, getEditorInput());
-
- // there was a problem with setText in eclipse 3.5.0 (JBIDE-4345),
- // but since 3.5.1 it should work
- xulRunnerEditor.setText(html);
+
+ // Workaround of JBIDE-4345.
+ // Due to a bug in org.eclipse.swt.browser.Mozilla we cannot simply
+ // set initial html code as xulRunnerEditor.setText(html).
+ // Instead of it we create a temporary file containing
+ // the html code and set it to the Mozilla browser as URL.
+ // When we will not have to support Eclipse 3.5.0
+ // all the following code should be replaced by the following line:
+ // xulRunnerEditor.setText(html);
+ File tmp = null;
+ Writer out = null;
+ try {
+ tmp = File.createTempFile(
+ "temp", ".html"); //$NON-NLS-1$//$NON-NLS-2$
+ tmp.deleteOnExit();
+ out = new FileWriter(tmp);
+ out.write(html);
+ } catch (IOException e) {
+ VpePlugin.getPluginLog().logError(e);
+ } finally {
+ try {
+ if (out != null) {
+ out.close();
+ if (tmp != null) {
+ xulRunnerEditor.setURL("file://" //$NON-NLS-1$
+ + tmp.getCanonicalPath());
+ }
+ }
+ } catch (IOException e) {
+ VpePlugin.getPluginLog().logError(e);
+ } finally {
+ if (tmp != null) {
+ tmp.delete();
+ }
+ }
+ }
}
/**
15 years, 1 month
JBoss Tools SVN: r18954 - branches/jbosstools-3.1.0.RC1/vpe/plugins/org.jboss.tools.vpe/src/org/jboss/tools/vpe/editor/mozilla.
by jbosstools-commits@lists.jboss.org
Author: yradtsevich
Date: 2009-12-01 15:07:56 -0500 (Tue, 01 Dec 2009)
New Revision: 18954
Modified:
branches/jbosstools-3.1.0.RC1/vpe/plugins/org.jboss.tools.vpe/src/org/jboss/tools/vpe/editor/mozilla/MozillaEditor.java
Log:
https://jira.jboss.org/jira/browse/JBIDE-4345
Fix to make the VPE compatible with Eclipse 3.5.0
Modified: branches/jbosstools-3.1.0.RC1/vpe/plugins/org.jboss.tools.vpe/src/org/jboss/tools/vpe/editor/mozilla/MozillaEditor.java
===================================================================
--- branches/jbosstools-3.1.0.RC1/vpe/plugins/org.jboss.tools.vpe/src/org/jboss/tools/vpe/editor/mozilla/MozillaEditor.java 2009-12-01 20:00:35 UTC (rev 18953)
+++ branches/jbosstools-3.1.0.RC1/vpe/plugins/org.jboss.tools.vpe/src/org/jboss/tools/vpe/editor/mozilla/MozillaEditor.java 2009-12-01 20:07:56 UTC (rev 18954)
@@ -616,10 +616,42 @@
protected void setInitialContent() {
final String html = DocTypeUtil.prepareInitFile(
INIT_FILE, getEditorInput());
-
- // there was a problem with setText in eclipse 3.5.0 (JBIDE-4345),
- // but since 3.5.1 it should work
- xulRunnerEditor.setText(html);
+
+ // Workaround of JBIDE-4345.
+ // Due to a bug in org.eclipse.swt.browser.Mozilla we cannot simply
+ // set initial html code as xulRunnerEditor.setText(html).
+ // Instead of it we create a temporary file containing
+ // the html code and set it to the Mozilla browser as URL.
+ // When we will not have to support Eclipse 3.5.0
+ // all the following code should be replaced by the following line:
+ // xulRunnerEditor.setText(html);
+ File tmp = null;
+ Writer out = null;
+ try {
+ tmp = File.createTempFile(
+ "temp", ".html"); //$NON-NLS-1$//$NON-NLS-2$
+ tmp.deleteOnExit();
+ out = new FileWriter(tmp);
+ out.write(html);
+ } catch (IOException e) {
+ VpePlugin.getPluginLog().logError(e);
+ } finally {
+ try {
+ if (out != null) {
+ out.close();
+ if (tmp != null) {
+ xulRunnerEditor.setURL("file://" //$NON-NLS-1$
+ + tmp.getCanonicalPath());
+ }
+ }
+ } catch (IOException e) {
+ VpePlugin.getPluginLog().logError(e);
+ } finally {
+ if (tmp != null) {
+ tmp.delete();
+ }
+ }
+ }
}
/**
15 years, 1 month
JBoss Tools SVN: r18953 - in workspace/snjeza/archetypes/org/jboss/portletbridge/archetypes: 1.2-basic and 3 other directories.
by jbosstools-commits@lists.jboss.org
Author: snjeza
Date: 2009-12-01 15:00:35 -0500 (Tue, 01 Dec 2009)
New Revision: 18953
Added:
workspace/snjeza/archetypes/org/jboss/portletbridge/archetypes/1.2-basic/
workspace/snjeza/archetypes/org/jboss/portletbridge/archetypes/1.2-basic/2.0.0.BETA/
workspace/snjeza/archetypes/org/jboss/portletbridge/archetypes/1.2-basic/2.0.0.BETA/1.2-basic-2.0.0.BETA.jar
workspace/snjeza/archetypes/org/jboss/portletbridge/archetypes/1.2-basic/2.0.0.BETA/1.2-basic-2.0.0.BETA.jar.md5
workspace/snjeza/archetypes/org/jboss/portletbridge/archetypes/1.2-basic/2.0.0.BETA/1.2-basic-2.0.0.BETA.jar.sha1
workspace/snjeza/archetypes/org/jboss/portletbridge/archetypes/1.2-basic/2.0.0.BETA/1.2-basic-2.0.0.BETA.pom
workspace/snjeza/archetypes/org/jboss/portletbridge/archetypes/1.2-basic/2.0.0.BETA/1.2-basic-2.0.0.BETA.pom.md5
workspace/snjeza/archetypes/org/jboss/portletbridge/archetypes/1.2-basic/2.0.0.BETA/1.2-basic-2.0.0.BETA.pom.sha1
workspace/snjeza/archetypes/org/jboss/portletbridge/archetypes/1.2-basic/maven-metadata.xml
workspace/snjeza/archetypes/org/jboss/portletbridge/archetypes/1.2-basic/maven-metadata.xml.md5
workspace/snjeza/archetypes/org/jboss/portletbridge/archetypes/1.2-basic/maven-metadata.xml.sha1
workspace/snjeza/archetypes/org/jboss/portletbridge/archetypes/richfaces-basic/
workspace/snjeza/archetypes/org/jboss/portletbridge/archetypes/richfaces-basic/2.0.0.BETA/
workspace/snjeza/archetypes/org/jboss/portletbridge/archetypes/richfaces-basic/2.0.0.BETA/richfaces-basic-2.0.0.BETA.jar
workspace/snjeza/archetypes/org/jboss/portletbridge/archetypes/richfaces-basic/2.0.0.BETA/richfaces-basic-2.0.0.BETA.jar.md5
workspace/snjeza/archetypes/org/jboss/portletbridge/archetypes/richfaces-basic/2.0.0.BETA/richfaces-basic-2.0.0.BETA.jar.sha1
workspace/snjeza/archetypes/org/jboss/portletbridge/archetypes/richfaces-basic/2.0.0.BETA/richfaces-basic-2.0.0.BETA.pom
workspace/snjeza/archetypes/org/jboss/portletbridge/archetypes/richfaces-basic/2.0.0.BETA/richfaces-basic-2.0.0.BETA.pom.md5
workspace/snjeza/archetypes/org/jboss/portletbridge/archetypes/richfaces-basic/2.0.0.BETA/richfaces-basic-2.0.0.BETA.pom.sha1
workspace/snjeza/archetypes/org/jboss/portletbridge/archetypes/richfaces-basic/maven-metadata.xml
workspace/snjeza/archetypes/org/jboss/portletbridge/archetypes/richfaces-basic/maven-metadata.xml.md5
workspace/snjeza/archetypes/org/jboss/portletbridge/archetypes/richfaces-basic/maven-metadata.xml.sha1
Log:
https://jira.jboss.org/jira/browse/JBIDE-4922 Create portletbridge archetypes to work with JBoss Tools and m2eclipse
Added: workspace/snjeza/archetypes/org/jboss/portletbridge/archetypes/1.2-basic/2.0.0.BETA/1.2-basic-2.0.0.BETA.jar
===================================================================
(Binary files differ)
Property changes on: workspace/snjeza/archetypes/org/jboss/portletbridge/archetypes/1.2-basic/2.0.0.BETA/1.2-basic-2.0.0.BETA.jar
___________________________________________________________________
Name: svn:mime-type
+ application/octet-stream
Added: workspace/snjeza/archetypes/org/jboss/portletbridge/archetypes/1.2-basic/2.0.0.BETA/1.2-basic-2.0.0.BETA.jar.md5
===================================================================
--- workspace/snjeza/archetypes/org/jboss/portletbridge/archetypes/1.2-basic/2.0.0.BETA/1.2-basic-2.0.0.BETA.jar.md5 (rev 0)
+++ workspace/snjeza/archetypes/org/jboss/portletbridge/archetypes/1.2-basic/2.0.0.BETA/1.2-basic-2.0.0.BETA.jar.md5 2009-12-01 20:00:35 UTC (rev 18953)
@@ -0,0 +1 @@
+18c539f6a84f26f76b41eaf76b9a9abd
\ No newline at end of file
Added: workspace/snjeza/archetypes/org/jboss/portletbridge/archetypes/1.2-basic/2.0.0.BETA/1.2-basic-2.0.0.BETA.jar.sha1
===================================================================
--- workspace/snjeza/archetypes/org/jboss/portletbridge/archetypes/1.2-basic/2.0.0.BETA/1.2-basic-2.0.0.BETA.jar.sha1 (rev 0)
+++ workspace/snjeza/archetypes/org/jboss/portletbridge/archetypes/1.2-basic/2.0.0.BETA/1.2-basic-2.0.0.BETA.jar.sha1 2009-12-01 20:00:35 UTC (rev 18953)
@@ -0,0 +1 @@
+39df380801d004c4cc7bff66957daa7f4589d843
\ No newline at end of file
Added: workspace/snjeza/archetypes/org/jboss/portletbridge/archetypes/1.2-basic/2.0.0.BETA/1.2-basic-2.0.0.BETA.pom
===================================================================
--- workspace/snjeza/archetypes/org/jboss/portletbridge/archetypes/1.2-basic/2.0.0.BETA/1.2-basic-2.0.0.BETA.pom (rev 0)
+++ workspace/snjeza/archetypes/org/jboss/portletbridge/archetypes/1.2-basic/2.0.0.BETA/1.2-basic-2.0.0.BETA.pom 2009-12-01 20:00:35 UTC (rev 18953)
@@ -0,0 +1,36 @@
+<project xmlns="http://maven.apache.org/POM/4.0.0"
+ xmlns:xsi="http://www.w3.org/2001/XMLSchema-instance"
+ xsi:schemaLocation="http://maven.apache.org/POM/4.0.0 http://maven.apache.org/maven-v4_0_0.xsd">
+
+ <modelVersion>4.0.0</modelVersion>
+ <groupId>org.jboss.portletbridge.archetypes</groupId>
+ <artifactId>1.2-basic</artifactId>
+ <version>2.0.0.BETA</version>
+ <packaging>maven-archetype</packaging>
+ <name>JSF Portlet archetype</name>
+
+ <build>
+ <extensions>
+ <extension>
+ <groupId>org.apache.maven.archetype</groupId>
+ <artifactId>archetype-packaging</artifactId>
+ <version>2.0-alpha-4</version>
+ </extension>
+ </extensions>
+ <plugins>
+ <plugin>
+ <artifactId>maven-archetype-plugin</artifactId>
+ <version>2.0-alpha-4</version>
+ <extensions>true</extensions>
+ </plugin>
+ </plugins>
+ </build>
+
+ <distributionManagement>
+ <repository>
+ <id>internal.repo</id>
+ <name>JBoss Internal Repository</name>
+ <url>file:///e:/atest</url>
+ </repository>
+ </distributionManagement>
+</project>
\ No newline at end of file
Added: workspace/snjeza/archetypes/org/jboss/portletbridge/archetypes/1.2-basic/2.0.0.BETA/1.2-basic-2.0.0.BETA.pom.md5
===================================================================
--- workspace/snjeza/archetypes/org/jboss/portletbridge/archetypes/1.2-basic/2.0.0.BETA/1.2-basic-2.0.0.BETA.pom.md5 (rev 0)
+++ workspace/snjeza/archetypes/org/jboss/portletbridge/archetypes/1.2-basic/2.0.0.BETA/1.2-basic-2.0.0.BETA.pom.md5 2009-12-01 20:00:35 UTC (rev 18953)
@@ -0,0 +1 @@
+0b60f79bfcc3bf4338d26c7c31f2f667
\ No newline at end of file
Added: workspace/snjeza/archetypes/org/jboss/portletbridge/archetypes/1.2-basic/2.0.0.BETA/1.2-basic-2.0.0.BETA.pom.sha1
===================================================================
--- workspace/snjeza/archetypes/org/jboss/portletbridge/archetypes/1.2-basic/2.0.0.BETA/1.2-basic-2.0.0.BETA.pom.sha1 (rev 0)
+++ workspace/snjeza/archetypes/org/jboss/portletbridge/archetypes/1.2-basic/2.0.0.BETA/1.2-basic-2.0.0.BETA.pom.sha1 2009-12-01 20:00:35 UTC (rev 18953)
@@ -0,0 +1 @@
+6dcb84941827d0316a2b2302aecb9a3aa4cc89de
\ No newline at end of file
Added: workspace/snjeza/archetypes/org/jboss/portletbridge/archetypes/1.2-basic/maven-metadata.xml
===================================================================
--- workspace/snjeza/archetypes/org/jboss/portletbridge/archetypes/1.2-basic/maven-metadata.xml (rev 0)
+++ workspace/snjeza/archetypes/org/jboss/portletbridge/archetypes/1.2-basic/maven-metadata.xml 2009-12-01 20:00:35 UTC (rev 18953)
@@ -0,0 +1,12 @@
+<?xml version="1.0" encoding="UTF-8"?><metadata>
+ <groupId>org.jboss.portletbridge.archetypes</groupId>
+ <artifactId>1.2-basic</artifactId>
+ <version>2.0.0.BETA</version>
+ <versioning>
+ <latest>2.0.0.BETA</latest>
+ <versions>
+ <version>2.0.0.BETA</version>
+ </versions>
+ <lastUpdated>20091201195746</lastUpdated>
+ </versioning>
+</metadata>
\ No newline at end of file
Added: workspace/snjeza/archetypes/org/jboss/portletbridge/archetypes/1.2-basic/maven-metadata.xml.md5
===================================================================
--- workspace/snjeza/archetypes/org/jboss/portletbridge/archetypes/1.2-basic/maven-metadata.xml.md5 (rev 0)
+++ workspace/snjeza/archetypes/org/jboss/portletbridge/archetypes/1.2-basic/maven-metadata.xml.md5 2009-12-01 20:00:35 UTC (rev 18953)
@@ -0,0 +1 @@
+51693183ea95e63b327b924c36e57bb3
\ No newline at end of file
Added: workspace/snjeza/archetypes/org/jboss/portletbridge/archetypes/1.2-basic/maven-metadata.xml.sha1
===================================================================
--- workspace/snjeza/archetypes/org/jboss/portletbridge/archetypes/1.2-basic/maven-metadata.xml.sha1 (rev 0)
+++ workspace/snjeza/archetypes/org/jboss/portletbridge/archetypes/1.2-basic/maven-metadata.xml.sha1 2009-12-01 20:00:35 UTC (rev 18953)
@@ -0,0 +1 @@
+8ffc26f69ad291330e98c9f1ac64c57ca553aabe
\ No newline at end of file
Added: workspace/snjeza/archetypes/org/jboss/portletbridge/archetypes/richfaces-basic/2.0.0.BETA/richfaces-basic-2.0.0.BETA.jar
===================================================================
(Binary files differ)
Property changes on: workspace/snjeza/archetypes/org/jboss/portletbridge/archetypes/richfaces-basic/2.0.0.BETA/richfaces-basic-2.0.0.BETA.jar
___________________________________________________________________
Name: svn:mime-type
+ application/octet-stream
Added: workspace/snjeza/archetypes/org/jboss/portletbridge/archetypes/richfaces-basic/2.0.0.BETA/richfaces-basic-2.0.0.BETA.jar.md5
===================================================================
--- workspace/snjeza/archetypes/org/jboss/portletbridge/archetypes/richfaces-basic/2.0.0.BETA/richfaces-basic-2.0.0.BETA.jar.md5 (rev 0)
+++ workspace/snjeza/archetypes/org/jboss/portletbridge/archetypes/richfaces-basic/2.0.0.BETA/richfaces-basic-2.0.0.BETA.jar.md5 2009-12-01 20:00:35 UTC (rev 18953)
@@ -0,0 +1 @@
+b3bd17b89279456ed0a8848f23ee5a28
\ No newline at end of file
Added: workspace/snjeza/archetypes/org/jboss/portletbridge/archetypes/richfaces-basic/2.0.0.BETA/richfaces-basic-2.0.0.BETA.jar.sha1
===================================================================
--- workspace/snjeza/archetypes/org/jboss/portletbridge/archetypes/richfaces-basic/2.0.0.BETA/richfaces-basic-2.0.0.BETA.jar.sha1 (rev 0)
+++ workspace/snjeza/archetypes/org/jboss/portletbridge/archetypes/richfaces-basic/2.0.0.BETA/richfaces-basic-2.0.0.BETA.jar.sha1 2009-12-01 20:00:35 UTC (rev 18953)
@@ -0,0 +1 @@
+54a4be50968d4d5b86f0277e4a3bc41a94210590
\ No newline at end of file
Added: workspace/snjeza/archetypes/org/jboss/portletbridge/archetypes/richfaces-basic/2.0.0.BETA/richfaces-basic-2.0.0.BETA.pom
===================================================================
--- workspace/snjeza/archetypes/org/jboss/portletbridge/archetypes/richfaces-basic/2.0.0.BETA/richfaces-basic-2.0.0.BETA.pom (rev 0)
+++ workspace/snjeza/archetypes/org/jboss/portletbridge/archetypes/richfaces-basic/2.0.0.BETA/richfaces-basic-2.0.0.BETA.pom 2009-12-01 20:00:35 UTC (rev 18953)
@@ -0,0 +1,36 @@
+<project xmlns="http://maven.apache.org/POM/4.0.0"
+ xmlns:xsi="http://www.w3.org/2001/XMLSchema-instance"
+ xsi:schemaLocation="http://maven.apache.org/POM/4.0.0 http://maven.apache.org/maven-v4_0_0.xsd">
+
+ <modelVersion>4.0.0</modelVersion>
+ <groupId>org.jboss.portletbridge.archetypes</groupId>
+ <artifactId>richfaces-basic</artifactId>
+ <version>2.0.0.BETA</version>
+ <packaging>maven-archetype</packaging>
+ <name>RichFaces portlet archetype</name>
+
+ <build>
+ <extensions>
+ <extension>
+ <groupId>org.apache.maven.archetype</groupId>
+ <artifactId>archetype-packaging</artifactId>
+ <version>2.0-alpha-4</version>
+ </extension>
+ </extensions>
+ <plugins>
+ <plugin>
+ <artifactId>maven-archetype-plugin</artifactId>
+ <version>2.0-alpha-4</version>
+ <extensions>true</extensions>
+ </plugin>
+ </plugins>
+ </build>
+
+ <distributionManagement>
+ <repository>
+ <id>internal.repo</id>
+ <name>JBoss Internal Repository</name>
+ <url>file:///e:/atest</url>
+ </repository>
+ </distributionManagement>
+</project>
\ No newline at end of file
Added: workspace/snjeza/archetypes/org/jboss/portletbridge/archetypes/richfaces-basic/2.0.0.BETA/richfaces-basic-2.0.0.BETA.pom.md5
===================================================================
--- workspace/snjeza/archetypes/org/jboss/portletbridge/archetypes/richfaces-basic/2.0.0.BETA/richfaces-basic-2.0.0.BETA.pom.md5 (rev 0)
+++ workspace/snjeza/archetypes/org/jboss/portletbridge/archetypes/richfaces-basic/2.0.0.BETA/richfaces-basic-2.0.0.BETA.pom.md5 2009-12-01 20:00:35 UTC (rev 18953)
@@ -0,0 +1 @@
+e7f2cba16dc2af66cd2f32b91e6b06d6
\ No newline at end of file
Added: workspace/snjeza/archetypes/org/jboss/portletbridge/archetypes/richfaces-basic/2.0.0.BETA/richfaces-basic-2.0.0.BETA.pom.sha1
===================================================================
--- workspace/snjeza/archetypes/org/jboss/portletbridge/archetypes/richfaces-basic/2.0.0.BETA/richfaces-basic-2.0.0.BETA.pom.sha1 (rev 0)
+++ workspace/snjeza/archetypes/org/jboss/portletbridge/archetypes/richfaces-basic/2.0.0.BETA/richfaces-basic-2.0.0.BETA.pom.sha1 2009-12-01 20:00:35 UTC (rev 18953)
@@ -0,0 +1 @@
+06cb3971fa35a703a6ea197220290896557f43ab
\ No newline at end of file
Added: workspace/snjeza/archetypes/org/jboss/portletbridge/archetypes/richfaces-basic/maven-metadata.xml
===================================================================
--- workspace/snjeza/archetypes/org/jboss/portletbridge/archetypes/richfaces-basic/maven-metadata.xml (rev 0)
+++ workspace/snjeza/archetypes/org/jboss/portletbridge/archetypes/richfaces-basic/maven-metadata.xml 2009-12-01 20:00:35 UTC (rev 18953)
@@ -0,0 +1,12 @@
+<?xml version="1.0" encoding="UTF-8"?><metadata>
+ <groupId>org.jboss.portletbridge.archetypes</groupId>
+ <artifactId>richfaces-basic</artifactId>
+ <version>2.0.0.BETA</version>
+ <versioning>
+ <latest>2.0.0.BETA</latest>
+ <versions>
+ <version>2.0.0.BETA</version>
+ </versions>
+ <lastUpdated>20091201195729</lastUpdated>
+ </versioning>
+</metadata>
\ No newline at end of file
Added: workspace/snjeza/archetypes/org/jboss/portletbridge/archetypes/richfaces-basic/maven-metadata.xml.md5
===================================================================
--- workspace/snjeza/archetypes/org/jboss/portletbridge/archetypes/richfaces-basic/maven-metadata.xml.md5 (rev 0)
+++ workspace/snjeza/archetypes/org/jboss/portletbridge/archetypes/richfaces-basic/maven-metadata.xml.md5 2009-12-01 20:00:35 UTC (rev 18953)
@@ -0,0 +1 @@
+6db9f932c835c8b5a7ba273719c722e6
\ No newline at end of file
Added: workspace/snjeza/archetypes/org/jboss/portletbridge/archetypes/richfaces-basic/maven-metadata.xml.sha1
===================================================================
--- workspace/snjeza/archetypes/org/jboss/portletbridge/archetypes/richfaces-basic/maven-metadata.xml.sha1 (rev 0)
+++ workspace/snjeza/archetypes/org/jboss/portletbridge/archetypes/richfaces-basic/maven-metadata.xml.sha1 2009-12-01 20:00:35 UTC (rev 18953)
@@ -0,0 +1 @@
+d9ab12eb04b1b736913c8e7375129163d58dddc1
\ No newline at end of file
15 years, 1 month
JBoss Tools SVN: r18952 - trunk/jst/plugins/org.jboss.tools.jst.web.kb/src/org/jboss/tools/jst/web/kb/internal/validation.
by jbosstools-commits@lists.jboss.org
Author: akazakov
Date: 2009-12-01 13:23:37 -0500 (Tue, 01 Dec 2009)
New Revision: 18952
Modified:
trunk/jst/plugins/org.jboss.tools.jst.web.kb/src/org/jboss/tools/jst/web/kb/internal/validation/ValidationContext.java
Log:
https://jira.jboss.org/jira/browse/JBIDE-5331
Modified: trunk/jst/plugins/org.jboss.tools.jst.web.kb/src/org/jboss/tools/jst/web/kb/internal/validation/ValidationContext.java
===================================================================
--- trunk/jst/plugins/org.jboss.tools.jst.web.kb/src/org/jboss/tools/jst/web/kb/internal/validation/ValidationContext.java 2009-12-01 17:52:45 UTC (rev 18951)
+++ trunk/jst/plugins/org.jboss.tools.jst.web.kb/src/org/jboss/tools/jst/web/kb/internal/validation/ValidationContext.java 2009-12-01 18:23:37 UTC (rev 18952)
@@ -127,7 +127,9 @@
* @see org.jboss.tools.seam.internal.core.validation.ISeamValidationContext#addRemovedFile(org.eclipse.core.resources.IFile)
*/
public void addRemovedFile(IFile file) {
- rootContext.addRemovedFile(file);
+ if(rootContext!=null) {
+ rootContext.addRemovedFile(file);
+ }
}
/* (non-Javadoc)
15 years, 1 month
JBoss Tools SVN: r18951 - trunk/vpe/plugins/org.jboss.tools.vpe/src/org/jboss/tools/vpe/editor/util.
by jbosstools-commits@lists.jboss.org
Author: mareshkau
Date: 2009-12-01 12:52:45 -0500 (Tue, 01 Dec 2009)
New Revision: 18951
Modified:
trunk/vpe/plugins/org.jboss.tools.vpe/src/org/jboss/tools/vpe/editor/util/DocTypeUtil.java
Log:
https://jira.jboss.org/jira/browse/JBIDE-4635, https://jira.jboss.org/jira/browse/JBIDE-5325
Modified: trunk/vpe/plugins/org.jboss.tools.vpe/src/org/jboss/tools/vpe/editor/util/DocTypeUtil.java
===================================================================
--- trunk/vpe/plugins/org.jboss.tools.vpe/src/org/jboss/tools/vpe/editor/util/DocTypeUtil.java 2009-12-01 17:41:23 UTC (rev 18950)
+++ trunk/vpe/plugins/org.jboss.tools.vpe/src/org/jboss/tools/vpe/editor/util/DocTypeUtil.java 2009-12-01 17:52:45 UTC (rev 18951)
@@ -14,7 +14,6 @@
import java.io.BufferedReader;
import java.io.File;
-import java.io.FileNotFoundException;
import java.io.FileReader;
import java.io.IOException;
import java.io.InputStream;
@@ -33,12 +32,11 @@
import org.eclipse.core.runtime.Path;
import org.eclipse.jdt.core.IJavaProject;
import org.eclipse.jdt.internal.core.JarEntryFile;
-import org.eclipse.jdt.internal.ui.javaeditor.JarEntryEditorInput;
import org.eclipse.jface.text.IDocument;
import org.eclipse.ui.IEditorInput;
import org.eclipse.ui.IFileEditorInput;
+import org.eclipse.ui.IStorageEditorInput;
import org.eclipse.ui.editors.text.ILocationProvider;
-import org.eclipse.wst.sse.core.internal.FileBufferModelManager;
import org.eclipse.wst.sse.core.internal.model.ModelManagerImpl;
import org.eclipse.wst.sse.core.internal.provisional.text.IStructuredDocument;
import org.eclipse.wst.xml.core.internal.provisional.document.IDOMDocument;
@@ -49,7 +47,6 @@
import org.w3c.dom.Attr;
import org.w3c.dom.Document;
import org.w3c.dom.Element;
-import org.w3c.dom.NodeList;
public class DocTypeUtil {
@@ -107,7 +104,7 @@
* https://jira.jboss.org/jira/browse/JBIDE-4510
* When file is opened from jar archive.
*/
- else if (editorInput instanceof JarEntryEditorInput) {
+ else if (editorInput instanceof IStorageEditorInput) {
/*
* To determine the doctype of a file from jar archive
* by means of eclipse's StructuredModelManager
@@ -116,8 +113,13 @@
* in the root project folder.
* After doctype processing temporally file will be deleted.
*/
- JarEntryEditorInput input = ((JarEntryEditorInput) editorInput);
- IStorage storage = input.getStorage();
+ IStorageEditorInput input = ((IStorageEditorInput) editorInput);
+ IStorage storage = null;
+ try {
+ storage = input.getStorage();
+ } catch (CoreException ex) {
+ VpePlugin.getPluginLog().logError(ex);
+ }
JarEntryFile jarFile = null;
IFile iFile = null;
if (storage instanceof JarEntryFile) {
15 years, 1 month
JBoss Tools SVN: r18950 - in trunk/smooks/plugins/org.jboss.tools.smooks.ui/src/org/jboss/tools/smooks: editor and 1 other directory.
by jbosstools-commits@lists.jboss.org
Author: tfennelly
Date: 2009-12-01 12:41:23 -0500 (Tue, 01 Dec 2009)
New Revision: 18950
Modified:
trunk/smooks/plugins/org.jboss.tools.smooks.ui/src/org/jboss/tools/smooks/configuration/RuntimeDependency.java
trunk/smooks/plugins/org.jboss.tools.smooks.ui/src/org/jboss/tools/smooks/editor/AbstractSmooksFormEditor.java
Log:
https://jira.jboss.org/jira/browse/JBIDE-5335
Add "Fix" info (where possible) for unsupported config namespaces
Modified: trunk/smooks/plugins/org.jboss.tools.smooks.ui/src/org/jboss/tools/smooks/configuration/RuntimeDependency.java
===================================================================
--- trunk/smooks/plugins/org.jboss.tools.smooks.ui/src/org/jboss/tools/smooks/configuration/RuntimeDependency.java 2009-12-01 16:34:59 UTC (rev 18949)
+++ trunk/smooks/plugins/org.jboss.tools.smooks.ui/src/org/jboss/tools/smooks/configuration/RuntimeDependency.java 2009-12-01 17:41:23 UTC (rev 18950)
@@ -59,6 +59,10 @@
*/
private URI namespaceURI;
/**
+ * If the namepsaceURI is unsupported by the editor, this property can contain a change-to/upgrade/downgrade namepsace.
+ */
+ private URI changeToNS;
+ /**
* Whether or not the configuration is supported by the Editor. Note that this property being 'false' is not the
* same as saying the config is not supported by the Smooks Runtime (see the 'runtimeVersions' property).
*/
@@ -69,9 +73,10 @@
*/
private List<SmooksVersion> runtimeVersions;
- private RuntimeDependency(String artifactId, URI namespaceURI, boolean supportedByEditor, List<SmooksVersion> runtimeVersions) {
+ private RuntimeDependency(String artifactId, URI namespaceURI, URI changeToNS, boolean supportedByEditor, List<SmooksVersion> runtimeVersions) {
this.artifactId = artifactId;
this.namespaceURI = namespaceURI;
+ this.changeToNS = changeToNS;
this.supportedByEditor = supportedByEditor;
}
@@ -84,6 +89,9 @@
public URI getNamespaceURI() {
return namespaceURI;
}
+ public URI getChangeToNS() {
+ return changeToNS;
+ }
public boolean isSupportedByEditor() {
return supportedByEditor;
}
@@ -97,46 +105,46 @@
public static void addDependencyChecklist(Smooks metadataExtractor) {
// Add the supported feature dependency details...
- metadataExtractor.addVisitor(new RuntimeDependencyTracker("milyn-smooks-core", ProcessNodeType.BASE, "smooks-1.1.xsd", true, SmooksVersion.v1_1, SmooksVersion.v1_2, SmooksVersion.v1_3), "/smooks-resource-list");
- metadataExtractor.addVisitor(new RuntimeDependencyTracker("milyn-smooks-csv", ProcessNodeType.INPUT_CSV, "smooks/csv-1.2.xsd", true, SmooksVersion.v1_2, SmooksVersion.v1_3), "/smooks-resource-list/reader");
- metadataExtractor.addVisitor(new RuntimeDependencyTracker("milyn-smooks-edi", ProcessNodeType.INPUT_EDI, "smooks/edi-1.2.xsd", true, SmooksVersion.v1_2, SmooksVersion.v1_3), "/smooks-resource-list/reader");
- metadataExtractor.addVisitor(new RuntimeDependencyTracker("milyn-smooks-json", ProcessNodeType.INPUT_JSON, "smooks/json-1.2.xsd", true, SmooksVersion.v1_2, SmooksVersion.v1_3), "/smooks-resource-list/reader");
- metadataExtractor.addVisitor(new RuntimeDependencyTracker("milyn-smooks-templating", ProcessNodeType.TEMPLATING, "smooks/freemarker-1.1.xsd", true, SmooksVersion.v1_1, SmooksVersion.v1_2, SmooksVersion.v1_3), "/smooks-resource-list/freemarker");
- metadataExtractor.addVisitor(new RuntimeDependencyTracker("milyn-smooks-javabean", ProcessNodeType.JAVA_BINDING, "smooks/javabean-1.2.xsd", true, SmooksVersion.v1_2, SmooksVersion.v1_3), "/smooks-resource-list/bean");
+ metadataExtractor.addVisitor(new RuntimeDependencyTracker("milyn-smooks-core", ProcessNodeType.BASE, "smooks-1.1.xsd", null, true, SmooksVersion.v1_1, SmooksVersion.v1_2, SmooksVersion.v1_3), "/smooks-resource-list");
+ metadataExtractor.addVisitor(new RuntimeDependencyTracker("milyn-smooks-csv", ProcessNodeType.INPUT_CSV, "smooks/csv-1.2.xsd", null, true, SmooksVersion.v1_2, SmooksVersion.v1_3), "/smooks-resource-list/reader");
+ metadataExtractor.addVisitor(new RuntimeDependencyTracker("milyn-smooks-edi", ProcessNodeType.INPUT_EDI, "smooks/edi-1.2.xsd", null, true, SmooksVersion.v1_2, SmooksVersion.v1_3), "/smooks-resource-list/reader");
+ metadataExtractor.addVisitor(new RuntimeDependencyTracker("milyn-smooks-json", ProcessNodeType.INPUT_JSON, "smooks/json-1.2.xsd", null, true, SmooksVersion.v1_2, SmooksVersion.v1_3), "/smooks-resource-list/reader");
+ metadataExtractor.addVisitor(new RuntimeDependencyTracker("milyn-smooks-templating", ProcessNodeType.TEMPLATING, "smooks/freemarker-1.1.xsd", null, true, SmooksVersion.v1_1, SmooksVersion.v1_2, SmooksVersion.v1_3), "/smooks-resource-list/freemarker");
+ metadataExtractor.addVisitor(new RuntimeDependencyTracker("milyn-smooks-javabean", ProcessNodeType.JAVA_BINDING, "smooks/javabean-1.2.xsd", null, true, SmooksVersion.v1_2, SmooksVersion.v1_3), "/smooks-resource-list/bean");
// Add the unsupported feature dependency details...
- metadataExtractor.addVisitor(new RuntimeDependencyTracker("milyn-smooks-core", ProcessNodeType.BASE, "smooks-1.0.xsd", false, SmooksVersion.v1_0, SmooksVersion.v1_1, SmooksVersion.v1_2, SmooksVersion.v1_3), "/smooks-resource-list");
- metadataExtractor.addVisitor(new RuntimeDependencyTracker("milyn-smooks-csv", ProcessNodeType.INPUT_CSV, "smooks/csv-1.1.xsd", false, SmooksVersion.v1_1, SmooksVersion.v1_2, SmooksVersion.v1_3), "/smooks-resource-list/reader");
- metadataExtractor.addVisitor(new RuntimeDependencyTracker("milyn-smooks-csv", ProcessNodeType.INPUT_CSV, "smooks/csv-1.3.xsd", false, SmooksVersion.v1_3), "/smooks-resource-list/reader");
- metadataExtractor.addVisitor(new RuntimeDependencyTracker("milyn-smooks-edi", ProcessNodeType.INPUT_EDI, "smooks/edi-1.1.xsd", false, SmooksVersion.v1_1, SmooksVersion.v1_2, SmooksVersion.v1_3), "/smooks-resource-list/reader");
- metadataExtractor.addVisitor(new RuntimeDependencyTracker("milyn-smooks-json", ProcessNodeType.INPUT_JSON, "smooks/json-1.1.xsd", false, SmooksVersion.v1_1, SmooksVersion.v1_2, SmooksVersion.v1_3), "/smooks-resource-list/reader");
- metadataExtractor.addVisitor(new RuntimeDependencyTracker("milyn-smooks-fixed-length", ProcessNodeType.FIXED_LENGTH, "smooks/fixed-length-1.3.xsd", false, SmooksVersion.v1_3), "/smooks-resource-list/reader");
- metadataExtractor.addVisitor(new RuntimeDependencyTracker("milyn-smooks-core", ProcessNodeType.DATASOURCE, "smooks/datasource-1.1.xsd", false, SmooksVersion.v1_1, SmooksVersion.v1_2, SmooksVersion.v1_3), "/smooks-resource-list/direct");
- metadataExtractor.addVisitor(new RuntimeDependencyTracker("milyn-smooks-core", ProcessNodeType.DATASOURCE, "smooks/datasource-1.1.xsd", false, SmooksVersion.v1_1, SmooksVersion.v1_2, SmooksVersion.v1_3), "/smooks-resource-list/JNDI");
- metadataExtractor.addVisitor(new RuntimeDependencyTracker("milyn-smooks-core", ProcessNodeType.DATASOURCE, "smooks/datasource-1.3.xsd", false, SmooksVersion.v1_3), "/smooks-resource-list/direct");
- metadataExtractor.addVisitor(new RuntimeDependencyTracker("milyn-smooks-core", ProcessNodeType.DATASOURCE, "smooks/datasource-1.3.xsd", false, SmooksVersion.v1_3), "/smooks-resource-list/JNDI");
- metadataExtractor.addVisitor(new RuntimeDependencyTracker("milyn-smooks-core", ProcessNodeType.CORE, "smooks/core-1.3.xsd", false, SmooksVersion.v1_3), "/smooks-resource-list/filterSettings");
- metadataExtractor.addVisitor(new RuntimeDependencyTracker("milyn-smooks-core", ProcessNodeType.CORE, "smooks/core-1.3.xsd", false, SmooksVersion.v1_3), "/smooks-resource-list/namespaces");
- metadataExtractor.addVisitor(new RuntimeDependencyTracker("milyn-smooks-core", ProcessNodeType.CORE, "smooks/core-1.3.xsd", false, SmooksVersion.v1_3), "/smooks-resource-list/terminate");
- metadataExtractor.addVisitor(new RuntimeDependencyTracker("milyn-smooks-templating", ProcessNodeType.TEMPLATING, "smooks/xsl-1.1.xsd", false, SmooksVersion.v1_1, SmooksVersion.v1_2, SmooksVersion.v1_3), "/smooks-resource-list/xsl");
- metadataExtractor.addVisitor(new RuntimeDependencyTracker("milyn-smooks-javabean", ProcessNodeType.JAVA_BINDING, "smooks/javabean-1.1.xsd", false, SmooksVersion.v1_1, SmooksVersion.v1_2, SmooksVersion.v1_3), "/smooks-resource-list/binding");
- metadataExtractor.addVisitor(new RuntimeDependencyTracker("milyn-smooks-javabean", ProcessNodeType.JAVA_BINDING, "smooks/javabean-1.3.xsd", false, SmooksVersion.v1_3), "/smooks-resource-list/bean");
- metadataExtractor.addVisitor(new RuntimeDependencyTracker("milyn-smooks-calc", ProcessNodeType.CALC, "smooks/calc-1.1.xsd", false, SmooksVersion.v1_1, SmooksVersion.v1_2, SmooksVersion.v1_3), "/smooks-resource-list/counter");
- metadataExtractor.addVisitor(new RuntimeDependencyTracker("milyn-smooks-persistence", ProcessNodeType.PERSISTENCE, "smooks/persistence-1.2.xsd", false, SmooksVersion.v1_2, SmooksVersion.v1_3), "/smooks-resource-list/inserter");
- metadataExtractor.addVisitor(new RuntimeDependencyTracker("milyn-smooks-persistence", ProcessNodeType.PERSISTENCE, "smooks/persistence-1.2.xsd", false, SmooksVersion.v1_2, SmooksVersion.v1_3), "/smooks-resource-list/updater");
- metadataExtractor.addVisitor(new RuntimeDependencyTracker("milyn-smooks-persistence", ProcessNodeType.PERSISTENCE, "smooks/persistence-1.2.xsd", false, SmooksVersion.v1_2, SmooksVersion.v1_3), "/smooks-resource-list/deleter");
- metadataExtractor.addVisitor(new RuntimeDependencyTracker("milyn-smooks-persistence", ProcessNodeType.PERSISTENCE, "smooks/persistence-1.2.xsd", false, SmooksVersion.v1_2, SmooksVersion.v1_3), "/smooks-resource-list/deleter");
- metadataExtractor.addVisitor(new RuntimeDependencyTracker("milyn-smooks-persistence", ProcessNodeType.PERSISTENCE, "smooks/persistence-1.2.xsd", false, SmooksVersion.v1_2, SmooksVersion.v1_3), "/smooks-resource-list/flusher");
- metadataExtractor.addVisitor(new RuntimeDependencyTracker("milyn-smooks-persistence", ProcessNodeType.PERSISTENCE, "smooks/persistence-1.2.xsd", false, SmooksVersion.v1_2, SmooksVersion.v1_3), "/smooks-resource-list/locator");
- metadataExtractor.addVisitor(new RuntimeDependencyTracker("milyn-smooks-routing", ProcessNodeType.ROUTING, "smooks/db-routing-1.1.xsd", false, SmooksVersion.v1_1, SmooksVersion.v1_2, SmooksVersion.v1_3), "/smooks-resource-list/executor");
- metadataExtractor.addVisitor(new RuntimeDependencyTracker("milyn-smooks-routing", ProcessNodeType.ROUTING, "smooks/db-routing-1.1.xsd", false, SmooksVersion.v1_1, SmooksVersion.v1_2, SmooksVersion.v1_3), "/smooks-resource-list/resultSetRowSelector");
- metadataExtractor.addVisitor(new RuntimeDependencyTracker("milyn-smooks-routing", ProcessNodeType.ROUTING, "smooks/file-routing-1.1.xsd", false, SmooksVersion.v1_1, SmooksVersion.v1_2, SmooksVersion.v1_3), "/smooks-resource-list/outputStream");
- metadataExtractor.addVisitor(new RuntimeDependencyTracker("milyn-smooks-routing", ProcessNodeType.ROUTING, "smooks/io-routing-1.1.xsd", false, SmooksVersion.v1_1, SmooksVersion.v1_2, SmooksVersion.v1_3), "/smooks-resource-list/router");
- metadataExtractor.addVisitor(new RuntimeDependencyTracker("milyn-smooks-routing", ProcessNodeType.ROUTING, "smooks/jms-routing-1.1.xsd", false, SmooksVersion.v1_1, SmooksVersion.v1_2, SmooksVersion.v1_3), "/smooks-resource-list/router");
- metadataExtractor.addVisitor(new RuntimeDependencyTracker("milyn-smooks-routing", ProcessNodeType.ROUTING, "smooks/jms-routing-1.2.xsd", false, SmooksVersion.v1_2, SmooksVersion.v1_3), "/smooks-resource-list/router");
- metadataExtractor.addVisitor(new RuntimeDependencyTracker("milyn-smooks-rules", ProcessNodeType.RULES, "smooks/rules-1.0.xsd", false, SmooksVersion.v1_2, SmooksVersion.v1_3), "/smooks-resource-list/ruleBases");
- metadataExtractor.addVisitor(new RuntimeDependencyTracker("milyn-smooks-scripting", ProcessNodeType.SCRIPTING, "smooks/groovy-1.1.xsd", false, SmooksVersion.v1_1, SmooksVersion.v1_2, SmooksVersion.v1_3), "/smooks-resource-list/groovy");
- metadataExtractor.addVisitor(new RuntimeDependencyTracker("milyn-smooks-validation", ProcessNodeType.VALIDATION, "smooks/validation-1.0.xsd", false, SmooksVersion.v1_2, SmooksVersion.v1_3), "/smooks-resource-list/rule");
+ metadataExtractor.addVisitor(new RuntimeDependencyTracker("milyn-smooks-core", ProcessNodeType.BASE, "smooks-1.0.xsd", "smooks-1.1.xsd", false, SmooksVersion.v1_0, SmooksVersion.v1_1, SmooksVersion.v1_2, SmooksVersion.v1_3), "/smooks-resource-list");
+ metadataExtractor.addVisitor(new RuntimeDependencyTracker("milyn-smooks-csv", ProcessNodeType.INPUT_CSV, "smooks/csv-1.1.xsd", "smooks/csv-1.2.xsd", false, SmooksVersion.v1_1, SmooksVersion.v1_2, SmooksVersion.v1_3), "/smooks-resource-list/reader");
+ metadataExtractor.addVisitor(new RuntimeDependencyTracker("milyn-smooks-csv", ProcessNodeType.INPUT_CSV, "smooks/csv-1.3.xsd", "smooks/csv-1.2.xsd", false, SmooksVersion.v1_3), "/smooks-resource-list/reader");
+ metadataExtractor.addVisitor(new RuntimeDependencyTracker("milyn-smooks-edi", ProcessNodeType.INPUT_EDI, "smooks/edi-1.1.xsd", "smooks/edi-1.2.xsd", false, SmooksVersion.v1_1, SmooksVersion.v1_2, SmooksVersion.v1_3), "/smooks-resource-list/reader");
+ metadataExtractor.addVisitor(new RuntimeDependencyTracker("milyn-smooks-json", ProcessNodeType.INPUT_JSON, "smooks/json-1.1.xsd", "smooks/json-1.2.xsd", false, SmooksVersion.v1_1, SmooksVersion.v1_2, SmooksVersion.v1_3), "/smooks-resource-list/reader");
+ metadataExtractor.addVisitor(new RuntimeDependencyTracker("milyn-smooks-fixed-length", ProcessNodeType.FIXED_LENGTH, "smooks/fixed-length-1.3.xsd", null, false, SmooksVersion.v1_3), "/smooks-resource-list/reader");
+ metadataExtractor.addVisitor(new RuntimeDependencyTracker("milyn-smooks-core", ProcessNodeType.DATASOURCE, "smooks/datasource-1.1.xsd", null, false, SmooksVersion.v1_1, SmooksVersion.v1_2, SmooksVersion.v1_3), "/smooks-resource-list/direct");
+ metadataExtractor.addVisitor(new RuntimeDependencyTracker("milyn-smooks-core", ProcessNodeType.DATASOURCE, "smooks/datasource-1.1.xsd", null, false, SmooksVersion.v1_1, SmooksVersion.v1_2, SmooksVersion.v1_3), "/smooks-resource-list/JNDI");
+ metadataExtractor.addVisitor(new RuntimeDependencyTracker("milyn-smooks-core", ProcessNodeType.DATASOURCE, "smooks/datasource-1.3.xsd", null, false, SmooksVersion.v1_3), "/smooks-resource-list/direct");
+ metadataExtractor.addVisitor(new RuntimeDependencyTracker("milyn-smooks-core", ProcessNodeType.DATASOURCE, "smooks/datasource-1.3.xsd", null, false, SmooksVersion.v1_3), "/smooks-resource-list/JNDI");
+ metadataExtractor.addVisitor(new RuntimeDependencyTracker("milyn-smooks-core", ProcessNodeType.CORE, "smooks/core-1.3.xsd", null, false, SmooksVersion.v1_3), "/smooks-resource-list/filterSettings");
+ metadataExtractor.addVisitor(new RuntimeDependencyTracker("milyn-smooks-core", ProcessNodeType.CORE, "smooks/core-1.3.xsd", null, false, SmooksVersion.v1_3), "/smooks-resource-list/namespaces");
+ metadataExtractor.addVisitor(new RuntimeDependencyTracker("milyn-smooks-core", ProcessNodeType.CORE, "smooks/core-1.3.xsd", null, false, SmooksVersion.v1_3), "/smooks-resource-list/terminate");
+ metadataExtractor.addVisitor(new RuntimeDependencyTracker("milyn-smooks-templating", ProcessNodeType.TEMPLATING, "smooks/xsl-1.1.xsd", null, false, SmooksVersion.v1_1, SmooksVersion.v1_2, SmooksVersion.v1_3), "/smooks-resource-list/xsl");
+ metadataExtractor.addVisitor(new RuntimeDependencyTracker("milyn-smooks-javabean", ProcessNodeType.JAVA_BINDING, "smooks/javabean-1.1.xsd", null, false, SmooksVersion.v1_1, SmooksVersion.v1_2, SmooksVersion.v1_3), "/smooks-resource-list/binding");
+ metadataExtractor.addVisitor(new RuntimeDependencyTracker("milyn-smooks-javabean", ProcessNodeType.JAVA_BINDING, "smooks/javabean-1.3.xsd", null, false, SmooksVersion.v1_3), "/smooks-resource-list/bean");
+ metadataExtractor.addVisitor(new RuntimeDependencyTracker("milyn-smooks-calc", ProcessNodeType.CALC, "smooks/calc-1.1.xsd", null, false, SmooksVersion.v1_1, SmooksVersion.v1_2, SmooksVersion.v1_3), "/smooks-resource-list/counter");
+ metadataExtractor.addVisitor(new RuntimeDependencyTracker("milyn-smooks-persistence", ProcessNodeType.PERSISTENCE, "smooks/persistence-1.2.xsd", null, false, SmooksVersion.v1_2, SmooksVersion.v1_3), "/smooks-resource-list/inserter");
+ metadataExtractor.addVisitor(new RuntimeDependencyTracker("milyn-smooks-persistence", ProcessNodeType.PERSISTENCE, "smooks/persistence-1.2.xsd", null, false, SmooksVersion.v1_2, SmooksVersion.v1_3), "/smooks-resource-list/updater");
+ metadataExtractor.addVisitor(new RuntimeDependencyTracker("milyn-smooks-persistence", ProcessNodeType.PERSISTENCE, "smooks/persistence-1.2.xsd", null, false, SmooksVersion.v1_2, SmooksVersion.v1_3), "/smooks-resource-list/deleter");
+ metadataExtractor.addVisitor(new RuntimeDependencyTracker("milyn-smooks-persistence", ProcessNodeType.PERSISTENCE, "smooks/persistence-1.2.xsd", null, false, SmooksVersion.v1_2, SmooksVersion.v1_3), "/smooks-resource-list/deleter");
+ metadataExtractor.addVisitor(new RuntimeDependencyTracker("milyn-smooks-persistence", ProcessNodeType.PERSISTENCE, "smooks/persistence-1.2.xsd", null, false, SmooksVersion.v1_2, SmooksVersion.v1_3), "/smooks-resource-list/flusher");
+ metadataExtractor.addVisitor(new RuntimeDependencyTracker("milyn-smooks-persistence", ProcessNodeType.PERSISTENCE, "smooks/persistence-1.2.xsd", null, false, SmooksVersion.v1_2, SmooksVersion.v1_3), "/smooks-resource-list/locator");
+ metadataExtractor.addVisitor(new RuntimeDependencyTracker("milyn-smooks-routing", ProcessNodeType.ROUTING, "smooks/db-routing-1.1.xsd", null, false, SmooksVersion.v1_1, SmooksVersion.v1_2, SmooksVersion.v1_3), "/smooks-resource-list/executor");
+ metadataExtractor.addVisitor(new RuntimeDependencyTracker("milyn-smooks-routing", ProcessNodeType.ROUTING, "smooks/db-routing-1.1.xsd", null, false, SmooksVersion.v1_1, SmooksVersion.v1_2, SmooksVersion.v1_3), "/smooks-resource-list/resultSetRowSelector");
+ metadataExtractor.addVisitor(new RuntimeDependencyTracker("milyn-smooks-routing", ProcessNodeType.ROUTING, "smooks/file-routing-1.1.xsd", null, false, SmooksVersion.v1_1, SmooksVersion.v1_2, SmooksVersion.v1_3), "/smooks-resource-list/outputStream");
+ metadataExtractor.addVisitor(new RuntimeDependencyTracker("milyn-smooks-routing", ProcessNodeType.ROUTING, "smooks/io-routing-1.1.xsd", null, false, SmooksVersion.v1_1, SmooksVersion.v1_2, SmooksVersion.v1_3), "/smooks-resource-list/router");
+ metadataExtractor.addVisitor(new RuntimeDependencyTracker("milyn-smooks-routing", ProcessNodeType.ROUTING, "smooks/jms-routing-1.1.xsd", null, false, SmooksVersion.v1_1, SmooksVersion.v1_2, SmooksVersion.v1_3), "/smooks-resource-list/router");
+ metadataExtractor.addVisitor(new RuntimeDependencyTracker("milyn-smooks-routing", ProcessNodeType.ROUTING, "smooks/jms-routing-1.2.xsd", null, false, SmooksVersion.v1_2, SmooksVersion.v1_3), "/smooks-resource-list/router");
+ metadataExtractor.addVisitor(new RuntimeDependencyTracker("milyn-smooks-rules", ProcessNodeType.RULES, "smooks/rules-1.0.xsd", null, false, SmooksVersion.v1_2, SmooksVersion.v1_3), "/smooks-resource-list/ruleBases");
+ metadataExtractor.addVisitor(new RuntimeDependencyTracker("milyn-smooks-scripting", ProcessNodeType.SCRIPTING, "smooks/groovy-1.1.xsd", null, false, SmooksVersion.v1_1, SmooksVersion.v1_2, SmooksVersion.v1_3), "/smooks-resource-list/groovy");
+ metadataExtractor.addVisitor(new RuntimeDependencyTracker("milyn-smooks-validation", ProcessNodeType.VALIDATION, "smooks/validation-1.0.xsd", null, false, SmooksVersion.v1_2, SmooksVersion.v1_3), "/smooks-resource-list/rule");
}
private static class RuntimeDependencyTracker implements SAXVisitBefore {
@@ -144,6 +152,7 @@
private String artifactId;
private ProcessNodeType nodeType;
private URI namespaceURI;
+ private URI changeToNS;
/**
* Whether or not the configuration is supported by the Editor. Note that this property being 'false' is not the
* same as saying the config is not supported by the Smooks Runtime (see the 'runtimeVersions' property).
@@ -155,10 +164,13 @@
*/
private List<SmooksVersion> runtimeVersions = new ArrayList<SmooksVersion>();
- public RuntimeDependencyTracker(String artifactId, ProcessNodeType nodeType, String xsd, boolean supportedByEditor, SmooksVersion... runtimeVersions) {
+ public RuntimeDependencyTracker(String artifactId, ProcessNodeType nodeType, String xsd, String changeToXSD, boolean supportedByEditor, SmooksVersion... runtimeVersions) {
this.artifactId = artifactId;
this.nodeType = nodeType;
this.namespaceURI = URI.create("http://www.milyn.org/xsd/" + xsd);
+ if(changeToXSD != null) {
+ this.changeToNS = URI.create("http://www.milyn.org/xsd/" + changeToXSD);
+ }
this.supportedByEditor = supportedByEditor;
if(runtimeVersions != null) {
this.runtimeVersions.addAll(Arrays.asList(runtimeVersions));
@@ -179,7 +191,7 @@
// If the config namespace hasn't already been added, we need to add it...
String configNS = configElement.getName().getNamespaceURI();
if(configNS.equals(namespaceURI.toString()) && !alreadyProcessed.contains(namespaceURI)) {
- metadata.getDependencies().add(new RuntimeDependency(artifactId, namespaceURI, supportedByEditor, runtimeVersions));
+ metadata.getDependencies().add(new RuntimeDependency(artifactId, namespaceURI, changeToNS, supportedByEditor, runtimeVersions));
alreadyProcessed.add(namespaceURI);
}
}
Modified: trunk/smooks/plugins/org.jboss.tools.smooks.ui/src/org/jboss/tools/smooks/editor/AbstractSmooksFormEditor.java
===================================================================
--- trunk/smooks/plugins/org.jboss.tools.smooks.ui/src/org/jboss/tools/smooks/editor/AbstractSmooksFormEditor.java 2009-12-01 16:34:59 UTC (rev 18949)
+++ trunk/smooks/plugins/org.jboss.tools.smooks.ui/src/org/jboss/tools/smooks/editor/AbstractSmooksFormEditor.java 2009-12-01 17:41:23 UTC (rev 18950)
@@ -672,7 +672,14 @@
for(RuntimeDependency dependency : dependencies) {
if(!dependency.isSupportedByEditor()) {
- throw new PartInitException("\n\nSorry, this configuration is not yet supported by the Smooks Editor because it contains configurations from the '" + dependency.getNamespaceURI() + "' configuration namespace.\n\nPlease open this configuration using the XML Editor.");
+ java.net.URI changeToNS = dependency.getChangeToNS();
+ String errorMsg = "\n\nSorry, this configuration is not yet supported by the Smooks Editor because it contains configurations from the '" + dependency.getNamespaceURI() + "' configuration namespace.\n\nPlease open this configuration using the XML Editor.";
+
+ if(changeToNS != null) {
+ errorMsg += "\n\nFix: Update the configuration to use the '" + changeToNS + "' configuration namespace.";
+ }
+
+ throw new PartInitException(errorMsg);
}
}
}
15 years, 1 month
JBoss Tools SVN: r18949 - in branches/jbosstools-3.1.0.RC1/smooks/plugins/org.jboss.tools.smooks.ui: src/org/jboss/tools/smooks/configuration and 1 other directories.
by jbosstools-commits@lists.jboss.org
Author: tfennelly
Date: 2009-12-01 11:34:59 -0500 (Tue, 01 Dec 2009)
New Revision: 18949
Modified:
branches/jbosstools-3.1.0.RC1/smooks/plugins/org.jboss.tools.smooks.ui/META-INF/MANIFEST.MF
branches/jbosstools-3.1.0.RC1/smooks/plugins/org.jboss.tools.smooks.ui/src/org/jboss/tools/smooks/configuration/RuntimeDependency.java
branches/jbosstools-3.1.0.RC1/smooks/plugins/org.jboss.tools.smooks.ui/src/org/jboss/tools/smooks/editor/AbstractSmooksFormEditor.java
Log:
https://jira.jboss.org/jira/browse/JBIDE-5332
Modified: branches/jbosstools-3.1.0.RC1/smooks/plugins/org.jboss.tools.smooks.ui/META-INF/MANIFEST.MF
===================================================================
--- branches/jbosstools-3.1.0.RC1/smooks/plugins/org.jboss.tools.smooks.ui/META-INF/MANIFEST.MF 2009-12-01 16:28:14 UTC (rev 18948)
+++ branches/jbosstools-3.1.0.RC1/smooks/plugins/org.jboss.tools.smooks.ui/META-INF/MANIFEST.MF 2009-12-01 16:34:59 UTC (rev 18949)
@@ -32,11 +32,11 @@
org.eclipse.wst.xsl.core,
org.eclipse.zest.core,
org.eclipse.zest.layouts,
- org.eclipse.debug.core;bundle-version="3.5.0",
- org.eclipse.debug.ui;bundle-version="3.5.1",
- org.eclipse.jdt.debug.ui;bundle-version="3.4.1",
- org.eclipse.jdt.junit;bundle-version="3.5.1",
- org.eclipse.ui.console;bundle-version="3.4.0"
+ org.eclipse.debug.core,
+ org.eclipse.debug.ui,
+ org.eclipse.jdt.debug.ui,
+ org.eclipse.jdt.junit,
+ org.eclipse.ui.console
Bundle-ActivationPolicy: lazy
Bundle-Localization: plugin
Bundle-RequiredExecutionEnvironment: J2SE-1.5
Modified: branches/jbosstools-3.1.0.RC1/smooks/plugins/org.jboss.tools.smooks.ui/src/org/jboss/tools/smooks/configuration/RuntimeDependency.java
===================================================================
--- branches/jbosstools-3.1.0.RC1/smooks/plugins/org.jboss.tools.smooks.ui/src/org/jboss/tools/smooks/configuration/RuntimeDependency.java 2009-12-01 16:28:14 UTC (rev 18948)
+++ branches/jbosstools-3.1.0.RC1/smooks/plugins/org.jboss.tools.smooks.ui/src/org/jboss/tools/smooks/configuration/RuntimeDependency.java 2009-12-01 16:34:59 UTC (rev 18949)
@@ -59,6 +59,10 @@
*/
private URI namespaceURI;
/**
+ * If the namepsaceURI is unsupported by the editor, this property can contain a change-to/upgrade/downgrade namepsace.
+ */
+ private URI changeToNS;
+ /**
* Whether or not the configuration is supported by the Editor. Note that this property being 'false' is not the
* same as saying the config is not supported by the Smooks Runtime (see the 'runtimeVersions' property).
*/
@@ -69,9 +73,10 @@
*/
private List<SmooksVersion> runtimeVersions;
- private RuntimeDependency(String artifactId, URI namespaceURI, boolean supportedByEditor, List<SmooksVersion> runtimeVersions) {
+ private RuntimeDependency(String artifactId, URI namespaceURI, URI changeToNS, boolean supportedByEditor, List<SmooksVersion> runtimeVersions) {
this.artifactId = artifactId;
this.namespaceURI = namespaceURI;
+ this.changeToNS = changeToNS;
this.supportedByEditor = supportedByEditor;
}
@@ -84,6 +89,9 @@
public URI getNamespaceURI() {
return namespaceURI;
}
+ public URI getChangeToNS() {
+ return changeToNS;
+ }
public boolean isSupportedByEditor() {
return supportedByEditor;
}
@@ -97,46 +105,46 @@
public static void addDependencyChecklist(Smooks metadataExtractor) {
// Add the supported feature dependency details...
- metadataExtractor.addVisitor(new RuntimeDependencyTracker("milyn-smooks-core", ProcessNodeType.BASE, "smooks-1.1.xsd", true, SmooksVersion.v1_1, SmooksVersion.v1_2, SmooksVersion.v1_3), "/smooks-resource-list");
- metadataExtractor.addVisitor(new RuntimeDependencyTracker("milyn-smooks-csv", ProcessNodeType.INPUT_CSV, "smooks/csv-1.2.xsd", true, SmooksVersion.v1_2, SmooksVersion.v1_3), "/smooks-resource-list/reader");
- metadataExtractor.addVisitor(new RuntimeDependencyTracker("milyn-smooks-edi", ProcessNodeType.INPUT_EDI, "smooks/edi-1.2.xsd", true, SmooksVersion.v1_2, SmooksVersion.v1_3), "/smooks-resource-list/reader");
- metadataExtractor.addVisitor(new RuntimeDependencyTracker("milyn-smooks-json", ProcessNodeType.INPUT_JSON, "smooks/json-1.2.xsd", true, SmooksVersion.v1_2, SmooksVersion.v1_3), "/smooks-resource-list/reader");
- metadataExtractor.addVisitor(new RuntimeDependencyTracker("milyn-smooks-templating", ProcessNodeType.TEMPLATING, "smooks/freemarker-1.1.xsd", true, SmooksVersion.v1_1, SmooksVersion.v1_2, SmooksVersion.v1_3), "/smooks-resource-list/freemarker");
- metadataExtractor.addVisitor(new RuntimeDependencyTracker("milyn-smooks-javabean", ProcessNodeType.JAVA_BINDING, "smooks/javabean-1.2.xsd", true, SmooksVersion.v1_2, SmooksVersion.v1_3), "/smooks-resource-list/bean");
+ metadataExtractor.addVisitor(new RuntimeDependencyTracker("milyn-smooks-core", ProcessNodeType.BASE, "smooks-1.1.xsd", null, true, SmooksVersion.v1_1, SmooksVersion.v1_2, SmooksVersion.v1_3), "/smooks-resource-list");
+ metadataExtractor.addVisitor(new RuntimeDependencyTracker("milyn-smooks-csv", ProcessNodeType.INPUT_CSV, "smooks/csv-1.2.xsd", null, true, SmooksVersion.v1_2, SmooksVersion.v1_3), "/smooks-resource-list/reader");
+ metadataExtractor.addVisitor(new RuntimeDependencyTracker("milyn-smooks-edi", ProcessNodeType.INPUT_EDI, "smooks/edi-1.2.xsd", null, true, SmooksVersion.v1_2, SmooksVersion.v1_3), "/smooks-resource-list/reader");
+ metadataExtractor.addVisitor(new RuntimeDependencyTracker("milyn-smooks-json", ProcessNodeType.INPUT_JSON, "smooks/json-1.2.xsd", null, true, SmooksVersion.v1_2, SmooksVersion.v1_3), "/smooks-resource-list/reader");
+ metadataExtractor.addVisitor(new RuntimeDependencyTracker("milyn-smooks-templating", ProcessNodeType.TEMPLATING, "smooks/freemarker-1.1.xsd", null, true, SmooksVersion.v1_1, SmooksVersion.v1_2, SmooksVersion.v1_3), "/smooks-resource-list/freemarker");
+ metadataExtractor.addVisitor(new RuntimeDependencyTracker("milyn-smooks-javabean", ProcessNodeType.JAVA_BINDING, "smooks/javabean-1.2.xsd", null, true, SmooksVersion.v1_2, SmooksVersion.v1_3), "/smooks-resource-list/bean");
// Add the unsupported feature dependency details...
- metadataExtractor.addVisitor(new RuntimeDependencyTracker("milyn-smooks-core", ProcessNodeType.BASE, "smooks-1.0.xsd", false, SmooksVersion.v1_0, SmooksVersion.v1_1, SmooksVersion.v1_2, SmooksVersion.v1_3), "/smooks-resource-list");
- metadataExtractor.addVisitor(new RuntimeDependencyTracker("milyn-smooks-csv", ProcessNodeType.INPUT_CSV, "smooks/csv-1.1.xsd", false, SmooksVersion.v1_1, SmooksVersion.v1_2, SmooksVersion.v1_3), "/smooks-resource-list/reader");
- metadataExtractor.addVisitor(new RuntimeDependencyTracker("milyn-smooks-csv", ProcessNodeType.INPUT_CSV, "smooks/csv-1.3.xsd", false, SmooksVersion.v1_3), "/smooks-resource-list/reader");
- metadataExtractor.addVisitor(new RuntimeDependencyTracker("milyn-smooks-edi", ProcessNodeType.INPUT_EDI, "smooks/edi-1.1.xsd", false, SmooksVersion.v1_1, SmooksVersion.v1_2, SmooksVersion.v1_3), "/smooks-resource-list/reader");
- metadataExtractor.addVisitor(new RuntimeDependencyTracker("milyn-smooks-json", ProcessNodeType.INPUT_JSON, "smooks/json-1.1.xsd", false, SmooksVersion.v1_1, SmooksVersion.v1_2, SmooksVersion.v1_3), "/smooks-resource-list/reader");
- metadataExtractor.addVisitor(new RuntimeDependencyTracker("milyn-smooks-fixed-length", ProcessNodeType.FIXED_LENGTH, "smooks/fixed-length-1.3.xsd", false, SmooksVersion.v1_3), "/smooks-resource-list/reader");
- metadataExtractor.addVisitor(new RuntimeDependencyTracker("milyn-smooks-core", ProcessNodeType.DATASOURCE, "smooks/datasource-1.1.xsd", false, SmooksVersion.v1_1, SmooksVersion.v1_2, SmooksVersion.v1_3), "/smooks-resource-list/direct");
- metadataExtractor.addVisitor(new RuntimeDependencyTracker("milyn-smooks-core", ProcessNodeType.DATASOURCE, "smooks/datasource-1.1.xsd", false, SmooksVersion.v1_1, SmooksVersion.v1_2, SmooksVersion.v1_3), "/smooks-resource-list/JNDI");
- metadataExtractor.addVisitor(new RuntimeDependencyTracker("milyn-smooks-core", ProcessNodeType.DATASOURCE, "smooks/datasource-1.3.xsd", false, SmooksVersion.v1_3), "/smooks-resource-list/direct");
- metadataExtractor.addVisitor(new RuntimeDependencyTracker("milyn-smooks-core", ProcessNodeType.DATASOURCE, "smooks/datasource-1.3.xsd", false, SmooksVersion.v1_3), "/smooks-resource-list/JNDI");
- metadataExtractor.addVisitor(new RuntimeDependencyTracker("milyn-smooks-core", ProcessNodeType.CORE, "smooks/core-1.3.xsd", false, SmooksVersion.v1_3), "/smooks-resource-list/filterSettings");
- metadataExtractor.addVisitor(new RuntimeDependencyTracker("milyn-smooks-core", ProcessNodeType.CORE, "smooks/core-1.3.xsd", false, SmooksVersion.v1_3), "/smooks-resource-list/namespaces");
- metadataExtractor.addVisitor(new RuntimeDependencyTracker("milyn-smooks-core", ProcessNodeType.CORE, "smooks/core-1.3.xsd", false, SmooksVersion.v1_3), "/smooks-resource-list/terminate");
- metadataExtractor.addVisitor(new RuntimeDependencyTracker("milyn-smooks-templating", ProcessNodeType.TEMPLATING, "smooks/xsl-1.1.xsd", false, SmooksVersion.v1_1, SmooksVersion.v1_2, SmooksVersion.v1_3), "/smooks-resource-list/xsl");
- metadataExtractor.addVisitor(new RuntimeDependencyTracker("milyn-smooks-javabean", ProcessNodeType.JAVA_BINDING, "smooks/javabean-1.1.xsd", false, SmooksVersion.v1_1, SmooksVersion.v1_2, SmooksVersion.v1_3), "/smooks-resource-list/binding");
- metadataExtractor.addVisitor(new RuntimeDependencyTracker("milyn-smooks-javabean", ProcessNodeType.JAVA_BINDING, "smooks/javabean-1.3.xsd", false, SmooksVersion.v1_3), "/smooks-resource-list/bean");
- metadataExtractor.addVisitor(new RuntimeDependencyTracker("milyn-smooks-calc", ProcessNodeType.CALC, "smooks/calc-1.1.xsd", false, SmooksVersion.v1_1, SmooksVersion.v1_2, SmooksVersion.v1_3), "/smooks-resource-list/counter");
- metadataExtractor.addVisitor(new RuntimeDependencyTracker("milyn-smooks-persistence", ProcessNodeType.PERSISTENCE, "smooks/persistence-1.2.xsd", false, SmooksVersion.v1_2, SmooksVersion.v1_3), "/smooks-resource-list/inserter");
- metadataExtractor.addVisitor(new RuntimeDependencyTracker("milyn-smooks-persistence", ProcessNodeType.PERSISTENCE, "smooks/persistence-1.2.xsd", false, SmooksVersion.v1_2, SmooksVersion.v1_3), "/smooks-resource-list/updater");
- metadataExtractor.addVisitor(new RuntimeDependencyTracker("milyn-smooks-persistence", ProcessNodeType.PERSISTENCE, "smooks/persistence-1.2.xsd", false, SmooksVersion.v1_2, SmooksVersion.v1_3), "/smooks-resource-list/deleter");
- metadataExtractor.addVisitor(new RuntimeDependencyTracker("milyn-smooks-persistence", ProcessNodeType.PERSISTENCE, "smooks/persistence-1.2.xsd", false, SmooksVersion.v1_2, SmooksVersion.v1_3), "/smooks-resource-list/deleter");
- metadataExtractor.addVisitor(new RuntimeDependencyTracker("milyn-smooks-persistence", ProcessNodeType.PERSISTENCE, "smooks/persistence-1.2.xsd", false, SmooksVersion.v1_2, SmooksVersion.v1_3), "/smooks-resource-list/flusher");
- metadataExtractor.addVisitor(new RuntimeDependencyTracker("milyn-smooks-persistence", ProcessNodeType.PERSISTENCE, "smooks/persistence-1.2.xsd", false, SmooksVersion.v1_2, SmooksVersion.v1_3), "/smooks-resource-list/locator");
- metadataExtractor.addVisitor(new RuntimeDependencyTracker("milyn-smooks-routing", ProcessNodeType.ROUTING, "smooks/db-routing-1.1.xsd", false, SmooksVersion.v1_1, SmooksVersion.v1_2, SmooksVersion.v1_3), "/smooks-resource-list/executor");
- metadataExtractor.addVisitor(new RuntimeDependencyTracker("milyn-smooks-routing", ProcessNodeType.ROUTING, "smooks/db-routing-1.1.xsd", false, SmooksVersion.v1_1, SmooksVersion.v1_2, SmooksVersion.v1_3), "/smooks-resource-list/resultSetRowSelector");
- metadataExtractor.addVisitor(new RuntimeDependencyTracker("milyn-smooks-routing", ProcessNodeType.ROUTING, "smooks/file-routing-1.1.xsd", false, SmooksVersion.v1_1, SmooksVersion.v1_2, SmooksVersion.v1_3), "/smooks-resource-list/outputStream");
- metadataExtractor.addVisitor(new RuntimeDependencyTracker("milyn-smooks-routing", ProcessNodeType.ROUTING, "smooks/io-routing-1.1.xsd", false, SmooksVersion.v1_1, SmooksVersion.v1_2, SmooksVersion.v1_3), "/smooks-resource-list/router");
- metadataExtractor.addVisitor(new RuntimeDependencyTracker("milyn-smooks-routing", ProcessNodeType.ROUTING, "smooks/jms-routing-1.1.xsd", false, SmooksVersion.v1_1, SmooksVersion.v1_2, SmooksVersion.v1_3), "/smooks-resource-list/router");
- metadataExtractor.addVisitor(new RuntimeDependencyTracker("milyn-smooks-routing", ProcessNodeType.ROUTING, "smooks/jms-routing-1.2.xsd", false, SmooksVersion.v1_2, SmooksVersion.v1_3), "/smooks-resource-list/router");
- metadataExtractor.addVisitor(new RuntimeDependencyTracker("milyn-smooks-rules", ProcessNodeType.RULES, "smooks/rules-1.0.xsd", false, SmooksVersion.v1_2, SmooksVersion.v1_3), "/smooks-resource-list/ruleBases");
- metadataExtractor.addVisitor(new RuntimeDependencyTracker("milyn-smooks-scripting", ProcessNodeType.SCRIPTING, "smooks/groovy-1.1.xsd", false, SmooksVersion.v1_1, SmooksVersion.v1_2, SmooksVersion.v1_3), "/smooks-resource-list/groovy");
- metadataExtractor.addVisitor(new RuntimeDependencyTracker("milyn-smooks-validation", ProcessNodeType.VALIDATION, "smooks/validation-1.0.xsd", false, SmooksVersion.v1_2, SmooksVersion.v1_3), "/smooks-resource-list/rule");
+ metadataExtractor.addVisitor(new RuntimeDependencyTracker("milyn-smooks-core", ProcessNodeType.BASE, "smooks-1.0.xsd", "smooks-1.1.xsd", false, SmooksVersion.v1_0, SmooksVersion.v1_1, SmooksVersion.v1_2, SmooksVersion.v1_3), "/smooks-resource-list");
+ metadataExtractor.addVisitor(new RuntimeDependencyTracker("milyn-smooks-csv", ProcessNodeType.INPUT_CSV, "smooks/csv-1.1.xsd", "smooks/csv-1.2.xsd", false, SmooksVersion.v1_1, SmooksVersion.v1_2, SmooksVersion.v1_3), "/smooks-resource-list/reader");
+ metadataExtractor.addVisitor(new RuntimeDependencyTracker("milyn-smooks-csv", ProcessNodeType.INPUT_CSV, "smooks/csv-1.3.xsd", "smooks/csv-1.2.xsd", false, SmooksVersion.v1_3), "/smooks-resource-list/reader");
+ metadataExtractor.addVisitor(new RuntimeDependencyTracker("milyn-smooks-edi", ProcessNodeType.INPUT_EDI, "smooks/edi-1.1.xsd", "smooks/edi-1.2.xsd", false, SmooksVersion.v1_1, SmooksVersion.v1_2, SmooksVersion.v1_3), "/smooks-resource-list/reader");
+ metadataExtractor.addVisitor(new RuntimeDependencyTracker("milyn-smooks-json", ProcessNodeType.INPUT_JSON, "smooks/json-1.1.xsd", "smooks/json-1.2.xsd", false, SmooksVersion.v1_1, SmooksVersion.v1_2, SmooksVersion.v1_3), "/smooks-resource-list/reader");
+ metadataExtractor.addVisitor(new RuntimeDependencyTracker("milyn-smooks-fixed-length", ProcessNodeType.FIXED_LENGTH, "smooks/fixed-length-1.3.xsd", null, false, SmooksVersion.v1_3), "/smooks-resource-list/reader");
+ metadataExtractor.addVisitor(new RuntimeDependencyTracker("milyn-smooks-core", ProcessNodeType.DATASOURCE, "smooks/datasource-1.1.xsd", null, false, SmooksVersion.v1_1, SmooksVersion.v1_2, SmooksVersion.v1_3), "/smooks-resource-list/direct");
+ metadataExtractor.addVisitor(new RuntimeDependencyTracker("milyn-smooks-core", ProcessNodeType.DATASOURCE, "smooks/datasource-1.1.xsd", null, false, SmooksVersion.v1_1, SmooksVersion.v1_2, SmooksVersion.v1_3), "/smooks-resource-list/JNDI");
+ metadataExtractor.addVisitor(new RuntimeDependencyTracker("milyn-smooks-core", ProcessNodeType.DATASOURCE, "smooks/datasource-1.3.xsd", null, false, SmooksVersion.v1_3), "/smooks-resource-list/direct");
+ metadataExtractor.addVisitor(new RuntimeDependencyTracker("milyn-smooks-core", ProcessNodeType.DATASOURCE, "smooks/datasource-1.3.xsd", null, false, SmooksVersion.v1_3), "/smooks-resource-list/JNDI");
+ metadataExtractor.addVisitor(new RuntimeDependencyTracker("milyn-smooks-core", ProcessNodeType.CORE, "smooks/core-1.3.xsd", null, false, SmooksVersion.v1_3), "/smooks-resource-list/filterSettings");
+ metadataExtractor.addVisitor(new RuntimeDependencyTracker("milyn-smooks-core", ProcessNodeType.CORE, "smooks/core-1.3.xsd", null, false, SmooksVersion.v1_3), "/smooks-resource-list/namespaces");
+ metadataExtractor.addVisitor(new RuntimeDependencyTracker("milyn-smooks-core", ProcessNodeType.CORE, "smooks/core-1.3.xsd", null, false, SmooksVersion.v1_3), "/smooks-resource-list/terminate");
+ metadataExtractor.addVisitor(new RuntimeDependencyTracker("milyn-smooks-templating", ProcessNodeType.TEMPLATING, "smooks/xsl-1.1.xsd", null, false, SmooksVersion.v1_1, SmooksVersion.v1_2, SmooksVersion.v1_3), "/smooks-resource-list/xsl");
+ metadataExtractor.addVisitor(new RuntimeDependencyTracker("milyn-smooks-javabean", ProcessNodeType.JAVA_BINDING, "smooks/javabean-1.1.xsd", null, false, SmooksVersion.v1_1, SmooksVersion.v1_2, SmooksVersion.v1_3), "/smooks-resource-list/binding");
+ metadataExtractor.addVisitor(new RuntimeDependencyTracker("milyn-smooks-javabean", ProcessNodeType.JAVA_BINDING, "smooks/javabean-1.3.xsd", null, false, SmooksVersion.v1_3), "/smooks-resource-list/bean");
+ metadataExtractor.addVisitor(new RuntimeDependencyTracker("milyn-smooks-calc", ProcessNodeType.CALC, "smooks/calc-1.1.xsd", null, false, SmooksVersion.v1_1, SmooksVersion.v1_2, SmooksVersion.v1_3), "/smooks-resource-list/counter");
+ metadataExtractor.addVisitor(new RuntimeDependencyTracker("milyn-smooks-persistence", ProcessNodeType.PERSISTENCE, "smooks/persistence-1.2.xsd", null, false, SmooksVersion.v1_2, SmooksVersion.v1_3), "/smooks-resource-list/inserter");
+ metadataExtractor.addVisitor(new RuntimeDependencyTracker("milyn-smooks-persistence", ProcessNodeType.PERSISTENCE, "smooks/persistence-1.2.xsd", null, false, SmooksVersion.v1_2, SmooksVersion.v1_3), "/smooks-resource-list/updater");
+ metadataExtractor.addVisitor(new RuntimeDependencyTracker("milyn-smooks-persistence", ProcessNodeType.PERSISTENCE, "smooks/persistence-1.2.xsd", null, false, SmooksVersion.v1_2, SmooksVersion.v1_3), "/smooks-resource-list/deleter");
+ metadataExtractor.addVisitor(new RuntimeDependencyTracker("milyn-smooks-persistence", ProcessNodeType.PERSISTENCE, "smooks/persistence-1.2.xsd", null, false, SmooksVersion.v1_2, SmooksVersion.v1_3), "/smooks-resource-list/deleter");
+ metadataExtractor.addVisitor(new RuntimeDependencyTracker("milyn-smooks-persistence", ProcessNodeType.PERSISTENCE, "smooks/persistence-1.2.xsd", null, false, SmooksVersion.v1_2, SmooksVersion.v1_3), "/smooks-resource-list/flusher");
+ metadataExtractor.addVisitor(new RuntimeDependencyTracker("milyn-smooks-persistence", ProcessNodeType.PERSISTENCE, "smooks/persistence-1.2.xsd", null, false, SmooksVersion.v1_2, SmooksVersion.v1_3), "/smooks-resource-list/locator");
+ metadataExtractor.addVisitor(new RuntimeDependencyTracker("milyn-smooks-routing", ProcessNodeType.ROUTING, "smooks/db-routing-1.1.xsd", null, false, SmooksVersion.v1_1, SmooksVersion.v1_2, SmooksVersion.v1_3), "/smooks-resource-list/executor");
+ metadataExtractor.addVisitor(new RuntimeDependencyTracker("milyn-smooks-routing", ProcessNodeType.ROUTING, "smooks/db-routing-1.1.xsd", null, false, SmooksVersion.v1_1, SmooksVersion.v1_2, SmooksVersion.v1_3), "/smooks-resource-list/resultSetRowSelector");
+ metadataExtractor.addVisitor(new RuntimeDependencyTracker("milyn-smooks-routing", ProcessNodeType.ROUTING, "smooks/file-routing-1.1.xsd", null, false, SmooksVersion.v1_1, SmooksVersion.v1_2, SmooksVersion.v1_3), "/smooks-resource-list/outputStream");
+ metadataExtractor.addVisitor(new RuntimeDependencyTracker("milyn-smooks-routing", ProcessNodeType.ROUTING, "smooks/io-routing-1.1.xsd", null, false, SmooksVersion.v1_1, SmooksVersion.v1_2, SmooksVersion.v1_3), "/smooks-resource-list/router");
+ metadataExtractor.addVisitor(new RuntimeDependencyTracker("milyn-smooks-routing", ProcessNodeType.ROUTING, "smooks/jms-routing-1.1.xsd", null, false, SmooksVersion.v1_1, SmooksVersion.v1_2, SmooksVersion.v1_3), "/smooks-resource-list/router");
+ metadataExtractor.addVisitor(new RuntimeDependencyTracker("milyn-smooks-routing", ProcessNodeType.ROUTING, "smooks/jms-routing-1.2.xsd", null, false, SmooksVersion.v1_2, SmooksVersion.v1_3), "/smooks-resource-list/router");
+ metadataExtractor.addVisitor(new RuntimeDependencyTracker("milyn-smooks-rules", ProcessNodeType.RULES, "smooks/rules-1.0.xsd", null, false, SmooksVersion.v1_2, SmooksVersion.v1_3), "/smooks-resource-list/ruleBases");
+ metadataExtractor.addVisitor(new RuntimeDependencyTracker("milyn-smooks-scripting", ProcessNodeType.SCRIPTING, "smooks/groovy-1.1.xsd", null, false, SmooksVersion.v1_1, SmooksVersion.v1_2, SmooksVersion.v1_3), "/smooks-resource-list/groovy");
+ metadataExtractor.addVisitor(new RuntimeDependencyTracker("milyn-smooks-validation", ProcessNodeType.VALIDATION, "smooks/validation-1.0.xsd", null, false, SmooksVersion.v1_2, SmooksVersion.v1_3), "/smooks-resource-list/rule");
}
private static class RuntimeDependencyTracker implements SAXVisitBefore {
@@ -144,6 +152,7 @@
private String artifactId;
private ProcessNodeType nodeType;
private URI namespaceURI;
+ private URI changeToNS;
/**
* Whether or not the configuration is supported by the Editor. Note that this property being 'false' is not the
* same as saying the config is not supported by the Smooks Runtime (see the 'runtimeVersions' property).
@@ -155,10 +164,13 @@
*/
private List<SmooksVersion> runtimeVersions = new ArrayList<SmooksVersion>();
- public RuntimeDependencyTracker(String artifactId, ProcessNodeType nodeType, String xsd, boolean supportedByEditor, SmooksVersion... runtimeVersions) {
+ public RuntimeDependencyTracker(String artifactId, ProcessNodeType nodeType, String xsd, String changeToXSD, boolean supportedByEditor, SmooksVersion... runtimeVersions) {
this.artifactId = artifactId;
this.nodeType = nodeType;
this.namespaceURI = URI.create("http://www.milyn.org/xsd/" + xsd);
+ if(changeToXSD != null) {
+ this.changeToNS = URI.create("http://www.milyn.org/xsd/" + changeToXSD);
+ }
this.supportedByEditor = supportedByEditor;
if(runtimeVersions != null) {
this.runtimeVersions.addAll(Arrays.asList(runtimeVersions));
@@ -179,7 +191,7 @@
// If the config namespace hasn't already been added, we need to add it...
String configNS = configElement.getName().getNamespaceURI();
if(configNS.equals(namespaceURI.toString()) && !alreadyProcessed.contains(namespaceURI)) {
- metadata.getDependencies().add(new RuntimeDependency(artifactId, namespaceURI, supportedByEditor, runtimeVersions));
+ metadata.getDependencies().add(new RuntimeDependency(artifactId, namespaceURI, changeToNS, supportedByEditor, runtimeVersions));
alreadyProcessed.add(namespaceURI);
}
}
Modified: branches/jbosstools-3.1.0.RC1/smooks/plugins/org.jboss.tools.smooks.ui/src/org/jboss/tools/smooks/editor/AbstractSmooksFormEditor.java
===================================================================
--- branches/jbosstools-3.1.0.RC1/smooks/plugins/org.jboss.tools.smooks.ui/src/org/jboss/tools/smooks/editor/AbstractSmooksFormEditor.java 2009-12-01 16:28:14 UTC (rev 18948)
+++ branches/jbosstools-3.1.0.RC1/smooks/plugins/org.jboss.tools.smooks.ui/src/org/jboss/tools/smooks/editor/AbstractSmooksFormEditor.java 2009-12-01 16:34:59 UTC (rev 18949)
@@ -672,7 +672,14 @@
for(RuntimeDependency dependency : dependencies) {
if(!dependency.isSupportedByEditor()) {
- throw new PartInitException("\n\nSorry, this configuration is not yet supported by the Smooks Editor because it contains configurations from the '" + dependency.getNamespaceURI() + "' configuration namespace.\n\nPlease open this configuration using the XML Editor.");
+ java.net.URI changeToNS = dependency.getChangeToNS();
+ String errorMsg = "\n\nSorry, this configuration is not yet supported by the Smooks Editor because it contains configurations from the '" + dependency.getNamespaceURI() + "' configuration namespace.\n\nPlease open this configuration using the XML Editor.";
+
+ if(changeToNS != null) {
+ errorMsg += "\n\nFix: Update the configuration to use the '" + changeToNS + "' configuration namespace.";
+ }
+
+ throw new PartInitException(errorMsg);
}
}
}
15 years, 1 month