JBoss Tools SVN: r18340 - in trunk/vpe/plugins: org.jboss.tools.vpe.xulrunner/src/org/jboss/tools/vpe/xulrunner/editor and 1 other directory.
by jbosstools-commits@lists.jboss.org
Author: mareshkau
Date: 2009-10-28 12:41:15 -0400 (Wed, 28 Oct 2009)
New Revision: 18340
Modified:
trunk/vpe/plugins/org.jboss.tools.vpe.xulrunner/src/org/jboss/tools/vpe/xulrunner/editor/XulRunnerEditor.java
trunk/vpe/plugins/org.jboss.tools.vpe/ve/EditorOverride.css
Log:
https://jira.jboss.org/jira/browse/JBIDE-1546,
Modified: trunk/vpe/plugins/org.jboss.tools.vpe/ve/EditorOverride.css
===================================================================
--- trunk/vpe/plugins/org.jboss.tools.vpe/ve/EditorOverride.css 2009-10-28 15:23:45 UTC (rev 18339)
+++ trunk/vpe/plugins/org.jboss.tools.vpe/ve/EditorOverride.css 2009-10-28 16:41:15 UTC (rev 18340)
@@ -343,10 +343,10 @@
}
span.vpe-text {
- background :inherit !important;
+ /* background :inherit !important; */
background-image:none !important;
- border :0px !important;
- bottom :inherit !important;
+ /* border :0px !important; */
+ /* bottom :inherit !important; */
caption-side :inherit !important;
clear :inherit !important;
clip :inherit !important;
Modified: trunk/vpe/plugins/org.jboss.tools.vpe.xulrunner/src/org/jboss/tools/vpe/xulrunner/editor/XulRunnerEditor.java
===================================================================
--- trunk/vpe/plugins/org.jboss.tools.vpe.xulrunner/src/org/jboss/tools/vpe/xulrunner/editor/XulRunnerEditor.java 2009-10-28 15:23:45 UTC (rev 18339)
+++ trunk/vpe/plugins/org.jboss.tools.vpe.xulrunner/src/org/jboss/tools/vpe/xulrunner/editor/XulRunnerEditor.java 2009-10-28 16:41:15 UTC (rev 18340)
@@ -61,16 +61,24 @@
private IXulRunnerVpeResizer xulRunnerVpeResizer;
/**
- * color which used for highlight elements which user can see
+ * color which used for highlight elements which user can see, blue color
*/
- public static final String flasherVisialElementColor = "blue"; //$NON-NLS-1$
+ public static final String flasherVisialElementColor = "#0000ff"; //$NON-NLS-1$
/**
- * color which used for highlight parent elements for elements which user
+ * color which used for highlight parent elements for elements which user, red color
* can't see.
*/
- public static final String flasherHiddentElementColor = "red"; //$NON-NLS-1$
+ public static final String flasherHiddentElementColor = "#ff0000"; //$NON-NLS-1$
+ //added by Maksim Areshkau as element for which we
+ //have drowed border. When we draw new border,
+ //we should remove old one;
+ private nsIDOMElement lastBorderedElement;
+ private static final String INVISIBLE_ELEMENT_BORDER = "border: 2px solid red;";//$NON-NLS-1$
+ private static final String VISIBLE_ELEMENT_BORDER = "border: 2px solid blue;";//$NON-NLS-1$
+ private static final String PREV_STYLE_ATTR_NAME = "oldstyle";//$NON-NLS-1$
+
/**
* Contains name of attribute for inIFLasher drawing
*/
@@ -352,6 +360,13 @@
scrollRegtangleFlag = scroll && node != null;
+ try {
+ ((nsIBaseWindow) getWebBrowser().queryInterface(
+ nsIBaseWindow.NS_IBASEWINDOW_IID)).repaint(true);
+ } catch (XPCOMException ex) {
+ // just ignore its
+ BrowserPlugin.getDefault().logInfo("repaint failed", ex); //$NON-NLS-1$
+ }
if(checkVisability(getLastSelectedElement())){
if((getLastSelectedElement().getAttribute(VPEFLASHERCOLORATTRIBUTE)==null)||
@@ -362,7 +377,7 @@
getIFlasher().setColor(flasherHiddentElementColor);
}
- getIFlasher().repaintElement(getLastSelectedElement());
+ drawElementOutline(getLastSelectedElement());
}else {
@@ -371,17 +386,17 @@
if(domElement!=null) {
- getIFlasher().repaintElement(domElement);
+ drawElementOutline(domElement);
}
}
- try {
- ((nsIBaseWindow) getWebBrowser().queryInterface(
- nsIBaseWindow.NS_IBASEWINDOW_IID)).repaint(true);
- } catch (XPCOMException ex) {
- // just ignore its
- BrowserPlugin.getDefault().logInfo("repaint failed", ex); //$NON-NLS-1$
- }
+// try {
+// ((nsIBaseWindow) getWebBrowser().queryInterface(
+// nsIBaseWindow.NS_IBASEWINDOW_IID)).repaint(true);
+// } catch (XPCOMException ex) {
+// // just ignore its
+// BrowserPlugin.getDefault().logInfo("repaint failed", ex); //$NON-NLS-1$
+// }
} else if (element != null) {
@@ -574,16 +589,17 @@
drawElementOutline(domElement);
}
}
- } else if(getIFlasher()!=null&&Platform.OS_MACOSX.equals(Platform.getOS())){
- //Max Areshkau (bug on Mac OS X, when we switch to preview from other view, selection rectangle doesn't disappear
- //TODO Max Areshkau (may be exist passability not draw selection on resize event when we switches to other view)
- try {
- ((nsIBaseWindow)getWebBrowser().queryInterface(nsIBaseWindow.NS_IBASEWINDOW_IID)).repaint(true);
- } catch(XPCOMException ex) {
- //just ignore its
- BrowserPlugin.getDefault().logInfo("repaint failed", ex); //$NON-NLS-1$
- }
- }
+ }
+// else if(getIFlasher()!=null&&Platform.OS_MACOSX.equals(Platform.getOS())){
+// //Max Areshkau (bug on Mac OS X, when we switch to preview from other view, selection rectangle doesn't disappear
+// //TODO Max Areshkau (may be exist passability not draw selection on resize event when we switches to other view)
+// try {
+// ((nsIBaseWindow)getWebBrowser().queryInterface(nsIBaseWindow.NS_IBASEWINDOW_IID)).repaint(true);
+// } catch(XPCOMException ex) {
+// //just ignore its
+// BrowserPlugin.getDefault().logInfo("repaint failed", ex); //$NON-NLS-1$
+// }
+// }
}
/**
* Scrools viiew to some elements
@@ -664,10 +680,29 @@
*/
private void drawElementOutline(nsIDOMElement domElement) {
//fix for JBIDE-3969
- if(Platform.OS_MACOSX.equals(Platform.getOS())&&hasSelectInParenNodes(domElement.getParentNode())) {
- return;
+// if(Platform.OS_MACOSX.equals(Platform.getOS())&&hasSelectInParenNodes(domElement.getParentNode())) {
+// return;
+// }
+ //restore style for previously bordered element
+ if(this.lastBorderedElement!=null && this.lastBorderedElement.getAttribute(STYLE_ATTR)!=null) {
+ String style = this.lastBorderedElement.getAttribute(PREV_STYLE_ATTR_NAME);
+ this.lastBorderedElement.removeAttribute(PREV_STYLE_ATTR_NAME);
+ this.lastBorderedElement.setAttribute(STYLE_ATTR, style);
}
- getIFlasher().drawElementOutline(domElement);
+
+ //save style for early bordered element
+ String oldstyle = domElement.getAttribute(STYLE_ATTR);
+ if(flasherHiddentElementColor.equals(getIFlasher().getColor())) {
+ domElement.setAttribute(STYLE_ATTR,domElement.getAttribute(STYLE_ATTR)+';'+XulRunnerEditor.INVISIBLE_ELEMENT_BORDER);
+ }else {
+ domElement.setAttribute(STYLE_ATTR,domElement.getAttribute(STYLE_ATTR)+';'+ XulRunnerEditor.VISIBLE_ELEMENT_BORDER);
+ }
+ this.lastBorderedElement = domElement;
+ this.lastBorderedElement.setAttribute(PREV_STYLE_ATTR_NAME, oldstyle);
+ //under osx function drawElementOutline not works
+ if(!Platform.OS_MACOSX.equals(Platform.getOS())){
+ getIFlasher().drawElementOutline(domElement);
+ }
}
/**
* Checks if node has select in parent node, if has it's cause crash
@@ -675,15 +710,15 @@
* @param domElement
* @return
*/
- private boolean hasSelectInParenNodes(nsIDOMNode domNode){
- if(domNode==null) {
- return false;
- }else if("select".equalsIgnoreCase(domNode.getNodeName())){ //$NON-NLS-1$
- return true;
- } else {
- return hasSelectInParenNodes(domNode.getParentNode());
- }
- }
+// private boolean hasSelectInParenNodes(nsIDOMNode domNode){
+// if(domNode==null) {
+// return false;
+// }else if("select".equalsIgnoreCase(domNode.getNodeName())){ //$NON-NLS-1$
+// return true;
+// } else {
+// return hasSelectInParenNodes(domNode.getParentNode());
+// }
+// }
}
15 years, 1 month
JBoss Tools SVN: r18339 - in trunk/seam/plugins/org.jboss.tools.seam.ui: src/org/jboss/tools/seam/ui/views and 1 other directory.
by jbosstools-commits@lists.jboss.org
Author: scabanovich
Date: 2009-10-28 11:23:45 -0400 (Wed, 28 Oct 2009)
New Revision: 18339
Modified:
trunk/seam/plugins/org.jboss.tools.seam.ui/plugin.xml
trunk/seam/plugins/org.jboss.tools.seam.ui/src/org/jboss/tools/seam/ui/views/RootContentProvider.java
Log:
https://jira.jboss.org/jira/browse/JBIDE-5090
Modified: trunk/seam/plugins/org.jboss.tools.seam.ui/plugin.xml
===================================================================
--- trunk/seam/plugins/org.jboss.tools.seam.ui/plugin.xml 2009-10-28 14:53:17 UTC (rev 18338)
+++ trunk/seam/plugins/org.jboss.tools.seam.ui/plugin.xml 2009-10-28 15:23:45 UTC (rev 18339)
@@ -204,6 +204,26 @@
<instanceof value="org.jboss.tools.seam.core.ISeamElement" />
</or>
</possibleChildren>
+ <actionProvider
+ class="org.eclipse.ui.internal.navigator.resources.actions.EditActionProvider"
+ id="org.eclipse.ui.navigator.resources.actions.EditActions">
+ <enablement>
+ <or>
+ <adapt type="org.eclipse.core.resources.IFile" />
+ <adapt type="org.eclipse.core.resources.IProject" />
+ </or>
+ </enablement>
+ </actionProvider>
+ <actionProvider
+ class="org.eclipse.ui.internal.navigator.resources.actions.RefactorActionProvider"
+ id="org.eclipse.ui.navigator.resources.actions.RefactorActions">
+ <enablement>
+ <or>
+ <adapt type="org.eclipse.core.resources.IFile" />
+ <adapt type="org.eclipse.core.resources.IProject" />
+ </or>
+ </enablement>
+ </actionProvider>
<actionProvider
class="org.jboss.tools.seam.ui.views.actions.SeamActionProvider"
id="org.jboss.tools.seam.ui.views.actions.SeamActionProvider.root">
@@ -219,6 +239,49 @@
<enablement>
</enablement>
</actionProvider>
+
+ <commonWizard
+ type="new"
+ wizardId="org.eclipse.ui.wizards.new.folder">
+ <enablement>
+ <or>
+ <adapt type="org.eclipse.core.resources.IFile" />
+ <adapt type="org.eclipse.core.resources.IFolder" />
+ <adapt type="org.eclipse.core.resources.IProject" />
+ <adapt type="org.eclipse.core.resources.IWorkspaceRoot" />
+ <instanceof value="org.jboss.tools.seam.core.ISeamElement"/>
+ </or>
+ </enablement>
+ </commonWizard>
+ <commonWizard
+ menuGroupId="org.eclipse.jdt.ui.java"
+ type="new"
+ wizardId="org.eclipse.jdt.ui.wizards.NewClassCreationWizard">
+ <enablement>
+ <or>
+ <instanceof value="org.eclipse.jdt.core.IPackageFragment"/>
+ <instanceof value="org.eclipse.jdt.core.IPackageFragmentRoot"/>
+ <instanceof value="org.eclipse.jdt.core.ICompilationUnit"/>
+ <adapt type="org.eclipse.core.resources.IProject">
+ <test property="org.eclipse.core.resources.projectNature" value="org.eclipse.jdt.core.javanature"/>
+ </adapt>
+ </or>
+ </enablement>
+ </commonWizard>
+
+ <actionProvider
+ class="org.eclipse.ui.internal.navigator.resources.actions.NewActionProvider"
+ id="org.eclipse.ui.navigator.resources.NewActions">
+ <enablement>
+ <or>
+ <adapt type="org.eclipse.core.resources.IResource" />
+ <adapt type="java.util.Collection">
+ <count value="0" />
+ </adapt>
+ </or>
+ </enablement>
+ </actionProvider>
+
</navigatorContent>
<commonFilter
Modified: trunk/seam/plugins/org.jboss.tools.seam.ui/src/org/jboss/tools/seam/ui/views/RootContentProvider.java
===================================================================
--- trunk/seam/plugins/org.jboss.tools.seam.ui/src/org/jboss/tools/seam/ui/views/RootContentProvider.java 2009-10-28 14:53:17 UTC (rev 18338)
+++ trunk/seam/plugins/org.jboss.tools.seam.ui/src/org/jboss/tools/seam/ui/views/RootContentProvider.java 2009-10-28 15:23:45 UTC (rev 18339)
@@ -40,7 +40,7 @@
if(parentElement instanceof IWorkspaceRoot) {
IWorkspaceRoot root = (IWorkspaceRoot)parentElement;
IProject[] ps = root.getProjects();
- List<ISeamProject> children = new ArrayList<ISeamProject>();
+ List<IProject> children = new ArrayList<IProject>();
for (int i = 0; i < ps.length; i++) {
if(!isGoodProject(ps[i])) continue;
ISeamProject p = SeamCorePlugin.getSeamProject(ps[i], false);
@@ -49,10 +49,17 @@
processed.add(p);
p.addSeamProjectListener(this);
}
- children.add(p);
+ children.add(p.getProject());
}
}
- return children.toArray(new ISeamProject[0]);
+ return children.toArray(new IProject[0]);
+ } else if(parentElement instanceof IProject) {
+ ISeamProject p = SeamCorePlugin.getSeamProject((IProject)parentElement, false);
+ if(p != null) {
+ return super.getChildren(p);
+ } else {
+ return new Object[0];
+ }
} else {
return super.getChildren(parentElement);
}
15 years, 1 month
JBoss Tools SVN: r18338 - in trunk/common/plugins/org.jboss.tools.common.model.ui/src/org/jboss/tools/common: model/ui/action and 1 other directories.
by jbosstools-commits@lists.jboss.org
Author: scabanovich
Date: 2009-10-28 10:53:17 -0400 (Wed, 28 Oct 2009)
New Revision: 18338
Modified:
trunk/common/plugins/org.jboss.tools.common.model.ui/src/org/jboss/tools/common/editor/XModelObjectTreeViewComponent.java
trunk/common/plugins/org.jboss.tools.common.model.ui/src/org/jboss/tools/common/model/ui/action/ModelContributionManager.java
trunk/common/plugins/org.jboss.tools.common.model.ui/src/org/jboss/tools/common/model/ui/views/navigator/ModelNavigatorActionGroup.java
trunk/common/plugins/org.jboss.tools.common.model.ui/src/org/jboss/tools/common/model/ui/views/navigator/NavigatorViewPart.java
Log:
https://jira.jboss.org/jira/browse/JBIDE-5041
Menu on project node is fixed, it was incorrect after previous commits
Modified: trunk/common/plugins/org.jboss.tools.common.model.ui/src/org/jboss/tools/common/editor/XModelObjectTreeViewComponent.java
===================================================================
--- trunk/common/plugins/org.jboss.tools.common.model.ui/src/org/jboss/tools/common/editor/XModelObjectTreeViewComponent.java 2009-10-28 09:37:30 UTC (rev 18337)
+++ trunk/common/plugins/org.jboss.tools.common.model.ui/src/org/jboss/tools/common/editor/XModelObjectTreeViewComponent.java 2009-10-28 14:53:17 UTC (rev 18338)
@@ -113,7 +113,7 @@
}
protected void initContextMenu() {
- final ModelContributionManager menuMgr = new ModelContributionManager(null) {
+ final ModelContributionManager menuMgr = new ModelContributionManager(null, menu) {
public XActionList getActionList(XModelObject o) {
if(o.getFileType() != XModelObject.FILE) return super.getActionList(o);
String ent = o.getModelEntity().getName() + "_EditorActionList"; //$NON-NLS-1$
Modified: trunk/common/plugins/org.jboss.tools.common.model.ui/src/org/jboss/tools/common/model/ui/action/ModelContributionManager.java
===================================================================
--- trunk/common/plugins/org.jboss.tools.common.model.ui/src/org/jboss/tools/common/model/ui/action/ModelContributionManager.java 2009-10-28 09:37:30 UTC (rev 18337)
+++ trunk/common/plugins/org.jboss.tools.common.model.ui/src/org/jboss/tools/common/model/ui/action/ModelContributionManager.java 2009-10-28 14:53:17 UTC (rev 18338)
@@ -23,10 +23,13 @@
ActionContext context;
ISelection selection;
Shell shell;
+
+ XMenuInvoker invoker;
- public ModelContributionManager(Shell shell) {
+ public ModelContributionManager(Shell shell, XMenuInvoker invoker) {
super("JBoss Tools");
this.shell = shell;
+ this.invoker = invoker;
}
public void setContext(ActionContext context) {
@@ -56,6 +59,7 @@
}
public XActionList getActionList(XModelObject o) {
+ if(invoker != null) return invoker.getActionList(o);
return o.getModelEntity().getActionList();
}
@@ -67,7 +71,7 @@
ArrayList<XModelObject> l = new ArrayList<XModelObject>();
while(it.hasNext()) {
IAdaptable a = (IAdaptable)it.next();
- XModelObject o = (XModelObject)a.getAdapter(XModelObject.class);
+ XModelObject o = a instanceof XModelObject ? (XModelObject)a : (XModelObject)a.getAdapter(XModelObject.class);
if(o != null) l.add(o);
}
return l.toArray(new XModelObject[0]);
Modified: trunk/common/plugins/org.jboss.tools.common.model.ui/src/org/jboss/tools/common/model/ui/views/navigator/ModelNavigatorActionGroup.java
===================================================================
--- trunk/common/plugins/org.jboss.tools.common.model.ui/src/org/jboss/tools/common/model/ui/views/navigator/ModelNavigatorActionGroup.java 2009-10-28 09:37:30 UTC (rev 18337)
+++ trunk/common/plugins/org.jboss.tools.common.model.ui/src/org/jboss/tools/common/model/ui/views/navigator/ModelNavigatorActionGroup.java 2009-10-28 14:53:17 UTC (rev 18338)
@@ -59,7 +59,7 @@
Shell shell = navigator.getSite().getShell();
if(activateModelContribution) {
- mcm = new ModelContributionManager(shell);
+ mcm = new ModelContributionManager(shell, null);
}
addBookmarkAction = new AddBookmarkAction(shell);
Modified: trunk/common/plugins/org.jboss.tools.common.model.ui/src/org/jboss/tools/common/model/ui/views/navigator/NavigatorViewPart.java
===================================================================
--- trunk/common/plugins/org.jboss.tools.common.model.ui/src/org/jboss/tools/common/model/ui/views/navigator/NavigatorViewPart.java 2009-10-28 09:37:30 UTC (rev 18337)
+++ trunk/common/plugins/org.jboss.tools.common.model.ui/src/org/jboss/tools/common/model/ui/views/navigator/NavigatorViewPart.java 2009-10-28 14:53:17 UTC (rev 18338)
@@ -479,7 +479,7 @@
TreeViewerMenuInvoker listener;
protected void initContextMenu() {
- menuMgr = new ModelContributionManager(getSite().getShell());
+ menuMgr = new ModelContributionManager(getSite().getShell(), listener);
menuMgr.setRemoveAllWhenShown(true);
menuMgr.addMenuListener(new IMenuListener() {
public void menuAboutToShow(IMenuManager manager) {
15 years, 1 month
JBoss Tools SVN: r18337 - trunk/bpel/plugins.
by jbosstools-commits@lists.jboss.org
Author: Grid.Qian
Date: 2009-10-28 05:37:30 -0400 (Wed, 28 Oct 2009)
New Revision: 18337
Removed:
trunk/bpel/plugins/org.eclipse.bpel.apache.ode.runtime/
trunk/bpel/plugins/org.eclipse.bpel.runtimes/
trunk/bpel/plugins/org.jboss.tools.bpel.as.integration/
Log:
delete the unused plugins from trunk/bpel/plugins
15 years, 1 month
JBoss Tools SVN: r18336 - in trunk/smooks: plugins/org.jboss.tools.smooks.ui/src/org/jboss/tools/smooks/configuration/editors/edi and 6 other directories.
by jbosstools-commits@lists.jboss.org
Author: DartPeng
Date: 2009-10-28 05:35:03 -0400 (Wed, 28 Oct 2009)
New Revision: 18336
Modified:
trunk/smooks/plugins/org.jboss.tools.smooks.ui/META-INF/MANIFEST.MF
trunk/smooks/plugins/org.jboss.tools.smooks.ui/src/org/jboss/tools/smooks/configuration/editors/edi/EDIDataParser.java
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/SmooksUIUtils.java
trunk/smooks/plugins/org.jboss.tools.smooks.ui/src/org/jboss/tools/smooks/configuration/validate/ClassFieldEditorValidator.java
trunk/smooks/plugins/org.jboss.tools.smooks.ui/src/org/jboss/tools/smooks/configuration/validate/SelectorValidator.java
trunk/smooks/plugins/org.jboss.tools.smooks.ui/src/org/jboss/tools/smooks/configuration/validate/SmooksModelValidator.java
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/gef/tree/figures/GraphAnimation.java
trunk/smooks/plugins/org.jboss.tools.smooks.ui/src/org/jboss/tools/smooks/graphical/actions/AutoLayoutAction.java
trunk/smooks/tests/org.jboss.tools.smooks.core.test/src/org/jboss/tools/smooks/test/openeditor/AbstractSmooksEditorTestcase.java
Log:
JBIDE-4217
Add a test case to open the Smooks config file automatically
Modified: trunk/smooks/plugins/org.jboss.tools.smooks.ui/META-INF/MANIFEST.MF
===================================================================
--- trunk/smooks/plugins/org.jboss.tools.smooks.ui/META-INF/MANIFEST.MF 2009-10-28 09:32:04 UTC (rev 18335)
+++ trunk/smooks/plugins/org.jboss.tools.smooks.ui/META-INF/MANIFEST.MF 2009-10-28 09:35:03 UTC (rev 18336)
@@ -38,9 +38,14 @@
Bundle-Vendor: %providerName
Bundle-ClassPath: libs/dom4j-1.6.1.jar,
.
-Export-Package: org.jboss.tools.smooks.configuration.editors,
+Export-Package: org.jboss.tools.smooks.configuration,
+ org.jboss.tools.smooks.configuration.editors,
org.jboss.tools.smooks.configuration.editors.csv,
org.jboss.tools.smooks.configuration.editors.edi,
org.jboss.tools.smooks.configuration.editors.javabean,
org.jboss.tools.smooks.configuration.editors.uitls,
- org.jboss.tools.smooks.configuration.editors.xml
+ org.jboss.tools.smooks.configuration.editors.xml,
+ org.jboss.tools.smooks.configuration.editors_10,
+ org.jboss.tools.smooks.edimap.editor,
+ org.jboss.tools.smooks.editor,
+ org.jboss.tools.smooks.graphical.editors
Modified: trunk/smooks/plugins/org.jboss.tools.smooks.ui/src/org/jboss/tools/smooks/configuration/editors/edi/EDIDataParser.java
===================================================================
--- trunk/smooks/plugins/org.jboss.tools.smooks.ui/src/org/jboss/tools/smooks/configuration/editors/edi/EDIDataParser.java 2009-10-28 09:32:04 UTC (rev 18335)
+++ trunk/smooks/plugins/org.jboss.tools.smooks.ui/src/org/jboss/tools/smooks/configuration/editors/edi/EDIDataParser.java 2009-10-28 09:35:03 UTC (rev 18336)
@@ -29,6 +29,7 @@
import org.eclipse.core.resources.IProject;
import org.eclipse.core.resources.IResource;
import org.eclipse.core.resources.ResourcesPlugin;
+import org.eclipse.core.runtime.FileLocator;
import org.eclipse.core.runtime.Platform;
import org.eclipse.emf.ecore.EObject;
import org.eclipse.ui.ide.IDE;
@@ -225,6 +226,7 @@
URL ur = bundle.getEntry("/src" + mappingModel);
if (ur != null) {
try {
+ ur = FileLocator.resolve(ur);
modelPath = ur.toURI().toString();
} catch (URISyntaxException e) {
e.printStackTrace();
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-10-28 09:32:04 UTC (rev 18335)
+++ trunk/smooks/plugins/org.jboss.tools.smooks.ui/src/org/jboss/tools/smooks/configuration/editors/uitls/ProjectClassLoader.java 2009-10-28 09:35:03 UTC (rev 18336)
@@ -40,6 +40,9 @@
private static URL[] getURLSFromProject(IJavaProject project,
URL[] extraUrls, boolean cludeRequiredProject)
throws JavaModelException {
+ if(project == null || !project.exists()){
+ return new URL[]{};
+ }
List<URL> list = new ArrayList<URL>();
if (null != extraUrls) {
for (int i = 0; i < extraUrls.length; i++) {
Modified: trunk/smooks/plugins/org.jboss.tools.smooks.ui/src/org/jboss/tools/smooks/configuration/editors/uitls/SmooksUIUtils.java
===================================================================
--- trunk/smooks/plugins/org.jboss.tools.smooks.ui/src/org/jboss/tools/smooks/configuration/editors/uitls/SmooksUIUtils.java 2009-10-28 09:32:04 UTC (rev 18335)
+++ trunk/smooks/plugins/org.jboss.tools.smooks.ui/src/org/jboss/tools/smooks/configuration/editors/uitls/SmooksUIUtils.java 2009-10-28 09:35:03 UTC (rev 18336)
@@ -32,7 +32,10 @@
import org.eclipse.core.runtime.CoreException;
import org.eclipse.core.runtime.IPath;
import org.eclipse.core.runtime.Path;
+import org.eclipse.core.runtime.Platform;
import org.eclipse.core.runtime.Status;
+import org.eclipse.core.runtime.content.IContentType;
+import org.eclipse.core.runtime.content.IContentTypeManager;
import org.eclipse.emf.common.command.Command;
import org.eclipse.emf.common.util.EMap;
import org.eclipse.emf.common.util.URI;
@@ -1004,16 +1007,16 @@
"Browse", new IFieldDialog() {
public Object open(Shell shell) {
SelectorCreationDialog dialog = new SelectorCreationDialog(shell, extType, currentEditorPart);
- try{
- if (dialog.open() == Dialog.OK) {
- Object currentSelection = dialog.getCurrentSelection();
- SelectorAttributes sa = dialog.getSelectorAttributes();
- if (currentSelection instanceof IXMLStructuredObject) {
- String s = SmooksUIUtils.generatePath((IXMLStructuredObject) currentSelection, sa);
- return s;
+ try {
+ if (dialog.open() == Dialog.OK) {
+ Object currentSelection = dialog.getCurrentSelection();
+ SelectorAttributes sa = dialog.getSelectorAttributes();
+ if (currentSelection instanceof IXMLStructuredObject) {
+ String s = SmooksUIUtils.generatePath((IXMLStructuredObject) currentSelection, sa);
+ return s;
+ }
}
- }
- }catch(Exception e){
+ } catch (Exception e) {
e.printStackTrace();
}
return null;
@@ -2444,8 +2447,8 @@
return false;
}
- public static List<InputType> recordInputDataInfomation(EditingDomain domain, InputType input, SmooksGraphicsExtType extType,
- String type, String path, Properties properties) {
+ public static List<InputType> recordInputDataInfomation(EditingDomain domain, InputType input,
+ SmooksGraphicsExtType extType, String type, String path, Properties properties) {
List<InputType> inputTypeList = new ArrayList<InputType>();
if (type != null && path != null && extType != null && domain != null) {
String[] values = path.split(";");
@@ -2498,7 +2501,7 @@
// SmooksConfigurationActivator.getDefault().log(e);
// }
}
-
+
return inputTypeList;
}
@@ -2911,4 +2914,23 @@
}
return inputType;
}
+
+ public static boolean isSmooksFile(IFile file) {
+ if(file.getName().indexOf(".xml") != -1) return true;
+ IContentTypeManager contentTypeManager = Platform.getContentTypeManager();
+ IContentType[] types = contentTypeManager.findContentTypesFor(file.getName());
+ for (IContentType contentType : types) {
+ if (contentType.equals(contentTypeManager.getContentType("org.jboss.tools.smooks.ui.smooks.contentType"))) {
+ return true;
+ }
+ if (contentType.equals(contentTypeManager.getContentType("org.jboss.tools.smooks.ui.edimap.contentType"))) {
+ return true;
+ }
+ if (contentType
+ .equals(contentTypeManager.getContentType("org.jboss.tools.smooks.ui.smooks1_0.contentType"))) {
+ return true;
+ }
+ }
+ return false;
+ }
}
Modified: trunk/smooks/plugins/org.jboss.tools.smooks.ui/src/org/jboss/tools/smooks/configuration/validate/ClassFieldEditorValidator.java
===================================================================
--- trunk/smooks/plugins/org.jboss.tools.smooks.ui/src/org/jboss/tools/smooks/configuration/validate/ClassFieldEditorValidator.java 2009-10-28 09:32:04 UTC (rev 18335)
+++ trunk/smooks/plugins/org.jboss.tools.smooks.ui/src/org/jboss/tools/smooks/configuration/validate/ClassFieldEditorValidator.java 2009-10-28 09:35:03 UTC (rev 18336)
@@ -52,6 +52,7 @@
return classLoader;
}
IResource resource = SmooksUIUtils.getResource(obj);
+ if(resource == null) return null;
try {
classLoader = new ProjectClassLoader(JavaCore.create(resource.getProject()));
} catch (JavaModelException e) {
Modified: trunk/smooks/plugins/org.jboss.tools.smooks.ui/src/org/jboss/tools/smooks/configuration/validate/SelectorValidator.java
===================================================================
--- trunk/smooks/plugins/org.jboss.tools.smooks.ui/src/org/jboss/tools/smooks/configuration/validate/SelectorValidator.java 2009-10-28 09:32:04 UTC (rev 18335)
+++ trunk/smooks/plugins/org.jboss.tools.smooks.ui/src/org/jboss/tools/smooks/configuration/validate/SelectorValidator.java 2009-10-28 09:35:03 UTC (rev 18336)
@@ -134,6 +134,8 @@
if (r instanceof IFile) {
file = (IFile) r;
}
+ if (file == null)
+ return;
final FileEditorInput input = new FileEditorInput(file);
final SmooksResourceListType finalList = listType;
Display dis = SmooksConfigurationActivator.getDefault().getWorkbench().getDisplay();
Modified: trunk/smooks/plugins/org.jboss.tools.smooks.ui/src/org/jboss/tools/smooks/configuration/validate/SmooksModelValidator.java
===================================================================
--- trunk/smooks/plugins/org.jboss.tools.smooks.ui/src/org/jboss/tools/smooks/configuration/validate/SmooksModelValidator.java 2009-10-28 09:32:04 UTC (rev 18335)
+++ trunk/smooks/plugins/org.jboss.tools.smooks.ui/src/org/jboss/tools/smooks/configuration/validate/SmooksModelValidator.java 2009-10-28 09:35:03 UTC (rev 18336)
@@ -164,16 +164,20 @@
List<Diagnostic> list = new ArrayList<Diagnostic>();
list.add(diagnostic);
- for (Iterator<?> iterator = this.validatorList.iterator(); iterator.hasNext();) {
- ISmooksValidator validator = (ISmooksValidator) iterator.next();
- validator.initValidator(selectedObjects, domain);
- List<Diagnostic> d = validator.validate(selectedObjects, domain);
- if (d != null) {
- for (Iterator<?> iterator2 = d.iterator(); iterator2.hasNext();) {
- Diagnostic diagnostic2 = (Diagnostic) iterator2.next();
- ((BasicDiagnostic) diagnostic).add(diagnostic2);
+ try {
+ for (Iterator<?> iterator = this.validatorList.iterator(); iterator.hasNext();) {
+ ISmooksValidator validator = (ISmooksValidator) iterator.next();
+ validator.initValidator(selectedObjects, domain);
+ List<Diagnostic> d = validator.validate(selectedObjects, domain);
+ if (d != null) {
+ for (Iterator<?> iterator2 = d.iterator(); iterator2.hasNext();) {
+ Diagnostic diagnostic2 = (Diagnostic) iterator2.next();
+ ((BasicDiagnostic) diagnostic).add(diagnostic2);
+ }
}
}
+ } catch (Exception e) {
+
}
return list;
}
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-10-28 09:32:04 UTC (rev 18335)
+++ trunk/smooks/plugins/org.jboss.tools.smooks.ui/src/org/jboss/tools/smooks/editor/AbstractSmooksFormEditor.java 2009-10-28 09:35:03 UTC (rev 18336)
@@ -3,6 +3,7 @@
import java.io.ByteArrayInputStream;
import java.io.ByteArrayOutputStream;
import java.io.IOException;
+import java.net.MalformedURLException;
import java.util.ArrayList;
import java.util.Collection;
import java.util.Collections;
@@ -48,6 +49,7 @@
import org.eclipse.ui.IFileEditorInput;
import org.eclipse.ui.PartInitException;
import org.eclipse.ui.forms.editor.FormEditor;
+import org.eclipse.ui.ide.FileStoreEditorInput;
import org.eclipse.ui.texteditor.IDocumentProvider;
import org.eclipse.wst.sse.ui.StructuredTextEditor;
import org.jboss.tools.smooks.configuration.SmooksConfigurationActivator;
@@ -484,9 +486,33 @@
@Override
public void init(IEditorSite site, IEditorInput input) throws PartInitException {
- IFile file = ((IFileEditorInput) input).getFile();
- Resource smooksResource = new SmooksResourceFactoryImpl().createResource(URI.createPlatformResourceURI(file
- .getFullPath().toPortableString(), false));
+ String filePath = null;
+ String partName = "smooks editor";
+ IFile file = null;
+ if (input instanceof FileStoreEditorInput) {
+ try {
+ filePath = ((FileStoreEditorInput) input).getURI().toURL().getFile();
+ } catch (MalformedURLException e) {
+ throw new PartInitException("Transform URL to URL error.", e);
+ }
+ }
+ if (input instanceof IFileEditorInput) {
+ file = ((IFileEditorInput) input).getFile();
+ filePath = file.getFullPath().toPortableString();
+ partName = file.getName();
+ }
+
+ if (filePath == null)
+ throw new PartInitException("Can't get the input file");
+
+ Resource smooksResource = null;
+
+ if (file != null) {
+ smooksResource = new SmooksResourceFactoryImpl().createResource(URI.createPlatformResourceURI(filePath,
+ false));
+ } else {
+ smooksResource = new SmooksResourceFactoryImpl().createResource(URI.createFileURI(filePath));
+ }
try {
smooksResource.load(Collections.emptyMap());
smooksModel = smooksResource.getContents().get(0);
@@ -504,7 +530,7 @@
// smooks config file
// create new one for it
- setPartName(file.getName());
+ setPartName(partName);
smooksGraphicsExt = createSmooksGraphcsExtType(smooksModel);
Modified: trunk/smooks/plugins/org.jboss.tools.smooks.ui/src/org/jboss/tools/smooks/gef/tree/figures/GraphAnimation.java
===================================================================
--- trunk/smooks/plugins/org.jboss.tools.smooks.ui/src/org/jboss/tools/smooks/gef/tree/figures/GraphAnimation.java 2009-10-28 09:32:04 UTC (rev 18335)
+++ trunk/smooks/plugins/org.jboss.tools.smooks.ui/src/org/jboss/tools/smooks/gef/tree/figures/GraphAnimation.java 2009-10-28 09:35:03 UTC (rev 18336)
@@ -122,7 +122,7 @@
}
try {
- Thread.sleep(10);
+ Thread.sleep(5);
Thread.yield();
} catch (InterruptedException e) {
e.printStackTrace();
Modified: trunk/smooks/plugins/org.jboss.tools.smooks.ui/src/org/jboss/tools/smooks/graphical/actions/AutoLayoutAction.java
===================================================================
--- trunk/smooks/plugins/org.jboss.tools.smooks.ui/src/org/jboss/tools/smooks/graphical/actions/AutoLayoutAction.java 2009-10-28 09:32:04 UTC (rev 18335)
+++ trunk/smooks/plugins/org.jboss.tools.smooks.ui/src/org/jboss/tools/smooks/graphical/actions/AutoLayoutAction.java 2009-10-28 09:35:03 UTC (rev 18336)
@@ -10,16 +10,25 @@
******************************************************************************/
package org.jboss.tools.smooks.graphical.actions;
+import java.io.File;
+
+import org.eclipse.core.resources.IContainer;
+import org.eclipse.core.resources.IFile;
+import org.eclipse.core.resources.IFolder;
+import org.eclipse.core.resources.IProject;
+import org.eclipse.core.resources.ResourcesPlugin;
+import org.eclipse.core.runtime.Path;
import org.eclipse.gef.ui.actions.SelectionAction;
import org.eclipse.ui.IWorkbenchPart;
+import org.jboss.tools.smooks.configuration.editors.uitls.SmooksUIUtils;
import org.jboss.tools.smooks.graphical.editors.SmooksGraphicalEditorPart;
import org.jboss.tools.smooks.graphical.editors.editparts.IAutoLayout;
/**
* @author Dart
- *
+ *
*/
-public class AutoLayoutAction extends SelectionAction{
+public class AutoLayoutAction extends SelectionAction {
public static final String ID = "_smooks_auto_layout";
@@ -30,9 +39,10 @@
public AutoLayoutAction(IWorkbenchPart part) {
super(part);
}
-
- /* (non-Javadoc)
+ /*
+ * (non-Javadoc)
+ *
* @see org.eclipse.gef.ui.actions.WorkbenchPartAction#init()
*/
@Override
@@ -41,28 +51,78 @@
this.setText("Auto Layout");
}
- /* (non-Javadoc)
+ /*
+ * (non-Javadoc)
+ *
* @see org.eclipse.gef.ui.actions.WorkbenchPartAction#calculateEnabled()
*/
@Override
protected boolean calculateEnabled() {
IWorkbenchPart part = this.getWorkbenchPart();
- if(part instanceof SmooksGraphicalEditorPart){
- IAutoLayout layout = ((SmooksGraphicalEditorPart)part).getAutoLayout();
+ if (part instanceof SmooksGraphicalEditorPart) {
+ IAutoLayout layout = ((SmooksGraphicalEditorPart) part).getAutoLayout();
return (layout != null);
}
return false;
}
- /* (non-Javadoc)
+ /*
+ * (non-Javadoc)
+ *
* @see org.eclipse.jface.action.Action#run()
*/
@Override
public void run() {
+// if (false) {
+// IProject project = ResourcesPlugin.getWorkspace().getRoot().getProject("test");
+// File file = project.getLocation().toFile();
+// File[] children = file.listFiles();
+// for (int i = 0; i < children.length; i++) {
+// File child = children[i];
+// copySmooksFile(child, project);
+// }
+// }
IWorkbenchPart part = this.getWorkbenchPart();
- if(part instanceof SmooksGraphicalEditorPart){
- ((SmooksGraphicalEditorPart)part).autoLayout(true);
+ if (part instanceof SmooksGraphicalEditorPart) {
+ ((SmooksGraphicalEditorPart) part).autoLayout(true);
}
}
-
+
+ /**
+ * @deprecated
+ * @param file
+ * @param parent
+ */
+ private void copySmooksFile(File file, IContainer parent) {
+ if (file.exists()) {
+ if (file.isFile()) {
+ IFile ifile = parent.getFile(new Path(file.getName()));
+ if (ifile.exists() && SmooksUIUtils.isSmooksFile(ifile)) {
+ IProject project = ResourcesPlugin.getWorkspace().getRoot().getProject("validation-test");
+ IFolder folder = project.getFolder("src");
+ IFile newFile = folder.getFile(parent.getName()+ "_" + ifile.getName());
+ try {
+ if (newFile.exists()) {
+ newFile.setContents(ifile.getContents(), true, false, null);
+ } else {
+ newFile.create(ifile.getContents(), true, null);
+ }
+ } catch (Exception e) {
+ e.printStackTrace();
+ }
+ }
+ }
+ if (file.isDirectory()) {
+ IContainer container = parent.getFolder(new Path(file.getName()));
+ if (container.exists()) {
+ File[] files = file.listFiles();
+ for (int i = 0; i < files.length; i++) {
+ File file2 = files[i];
+ copySmooksFile(file2, container);
+ }
+ }
+ }
+ }
+ }
+
}
Modified: trunk/smooks/tests/org.jboss.tools.smooks.core.test/src/org/jboss/tools/smooks/test/openeditor/AbstractSmooksEditorTestcase.java
===================================================================
--- trunk/smooks/tests/org.jboss.tools.smooks.core.test/src/org/jboss/tools/smooks/test/openeditor/AbstractSmooksEditorTestcase.java 2009-10-28 09:32:04 UTC (rev 18335)
+++ trunk/smooks/tests/org.jboss.tools.smooks.core.test/src/org/jboss/tools/smooks/test/openeditor/AbstractSmooksEditorTestcase.java 2009-10-28 09:35:03 UTC (rev 18336)
@@ -37,6 +37,10 @@
protected List<IEditorPart> editorList = new ArrayList<IEditorPart>();
protected IProject testProject = null;
+
+ public void test(){
+
+ }
private void setUpEnvironment() throws CoreException {
if (getTestProjectName() != null) {
15 years, 1 month
JBoss Tools SVN: r18334 - branches/jbosstools-3.1.0.M4/bpel/plugins.
by jbosstools-commits@lists.jboss.org
Author: Grid.Qian
Date: 2009-10-28 05:30:57 -0400 (Wed, 28 Oct 2009)
New Revision: 18334
Removed:
branches/jbosstools-3.1.0.M4/bpel/plugins/org.eclipse.bpel.apache.ode.runtime/
branches/jbosstools-3.1.0.M4/bpel/plugins/org.eclipse.bpel.runtimes/
Log:
remove the eclipse and ode runtime plugins
15 years, 1 month
JBoss Tools SVN: r18333 - in trunk/smooks/tests/org.jboss.tools.smooks.core.test: META-INF and 10 other directories.
by jbosstools-commits@lists.jboss.org
Author: DartPeng
Date: 2009-10-28 04:39:20 -0400 (Wed, 28 Oct 2009)
New Revision: 18333
Added:
trunk/smooks/tests/org.jboss.tools.smooks.core.test/projects/
trunk/smooks/tests/org.jboss.tools.smooks.core.test/projects/smooks-all-config-files/
trunk/smooks/tests/org.jboss.tools.smooks.core.test/projects/smooks-all-config-files/.classpath
trunk/smooks/tests/org.jboss.tools.smooks.core.test/projects/smooks-all-config-files/.project
trunk/smooks/tests/org.jboss.tools.smooks.core.test/projects/smooks-all-config-files/.settings/
trunk/smooks/tests/org.jboss.tools.smooks.core.test/projects/smooks-all-config-files/.settings/org.eclipse.jdt.core.prefs
trunk/smooks/tests/org.jboss.tools.smooks.core.test/projects/smooks-all-config-files/bin/
trunk/smooks/tests/org.jboss.tools.smooks.core.test/projects/smooks-all-config-files/bin/files/
trunk/smooks/tests/org.jboss.tools.smooks.core.test/projects/smooks-all-config-files/smooks-config-files/
trunk/smooks/tests/org.jboss.tools.smooks.core.test/projects/smooks-all-config-files/smooks-config-files/WEB-INF_smooks-config.xml
trunk/smooks/tests/org.jboss.tools.smooks.core.test/projects/smooks-all-config-files/smooks-config-files/css_smooks-config.xml
trunk/smooks/tests/org.jboss.tools.smooks.core.test/projects/smooks-all-config-files/smooks-config-files/csv-to-java_smooks-config.xml
trunk/smooks/tests/org.jboss.tools.smooks.core.test/projects/smooks-all-config-files/smooks-config-files/csv-to-xml-2_smooks-config.xml
trunk/smooks/tests/org.jboss.tools.smooks.core.test/projects/smooks-all-config-files/smooks-config-files/csv-to-xml_smooks-config.xml
trunk/smooks/tests/org.jboss.tools.smooks.core.test/projects/smooks-all-config-files/smooks-config-files/dao-router_input-message-dao.xml
trunk/smooks/tests/org.jboss.tools.smooks.core.test/projects/smooks-all-config-files/smooks-config-files/db-extract-transform-load_edi-to-sax-order-mapping.xml
trunk/smooks/tests/org.jboss.tools.smooks.core.test/projects/smooks-all-config-files/smooks-config-files/edi-to-java_smooks-config.xml
trunk/smooks/tests/org.jboss.tools.smooks.core.test/projects/smooks-all-config-files/smooks-config-files/edi-to-xml_smooks-config.xml
trunk/smooks/tests/org.jboss.tools.smooks.core.test/projects/smooks-all-config-files/smooks-config-files/edi-with-import-to-java_smooks-config.xml
trunk/smooks/tests/org.jboss.tools.smooks.core.test/projects/smooks-all-config-files/smooks-config-files/freemarker-huge-transform_smooks-config.xml
trunk/smooks/tests/org.jboss.tools.smooks.core.test/projects/smooks-all-config-files/smooks-config-files/groovy_smooks-config.xml
trunk/smooks/tests/org.jboss.tools.smooks.core.test/projects/smooks-all-config-files/smooks-config-files/java-basic_smooks-config.xml
trunk/smooks/tests/org.jboss.tools.smooks.core.test/projects/smooks-all-config-files/smooks-config-files/java-to-java_smooks-config.xml
trunk/smooks/tests/org.jboss.tools.smooks.core.test/projects/smooks-all-config-files/smooks-config-files/java-to-xml_smooks-config.xml
trunk/smooks/tests/org.jboss.tools.smooks.core.test/projects/smooks-all-config-files/smooks-config-files/json-to-java_smooks-config.xml
trunk/smooks/tests/org.jboss.tools.smooks.core.test/projects/smooks-all-config-files/smooks-config-files/model-driven-basic-virtual_smooks-config.xml
trunk/smooks/tests/org.jboss.tools.smooks.core.test/projects/smooks-all-config-files/smooks-config-files/model-driven-basic_smooks-config.xml
trunk/smooks/tests/org.jboss.tools.smooks.core.test/projects/smooks-all-config-files/smooks-config-files/profiling_smooks-config.xml
trunk/smooks/tests/org.jboss.tools.smooks.core.test/projects/smooks-all-config-files/smooks-config-files/sj-testimonial_edi-mapping.xml
trunk/smooks/tests/org.jboss.tools.smooks.core.test/projects/smooks-all-config-files/smooks-config-files/sj-testimonial_smooks-config-sax.xml
trunk/smooks/tests/org.jboss.tools.smooks.core.test/projects/smooks-all-config-files/smooks-config-files/sj-testimonial_smooks-config.xml
trunk/smooks/tests/org.jboss.tools.smooks.core.test/projects/smooks-all-config-files/smooks-config-files/smooks-configs_bindings.xml
trunk/smooks/tests/org.jboss.tools.smooks.core.test/projects/smooks-all-config-files/smooks-config-files/smooks-configs_datasources.xml
trunk/smooks/tests/org.jboss.tools.smooks.core.test/projects/smooks-all-config-files/smooks-config-files/smooks-configs_edi-orders-parser.xml
trunk/smooks/tests/org.jboss.tools.smooks.core.test/projects/smooks-all-config-files/smooks-config-files/smooks-configs_smooks-config.xml
trunk/smooks/tests/org.jboss.tools.smooks.core.test/projects/smooks-all-config-files/smooks-config-files/smooks-configs_smooks-dao-config.xml
trunk/smooks/tests/org.jboss.tools.smooks.core.test/projects/smooks-all-config-files/smooks-config-files/smooks-configs_smooks-jpa-config.xml
trunk/smooks/tests/org.jboss.tools.smooks.core.test/projects/smooks-all-config-files/smooks-config-files/splitter-router_smooks-config.xml
trunk/smooks/tests/org.jboss.tools.smooks.core.test/projects/smooks-all-config-files/smooks-config-files/validation-basic_smooks-config.xml
trunk/smooks/tests/org.jboss.tools.smooks.core.test/projects/smooks-all-config-files/smooks-config-files/xml-to-java-virtual_smooks-config.xml
trunk/smooks/tests/org.jboss.tools.smooks.core.test/projects/smooks-all-config-files/smooks-config-files/xml-to-java_smooks-config.xml
trunk/smooks/tests/org.jboss.tools.smooks.core.test/projects/smooks-all-config-files/smooks-config-files/xslt-basic_smooks-config.xml
trunk/smooks/tests/org.jboss.tools.smooks.core.test/projects/smooks-all-config-files/smooks-config-files/xslt-groovy_smooks-config.xml
trunk/smooks/tests/org.jboss.tools.smooks.core.test/projects/smooks-all-config-files/smooks-config-files/xslt-namespaces_smooks-config.xml
trunk/smooks/tests/org.jboss.tools.smooks.core.test/projects/smooks-all-config-files/src/
trunk/smooks/tests/org.jboss.tools.smooks.core.test/projects/smooks-all-config-files/src/files/
trunk/smooks/tests/org.jboss.tools.smooks.core.test/src/org/jboss/tools/smooks/test/openeditor/
trunk/smooks/tests/org.jboss.tools.smooks.core.test/src/org/jboss/tools/smooks/test/openeditor/AbstractSmooksEditorTestcase.java
trunk/smooks/tests/org.jboss.tools.smooks.core.test/src/org/jboss/tools/smooks/test/openeditor/OpenAllSmooksConfigFileTestCase.java
trunk/smooks/tests/org.jboss.tools.smooks.core.test/src/org/jboss/tools/smooks/test/openeditor/testfiles/
trunk/smooks/tests/org.jboss.tools.smooks.core.test/src/org/jboss/tools/smooks/test/openeditor/testfiles/java-to-java.xml
trunk/smooks/tests/org.jboss.tools.smooks.core.test/src/org/jboss/tools/smooks/test/util/
trunk/smooks/tests/org.jboss.tools.smooks.core.test/src/org/jboss/tools/smooks/test/util/TestUtil.java
Modified:
trunk/smooks/tests/org.jboss.tools.smooks.core.test/META-INF/MANIFEST.MF
Log:
JBIDE-4217
Add a test case to open the Smooks config file automatically
Modified: trunk/smooks/tests/org.jboss.tools.smooks.core.test/META-INF/MANIFEST.MF
===================================================================
--- trunk/smooks/tests/org.jboss.tools.smooks.core.test/META-INF/MANIFEST.MF 2009-10-28 01:26:12 UTC (rev 18332)
+++ trunk/smooks/tests/org.jboss.tools.smooks.core.test/META-INF/MANIFEST.MF 2009-10-28 08:39:20 UTC (rev 18333)
@@ -12,8 +12,14 @@
org.jboss.tools.smooks.ui,
org.jboss.tools.smooks.core,
org.jboss.tools.tests,
- org.jboss.tools.smooks.runtime
-Eclipse-LazyStart: true
+ org.jboss.tools.smooks.runtime,
+ org.eclipse.core.filesystem,
+ org.eclipse.ui.ide,
+ org.eclipse.ui.forms,
+ org.eclipse.jdt,
+ org.eclipse.jdt.core,
+ org.jboss.tools.common.test
+Bundle-ActivationPolicy: lazy
Bundle-ClassPath: lib/dom4j-1.6.1.jar,
.
Bundle-Vendor: %Bundle-Vendor.0
Added: trunk/smooks/tests/org.jboss.tools.smooks.core.test/projects/smooks-all-config-files/.classpath
===================================================================
--- trunk/smooks/tests/org.jboss.tools.smooks.core.test/projects/smooks-all-config-files/.classpath (rev 0)
+++ trunk/smooks/tests/org.jboss.tools.smooks.core.test/projects/smooks-all-config-files/.classpath 2009-10-28 08:39:20 UTC (rev 18333)
@@ -0,0 +1,6 @@
+<?xml version="1.0" encoding="UTF-8"?>
+<classpath>
+ <classpathentry kind="src" path="src"/>
+ <classpathentry kind="con" path="org.eclipse.jdt.launching.JRE_CONTAINER/org.eclipse.jdt.internal.debug.ui.launcher.StandardVMType/J2SE-1.5"/>
+ <classpathentry kind="output" path="bin"/>
+</classpath>
Property changes on: trunk/smooks/tests/org.jboss.tools.smooks.core.test/projects/smooks-all-config-files/.classpath
___________________________________________________________________
Name: svn:mime-type
+ text/plain
Added: trunk/smooks/tests/org.jboss.tools.smooks.core.test/projects/smooks-all-config-files/.project
===================================================================
--- trunk/smooks/tests/org.jboss.tools.smooks.core.test/projects/smooks-all-config-files/.project (rev 0)
+++ trunk/smooks/tests/org.jboss.tools.smooks.core.test/projects/smooks-all-config-files/.project 2009-10-28 08:39:20 UTC (rev 18333)
@@ -0,0 +1,17 @@
+<?xml version="1.0" encoding="UTF-8"?>
+<projectDescription>
+ <name>smooks-all-config-files</name>
+ <comment></comment>
+ <projects>
+ </projects>
+ <buildSpec>
+ <buildCommand>
+ <name>org.eclipse.jdt.core.javabuilder</name>
+ <arguments>
+ </arguments>
+ </buildCommand>
+ </buildSpec>
+ <natures>
+ <nature>org.eclipse.jdt.core.javanature</nature>
+ </natures>
+</projectDescription>
Property changes on: trunk/smooks/tests/org.jboss.tools.smooks.core.test/projects/smooks-all-config-files/.project
___________________________________________________________________
Name: svn:mime-type
+ text/plain
Added: trunk/smooks/tests/org.jboss.tools.smooks.core.test/projects/smooks-all-config-files/.settings/org.eclipse.jdt.core.prefs
===================================================================
--- trunk/smooks/tests/org.jboss.tools.smooks.core.test/projects/smooks-all-config-files/.settings/org.eclipse.jdt.core.prefs (rev 0)
+++ trunk/smooks/tests/org.jboss.tools.smooks.core.test/projects/smooks-all-config-files/.settings/org.eclipse.jdt.core.prefs 2009-10-28 08:39:20 UTC (rev 18333)
@@ -0,0 +1,12 @@
+#Wed Oct 28 15:38:27 CST 2009
+eclipse.preferences.version=1
+org.eclipse.jdt.core.compiler.codegen.inlineJsrBytecode=enabled
+org.eclipse.jdt.core.compiler.codegen.targetPlatform=1.5
+org.eclipse.jdt.core.compiler.codegen.unusedLocal=preserve
+org.eclipse.jdt.core.compiler.compliance=1.5
+org.eclipse.jdt.core.compiler.debug.lineNumber=generate
+org.eclipse.jdt.core.compiler.debug.localVariable=generate
+org.eclipse.jdt.core.compiler.debug.sourceFile=generate
+org.eclipse.jdt.core.compiler.problem.assertIdentifier=error
+org.eclipse.jdt.core.compiler.problem.enumIdentifier=error
+org.eclipse.jdt.core.compiler.source=1.5
Property changes on: trunk/smooks/tests/org.jboss.tools.smooks.core.test/projects/smooks-all-config-files/.settings/org.eclipse.jdt.core.prefs
___________________________________________________________________
Name: svn:mime-type
+ text/plain
Added: trunk/smooks/tests/org.jboss.tools.smooks.core.test/projects/smooks-all-config-files/smooks-config-files/WEB-INF_smooks-config.xml
===================================================================
--- trunk/smooks/tests/org.jboss.tools.smooks.core.test/projects/smooks-all-config-files/smooks-config-files/WEB-INF_smooks-config.xml (rev 0)
+++ trunk/smooks/tests/org.jboss.tools.smooks.core.test/projects/smooks-all-config-files/smooks-config-files/WEB-INF_smooks-config.xml 2009-10-28 08:39:20 UTC (rev 18333)
@@ -0,0 +1,23 @@
+<?xml version="1.0"?>
+<smooks-resource-list xmlns="http://www.milyn.org/xsd/smooks-1.0.xsd">
+
+ <profiles>
+ <profile base-profile="MSIE" sub-profiles="windows,large" />
+ <profile base-profile="Firefox" sub-profiles="windows,large" />
+ </profiles>
+
+ <!-- Will be applied to MS Internet Explorer only... -->
+ <resource-config selector="b" target-profile="MSIE">
+ <resource>org.milyn.cdres.trans.SetAttributeTU</resource>
+ <param name="attributeName">style</param>
+ <param name="attributeValue">color: red</param>
+ </resource-config>
+
+ <!-- Will be applied to all "large" useragents (browsers) i.e.
+ both MSIE and Firefox... -->
+ <resource-config selector="b" target-profile="large">
+ <resource>org.milyn.cdres.trans.RenameElementTU</resource>
+ <param name="replacementElement">i</param>
+ </resource-config>
+
+</smooks-resource-list>
\ No newline at end of file
Property changes on: trunk/smooks/tests/org.jboss.tools.smooks.core.test/projects/smooks-all-config-files/smooks-config-files/WEB-INF_smooks-config.xml
___________________________________________________________________
Name: svn:mime-type
+ text/plain
Added: trunk/smooks/tests/org.jboss.tools.smooks.core.test/projects/smooks-all-config-files/smooks-config-files/css_smooks-config.xml
===================================================================
--- trunk/smooks/tests/org.jboss.tools.smooks.core.test/projects/smooks-all-config-files/smooks-config-files/css_smooks-config.xml (rev 0)
+++ trunk/smooks/tests/org.jboss.tools.smooks.core.test/projects/smooks-all-config-files/smooks-config-files/css_smooks-config.xml 2009-10-28 08:39:20 UTC (rev 18333)
@@ -0,0 +1,18 @@
+<?xml version="1.0"?>
+<smooks-resource-list xmlns="http://www.milyn.org/xsd/smooks-1.0.xsd">
+
+ <!--
+ Gather externally linked CSS info...
+ -->
+ <resource-config selector="link">
+ <resource>org.milyn.css.CSSStyleScraper</resource>
+ </resource-config>
+
+ <!--
+ Gather inlined CSS info...
+ -->
+ <resource-config selector="style">
+ <resource>org.milyn.css.CSSStyleScraper</resource>
+ </resource-config>
+
+</smooks-resource-list>
Property changes on: trunk/smooks/tests/org.jboss.tools.smooks.core.test/projects/smooks-all-config-files/smooks-config-files/css_smooks-config.xml
___________________________________________________________________
Name: svn:mime-type
+ text/plain
Added: trunk/smooks/tests/org.jboss.tools.smooks.core.test/projects/smooks-all-config-files/smooks-config-files/csv-to-java_smooks-config.xml
===================================================================
--- trunk/smooks/tests/org.jboss.tools.smooks.core.test/projects/smooks-all-config-files/smooks-config-files/csv-to-java_smooks-config.xml (rev 0)
+++ trunk/smooks/tests/org.jboss.tools.smooks.core.test/projects/smooks-all-config-files/smooks-config-files/csv-to-java_smooks-config.xml 2009-10-28 08:39:20 UTC (rev 18333)
@@ -0,0 +1,13 @@
+<?xml version="1.0"?>
+<smooks-resource-list xmlns="http://www.milyn.org/xsd/smooks-1.1.xsd"
+ xmlns:csv="http://www.milyn.org/xsd/smooks/csv-1.2.xsd">
+
+ <!--
+ Smooks v1.2 makes binding of CSV records very easy. Here
+ we create a List of Customer objects...
+ -->
+ <csv:reader fields="firstName,lastName,gender,age,country">
+ <csv:listBinding beanId="customerList" class="example.Customer"/>
+ </csv:reader>
+
+</smooks-resource-list>
Property changes on: trunk/smooks/tests/org.jboss.tools.smooks.core.test/projects/smooks-all-config-files/smooks-config-files/csv-to-java_smooks-config.xml
___________________________________________________________________
Name: svn:mime-type
+ text/plain
Added: trunk/smooks/tests/org.jboss.tools.smooks.core.test/projects/smooks-all-config-files/smooks-config-files/csv-to-xml-2_smooks-config.xml
===================================================================
--- trunk/smooks/tests/org.jboss.tools.smooks.core.test/projects/smooks-all-config-files/smooks-config-files/csv-to-xml-2_smooks-config.xml (rev 0)
+++ trunk/smooks/tests/org.jboss.tools.smooks.core.test/projects/smooks-all-config-files/smooks-config-files/csv-to-xml-2_smooks-config.xml 2009-10-28 08:39:20 UTC (rev 18333)
@@ -0,0 +1,33 @@
+<?xml version="1.0"?>
+<smooks-resource-list xmlns="http://www.milyn.org/xsd/smooks-1.1.xsd"
+ xmlns:csv="http://www.milyn.org/xsd/smooks/csv-1.2.xsd"
+ xmlns:ftl="http://www.milyn.org/xsd/smooks/freemarker-1.1.xsd">
+
+ <!-- Use the SAX filter - more memory efficient and handle huge streams. -->
+ <params>
+ <param name="stream.filter.type">SAX</param>
+ </params>
+
+ <!--
+ Configure the CSV Reader to read the message and change it into a stream of SAX events.
+ Also binding each record into a Map so we can use it in a templating operation i.e. to transform each record (below).
+ -->
+ <csv:reader fields="firstname,lastname,gender,age,country" rootElementName="people" recordElementName="person">
+ <csv:singleBinding beanId="person" class="java.util.HashMap"/>
+ </csv:reader>
+
+ <!-- Apply a FreeMarker template to each CSV record, generating a different XML structure based on the gender value... -->
+ <ftl:freemarker applyOnElement="person">
+ <ftl:template><!--
+ <#if person.gender == "Male">
+ <male age="${person.age}"><name><fn>${person.firstname}</fn><ln>${person.lastname}</ln></name><nationality>${person.country}</nationality></male>
+ <#else>
+ <female age="${person.age}"><name><fn>${person.firstname}</fn><ln>${person.lastname}</ln></name><nationality>${person.country}</nationality></female>
+ </#if>-->
+ </ftl:template>
+ <ftl:use>
+ <ftl:inline directive="replace"/>
+ </ftl:use>
+ </ftl:freemarker>
+
+</smooks-resource-list>
Property changes on: trunk/smooks/tests/org.jboss.tools.smooks.core.test/projects/smooks-all-config-files/smooks-config-files/csv-to-xml-2_smooks-config.xml
___________________________________________________________________
Name: svn:mime-type
+ text/plain
Added: trunk/smooks/tests/org.jboss.tools.smooks.core.test/projects/smooks-all-config-files/smooks-config-files/csv-to-xml_smooks-config.xml
===================================================================
--- trunk/smooks/tests/org.jboss.tools.smooks.core.test/projects/smooks-all-config-files/smooks-config-files/csv-to-xml_smooks-config.xml (rev 0)
+++ trunk/smooks/tests/org.jboss.tools.smooks.core.test/projects/smooks-all-config-files/smooks-config-files/csv-to-xml_smooks-config.xml 2009-10-28 08:39:20 UTC (rev 18333)
@@ -0,0 +1,11 @@
+<?xml version="1.0"?>
+<smooks-resource-list
+ xmlns="http://www.milyn.org/xsd/smooks-1.1.xsd"
+ xmlns:csv="http://www.milyn.org/xsd/smooks/csv-1.1.xsd">
+
+ <!--
+ Configure the CSV Reader to read the message and change it into a stream of SAX events.
+ -->
+ <csv:reader fields="firstname,lastname,gender,age,country" />
+
+</smooks-resource-list>
Property changes on: trunk/smooks/tests/org.jboss.tools.smooks.core.test/projects/smooks-all-config-files/smooks-config-files/csv-to-xml_smooks-config.xml
___________________________________________________________________
Name: svn:mime-type
+ text/plain
Added: trunk/smooks/tests/org.jboss.tools.smooks.core.test/projects/smooks-all-config-files/smooks-config-files/dao-router_input-message-dao.xml
===================================================================
--- trunk/smooks/tests/org.jboss.tools.smooks.core.test/projects/smooks-all-config-files/smooks-config-files/dao-router_input-message-dao.xml (rev 0)
+++ trunk/smooks/tests/org.jboss.tools.smooks.core.test/projects/smooks-all-config-files/smooks-config-files/dao-router_input-message-dao.xml 2009-10-28 08:39:20 UTC (rev 18333)
@@ -0,0 +1,51 @@
+<smooks-resource-list xmlns="http://www.milyn.org/xsd/smooks-1.1.xsd"
+ xmlns:jb="http://www.milyn.org/xsd/smooks/javabean-1.2.xsd" xmlns:dao="http://www.milyn.org/xsd/smooks/persistence-1.2.xsd">
+
+ <!--
+ The inserter calls (via Scribe) the SessionDaoAdapter#insert() method
+ at the visitAfter of the Order element. The SessioDaoAdapter#insert()
+ uses the Hibernate Session#save() method to persist the entity to the
+ database.
+ -->
+ <dao:inserter beanId="order" insertOnElement="order" />
+
+ <!--
+ This is a normal Javabean binding. It creates the order bean and binds
+ data into it.
+ -->
+ <jb:bean beanId="order" class="example.entity.Order"
+ createOnElement="order">
+
+ <jb:value property="ordernumber" data="ordernumber" />
+ <jb:value property="customerId" data="customer" />
+ <jb:wiring setterMethod="addOrderLine" beanIdRef="orderLine" />
+ </jb:bean>
+
+ <!--
+ This is a normal Javabean binding. Notice that we have a wiring on
+ 'product'. The Product entity will not be created, but looked up by a
+ locator.
+ -->
+ <jb:bean beanId="orderLine" class="example.entity.OrderLine"
+ createOnElement="order-item">
+
+ <jb:value property="quantity" data="quantity" decoder="Integer" />
+ <jb:wiring property="order" beanIdRef="order" />
+ <jb:wiring property="product" beanIdRef="product" />
+ </jb:bean>
+
+ <!--
+ This locator calls (via Scribe) the SessionDaoAdapter#lookupByQuery()
+ method. The result will be added to the bean repository under the bean
+ id 'product'. An exception is thrown when no result is found.
+ -->
+ <dao:locator beanId="product" lookupOnElement="order-item"
+ onNoResult="EXCEPTION" uniqueResult="true">
+
+ <dao:query>from Product p where p.id = :id</dao:query>
+ <dao:params>
+ <dao:value name="id" data="product" decoder="Integer" />
+ </dao:params>
+ </dao:locator>
+
+</smooks-resource-list>
\ No newline at end of file
Property changes on: trunk/smooks/tests/org.jboss.tools.smooks.core.test/projects/smooks-all-config-files/smooks-config-files/dao-router_input-message-dao.xml
___________________________________________________________________
Name: svn:mime-type
+ text/plain
Added: trunk/smooks/tests/org.jboss.tools.smooks.core.test/projects/smooks-all-config-files/smooks-config-files/db-extract-transform-load_edi-to-sax-order-mapping.xml
===================================================================
--- trunk/smooks/tests/org.jboss.tools.smooks.core.test/projects/smooks-all-config-files/smooks-config-files/db-extract-transform-load_edi-to-sax-order-mapping.xml (rev 0)
+++ trunk/smooks/tests/org.jboss.tools.smooks.core.test/projects/smooks-all-config-files/smooks-config-files/db-extract-transform-load_edi-to-sax-order-mapping.xml 2009-10-28 08:39:20 UTC (rev 18333)
@@ -0,0 +1,42 @@
+<?xml version="1.0" encoding="UTF-8"?>
+<medi:edimap xmlns:medi="http://www.milyn.org/schema/edi-message-mapping-1.0.xsd">
+
+ <medi:description name="DVD Order" version="1.0"/>
+
+ <medi:delimiters segment=" " field="*" component="^" sub-component="~"/>
+
+ <medi:segments xmltag="orders">
+
+ <medi:segment segcode="MLS" xmltag="message-header">
+ <medi:field xmltag="date"/>
+ </medi:segment>
+
+ <medi:segment segcode="HDR" xmltag="order" minOccurs="1" maxOccurs="-1">
+ <medi:field xmltag="order-id"/>
+ <medi:field xmltag="status-code"/>
+ <medi:field xmltag="net-amount"/>
+ <medi:field xmltag="total-amount"/>
+ <medi:field xmltag="tax"/>
+
+ <medi:segment segcode="CUS" xmltag="customer-details" minOccurs="1" maxOccurs="1">
+ <medi:field xmltag="username"/>
+ <medi:field xmltag="name">
+ <medi:component xmltag="firstname"/>
+ <medi:component xmltag="lastname"/>
+ </medi:field>
+ <medi:field xmltag="state"/>
+ </medi:segment>
+
+ <medi:segment segcode="ORD" xmltag="order-item" minOccurs="1" maxOccurs="-1">
+ <medi:field xmltag="position"/>
+ <medi:field xmltag="quantity"/>
+ <medi:field xmltag="productId"/>
+ <medi:field xmltag="title"/>
+ <medi:field xmltag="price"/>
+ </medi:segment>
+
+ </medi:segment>
+
+ </medi:segments>
+
+</medi:edimap>
\ No newline at end of file
Property changes on: trunk/smooks/tests/org.jboss.tools.smooks.core.test/projects/smooks-all-config-files/smooks-config-files/db-extract-transform-load_edi-to-sax-order-mapping.xml
___________________________________________________________________
Name: svn:mime-type
+ text/plain
Added: trunk/smooks/tests/org.jboss.tools.smooks.core.test/projects/smooks-all-config-files/smooks-config-files/edi-to-java_smooks-config.xml
===================================================================
--- trunk/smooks/tests/org.jboss.tools.smooks.core.test/projects/smooks-all-config-files/smooks-config-files/edi-to-java_smooks-config.xml (rev 0)
+++ trunk/smooks/tests/org.jboss.tools.smooks.core.test/projects/smooks-all-config-files/smooks-config-files/edi-to-java_smooks-config.xml 2009-10-28 08:39:20 UTC (rev 18333)
@@ -0,0 +1,72 @@
+<?xml version="1.0"?>
+<smooks-resource-list
+ xmlns="http://www.milyn.org/xsd/smooks-1.1.xsd"
+ xmlns:edi="http://www.milyn.org/xsd/smooks/edi-1.1.xsd"
+ xmlns:jb="http://www.milyn.org/xsd/smooks/javabean-1.2.xsd">
+
+ <!--
+ Configure the EDI Reader to parse the message stream into a stream of SAX events.
+ -->
+ <edi:reader mappingModel="/example/edi-to-xml-order-mapping.xml" />
+
+ <!--
+ Create an "example.beans.Order" bean instance when we visit the start of the <order> element.
+ Assign the new bean instance to the beanId of "order".
+ The "header" and "orderItemList" beans are wired in.
+ -->
+ <jb:bean beanId="order" class="example.model.Order" createOnElement="order">
+ <jb:wiring property="header" beanIdRef="header" />
+ <jb:wiring property="orderItems" beanIdRef="orderItemList" />
+ </jb:bean>
+
+ <!--
+ Create an "example.beans.Header" bean instance when we visit the start of the <order> element.
+ Note, we're creating this bean instance before we encounter the actual <header> element.
+ This bean is wired into the "order" bean.
+ -->
+ <jb:bean beanId="header" class="example.model.Header" createOnElement="order">
+ <jb:wiring property="customer" beanIdRef="customer" />
+ <jb:value property="orderId" data="header/order-id" />
+ <jb:value property="orderStatus" decoder="Long" data="header/status-code" />
+ <jb:value property="netAmount" decoder="BigDecimal" data="header/net-amount" />
+ <jb:value property="totalAmount" decoder="BigDecimal" data="header/total-amount" />
+ <jb:value property="tax" decoder="BigDecimal" data="header/tax" />
+ <jb:value property="date" decoder="Date" data="header/date">
+ <jb:decodeParam name="format">EEE MMM dd HH:mm:ss z yyyy</jb:decodeParam>
+ </jb:value>
+ </jb:bean>
+
+ <!--
+ Create an "example.beans.Customer" bean instance when we visit the start of the
+ <customer-details> element.
+ This bean is wired into the "header" bean.
+ -->
+ <jb:bean beanId="customer" class="example.model.Customer" createOnElement="customer-details">
+ <!-- Customer bindings... -->
+ <jb:value property="userName" data="customer-details/username" />
+ <jb:value property="firstName" data="customer-details/name/firstname" />
+ <jb:value property="lastName" data="customer-details/name/lastname" />
+ <jb:value property="state" data="customer-details/state" />
+ </jb:bean>
+
+ <!--
+ Create an ArrayList when we visit the start of the <order> element.
+ The "orderItem" beans are wired into this list and this list is wired into the "order" bean.
+ -->
+ <jb:bean beanId="orderItemList" class="java.util.ArrayList" createOnElement="order">
+ <jb:wiring beanIdRef="orderItem" />
+ </jb:bean>
+
+ <!--
+ Create an "example.beans.OrderItem" bean instance when we visit the start of the <order-item> element.
+ This bean is wired into the "orderItemList" ArrayList.
+ -->
+ <jb:bean beanId="orderItem" class="example.model.OrderItem" createOnElement="order-item">
+ <!-- OrderItem bindings... -->
+ <jb:value property="quantity" decoder="Integer" data="order-item/quantity" />
+ <jb:value property="productId" decoder="String" data="order-item/product-id" />
+ <jb:value property="price" decoder="BigDecimal" data="order-item/price" />
+ <jb:value property="title" data="order-item/title" />
+ </jb:bean>
+
+</smooks-resource-list>
Property changes on: trunk/smooks/tests/org.jboss.tools.smooks.core.test/projects/smooks-all-config-files/smooks-config-files/edi-to-java_smooks-config.xml
___________________________________________________________________
Name: svn:mime-type
+ text/plain
Added: trunk/smooks/tests/org.jboss.tools.smooks.core.test/projects/smooks-all-config-files/smooks-config-files/edi-to-xml_smooks-config.xml
===================================================================
--- trunk/smooks/tests/org.jboss.tools.smooks.core.test/projects/smooks-all-config-files/smooks-config-files/edi-to-xml_smooks-config.xml (rev 0)
+++ trunk/smooks/tests/org.jboss.tools.smooks.core.test/projects/smooks-all-config-files/smooks-config-files/edi-to-xml_smooks-config.xml 2009-10-28 08:39:20 UTC (rev 18333)
@@ -0,0 +1,11 @@
+<?xml version="1.0"?>
+<smooks-resource-list
+ xmlns="http://www.milyn.org/xsd/smooks-1.1.xsd"
+ xmlns:edi="http://www.milyn.org/xsd/smooks/edi-1.1.xsd">
+
+ <!--
+ Configure the EDI Reader to process the message stream into a stream of SAX events.
+ -->
+ <edi:reader mappingModel="/example/edi-to-xml-order-mapping.xml" />
+
+</smooks-resource-list>
Property changes on: trunk/smooks/tests/org.jboss.tools.smooks.core.test/projects/smooks-all-config-files/smooks-config-files/edi-to-xml_smooks-config.xml
___________________________________________________________________
Name: svn:mime-type
+ text/plain
Added: trunk/smooks/tests/org.jboss.tools.smooks.core.test/projects/smooks-all-config-files/smooks-config-files/edi-with-import-to-java_smooks-config.xml
===================================================================
--- trunk/smooks/tests/org.jboss.tools.smooks.core.test/projects/smooks-all-config-files/smooks-config-files/edi-with-import-to-java_smooks-config.xml (rev 0)
+++ trunk/smooks/tests/org.jboss.tools.smooks.core.test/projects/smooks-all-config-files/smooks-config-files/edi-with-import-to-java_smooks-config.xml 2009-10-28 08:39:20 UTC (rev 18333)
@@ -0,0 +1,72 @@
+<?xml version="1.0"?>
+<smooks-resource-list
+ xmlns="http://www.milyn.org/xsd/smooks-1.1.xsd"
+ xmlns:edi="http://www.milyn.org/xsd/smooks/edi-1.1.xsd"
+ xmlns:jb="http://www.milyn.org/xsd/smooks/javabean-1.2.xsd">
+
+ <!--
+ Configure the EDI Reader to parse the message stream into a stream of SAX events.
+ -->
+ <edi:reader mappingModel="/example/edi-to-xml-order-mapping.xml" />
+
+ <!--
+ Create an "example.beans.Order" bean instance when we visit the start of the <order> element.
+ Assign the new bean instance to the beanId of "order".
+ The "header" and "orderItemList" beans are wired in.
+ -->
+ <jb:bean beanId="order" class="example.model.Order" createOnElement="order">
+ <jb:wiring property="header" beanIdRef="header" />
+ <jb:wiring property="orderItems" beanIdRef="orderItemList" />
+ </jb:bean>
+
+ <!--
+ Create an "example.beans.Header" bean instance when we visit the start of the <order> element.
+ Note, we're creating this bean instance before we encounter the actual <header> element.
+ This bean is wired into the "order" bean.
+ -->
+ <jb:bean beanId="header" class="example.model.Header" createOnElement="order">
+ <jb:wiring property="customer" beanIdRef="customer" />
+ <jb:value property="orderId" data="header/order-id" />
+ <jb:value property="orderStatus" decoder="Long" data="header/status-code" />
+ <jb:value property="netAmount" decoder="BigDecimal" data="header/net-amount" />
+ <jb:value property="totalAmount" decoder="BigDecimal" data="header/total-amount" />
+ <jb:value property="tax" decoder="BigDecimal" data="header/tax" />
+ <jb:value property="date" decoder="Date" data="header/date">
+ <jb:decodeParam name="format">yyyyMMdd</jb:decodeParam>
+ </jb:value>
+ </jb:bean>
+
+ <!--
+ Create an "example.beans.Customer" bean instance when we visit the start of the
+ <customer-details> element.
+ This bean is wired into the "header" bean.
+ -->
+ <jb:bean beanId="customer" class="example.model.Customer" createOnElement="customer-details">
+ <!-- Customer bindings... -->
+ <jb:value property="userName" data="customer-details/username" />
+ <jb:value property="firstName" data="customer-details/name/firstname" />
+ <jb:value property="lastName" data="customer-details/name/lastname" />
+ <jb:value property="state" data="customer-details/state" />
+ </jb:bean>
+
+ <!--
+ Create an ArrayList when we visit the start of the <order> element.
+ The "orderItem" beans are wired into this list and this list is wired into the "order" bean.
+ -->
+ <jb:bean beanId="orderItemList" class="java.util.ArrayList" createOnElement="order">
+ <jb:wiring beanIdRef="orderItem" />
+ </jb:bean>
+
+ <!--
+ Create an "example.beans.OrderItem" bean instance when we visit the start of the <order-item> element.
+ This bean is wired into the "orderItemList" ArrayList.
+ -->
+ <jb:bean beanId="orderItem" class="example.model.OrderItem" createOnElement="order-item">
+ <!-- OrderItem bindings... -->
+ <jb:value property="quantity" decoder="Integer" data="order-item/quantity" />
+ <jb:value property="productId" decoder="String" data="order-item/product-id" />
+ <jb:value property="price" decoder="BigDecimal" data="order-item/price" />
+ <jb:value property="title" data="order-item/title" />
+ </jb:bean>
+
+</smooks-resource-list>
Property changes on: trunk/smooks/tests/org.jboss.tools.smooks.core.test/projects/smooks-all-config-files/smooks-config-files/edi-with-import-to-java_smooks-config.xml
___________________________________________________________________
Name: svn:mime-type
+ text/plain
Added: trunk/smooks/tests/org.jboss.tools.smooks.core.test/projects/smooks-all-config-files/smooks-config-files/freemarker-huge-transform_smooks-config.xml
===================================================================
--- trunk/smooks/tests/org.jboss.tools.smooks.core.test/projects/smooks-all-config-files/smooks-config-files/freemarker-huge-transform_smooks-config.xml (rev 0)
+++ trunk/smooks/tests/org.jboss.tools.smooks.core.test/projects/smooks-all-config-files/smooks-config-files/freemarker-huge-transform_smooks-config.xml 2009-10-28 08:39:20 UTC (rev 18333)
@@ -0,0 +1,70 @@
+<?xml version="1.0"?>
+<smooks-resource-list xmlns="http://www.milyn.org/xsd/smooks-1.1.xsd"
+ xmlns:ftl="http://www.milyn.org/xsd/smooks/freemarker-1.1.xsd">
+
+ <!--
+ Filter the message using the SAX Filter (i.e. not DOM, so no
+ intermediate DOM for the "complete" message - there are "mini" DOMs
+ for the NodeModels below)....
+ -->
+ <params>
+ <param name="stream.filter.type">SAX</param>
+ <param name="default.serialization.on">false</param>
+ </params>
+
+ <!--
+ Create 2 NodeModels. One high level model for the "order"
+ (header etc) and then one per "order-item".
+
+ These models are used in the FreeMarker templating resources
+ defined below. You need to make sure you set the selector such
+ that the total memory footprint is as low as possible. In this
+ example, the "order" model will contain everything accept the
+ <order-item> data (the main bulk of data in the message). The
+ "order-item" model only contains the current <order-item> data
+ (i.e. there's max 1 order-item in memory at any one time).
+ -->
+ <resource-config selector="order,order-item">
+ <resource>org.milyn.delivery.DomModelCreator</resource>
+ </resource-config>
+
+ <!--
+ Apply the first part of the template when we reach the start
+ of the <order-items> element. Apply the second part when we
+ reach the end.
+
+ Note the <?TEMPLATE-SPLIT-PI?> Processing Instruction in the
+ template. This tells Smooks where to split the template,
+ resulting in the order-items being inserted at this point.
+ -->
+ <ftl:freemarker applyOnElement="order-items">
+ <ftl:template><!--<salesorder>
+ <details>
+ <orderid>${order.@id}</orderid>
+ <customer>
+ <id>${order.header.customer.@number}</id>
+ <name>${order.header.customer}</name>
+ </customer>
+ </details>
+ <itemList>
+ <?TEMPLATE-SPLIT-PI?>
+ </itemList>
+</salesorder>--></ftl:template>
+ </ftl:freemarker>
+
+ <!--
+ Output the <order-items> elements. This will appear in the
+ output message where the <?TEMPLATE-SPLIT-PI?> token appears in the
+ order-items template.
+ -->
+<ftl:freemarker applyOnElement="order-item">
+ <ftl:template><!-- <item>
+ <id>${.vars["order-item"].@id}</id>
+ <productId>${.vars["order-item"].product}</productId>
+ <quantity>${.vars["order-item"].quantity}</quantity>
+ <price>${.vars["order-item"].price}</price>
+ </item>
+ --></ftl:template>
+</ftl:freemarker>
+
+</smooks-resource-list>
\ No newline at end of file
Property changes on: trunk/smooks/tests/org.jboss.tools.smooks.core.test/projects/smooks-all-config-files/smooks-config-files/freemarker-huge-transform_smooks-config.xml
___________________________________________________________________
Name: svn:mime-type
+ text/plain
Added: trunk/smooks/tests/org.jboss.tools.smooks.core.test/projects/smooks-all-config-files/smooks-config-files/groovy_smooks-config.xml
===================================================================
--- trunk/smooks/tests/org.jboss.tools.smooks.core.test/projects/smooks-all-config-files/smooks-config-files/groovy_smooks-config.xml (rev 0)
+++ trunk/smooks/tests/org.jboss.tools.smooks.core.test/projects/smooks-all-config-files/smooks-config-files/groovy_smooks-config.xml 2009-10-28 08:39:20 UTC (rev 18333)
@@ -0,0 +1,30 @@
+<?xml version="1.0"?>
+<smooks-resource-list xmlns="http://www.milyn.org/xsd/smooks-1.1.xsd" xmlns:g="http://www.milyn.org/xsd/smooks/groovy-1.1.xsd">
+
+ <params>
+ <param name="stream.filter.type">SAX</param>
+ </params>
+
+ <g:groovy executeOnElement="category">
+ <g:script>
+ <!--
+ use(DOMCategory) {
+
+ // Modify "supplies": we need an extra 2 pens...
+ if (element.'@type' == 'supplies') {
+ element.item.each { item ->
+ if (item.text() == 'Pens') {
+ item['@quantity'] = item.'@quantity'.toInteger() + 2;
+ }
+ }
+ }
+ }
+
+ // When using the SAX filter, we need to explicitly write the fragment
+ // to the result stream...
+ writeFragment(element);
+ -->
+ </g:script>
+ </g:groovy>
+
+</smooks-resource-list>
\ No newline at end of file
Property changes on: trunk/smooks/tests/org.jboss.tools.smooks.core.test/projects/smooks-all-config-files/smooks-config-files/groovy_smooks-config.xml
___________________________________________________________________
Name: svn:mime-type
+ text/plain
Added: trunk/smooks/tests/org.jboss.tools.smooks.core.test/projects/smooks-all-config-files/smooks-config-files/java-basic_smooks-config.xml
===================================================================
--- trunk/smooks/tests/org.jboss.tools.smooks.core.test/projects/smooks-all-config-files/smooks-config-files/java-basic_smooks-config.xml (rev 0)
+++ trunk/smooks/tests/org.jboss.tools.smooks.core.test/projects/smooks-all-config-files/smooks-config-files/java-basic_smooks-config.xml 2009-10-28 08:39:20 UTC (rev 18333)
@@ -0,0 +1,9 @@
+<?xml version="1.0"?>
+<smooks-resource-list xmlns="http://www.milyn.org/xsd/smooks-1.0.xsd">
+
+ <resource-config selector="c b">
+ <resource>example.BasicJavaTransformer</resource>
+ <param name="newName">xxx</param>
+ </resource-config>
+
+</smooks-resource-list>
Property changes on: trunk/smooks/tests/org.jboss.tools.smooks.core.test/projects/smooks-all-config-files/smooks-config-files/java-basic_smooks-config.xml
___________________________________________________________________
Name: svn:mime-type
+ text/plain
Added: trunk/smooks/tests/org.jboss.tools.smooks.core.test/projects/smooks-all-config-files/smooks-config-files/java-to-java_smooks-config.xml
===================================================================
--- trunk/smooks/tests/org.jboss.tools.smooks.core.test/projects/smooks-all-config-files/smooks-config-files/java-to-java_smooks-config.xml (rev 0)
+++ trunk/smooks/tests/org.jboss.tools.smooks.core.test/projects/smooks-all-config-files/smooks-config-files/java-to-java_smooks-config.xml 2009-10-28 08:39:20 UTC (rev 18333)
@@ -0,0 +1,31 @@
+<?xml version="1.0"?>
+<smooks-resource-list xmlns="http://www.milyn.org/xsd/smooks-1.1.xsd" xmlns:jb="http://www.milyn.org/xsd/smooks/javabean-1.2.xsd">
+
+ <params>
+ <param name="stream.filter.type">SAX</param>
+ </params>
+
+ <jb:bean beanId="lineOrder" class="example.trgmodel.LineOrder" createOnElement="example.srcmodel.Order">
+ <jb:wiring property="lineItems" beanIdRef="lineItems" />
+ <jb:value property="customerId" data="header/customerNumber" />
+ <jb:value property="customerName" data="header/customerName" />
+ <jb:value property="priority" data="header/priority" decoder="Enum">
+ <jb:decodeParam name="enumType">example.trgmodel.LineOrderPriority</jb:decodeParam>
+ <jb:decodeParam name="LOW">NOT_IMPORTANT</jb:decodeParam>
+ <jb:decodeParam name="MEDIUM">IMPORTANT</jb:decodeParam>
+ <jb:decodeParam name="HIGH">VERY_IMPORTANT</jb:decodeParam>
+ </jb:value>
+ </jb:bean>
+
+ <jb:bean beanId="lineItems" class="example.trgmodel.LineItem[]" createOnElement="orderItems">
+ <jb:wiring beanIdRef="lineItem" />
+ </jb:bean>
+
+
+ <jb:bean beanId="lineItem" class="example.trgmodel.LineItem" createOnElement="example.srcmodel.OrderItem">
+ <jb:value property="productCode" data="example.srcmodel.OrderItem/productId" />
+ <jb:value property="unitQuantity" decoder="Integer" data="example.srcmodel.OrderItem/quantity" />
+ <jb:value property="unitPrice" decoder="BigDecimal" data="example.srcmodel.OrderItem/price" />
+ </jb:bean>
+
+</smooks-resource-list>
\ No newline at end of file
Property changes on: trunk/smooks/tests/org.jboss.tools.smooks.core.test/projects/smooks-all-config-files/smooks-config-files/java-to-java_smooks-config.xml
___________________________________________________________________
Name: svn:mime-type
+ text/plain
Added: trunk/smooks/tests/org.jboss.tools.smooks.core.test/projects/smooks-all-config-files/smooks-config-files/java-to-xml_smooks-config.xml
===================================================================
--- trunk/smooks/tests/org.jboss.tools.smooks.core.test/projects/smooks-all-config-files/smooks-config-files/java-to-xml_smooks-config.xml (rev 0)
+++ trunk/smooks/tests/org.jboss.tools.smooks.core.test/projects/smooks-all-config-files/smooks-config-files/java-to-xml_smooks-config.xml 2009-10-28 08:39:20 UTC (rev 18333)
@@ -0,0 +1,8 @@
+<?xml version="1.0"?>
+<smooks-resource-list xmlns="http://www.milyn.org/xsd/smooks-1.0.xsd">
+
+ <resource-config selector="global-parameters">
+ <param name="stream.filter.type">SAX</param>
+ </resource-config>
+
+</smooks-resource-list>
\ No newline at end of file
Property changes on: trunk/smooks/tests/org.jboss.tools.smooks.core.test/projects/smooks-all-config-files/smooks-config-files/java-to-xml_smooks-config.xml
___________________________________________________________________
Name: svn:mime-type
+ text/plain
Added: trunk/smooks/tests/org.jboss.tools.smooks.core.test/projects/smooks-all-config-files/smooks-config-files/json-to-java_smooks-config.xml
===================================================================
--- trunk/smooks/tests/org.jboss.tools.smooks.core.test/projects/smooks-all-config-files/smooks-config-files/json-to-java_smooks-config.xml (rev 0)
+++ trunk/smooks/tests/org.jboss.tools.smooks.core.test/projects/smooks-all-config-files/smooks-config-files/json-to-java_smooks-config.xml 2009-10-28 08:39:20 UTC (rev 18333)
@@ -0,0 +1,101 @@
+<?xml version="1.0"?>
+<smooks-resource-list
+ xmlns="http://www.milyn.org/xsd/smooks-1.1.xsd"
+ xmlns:json="http://www.milyn.org/xsd/smooks/json-1.1.xsd"
+ xmlns:jb="http://www.milyn.org/xsd/smooks/javabean-1.2.xsd">
+
+ <!--
+ Configure the JSON Reader to read the message stream into a stream of SAX events.
+
+ The input message contains whitespaces in the key names. Whitespaces aren't allowed in
+ element names of the SAX event stream. To solve this we replace the whitespaces with dashes (-).
+
+ Another special case is that the is a key called date&time. The ampersand isn't allowed in a
+ element name of the SAX event stream. We can solve this in two ways. Configure the reader, with
+ the illegalElementNameCharReplacement parameter, to replace all illegal characters with
+ a character that is allowed. In this example however we solve it by mapping the "date&time" key
+ to the "date-and-time" name.
+
+ There are more settings to for the org.milyn.json.JSONReader.
+ Take a look at the Javadoc of the class for alle the possible parameters.
+ -->
+ <json:reader rootName="order" keyWhitspaceReplacement="-">
+ <json:keyMap>
+ <json:key from="date&time" to="date-and-time" />
+ </json:keyMap>
+ </json:reader>
+
+
+ <!--
+ Create an "example.beans.Order" bean instance when we visit the start of the <order> element.
+ Assign the new bean instance to the beanId of "order".
+ Target the to be created Header bean under the beanId "header" via the ${header} bean binding.
+ As soon as this bean is created it will be set on this bean instance.
+ Target the to be created ArrayList instance under the beanId "orderItems" via the ${orderItems} bean binding.
+ As soon as this list is created it will be set on this bean instance.
+ -->
+ <jb:bean class="example.model.Order" beanId="order" createOnElement="order">
+ <jb:wiring property="header" beanIdRef="header"/>
+ <jb:wiring property="orderItems" beanIdRef="orderItems"/>
+ </jb:bean>
+
+ <!--
+ Create an "example.beans.Header" bean instance when we visit the start of the <order> element.
+ Note, we're creating this bean instance before we encounter the actual <header> element.
+ This bean is set on the on the previous declared Order bean as soon as it is created, because
+ it is target by that bean via a bean binding.
+ Target the to be created Customer instance under the beanId "customer" via the ${customer} bean binding.
+ As soon as this bean is created it will be set on this bean instance.
+ -->
+ <jb:bean class="example.model.Header" beanId="header" createOnElement="order">
+ <jb:wiring property="customer" beanIdRef="customer"/>
+
+ <jb:value property="orderId" data="header order-id" />
+ <jb:value property="orderStatus" data="header status-code" decoder="Long" />
+ <jb:value property="netAmount" data="header net-amount" decoder="BigDecimal"/>
+ <jb:value property="totalAmount" data="header total-amount" decoder="BigDecimal"/>
+ <jb:value property="tax" data="header tax" decoder="BigDecimal"/>
+ <jb:value property="date" data="header date-and-time" decoder="Date">
+ <jb:decodeParam name="format">EEE MMM dd HH:mm:ss z yyyy</jb:decodeParam>
+ <jb:decodeParam name="locale-language">en</jb:decodeParam>
+ <jb:decodeParam name="locale-country">IE</jb:decodeParam>
+ </jb:value>
+ </jb:bean>
+
+ <!--
+ Create an "example.beans.Customer" bean instance when we visit the start of the
+ <customer-details> element.
+ This bean is set on the on the previous declared Header bean as soon as it is created, because
+ it is target by that bean via a bean binding.
+ -->
+ <jb:bean class="example.model.Customer" beanId="customer" createOnElement="customer-details">
+ <jb:value property="userName" data="customer-details username" />
+ <jb:value property="firstName" data="customer-details firstname" />
+ <jb:value property="lastName" data="customer-details lastname"/>
+ <jb:value property="state" data="customer-details state"/>
+ </jb:bean>
+
+ <!--
+ Create an ArrayList when we visit the start of the <order> element.
+ This list is set on the on the previous declared Order bean as soon as it is created, because
+ it is target by that bean via a bean binding.
+ Target the to be created OrderItem beans under the beanId "orderItem" via the ${orderItem} bean binding.
+ As soon as these beans are created they will be added to this list.
+ -->
+ <jb:bean class="java.util.ArrayList" beanId="orderItems" createOnElement="order">
+ <jb:wiring beanIdRef="orderItem"/>
+ </jb:bean>
+
+ <!--
+ Create an "example.beans.OrderItem" bean instance when we visit the start of the <order-item> element.
+ This bean is add to the on the previous declared ArrayList as soon as it is created, because
+ it is target by that ArrayList via a bean binding.
+ -->
+ <jb:bean class="example.model.OrderItem" beanId="orderItem" createOnElement="order-item element">
+ <jb:value property="quantity" data="order-item element quantity" decoder="Integer"/>
+ <jb:value property="productId" data="order-item element product-id" />
+ <jb:value property="price" data="order-item element price" decoder="BigDecimal" />
+ <jb:value property="title" data="order-item element title" />
+ </jb:bean>
+
+</smooks-resource-list>
Property changes on: trunk/smooks/tests/org.jboss.tools.smooks.core.test/projects/smooks-all-config-files/smooks-config-files/json-to-java_smooks-config.xml
___________________________________________________________________
Name: svn:mime-type
+ text/plain
Added: trunk/smooks/tests/org.jboss.tools.smooks.core.test/projects/smooks-all-config-files/smooks-config-files/model-driven-basic-virtual_smooks-config.xml
===================================================================
--- trunk/smooks/tests/org.jboss.tools.smooks.core.test/projects/smooks-all-config-files/smooks-config-files/model-driven-basic-virtual_smooks-config.xml (rev 0)
+++ trunk/smooks/tests/org.jboss.tools.smooks.core.test/projects/smooks-all-config-files/smooks-config-files/model-driven-basic-virtual_smooks-config.xml 2009-10-28 08:39:20 UTC (rev 18333)
@@ -0,0 +1,38 @@
+<?xml version="1.0"?>
+<smooks-resource-list xmlns="http://www.milyn.org/xsd/smooks-1.1.xsd"
+ xmlns:jb="http://www.milyn.org/xsd/smooks/javabean-1.2.xsd"
+ xmlns:ftl="http://www.milyn.org/xsd/smooks/freemarker-1.1.xsd">
+
+ <!--
+ Use a FreeMarker template to perform the model driven transformation. You can also inline the template here.
+ -->
+ <ftl:freemarker applyOnElement="#document">
+ <ftl:template>/example/templates/HistoryTrans.ftl</ftl:template>
+ </ftl:freemarker>
+
+ <!--
+ Configure the virtual "history" bean creation and population. Wires in the "warehouse" bean.
+ -->
+ <jb:bean beanId="history" class="java.util.HashMap" createOnElement="history">
+ <jb:wiring property="warehouse" beanIdRef="warehouse"/>
+ <!-- Note the date decoder is not configured with a format. Will therefore use the default (SOAP). See DateDecoder class. -->
+ <jb:value property="creationDate" decoder="Date" data="header/date" />
+ <!-- Note the "special" decoder for the trackingNumbers. -->
+ <jb:value property="trackingNumbers" decoder="example.decoders.TrackingNumberDecoder" data="history/trackingNumbers" />
+ </jb:bean>
+
+ <!--
+ Configure the virtual "warehouse" bean creation and population.
+ Note how we create it on visiting the history. Is wired into the "history" bean.
+ -->
+ <jb:bean beanId="warehouse" class="java.util.HashMap" createOnElement="history">
+ <jb:value property="id" decoder="Integer" data="history/@warehouse" />
+ <!-- Note the "special" decoder for mapping the warehouse id. -->
+ <jb:value property="name" decoder="Mapping" data="history/@warehouse">
+ <jb:decodeParam name="1">Dublin</jb:decodeParam>
+ <jb:decodeParam name="2">Belfast</jb:decodeParam>
+ <jb:decodeParam name="3">Cork</jb:decodeParam>
+ </jb:value>
+ </jb:bean>
+
+</smooks-resource-list>
Property changes on: trunk/smooks/tests/org.jboss.tools.smooks.core.test/projects/smooks-all-config-files/smooks-config-files/model-driven-basic-virtual_smooks-config.xml
___________________________________________________________________
Name: svn:mime-type
+ text/plain
Added: trunk/smooks/tests/org.jboss.tools.smooks.core.test/projects/smooks-all-config-files/smooks-config-files/model-driven-basic_smooks-config.xml
===================================================================
--- trunk/smooks/tests/org.jboss.tools.smooks.core.test/projects/smooks-all-config-files/smooks-config-files/model-driven-basic_smooks-config.xml (rev 0)
+++ trunk/smooks/tests/org.jboss.tools.smooks.core.test/projects/smooks-all-config-files/smooks-config-files/model-driven-basic_smooks-config.xml 2009-10-28 08:39:20 UTC (rev 18333)
@@ -0,0 +1,42 @@
+<?xml version="1.0"?>
+<smooks-resource-list xmlns="http://www.milyn.org/xsd/smooks-1.1.xsd"
+ xmlns:jb="http://www.milyn.org/xsd/smooks/javabean-1.2.xsd"
+ xmlns:ftl="http://www.milyn.org/xsd/smooks/freemarker-1.1.xsd">
+ <!--
+ This configuration binds data from the message into the Shipping object model,
+ and then uses that binding data in a FreeMarker template to generate the result...
+ -->
+
+ <!--
+ Configure the History bean creation and population. Wires in the "warehouse" bean.
+ -->
+ <jb:bean beanId="history" class="example.model.ShippingHistory" createOnElement="history">
+ <jb:wiring property="warehouse" beanIdRef="warehouse"/>
+ <!-- Note the date decoder is not configured with a format. Will therefore use the default (SOAP). See DateDecoder class. -->
+ <jb:value property="creationDate" decoder="Date" data="header/date" />
+ <!-- Note the "special" decoder for the trackingNumbers. -->
+ <jb:value property="trackingNumbers" decoder="example.model.TrackingNumberDecoder" data="history/trackingNumbers" />
+ </jb:bean>
+
+ <!--
+ Configure the Warehouse bean creation and population.
+ Note how we create it on visiting the history. Is wired into the "history" bean.
+ -->
+ <jb:bean beanId="warehouse" class="example.model.Warehouse" createOnElement="history">
+ <jb:value property="id" decoder="Integer" data="history/@warehouse" />
+ <!-- Note the "special" decoder for mapping the warehouse id. -->
+ <jb:value property="name" decoder="Mapping" data="history/@warehouse">
+ <jb:decodeParam name="1">Dublin</jb:decodeParam>
+ <jb:decodeParam name="2">Belfast</jb:decodeParam>
+ <jb:decodeParam name="3">Cork</jb:decodeParam>
+ </jb:value>
+ </jb:bean>
+
+ <!--
+ Use a FreeMarker template to perform the model driven transformation. You can also inline the template here.
+ -->
+ <ftl:freemarker applyOnElement="#document">
+ <ftl:template>/example/templates/HistoryTrans.ftl</ftl:template>
+ </ftl:freemarker>
+
+</smooks-resource-list>
Property changes on: trunk/smooks/tests/org.jboss.tools.smooks.core.test/projects/smooks-all-config-files/smooks-config-files/model-driven-basic_smooks-config.xml
___________________________________________________________________
Name: svn:mime-type
+ text/plain
Added: trunk/smooks/tests/org.jboss.tools.smooks.core.test/projects/smooks-all-config-files/smooks-config-files/profiling_smooks-config.xml
===================================================================
--- trunk/smooks/tests/org.jboss.tools.smooks.core.test/projects/smooks-all-config-files/smooks-config-files/profiling_smooks-config.xml (rev 0)
+++ trunk/smooks/tests/org.jboss.tools.smooks.core.test/projects/smooks-all-config-files/smooks-config-files/profiling_smooks-config.xml 2009-10-28 08:39:20 UTC (rev 18333)
@@ -0,0 +1,43 @@
+<?xml version="1.0"?>
+<smooks-resource-list xmlns="http://www.milyn.org/xsd/smooks-1.0.xsd">
+
+ <profiles>
+ <profile base-profile="message-exchange-1" sub-profiles="from-a,to-b" />
+ <profile base-profile="message-exchange-2" sub-profiles="from-a,to-c" />
+ <profile base-profile="message-exchange-3" sub-profiles="from-a,to-d" />
+
+ <profile base-profile="message-exchange-4" sub-profiles="from-c,to-b" />
+ <profile base-profile="message-exchange-5" sub-profiles="from-d,to-b" />
+ </profiles>
+
+ <resource-config selector="a" target-profile="from-a">
+ <resource>example.BasicJavaTransformer</resource>
+ <param name="newName">from-a</param>
+ </resource-config>
+
+ <resource-config selector="a b" target-profile="to-b">
+ <resource>example.BasicJavaTransformer</resource>
+ <param name="newName">to-b</param>
+ </resource-config>
+
+ <resource-config selector="c b" target-profile="to-c">
+ <resource>example.BasicJavaTransformer</resource>
+ <param name="newName">to-c</param>
+ </resource-config>
+
+ <resource-config selector="c" target-profile="to-d">
+ <resource>example.BasicJavaTransformer</resource>
+ <param name="newName">to-d</param>
+ </resource-config>
+
+ <resource-config selector="b c" target-profile="message-exchange-5">
+ <resource>example.BasicJavaTransformer</resource>
+ <param name="newName">message-exchange-5</param>
+ </resource-config>
+
+ <resource-config selector="c b" target-profile="to-b AND from-d">
+ <resource>example.BasicJavaTransformer</resource>
+ <param name="newName">d-to-b</param>
+ </resource-config>
+
+</smooks-resource-list>
Property changes on: trunk/smooks/tests/org.jboss.tools.smooks.core.test/projects/smooks-all-config-files/smooks-config-files/profiling_smooks-config.xml
___________________________________________________________________
Name: svn:mime-type
+ text/plain
Added: trunk/smooks/tests/org.jboss.tools.smooks.core.test/projects/smooks-all-config-files/smooks-config-files/sj-testimonial_edi-mapping.xml
===================================================================
--- trunk/smooks/tests/org.jboss.tools.smooks.core.test/projects/smooks-all-config-files/smooks-config-files/sj-testimonial_edi-mapping.xml (rev 0)
+++ trunk/smooks/tests/org.jboss.tools.smooks.core.test/projects/smooks-all-config-files/smooks-config-files/sj-testimonial_edi-mapping.xml 2009-10-28 08:39:20 UTC (rev 18333)
@@ -0,0 +1,63 @@
+<medi:edimap xmlns:medi="http://www.milyn.org/schema/edi-message-mapping-1.0.xsd">
+
+ <medi:description name="rollingstock_edi" version="1.0" />
+
+ <medi:delimiters segment=" " field="," component="*" sub-component="-"/>
+
+ <medi:segments xmltag="rollingstocks">
+
+ <medi:segment segcode="Ta" xmltag="rollingstock" minOccurs="0" maxOccurs="-1">
+ <medi:field xmltag="departureDate"/>
+ <medi:field xmltag="departureTime"/>
+ <medi:field xmltag="rollingstockId"/>
+ <medi:field xmltag="departureSignature"/>
+ <medi:field xmltag="destinationSignature"/>
+ <medi:field xmltag="dayLimit"/>
+
+ <medi:segment segcode="Tr" xmltag="route" minOccurs="0" maxOccurs="1">
+ <medi:field xmltag="route"/>
+ </medi:segment>
+
+ <medi:segment segcode="Fo" xmltag="vehicle" minOccurs="0" maxOccurs="-1">
+ <medi:field xmltag="litt"/>
+ <medi:field xmltag="vehicleId"/>
+ <medi:field xmltag="originalLitt"/>
+ <medi:field xmltag="ticketId"/>
+ <medi:field xmltag="vehicleType"/>
+ <medi:field xmltag="weight"/>
+ <medi:field xmltag="dynamicWeight"/>
+ <medi:field xmltag="brakeWeight"/>
+ <medi:field xmltag="length"/>
+ <medi:field xmltag="nrOfAxles"/>
+ <medi:field xmltag="speed"/>
+ <medi:field xmltag="serviceType"/>
+ <medi:field xmltag="canDoorsBeLocked"/>
+ <medi:field xmltag="class1"/>
+ <medi:field xmltag="class2"/>
+ <medi:field xmltag="couchette"/>
+ <medi:field xmltag="nrOfCompartments"/>
+ <medi:field xmltag="nrOfPlacesPerCompartment"/>
+ <medi:field xmltag="departureStation"/>
+ <medi:field xmltag="departureDate"/>
+ <medi:field xmltag="departureTime"/>
+ <medi:field xmltag="destination"/>
+
+
+ <medi:segment segcode="Fx" xmltag="comments" minOccurs="0" maxOccurs="1">
+ <medi:field xmltag="comment"/>
+ </medi:segment>
+
+ <medi:segment segcode="Ft" xmltag="phoneNumber" minOccurs="0" maxOccurs="-1">
+ <medi:field xmltag="litt"/>
+ <medi:field xmltag="vehicleId"/>
+ <medi:field xmltag="phoneNumber"/>
+ <medi:field xmltag="function"/>
+ <medi:field xmltag="location"/>
+ </medi:segment>
+ </medi:segment>
+
+ </medi:segment>
+
+ </medi:segments>
+
+</medi:edimap>
\ No newline at end of file
Property changes on: trunk/smooks/tests/org.jboss.tools.smooks.core.test/projects/smooks-all-config-files/smooks-config-files/sj-testimonial_edi-mapping.xml
___________________________________________________________________
Name: svn:mime-type
+ text/plain
Added: trunk/smooks/tests/org.jboss.tools.smooks.core.test/projects/smooks-all-config-files/smooks-config-files/sj-testimonial_smooks-config-sax.xml
===================================================================
--- trunk/smooks/tests/org.jboss.tools.smooks.core.test/projects/smooks-all-config-files/smooks-config-files/sj-testimonial_smooks-config-sax.xml (rev 0)
+++ trunk/smooks/tests/org.jboss.tools.smooks.core.test/projects/smooks-all-config-files/smooks-config-files/sj-testimonial_smooks-config-sax.xml 2009-10-28 08:39:20 UTC (rev 18333)
@@ -0,0 +1,10 @@
+<?xml version="1.0" encoding="ISO-8859-1" ?>
+<smooks-resource-list xmlns="http://www.milyn.org/xsd/smooks-1.1.xsd">
+
+ <params>
+ <param name="stream.filter.type">SAX</param>
+ </params>
+
+ <import file="smooks-config.xml" />
+
+</smooks-resource-list>
Property changes on: trunk/smooks/tests/org.jboss.tools.smooks.core.test/projects/smooks-all-config-files/smooks-config-files/sj-testimonial_smooks-config-sax.xml
___________________________________________________________________
Name: svn:mime-type
+ text/plain
Added: trunk/smooks/tests/org.jboss.tools.smooks.core.test/projects/smooks-all-config-files/smooks-config-files/sj-testimonial_smooks-config.xml
===================================================================
--- trunk/smooks/tests/org.jboss.tools.smooks.core.test/projects/smooks-all-config-files/smooks-config-files/sj-testimonial_smooks-config.xml (rev 0)
+++ trunk/smooks/tests/org.jboss.tools.smooks.core.test/projects/smooks-all-config-files/smooks-config-files/sj-testimonial_smooks-config.xml 2009-10-28 08:39:20 UTC (rev 18333)
@@ -0,0 +1,118 @@
+<?xml version="1.0" encoding="ISO-8859-1" ?>
+<smooks-resource-list xmlns="http://www.milyn.org/xsd/smooks-1.1.xsd"
+ xmlns:edi="http://www.milyn.org/xsd/smooks/edi-1.1.xsd"
+ xmlns:jb="http://www.milyn.org/xsd/smooks/javabean-1.2.xsd">
+
+ <edi:reader mappingModel="edi-mapping.xml" />
+
+ <jb:bean beanId="rollingstocks" class="se.sj.ipl.rollingstock.domain.RollingStockList" createOnElement="rollingstocks">
+ <jb:wiring setterMethod="add" beanIdRef="rollingstock"/>
+ </jb:bean>
+
+ <jb:bean beanId="rollingstock" class="se.sj.ipl.rollingstock.domain.Rollingstock" createOnElement="rollingstocks/rollingstock">
+ <jb:wiring property="schedule" beanIdRef="rollingstock_schedule" />
+ <jb:wiring property="vehicles" beanIdRef="vehicles" />
+
+ <jb:value property="rollingstockId" data="rollingstock/rollingstockId" />
+ <jb:value property="route" data="rollingstock/route/route" />
+ </jb:bean>
+
+ <jb:bean beanId="rollingstock_schedule" class="se.sj.ipl.rollingstock.domain.Schedule" createOnElement="rollingstocks/rollingstock">
+
+ <jb:value property="departureStation" data="rollingstock departureSignature" />
+ <jb:value property="departureDate" decoder="Date" data="rollingstock departureDate" />
+ <jb:value property="departureTime" decoder="Time" data="rollingstock departureTime" />
+ <jb:value property="destination" data="rollingstock destinationSignature" />
+ </jb:bean>
+
+ <jb:bean beanId="vehicles" class="java.util.ArrayList" createOnElement="rollingstocks/rollingstock">
+ <jb:wiring beanIdRef="vehicle" />
+ </jb:bean>
+
+
+ <jb:bean beanId="vehicle" class="se.sj.ipl.rollingstock.domain.Vehicle" createOnElement="rollingstock/vehicle">
+ <jb:wiring property="schedule" beanIdRef="vehicle_schedule"/>
+ <jb:wiring property="weight" beanIdRef="vehicle_weight"/>
+ <jb:wiring property="dynamicWeight" beanIdRef="vehicle_dynamic_weight"/>
+ <jb:wiring property="dynamicBrakeWeight" beanIdRef="vehicle_dynamic_brake_weight"/>
+ <jb:wiring property="length" beanIdRef="vehicle_length"/>
+ <jb:wiring property="speed" beanIdRef="vehicle_speed"/>
+ <jb:wiring property="comments" beanIdRef="vehicle_comments"/>
+ <jb:wiring property="phoneNumbers" beanIdRef="vehicle_phonenumbers"/>
+ <jb:wiring property="passengerCarConfiguration" beanIdRef="passenger_car_configuration" />
+
+ <jb:value property="litt" data="vehicle litt" />
+ <jb:value property="originalLitt" data="vehicle originalLitt" />
+ <jb:value property="ticketId" data="vehicle ticketId" />
+ <jb:value property="vehicleId" data="vehicle vehicleId" />
+ <jb:value property="vehicleType" data="vehicle vehicleType" />
+ <jb:value property="nrOfAxles" decoder="Integer" data="vehicle nrOfAxles" />
+ <jb:value property="serviceType" data="vehicle serviceType" />
+ <jb:value property="canDoorsBeLocked" decoder="Boolean" data="vehicle canDoorsBeLocked" />
+ <jb:value property="positionInTrainAssembly" decoder="Boolean" data="vehicle positionInTrainAssembly" />
+ </jb:bean>
+
+
+ <jb:bean beanId="vehicle_schedule" class="se.sj.ipl.rollingstock.domain.Schedule" createOnElement="rollingstock/vehicle">
+ <jb:value property="departureStation" data="vehicle departureStation" />
+ <jb:value property="departureDate" decoder="Date" data="vehicle departureDate" />
+ <jb:value property="departureTime" decoder="Time" data="vehicle departureTime" />
+ <jb:value property="destination" data="vehicle destination" />
+ </jb:bean>
+
+ <jb:bean beanId="vehicle_weight" class="se.sj.ipl.rollingstock.domain.types.Weight" createOnElement="rollingstock/vehicle">
+ <jb:value property="weight" decoder="Double" data="vehicle weight" default="0" />
+ </jb:bean>
+
+ <jb:bean beanId="vehicle_dynamic_weight" class="se.sj.ipl.rollingstock.domain.types.Weight" createOnElement="rollingstock/vehicle">
+ <jb:value property="weight" decoder="Double" data="vehicle dynamicWeight" default="0" />
+ </jb:bean>
+
+ <jb:bean beanId="vehicle_dynamic_brake_weight" class="se.sj.ipl.rollingstock.domain.types.Weight" createOnElement="rollingstock/vehicle">
+ <jb:value property="weight" decoder="Double" data="vehicle brakeWeight" default="0" />
+ </jb:bean>
+
+ <jb:bean beanId="vehicle_length" class="se.sj.ipl.rollingstock.domain.types.Length" createOnElement="rollingstock/vehicle">
+ <jb:value property="length" decoder="Double" data="vehicle length" default="0" />
+ </jb:bean>
+
+ <jb:bean beanId="vehicle_speed" class="se.sj.ipl.rollingstock.domain.types.Speed" createOnElement="rollingstock/vehicle">
+ <jb:value property="speed" decoder="Double" data="vehicle speed" default="0" />
+ </jb:bean>
+
+ <jb:bean beanId="vehicle_comments" class="java.util.ArrayList" createOnElement="rollingstock/vehicle">
+ <jb:wiring beanIdRef="vehicle_comment" />
+ </jb:bean>
+
+ <jb:bean beanId="vehicle_comment" class="se.sj.ipl.rollingstock.domain.Comment" createOnElement="rollingstock/vehicle/comments/comment">
+ <jb:value property="comment" data="comments/comment" />
+ </jb:bean>
+
+ <jb:bean beanId="vehicle_phonenumbers" class="java.util.ArrayList" createOnElement="rollingstock/vehicle">
+ <jb:wiring beanIdRef="vehicle_phonenumber" />
+ </jb:bean>
+
+ <jb:bean beanId="vehicle_phonenumber" class="se.sj.ipl.rollingstock.domain.PhoneNumber" createOnElement="rollingstock/vehicle/phoneNumber">
+ <jb:value property="function" data="phoneNumber/function" />
+ <jb:value property="location" data="phoneNumber/location" />
+ <jb:value property="number" data="phoneNumber/phoneNumber" />
+ </jb:bean>
+
+ <jb:bean beanId="passenger_car_configuration" class="se.sj.ipl.rollingstock.domain.PassengerCarConfiguration" createOnElement="rollingstock/vehicle">
+ <jb:value property="class1" decoder="Integer" data="vehicle class1" default="0" />
+ <jb:value property="class2" decoder="Integer" data="vehicle class2" default="0" />
+ <jb:value property="couchette" decoder="Integer" data="vehicle couchette" default="0" />
+ <jb:value property="compartments" decoder="Integer" data="vehicle compartments" default="0" />
+ </jb:bean>
+
+ <resource-config selector="decoder:Time">
+ <resource>org.milyn.javabean.decoders.SqlTimeDecoder</resource>
+ <param name="format">HH:mm:ss</param>
+ </resource-config>
+
+ <resource-config selector="decoder:Date">
+ <resource>org.milyn.javabean.decoders.SqlDateDecoder</resource>
+ <param name="format">yyyy-MM-dd</param>
+ </resource-config>
+
+</smooks-resource-list>
Property changes on: trunk/smooks/tests/org.jboss.tools.smooks.core.test/projects/smooks-all-config-files/smooks-config-files/sj-testimonial_smooks-config.xml
___________________________________________________________________
Name: svn:mime-type
+ text/plain
Added: trunk/smooks/tests/org.jboss.tools.smooks.core.test/projects/smooks-all-config-files/smooks-config-files/smooks-configs_bindings.xml
===================================================================
--- trunk/smooks/tests/org.jboss.tools.smooks.core.test/projects/smooks-all-config-files/smooks-config-files/smooks-configs_bindings.xml (rev 0)
+++ trunk/smooks/tests/org.jboss.tools.smooks.core.test/projects/smooks-all-config-files/smooks-config-files/smooks-configs_bindings.xml 2009-10-28 08:39:20 UTC (rev 18333)
@@ -0,0 +1,40 @@
+<?xml version="1.0"?>
+<smooks-resource-list
+ xmlns="http://www.milyn.org/xsd/smooks-1.1.xsd"
+ xmlns:jb="http://www.milyn.org/xsd/smooks/javabean-1.2.xsd">
+
+ <!--
+ Virtual Model Binding Configurations for the order message elements...
+
+ Just capturing the order and order-item element details into 2
+ Maps, overwriting each as we iterate through the message i.e. not
+ accumulating them in memory => low memory footprint because we only
+ have details of the current order + current order-item in memory
+ at any given time (i.e. we never even have a full order in memory)...
+
+ The Database Schema (need to capture enough from the message to populate this):
+ ORDERS (ORDERNUMBER INTEGER, USERNAME VARCHAR(50), STATUS INTEGER, NET DOUBLE, TOTAL DOUBLE, ORDDATE DATE)
+ ORDERITEMS (ORDERNUMBER INTEGER, QUANTITY INTEGER, PRODUCT INTEGER, TITLE VARCHAR(50), PRICE DOUBLE)
+ -->
+
+ <jb:bean beanId="message" class="java.util.HashMap" createOnElement="message-header">
+ <jb:value property="date" data="message-header/date" decoder="Date">
+ <jb:decodeParam name="format">EEE MMM dd HH:mm:ss z yyyy</jb:decodeParam>
+ </jb:value>
+ </jb:bean>
+
+ <jb:bean beanId="order" class="java.util.HashMap" createOnElement="order">
+ <jb:value property="orderNum" data="order/order-id" decoder="Integer" />
+ <jb:value property="customerUname" data="order/customer-details/username" />
+ <jb:value property="status" data="order/status-code" decoder="Integer" />
+ <jb:value property="net" data="order/net-amount" decoder="BigDecimal" />
+ <jb:value property="total" data="order/total-amount" decoder="BigDecimal" />
+ </jb:bean>
+
+ <jb:bean beanId="orderItem" class="java.util.HashMap" createOnElement="order-item">
+ <!-- Just bind in all elements of the orderItem into the orderItem map. Property name is
+ taken from the element name... -->
+ <jb:value data="order-item/*" />
+ </jb:bean>
+
+</smooks-resource-list>
\ No newline at end of file
Property changes on: trunk/smooks/tests/org.jboss.tools.smooks.core.test/projects/smooks-all-config-files/smooks-config-files/smooks-configs_bindings.xml
___________________________________________________________________
Name: svn:mime-type
+ text/plain
Added: trunk/smooks/tests/org.jboss.tools.smooks.core.test/projects/smooks-all-config-files/smooks-config-files/smooks-configs_datasources.xml
===================================================================
--- trunk/smooks/tests/org.jboss.tools.smooks.core.test/projects/smooks-all-config-files/smooks-config-files/smooks-configs_datasources.xml (rev 0)
+++ trunk/smooks/tests/org.jboss.tools.smooks.core.test/projects/smooks-all-config-files/smooks-config-files/smooks-configs_datasources.xml 2009-10-28 08:39:20 UTC (rev 18333)
@@ -0,0 +1,15 @@
+<?xml version="1.0"?>
+<smooks-resource-list
+ xmlns="http://www.milyn.org/xsd/smooks-1.1.xsd"
+ xmlns:ds="http://www.milyn.org/xsd/smooks/datasource-1.1.xsd">
+
+ <ds:direct
+ bindOnElement="#document"
+ datasource="DBExtractTransformLoadDS"
+ driver="org.hsqldb.jdbcDriver"
+ url="jdbc:hsqldb:hsql://localhost:9201/milyn-hsql-9201"
+ username="sa"
+ password=""
+ autoCommit="false" />
+
+</smooks-resource-list>
\ No newline at end of file
Property changes on: trunk/smooks/tests/org.jboss.tools.smooks.core.test/projects/smooks-all-config-files/smooks-config-files/smooks-configs_datasources.xml
___________________________________________________________________
Name: svn:mime-type
+ text/plain
Added: trunk/smooks/tests/org.jboss.tools.smooks.core.test/projects/smooks-all-config-files/smooks-config-files/smooks-configs_edi-orders-parser.xml
===================================================================
--- trunk/smooks/tests/org.jboss.tools.smooks.core.test/projects/smooks-all-config-files/smooks-config-files/smooks-configs_edi-orders-parser.xml (rev 0)
+++ trunk/smooks/tests/org.jboss.tools.smooks.core.test/projects/smooks-all-config-files/smooks-config-files/smooks-configs_edi-orders-parser.xml 2009-10-28 08:39:20 UTC (rev 18333)
@@ -0,0 +1,11 @@
+<?xml version="1.0"?>
+<smooks-resource-list
+ xmlns="http://www.milyn.org/xsd/smooks-1.1.xsd"
+ xmlns:edi="http://www.milyn.org/xsd/smooks/edi-1.1.xsd">
+
+ <!--
+ Configure the EDI Reader to parse the message stream into a stream of SAX events.
+ -->
+ <edi:reader mappingModel="/edi-to-sax-order-mapping.xml" />
+
+</smooks-resource-list>
\ No newline at end of file
Property changes on: trunk/smooks/tests/org.jboss.tools.smooks.core.test/projects/smooks-all-config-files/smooks-config-files/smooks-configs_edi-orders-parser.xml
___________________________________________________________________
Name: svn:mime-type
+ text/plain
Added: trunk/smooks/tests/org.jboss.tools.smooks.core.test/projects/smooks-all-config-files/smooks-config-files/smooks-configs_smooks-config.xml
===================================================================
--- trunk/smooks/tests/org.jboss.tools.smooks.core.test/projects/smooks-all-config-files/smooks-config-files/smooks-configs_smooks-config.xml (rev 0)
+++ trunk/smooks/tests/org.jboss.tools.smooks.core.test/projects/smooks-all-config-files/smooks-config-files/smooks-configs_smooks-config.xml 2009-10-28 08:39:20 UTC (rev 18333)
@@ -0,0 +1,56 @@
+<?xml version="1.0"?>
+<smooks-resource-list
+ xmlns="http://www.milyn.org/xsd/smooks-1.1.xsd"
+ xmlns:db="http://www.milyn.org/xsd/smooks/db-routing-1.1.xsd">
+
+ <!--
+ Filter the message using the SAX Filter (i.e. not DOM, so no
+ intermediate DOM, so we can process huge messages...
+ -->
+ <params>
+ <param name="stream.filter.type">SAX</param>
+ </params>
+
+ <!--
+ Define the EDI stream parser for the orders message...
+ -->
+ <import file="edi-orders-parser.xml" />
+
+ <!--
+ Define the Database Datasource(s)...
+ -->
+ <import file="datasources.xml"/>
+
+ <!--
+ Define the Data Bindings. This is to bind the order and orderItem data into the ExecutionContext so it
+ can be used by the SQLExecutor for performing the inserts...
+ -->
+ <import file="bindings.xml"/>
+
+ <!-- ==================================================================================
+ Now define the DB Executor resource that will use the data bound from the EDI message
+ into the virtual data model defined in bindings.xml...
+ =================================================================================== -->
+
+ <!-- Assert whether it's an insert or update. Need to do this just before we do the
+ insert/update, which is triggered to happen just after the customer-details are processed... -->
+ <db:executor executeOnElement="customer-details" datasource="DBExtractTransformLoadDS" executeBefore="true">
+ <db:statement>select ORDERNUMBER from ORDERS where ORDERNUMBER = ${order.orderNum}</db:statement>
+ <db:resultSet name="orderExistsRS"/>
+ </db:executor>
+
+ <!-- If it's an insert (orderExistsRS.isEmpty()), insert the order at the end of the customer-details i.e. just before we process the order items... -->
+ <db:executor executeOnElement="customer-details" datasource="DBExtractTransformLoadDS" executeBefore="false">
+ <condition>orderExistsRS.isEmpty()</condition>
+ <db:statement>INSERT INTO ORDERS VALUES(${order.orderNum}, ${order.customerUname}, ${order.status}, ${order.net}, ${order.total}, ${message.date})</db:statement>
+ </db:executor>
+
+ <!-- And insert each orderItem... -->
+ <db:executor executeOnElement="order-item" datasource="DBExtractTransformLoadDS" executeBefore="false">
+ <condition>orderExistsRS.isEmpty()</condition>
+ <db:statement>INSERT INTO ORDERITEMS VALUES (${order.orderNum}, ${orderItem.quantity}, ${orderItem.productId}, ${orderItem.title}, ${orderItem.price})</db:statement>
+ </db:executor>
+
+ <!-- Ignoring updates for now!! -->
+
+</smooks-resource-list>
Property changes on: trunk/smooks/tests/org.jboss.tools.smooks.core.test/projects/smooks-all-config-files/smooks-config-files/smooks-configs_smooks-config.xml
___________________________________________________________________
Name: svn:mime-type
+ text/plain
Added: trunk/smooks/tests/org.jboss.tools.smooks.core.test/projects/smooks-all-config-files/smooks-config-files/smooks-configs_smooks-dao-config.xml
===================================================================
--- trunk/smooks/tests/org.jboss.tools.smooks.core.test/projects/smooks-all-config-files/smooks-config-files/smooks-configs_smooks-dao-config.xml (rev 0)
+++ trunk/smooks/tests/org.jboss.tools.smooks.core.test/projects/smooks-all-config-files/smooks-config-files/smooks-configs_smooks-dao-config.xml 2009-10-28 08:39:20 UTC (rev 18333)
@@ -0,0 +1,60 @@
+<?xml version="1.0"?>
+<smooks-resource-list
+ xmlns="http://www.milyn.org/xsd/smooks-1.1.xsd"
+ xmlns:jb="http://www.milyn.org/xsd/smooks/javabean-1.2.xsd"
+ xmlns:dao="http://www.milyn.org/xsd/smooks/persistence-1.2.xsd">
+
+ <!--
+ This is the normal Javabean binding. Notice that we have a wiring on customer. The
+ Customer entity will not be created but looked up by a locator.
+ -->
+ <jb:bean beanId="order" class="example.entity.Order" createOnElement="order">
+ <jb:value property="ordernumber" data="ordernumber" decoder="Integer" />
+ <jb:value property="orderDate" data="date" decoder="Date">
+ <jb:decodeParam name="format">yyyy-MM-dd HH:mm:ss</jb:decodeParam>
+ </jb:value>
+
+ <jb:wiring property="customer" beanIdRef="customer" />
+ <jb:wiring setterMethod="addOrderLine" beanIdRef="orderLine" />
+ </jb:bean>
+
+ <!--
+ The locator calls the CustomerDao#findById() method and expects a result. The result
+ will be added to the bean repository under the bean id "customer".
+ The locator know which method to call via the @Lookup annotation on the method. It knows
+ how to map the parameters because each method parameter is annotated with the @Param annotation.
+ -->
+ <dao:locator beanId="customer" dao="customer" lookup="id" lookupOnElement="order" onNoResult="EXCEPTION" >
+ <dao:params>
+ <dao:value name="id" data="customer" decoder="Integer"/>
+ </dao:params>
+ </dao:locator>
+
+ <!--
+ This is the normal Javabean binding. Notice that we have a wiring on product. The
+ Product entity will not be created but looked up by a locator.
+ -->
+ <jb:bean beanId="orderLine" class="example.entity.OrderLine" createOnElement="order-item">
+ <jb:value property="quantity" data="quantity" decoder="Integer"/>
+ <jb:wiring property="order" beanIdRef="order"/>
+ <jb:wiring property="product" beanIdRef="product"/>
+ </jb:bean>
+
+ <!--
+ This locator calls the ProductDao#findById() method and expects a result. The result
+ will be added to the bean repository under the bean id "customer".
+ -->
+ <dao:locator beanId="product" dao="product" lookup="id" lookupOnElement="order-item" onNoResult="EXCEPTION">
+ <dao:params>
+ <dao:value name="id" data="product" decoder="Integer"/>
+ </dao:params>
+ </dao:locator>
+
+ <!--
+ The inserter calls the OrderDao#insertOrder() method at the visitAfter of Order. The inserter
+ knows which method it needs to call via the @Persist annotation on the method.
+ The insertOrder method is responsible for inserting the Order.
+ -->
+ <dao:inserter beanId="order" dao="order" insertOnElement="order" />
+
+</smooks-resource-list>
Property changes on: trunk/smooks/tests/org.jboss.tools.smooks.core.test/projects/smooks-all-config-files/smooks-config-files/smooks-configs_smooks-dao-config.xml
___________________________________________________________________
Name: svn:mime-type
+ text/plain
Added: trunk/smooks/tests/org.jboss.tools.smooks.core.test/projects/smooks-all-config-files/smooks-config-files/smooks-configs_smooks-jpa-config.xml
===================================================================
--- trunk/smooks/tests/org.jboss.tools.smooks.core.test/projects/smooks-all-config-files/smooks-config-files/smooks-configs_smooks-jpa-config.xml (rev 0)
+++ trunk/smooks/tests/org.jboss.tools.smooks.core.test/projects/smooks-all-config-files/smooks-config-files/smooks-configs_smooks-jpa-config.xml 2009-10-28 08:39:20 UTC (rev 18333)
@@ -0,0 +1,62 @@
+<?xml version="1.0"?>
+<smooks-resource-list
+ xmlns="http://www.milyn.org/xsd/smooks-1.1.xsd"
+ xmlns:jb="http://www.milyn.org/xsd/smooks/javabean-1.2.xsd"
+ xmlns:dao="http://www.milyn.org/xsd/smooks/persistence-1.2.xsd">
+
+ <!--
+ This is the normal Javabean binding. Notice that we have a wiring on customer. The
+ Customer entity will not be created but looked up by a locator.
+ -->
+ <jb:bean beanId="order" class="example.entity.Order" createOnElement="order">
+ <jb:value property="ordernumber" data="ordernumber" decoder="Integer" />
+ <jb:value property="orderDate" data="date" decoder="Date">
+ <jb:decodeParam name="format">yyyy-MM-dd HH:mm:ss</jb:decodeParam>
+ </jb:value>
+
+ <jb:wiring property="customer" beanIdRef="customer" />
+ <jb:wiring setterMethod="addOrderLine" beanIdRef="orderLine" />
+ </jb:bean>
+
+ <!--
+ The locator calls the EntityManager#query() method and expects a result. The locator wants
+ a unique result but the query() method returns a list. The locator will check that there is only
+ one row and extract that row from the list. That entity is inserted into bean repository under
+ the bean id customer.
+ -->
+ <dao:locator beanId="customer" lookupOnElement="order" onNoResult="EXCEPTION" uniqueResult="true">
+ <dao:query>from Customer c where c.id = :id</dao:query>
+ <dao:params>
+ <dao:value name="id" data="customer" decoder="Integer"/>
+ </dao:params>
+ </dao:locator>
+
+ <!--
+ This is the normal Javabean binding. Notice that we have a wiring on product. The
+ Product entity will not be created but looked up by a locator.
+ -->
+ <jb:bean beanId="orderLine" class="example.entity.OrderLine" createOnElement="order-item">
+ <jb:value property="quantity" data="quantity" decoder="Integer"/>
+ <jb:wiring property="order" beanIdRef="order"/>
+ <jb:wiring property="product" beanIdRef="product"/>
+ </jb:bean>
+
+ <!--
+ The locator calls the EntityManager#query() method and expects a result. The locator wants
+ a unique result but the query() method returns a list. The locator will check that there is only
+ one row and extract that row from the list. That entity is inserted into bean repository under
+ the bean id product.
+ -->
+ <dao:locator beanId="product" lookupOnElement="order-item" onNoResult="EXCEPTION" uniqueResult="true">
+ <dao:query>from Product p where p.id = :id</dao:query>
+ <dao:params>
+ <dao:value name="id" data="product" decoder="Integer"/>
+ </dao:params>
+ </dao:locator>
+
+ <!--
+ The inserter calls the EntityManager#persist() method at the visitAfter of Order.
+ -->
+ <dao:inserter beanId="order" insertOnElement="order" />
+
+</smooks-resource-list>
Property changes on: trunk/smooks/tests/org.jboss.tools.smooks.core.test/projects/smooks-all-config-files/smooks-config-files/smooks-configs_smooks-jpa-config.xml
___________________________________________________________________
Name: svn:mime-type
+ text/plain
Added: trunk/smooks/tests/org.jboss.tools.smooks.core.test/projects/smooks-all-config-files/smooks-config-files/splitter-router_smooks-config.xml
===================================================================
--- trunk/smooks/tests/org.jboss.tools.smooks.core.test/projects/smooks-all-config-files/smooks-config-files/splitter-router_smooks-config.xml (rev 0)
+++ trunk/smooks/tests/org.jboss.tools.smooks.core.test/projects/smooks-all-config-files/smooks-config-files/splitter-router_smooks-config.xml 2009-10-28 08:39:20 UTC (rev 18333)
@@ -0,0 +1,43 @@
+<?xml version="1.0"?>
+<smooks-resource-list xmlns="http://www.milyn.org/xsd/smooks-1.1.xsd"
+ xmlns:jms="http://www.milyn.org/xsd/smooks/jms-routing-1.2.xsd"
+ xmlns:ftl="http://www.milyn.org/xsd/smooks/freemarker-1.1.xsd">
+
+ <!--
+ Filter the message using the SAX Filter (i.e. not DOM, so no
+ intermediate DOM, so we can process huge messages...
+ -->
+ <params>
+ <param name="stream.filter.type">SAX</param>
+ </params>
+
+ <!-- Capture the message data 2 seperate DOM models, for "order" and "order-item" fragments... -->
+ <resource-config selector="order,order-item">
+ <resource>org.milyn.delivery.DomModelCreator</resource>
+ </resource-config>
+
+ <!-- At each "order-iteam", apply a template to the "order" and "order-item" DOM models... -->
+ <ftl:freemarker applyOnElement="order-item">
+ <!--
+ Note in the template that we need to use the special FreeMarker variable ".vars"
+ because of the hyphenated variable names ("order-item"). See http://freemarker.org/docs/ref_specvar.html.
+ -->
+ <ftl:template>/orderitem-split.ftl</ftl:template>
+ <ftl:use>
+ <!-- Bind the templating result into the bean context, from where
+ it can be accessed by the JMSRouter (configured above). -->
+ <ftl:bindTo id="orderItem_xml"/>
+ </ftl:use>
+ </ftl:freemarker>
+
+ <!-- At each "order-iteam", route the "orderItem_xml" to the ActiveMQ JMS Queue... -->
+ <jms:router routeOnElement="order-item" beanId="orderItem_xml" destination="smooks.exampleQueue">
+ <jms:message>
+ <!-- Need to use special FreeMarker variable ".vars" -->
+ <jms:correlationIdPattern>${order.(a)id}-${.vars["order-item"].@id}</jms:correlationIdPattern>
+ </jms:message>
+ <jms:jndi properties="/activemq.sr.jndi.properties" />
+ <jms:highWaterMark mark="3"/>
+ </jms:router>
+
+</smooks-resource-list>
\ No newline at end of file
Property changes on: trunk/smooks/tests/org.jboss.tools.smooks.core.test/projects/smooks-all-config-files/smooks-config-files/splitter-router_smooks-config.xml
___________________________________________________________________
Name: svn:mime-type
+ text/plain
Added: trunk/smooks/tests/org.jboss.tools.smooks.core.test/projects/smooks-all-config-files/smooks-config-files/validation-basic_smooks-config.xml
===================================================================
--- trunk/smooks/tests/org.jboss.tools.smooks.core.test/projects/smooks-all-config-files/smooks-config-files/validation-basic_smooks-config.xml (rev 0)
+++ trunk/smooks/tests/org.jboss.tools.smooks.core.test/projects/smooks-all-config-files/smooks-config-files/validation-basic_smooks-config.xml 2009-10-28 08:39:20 UTC (rev 18333)
@@ -0,0 +1,37 @@
+<?xml version="1.0"?>
+<smooks-resource-list xmlns="http://www.milyn.org/xsd/smooks-1.1.xsd"
+ xmlns:rules="http://www.milyn.org/xsd/smooks/rules-1.0.xsd"
+ xmlns:validation="http://www.milyn.org/xsd/smooks/validation-1.0.xsd"
+ xmlns:jb="http://www.milyn.org/xsd/smooks/javabean-1.2.xsd">
+
+ <params>
+ <!-- Generate a ValidationException if we get more than 5 validation failures... -->
+ <param name="validation.maxFails">5</param>
+ </params>
+
+ <!-- Define the ruleBases that are used by the validation rules... -->
+ <rules:ruleBases>
+ <!-- Field value rules using regex... -->
+ <rules:ruleBase name="customer" src="rules/customer.properties" provider="org.milyn.rules.regex.RegexProvider"/>
+ <rules:ruleBase name="product" src="rules/product.properties" provider="org.milyn.rules.regex.RegexProvider"/>
+
+ <!-- Order business rules using MVEL expressions... -->
+ <rules:ruleBase name="order" src="rules/order-rules.csv" provider="org.milyn.rules.mvel.MVELProvider"/>
+ </rules:ruleBases>
+
+ <!-- Capture some order-item data into the bean context - required by the business rule validations... -->
+ <jb:bean beanId="orderDetails" class="java.util.HashMap" createOnElement="header">
+ <jb:value data="header/*"/>
+ </jb:bean>
+ <jb:bean beanId="orderItem" class="java.util.HashMap" createOnElement="order-item">
+ <jb:value data="order-item/*"/>
+ </jb:bean>
+
+ <!-- Target validation rules... -->
+ <validation:rule executeOn="header/username" name="customer.customerId" onFail="ERROR"/>
+ <validation:rule executeOn="email" name="customer.email" onFail="WARN"/>
+ <validation:rule executeOn="order-item/productId" name="product.productId" onFail="ERROR"/>
+
+ <validation:rule executeOn="order-item" name="order.order_item_total" onFail="ERROR"/>
+
+</smooks-resource-list>
Property changes on: trunk/smooks/tests/org.jboss.tools.smooks.core.test/projects/smooks-all-config-files/smooks-config-files/validation-basic_smooks-config.xml
___________________________________________________________________
Name: svn:mime-type
+ text/plain
Added: trunk/smooks/tests/org.jboss.tools.smooks.core.test/projects/smooks-all-config-files/smooks-config-files/xml-to-java-virtual_smooks-config.xml
===================================================================
--- trunk/smooks/tests/org.jboss.tools.smooks.core.test/projects/smooks-all-config-files/smooks-config-files/xml-to-java-virtual_smooks-config.xml (rev 0)
+++ trunk/smooks/tests/org.jboss.tools.smooks.core.test/projects/smooks-all-config-files/smooks-config-files/xml-to-java-virtual_smooks-config.xml 2009-10-28 08:39:20 UTC (rev 18333)
@@ -0,0 +1,51 @@
+<?xml version="1.0"?>
+<smooks-resource-list xmlns="http://www.milyn.org/xsd/smooks-1.1.xsd" xmlns:jb="http://www.milyn.org/xsd/smooks/javabean-1.2.xsd">
+
+ <!--
+ The "xml-to-java-virtual" sample config is the same as that of the "xml-to-java" sample accept for the fact that
+ xml-to-java-virtual uses HashMaps (virtual) in place of a fully defined (physical) object model.
+ -->
+
+ <!--
+ Create an "java.util.HashMap" bean instance when we visit the start of the <order> element.
+ Assign the new bean instance to the beanId of "order".
+ Wire in the "header" and "orderItems" beans.
+ -->
+ <jb:bean beanId="order" class="java.util.HashMap" createOnElement="order">
+ <jb:wiring property="header" beanIdRef="header" />
+ <jb:wiring property="orderItems" beanIdRef="orderItems" />
+ </jb:bean>
+
+ <!--
+ Create an ArrayList bean instance when we visit the start of the <order> element.
+ This bean is wired into the "order" bean.
+ -->
+ <jb:bean beanId="orderItems" class="java.util.ArrayList" createOnElement="order">
+ <jb:wiring beanIdRef="orderItem" />
+ </jb:bean>
+
+ <!--
+ Create an "java.util.HashMap" bean instance when we visit the start of the <header> element.
+ This bean is wired into the "order" bean.
+ -->
+ <jb:bean beanId="header" class="java.util.HashMap" createOnElement="header">
+ <jb:value property="date" decoder="Date" data="header/date">
+ <jb:decodeParam name="format">EEE MMM dd HH:mm:ss z yyyy</jb:decodeParam>
+ <jb:decodeParam name="locale-language">en</jb:decodeParam>
+ <jb:decodeParam name="locale-country">IE</jb:decodeParam>
+ </jb:value>
+ <jb:value property="customerNumber" decoder="Long" data="header/customer/@number" />
+ <jb:value property="customerName" data="header/customer" />
+ </jb:bean>
+
+ <!--
+ Create an "java.util.HashMap" bean instance when we visit the start of the <order-item> element.
+ This bean is wired into the "orderItems" ArrayList bean.
+ -->
+ <jb:bean beanId="orderItem" class="java.util.HashMap" createOnElement="order-item">
+ <jb:value property="productId" decoder="Long" data="order-item/product" />
+ <jb:value property="quantity" decoder="Integer" data="order-item/quantity" />
+ <jb:value property="price" decoder="Double" data="order-item/price" />
+ </jb:bean>
+
+</smooks-resource-list>
\ No newline at end of file
Property changes on: trunk/smooks/tests/org.jboss.tools.smooks.core.test/projects/smooks-all-config-files/smooks-config-files/xml-to-java-virtual_smooks-config.xml
___________________________________________________________________
Name: svn:mime-type
+ text/plain
Added: trunk/smooks/tests/org.jboss.tools.smooks.core.test/projects/smooks-all-config-files/smooks-config-files/xml-to-java_smooks-config.xml
===================================================================
--- trunk/smooks/tests/org.jboss.tools.smooks.core.test/projects/smooks-all-config-files/smooks-config-files/xml-to-java_smooks-config.xml (rev 0)
+++ trunk/smooks/tests/org.jboss.tools.smooks.core.test/projects/smooks-all-config-files/smooks-config-files/xml-to-java_smooks-config.xml 2009-10-28 08:39:20 UTC (rev 18333)
@@ -0,0 +1,46 @@
+<?xml version="1.0"?>
+<smooks-resource-list xmlns="http://www.milyn.org/xsd/smooks-1.1.xsd" xmlns:jb="http://www.milyn.org/xsd/smooks/javabean-1.2.xsd">
+
+ <!--
+ Create an "example.beans.Order" bean instance when we visit the start of the <order> element.
+ Assign the new bean instance to the beanId of "order".
+ Wire in the "header" and "orderItems" beans.
+ -->
+ <jb:bean beanId="order" class="example.model.Order" createOnElement="order">
+ <jb:wiring property="header" beanIdRef="header" />
+ <jb:wiring property="orderItems" beanIdRef="orderItems" />
+ </jb:bean>
+
+ <!--
+ Create an ArrayList bean instance when we visit the start of the <order> element.
+ This bean is wired into the "order" bean.
+ -->
+ <jb:bean beanId="orderItems" class="java.util.ArrayList" createOnElement="order">
+ <jb:wiring beanIdRef="orderItem" />
+ </jb:bean>
+
+ <!--
+ Create an "example.beans.Header" bean instance when we visit the start of the <header> element.
+ This bean is wired into the "order" bean.
+ -->
+ <jb:bean beanId="header" class="example.model.Header" createOnElement="header">
+ <jb:value property="date" decoder="Date" data="header/date">
+ <jb:decodeParam name="format">EEE MMM dd HH:mm:ss z yyyy</jb:decodeParam>
+ <jb:decodeParam name="locale-language">en</jb:decodeParam>
+ <jb:decodeParam name="locale-country">IE</jb:decodeParam>
+ </jb:value>
+ <jb:value property="customerNumber" decoder="Long" data="header/customer/@number" />
+ <jb:value property="customerName" data="header/customer" />
+ </jb:bean>
+
+ <!--
+ Create an "example.beans.OrderItem" bean instance when we visit the start of the <order-item> element.
+ This bean is wired into the "orderItems" ArrayList bean.
+ -->
+ <jb:bean beanId="orderItem" class="example.model.OrderItem" createOnElement="order-item">
+ <jb:value property="productId" decoder="Long" data="order-item/product" />
+ <jb:value property="quantity" decoder="Integer" data="order-item/quantity" />
+ <jb:value property="price" decoder="Double" data="order-item/price" />
+ </jb:bean>
+
+</smooks-resource-list>
\ No newline at end of file
Property changes on: trunk/smooks/tests/org.jboss.tools.smooks.core.test/projects/smooks-all-config-files/smooks-config-files/xml-to-java_smooks-config.xml
___________________________________________________________________
Name: svn:mime-type
+ text/plain
Added: trunk/smooks/tests/org.jboss.tools.smooks.core.test/projects/smooks-all-config-files/smooks-config-files/xslt-basic_smooks-config.xml
===================================================================
--- trunk/smooks/tests/org.jboss.tools.smooks.core.test/projects/smooks-all-config-files/smooks-config-files/xslt-basic_smooks-config.xml (rev 0)
+++ trunk/smooks/tests/org.jboss.tools.smooks.core.test/projects/smooks-all-config-files/smooks-config-files/xslt-basic_smooks-config.xml 2009-10-28 08:39:20 UTC (rev 18333)
@@ -0,0 +1,9 @@
+<?xml version="1.0"?>
+<smooks-resource-list xmlns="http://www.milyn.org/xsd/smooks-1.1.xsd"
+ xmlns:xsl="http://www.milyn.org/xsd/smooks/xsl-1.1.xsd">
+
+ <xsl:xsl applyOnElement="c/b">
+ <xsl:template>/example/BasicXslTransform.xsl</xsl:template>
+ </xsl:xsl>
+
+</smooks-resource-list>
Property changes on: trunk/smooks/tests/org.jboss.tools.smooks.core.test/projects/smooks-all-config-files/smooks-config-files/xslt-basic_smooks-config.xml
___________________________________________________________________
Name: svn:mime-type
+ text/plain
Added: trunk/smooks/tests/org.jboss.tools.smooks.core.test/projects/smooks-all-config-files/smooks-config-files/xslt-groovy_smooks-config.xml
===================================================================
--- trunk/smooks/tests/org.jboss.tools.smooks.core.test/projects/smooks-all-config-files/smooks-config-files/xslt-groovy_smooks-config.xml (rev 0)
+++ trunk/smooks/tests/org.jboss.tools.smooks.core.test/projects/smooks-all-config-files/smooks-config-files/xslt-groovy_smooks-config.xml 2009-10-28 08:39:20 UTC (rev 18333)
@@ -0,0 +1,28 @@
+<?xml version="1.0"?>
+<smooks-resource-list xmlns="http://www.milyn.org/xsd/smooks-1.1.xsd"
+ xmlns:xsl="http://www.milyn.org/xsd/smooks/xsl-1.1.xsd">
+
+ <!--
+ Break out the <date> field into separate "time", "day", "month" and "year" fields using Groovy.
+ This makes the complex date field value consumable by something like XSLT.
+ -->
+ <resource-config selector="header date">
+ <resource>/example/DateFormatter.groovy</resource>
+ <param name="input-format">EEE MMM dd HH:mm:ss z yyyy</param>
+ <param name="output-format">
+ time=HH:mm
+ day=dd
+ month=MM
+ year=yy
+ </param>
+ </resource-config>
+
+ <!--
+ Transform the document (as a whole) using XSLT. The complex date field has already been preprocessed into
+ separate fields using Groovy (see above config) - XSLT can handle it easily now :-)
+ -->
+ <xsl:xsl applyOnElement="#document">
+ <xsl:template>/example/order.xsl</xsl:template>
+ </xsl:xsl>
+
+</smooks-resource-list>
Property changes on: trunk/smooks/tests/org.jboss.tools.smooks.core.test/projects/smooks-all-config-files/smooks-config-files/xslt-groovy_smooks-config.xml
___________________________________________________________________
Name: svn:mime-type
+ text/plain
Added: trunk/smooks/tests/org.jboss.tools.smooks.core.test/projects/smooks-all-config-files/smooks-config-files/xslt-namespaces_smooks-config.xml
===================================================================
--- trunk/smooks/tests/org.jboss.tools.smooks.core.test/projects/smooks-all-config-files/smooks-config-files/xslt-namespaces_smooks-config.xml (rev 0)
+++ trunk/smooks/tests/org.jboss.tools.smooks.core.test/projects/smooks-all-config-files/smooks-config-files/xslt-namespaces_smooks-config.xml 2009-10-28 08:39:20 UTC (rev 18333)
@@ -0,0 +1,39 @@
+<?xml version="1.0"?>
+<smooks-resource-list xmlns="http://www.milyn.org/xsd/smooks-1.1.xsd"
+ xmlns:xsl="http://www.milyn.org/xsd/smooks/xsl-1.1.xsd">
+
+ <xsl:xsl applyOnElement="$document">
+ <xsl:template>
+ <![CDATA[
+ <xsl:stylesheet
+ xmlns:xsl="http://www.w3.org/1999/XSL/Transform" version="1.0"
+ xmlns:xhtml="http://www.w3.org/1999/xhtml"
+ exclude-result-prefixes="smk xhtml"
+ xmlns:smk="http://milyn.codehaus.org/Smooks">
+
+ <xsl:output method="xml" encoding="UTF-8"/>
+
+ <xsl:template match="/">
+ <CanonicalOrderFormat xmlns="http://canonical.codehaus.org/Order">
+ <orderId>
+ <xsl:value-of select="./smk:Order/smk:header/smk:order-id"/>
+ </orderId>
+ <item>
+ <productId>
+ <xsl:value-of select="./smk:Order/smk:order-item/smk:product-id"/>
+ </productId>
+ <title>
+ <xsl:value-of select="./smk:Order/smk:order-item/smk:title"/>
+ </title>
+ <price>
+ <xsl:value-of select="./smk:Order/smk:order-item/smk:price"/>
+ </price>
+ </item>
+ </CanonicalOrderFormat>
+ </xsl:template>
+ </xsl:stylesheet>
+ ]]>
+ </xsl:template>
+ </xsl:xsl>
+
+</smooks-resource-list>
Property changes on: trunk/smooks/tests/org.jboss.tools.smooks.core.test/projects/smooks-all-config-files/smooks-config-files/xslt-namespaces_smooks-config.xml
___________________________________________________________________
Name: svn:mime-type
+ text/plain
Added: trunk/smooks/tests/org.jboss.tools.smooks.core.test/src/org/jboss/tools/smooks/test/openeditor/AbstractSmooksEditorTestcase.java
===================================================================
--- trunk/smooks/tests/org.jboss.tools.smooks.core.test/src/org/jboss/tools/smooks/test/openeditor/AbstractSmooksEditorTestcase.java (rev 0)
+++ trunk/smooks/tests/org.jboss.tools.smooks.core.test/src/org/jboss/tools/smooks/test/openeditor/AbstractSmooksEditorTestcase.java 2009-10-28 08:39:20 UTC (rev 18333)
@@ -0,0 +1,78 @@
+/*******************************************************************************
+ * 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.smooks.test.openeditor;
+
+import java.util.ArrayList;
+import java.util.List;
+
+import junit.framework.TestCase;
+
+import org.eclipse.core.resources.IProject;
+import org.eclipse.core.resources.IWorkspace;
+import org.eclipse.core.resources.ResourcesPlugin;
+import org.eclipse.core.runtime.CoreException;
+import org.eclipse.ui.IEditorPart;
+import org.eclipse.ui.IWorkbench;
+import org.eclipse.ui.PlatformUI;
+import org.jboss.tools.common.test.util.TestProjectProvider;
+import org.jboss.tools.smooks.test.util.TestUtil;
+
+/**
+ * @author Dart
+ *
+ */
+public class AbstractSmooksEditorTestcase extends TestCase {
+
+ protected static final IWorkspace WorkSpace = ResourcesPlugin.getWorkspace();
+ protected static final IWorkbench WorkBench = PlatformUI.getWorkbench();
+
+ protected List<IEditorPart> editorList = new ArrayList<IEditorPart>();
+
+ protected IProject testProject = null;
+
+ private void setUpEnvironment() throws CoreException {
+ if (getTestProjectName() != null) {
+ TestProjectProvider provider = new TestProjectProvider(TestUtil.TEST_BUNDLE_NAME, "/projects/"
+ + getTestProjectName(), getTestProjectName(), true);
+ testProject = provider.getProject();
+ }
+ }
+
+ protected String getTestProjectName() {
+ return null;
+ }
+
+ /*
+ * (non-Javadoc)
+ *
+ * @see junit.framework.TestCase#setUp()
+ */
+ @Override
+ protected void setUp() throws Exception {
+ super.setUp();
+ setUpEnvironment();
+
+ }
+
+ /*
+ * (non-Javadoc)
+ *
+ * @see junit.framework.TestCase#tearDown()
+ */
+ @Override
+ protected void tearDown() throws Exception {
+ if (this.testProject != null) {
+ testProject.delete(true, null);
+ }
+ super.tearDown();
+ }
+
+}
Property changes on: trunk/smooks/tests/org.jboss.tools.smooks.core.test/src/org/jboss/tools/smooks/test/openeditor/AbstractSmooksEditorTestcase.java
___________________________________________________________________
Name: svn:mime-type
+ text/plain
Added: trunk/smooks/tests/org.jboss.tools.smooks.core.test/src/org/jboss/tools/smooks/test/openeditor/OpenAllSmooksConfigFileTestCase.java
===================================================================
--- trunk/smooks/tests/org.jboss.tools.smooks.core.test/src/org/jboss/tools/smooks/test/openeditor/OpenAllSmooksConfigFileTestCase.java (rev 0)
+++ trunk/smooks/tests/org.jboss.tools.smooks.core.test/src/org/jboss/tools/smooks/test/openeditor/OpenAllSmooksConfigFileTestCase.java 2009-10-28 08:39:20 UTC (rev 18333)
@@ -0,0 +1,102 @@
+/*******************************************************************************
+ * 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.smooks.test.openeditor;
+
+import java.io.File;
+import java.io.IOException;
+import java.net.URISyntaxException;
+import java.util.Iterator;
+
+import junit.framework.Assert;
+
+import org.eclipse.core.resources.IFile;
+import org.eclipse.core.resources.IFolder;
+import org.eclipse.ui.IEditorPart;
+import org.eclipse.ui.IWorkbenchWindow;
+import org.eclipse.ui.PartInitException;
+import org.eclipse.ui.ide.IDE;
+import org.jboss.tools.smooks.configuration.editors.uitls.SmooksUIUtils;
+import org.jboss.tools.smooks.editor.AbstractSmooksFormEditor;
+
+/**
+ * @author Dart
+ *
+ */
+public class OpenAllSmooksConfigFileTestCase extends AbstractSmooksEditorTestcase {
+
+ /*
+ * (non-Javadoc)
+ *
+ * @see
+ * org.jboss.tools.smooks.test.openeditor.AbstractSmooksEditorTestcase#setUp
+ * ()
+ */
+ @Override
+ protected void setUp() throws Exception {
+ super.setUp();
+ for (Iterator<?> iterator = editorList.iterator(); iterator.hasNext();) {
+ IEditorPart editor = (IEditorPart) iterator.next();
+ editor.dispose();
+ }
+ editorList.clear();
+ }
+
+ /*
+ * (non-Javadoc)
+ *
+ * @see
+ * org.jboss.tools.smooks.test.openeditor.AbstractSmooksEditorTestcase#tearDown
+ * ()
+ */
+ @Override
+ protected void tearDown() throws Exception {
+ for (Iterator<?> iterator = editorList.iterator(); iterator.hasNext();) {
+ IEditorPart editor = (IEditorPart) iterator.next();
+ editor.dispose();
+ }
+ editorList.clear();
+ super.tearDown();
+ }
+
+ /*
+ * (non-Javadoc)
+ *
+ * @seeorg.jboss.tools.smooks.test.openeditor.AbstractSmooksEditorTestcase#
+ * getTestProjectName()
+ */
+ @Override
+ protected String getTestProjectName() {
+ return "smooks-all-config-files";
+ }
+
+ public void testOpenAllFiles() throws URISyntaxException, PartInitException, IOException {
+ if (this.testProject != null) {
+ IFolder folder = testProject.getFolder("smooks-config-files");
+ if (folder.exists()) {
+ File file = folder.getLocation().toFile();
+ File[] files = file.listFiles();
+ for (int i = 0; i < files.length; i++) {
+ File childFile = files[i];
+ IFile cf = folder.getFile(childFile.getName());
+ if (SmooksUIUtils.isSmooksFile(cf)) {
+ IWorkbenchWindow window = WorkBench.getActiveWorkbenchWindow();
+ IEditorPart part = IDE.openEditor(window.getActivePage(), cf);
+ Assert.assertNotNull(part);
+ Assert.assertTrue(
+ "Editor isn't Smooks editor , there are some errors occur when create Smooks Editor",
+ (part instanceof AbstractSmooksFormEditor));
+ System.out.println("successful to open file : '" + cf.getName() + "'");
+ }
+ }
+ }
+ }
+ }
+}
Property changes on: trunk/smooks/tests/org.jboss.tools.smooks.core.test/src/org/jboss/tools/smooks/test/openeditor/OpenAllSmooksConfigFileTestCase.java
___________________________________________________________________
Name: svn:mime-type
+ text/plain
Added: trunk/smooks/tests/org.jboss.tools.smooks.core.test/src/org/jboss/tools/smooks/test/openeditor/testfiles/java-to-java.xml
===================================================================
--- trunk/smooks/tests/org.jboss.tools.smooks.core.test/src/org/jboss/tools/smooks/test/openeditor/testfiles/java-to-java.xml (rev 0)
+++ trunk/smooks/tests/org.jboss.tools.smooks.core.test/src/org/jboss/tools/smooks/test/openeditor/testfiles/java-to-java.xml 2009-10-28 08:39:20 UTC (rev 18333)
@@ -0,0 +1,36 @@
+<?xml version="1.0" encoding="UTF-8"?>
+<smooks-resource-list xmlns="http://www.milyn.org/xsd/smooks-1.1.xsd" xmlns:graph="http://www.jboss.org/jbosstools/smooks/smooks-graphics-ext.xsd" xmlns:jb="http://www.milyn.org/xsd/smooks/javabean-1.2.xsd">
+ <params>
+ <param name="stream.filter.type">SAX</param>
+ </params>
+ <jb:bean beanId="lineOrder" class="example.trgmodel.LineOrder" createOnElement="example.srcmodel.Order">
+ <jb:value data="header/customerNumber" property="customerId"/>
+ <jb:value data="header/customerName" property="customerName"/>
+ <jb:value data="header/priority" decoder="Enum" property="priority">
+ <jb:decodeParam name="enumType">example.trgmodel.LineOrderPriority
+ </jb:decodeParam>
+ <jb:decodeParam name="LOW">NOT_IMPORTANT</jb:decodeParam>
+ <jb:decodeParam name="MEDIUM">IMPORTANT</jb:decodeParam>
+ <jb:decodeParam name="HIGH">VERY_IMPORTANT</jb:decodeParam>
+ </jb:value>
+ <jb:wiring beanIdRef="lineItems" property="lineItems"/>
+ </jb:bean>
+ <jb:bean beanId="lineItems" class="example.trgmodel.LineItem[]" createOnElement="orderItems">
+ <jb:wiring beanIdRef="lineItem"/>
+ </jb:bean>
+ <jb:bean beanId="lineItem" class="example.trgmodel.LineItem" createOnElement="example.srcmodel.OrderItem">
+ <jb:value data="example.srcmodel.OrderItem/productId" property="productCode"/>
+ <jb:value data="example.srcmodel.OrderItem/quantity" decoder="Integer" property="unitQuantity"/>
+ <jb:value data="example.srcmodel.OrderItem/price" decoder="BigDecimal" property="unitPrice"/>
+ </jb:bean>
+ <graph:smooks-graphics-ext platformVersion="1.2">
+ <graph:graph/>
+ <graph:processes>
+ <graph:process>
+ <graph:task id="input" name="Input Task">
+ <graph:task id="java_mapping" name="Java Mapping"/>
+ </graph:task>
+ </graph:process>
+ </graph:processes>
+ </graph:smooks-graphics-ext>
+</smooks-resource-list>
\ No newline at end of file
Property changes on: trunk/smooks/tests/org.jboss.tools.smooks.core.test/src/org/jboss/tools/smooks/test/openeditor/testfiles/java-to-java.xml
___________________________________________________________________
Name: svn:mime-type
+ text/plain
Added: trunk/smooks/tests/org.jboss.tools.smooks.core.test/src/org/jboss/tools/smooks/test/util/TestUtil.java
===================================================================
--- trunk/smooks/tests/org.jboss.tools.smooks.core.test/src/org/jboss/tools/smooks/test/util/TestUtil.java (rev 0)
+++ trunk/smooks/tests/org.jboss.tools.smooks.core.test/src/org/jboss/tools/smooks/test/util/TestUtil.java 2009-10-28 08:39:20 UTC (rev 18333)
@@ -0,0 +1,13 @@
+package org.jboss.tools.smooks.test.util;
+
+import org.eclipse.core.runtime.Platform;
+import org.osgi.framework.Bundle;
+
+public class TestUtil {
+
+ public static final String TEST_BUNDLE_NAME = "org.jboss.tools.smooks.core.test";
+
+ public static Bundle getSmooksCoreTestBundle() {
+ return Platform.getBundle("org.jboss.tools.smooks.core.test");
+ }
+}
Property changes on: trunk/smooks/tests/org.jboss.tools.smooks.core.test/src/org/jboss/tools/smooks/test/util/TestUtil.java
___________________________________________________________________
Name: svn:mime-type
+ text/plain
15 years, 1 month
JBoss Tools SVN: r18332 - in trunk/documentation/whatsnew: core and 8 other directories.
by jbosstools-commits@lists.jboss.org
Author: dgolovin
Date: 2009-10-27 21:26:12 -0400 (Tue, 27 Oct 2009)
New Revision: 18332
Added:
trunk/documentation/whatsnew/jst/images/composite-comp-ca.png
trunk/documentation/whatsnew/jst/images/touch-descriptors.png
trunk/documentation/whatsnew/vpe/images/jsf2composition1.png
trunk/documentation/whatsnew/vpe/images/selection-bar1.png
trunk/documentation/whatsnew/vpe/vpe-news-3.1.0.M4.html
Removed:
trunk/documentation/whatsnew/jst/touch-descriptors.png
trunk/documentation/whatsnew/vpe/vpe-news-3.1.0.M3.html
Modified:
trunk/documentation/whatsnew/as/as-news-3.1.0.M4.html
trunk/documentation/whatsnew/core/core-news-3.1.0.M4.html
trunk/documentation/whatsnew/esb/esb-news-1.1.0.M4.html
trunk/documentation/whatsnew/examples/examples-news-1.1.0.M4.html
trunk/documentation/whatsnew/hibernate/hibernate-news-3.3.0.M4.html
trunk/documentation/whatsnew/jst/jst-news-1.0.0.beta2.html
trunk/documentation/whatsnew/jst/jst-news-3.1.0.M4.html
trunk/documentation/whatsnew/smooks/smooks-news-1.1.0.M4.html
Log:
New and Noteworthy Update 30% done
Modified: trunk/documentation/whatsnew/as/as-news-3.1.0.M4.html
===================================================================
--- trunk/documentation/whatsnew/as/as-news-3.1.0.M4.html 2009-10-28 00:40:44 UTC (rev 18331)
+++ trunk/documentation/whatsnew/as/as-news-3.1.0.M4.html 2009-10-28 01:26:12 UTC (rev 18332)
@@ -2,12 +2,12 @@
<head>
<link rel="stylesheet" href="../whatsnew.css">
-<title>JBoss AS Tools 2.1.0.M3 News</title>
+<title>JBoss AS Tools 2.1.0.M4 News</title>
</head>
<body>
-<h1>JBoss AS Tools 3.1.0.M3 - New and Noteworthy</h1>
+<h1>JBoss AS Tools 3.1.0.M4 - New and Noteworthy</h1>
<p align="right"><a href="../index.html">< Main Index</a> <a href="../hibernate/hibernate-news-3.3.0.M3.html">Hibernate Tools ></a></p>
@@ -16,7 +16,7 @@
<tr>
<td colspan="2">
<hr/>
- <h3>Server</h3>
+ <h3>XML Catalog</h3>
<hr/>
</td>
</tr>
@@ -24,15 +24,17 @@
<tr>
<td valign="top" align="left">
<p align="right">
- <b>Configure filesets for Servers</b></td>
+ <b>JBoss AS 5.1 schemas added</b></td>
<td valign="top">
- <p>There is now a preference page for configuring default filesets for server types.</p>
-
- <p><img src="../images/default_fileset_for_servers.png"/></p>
-
- <p>This can be used to setup which files inside the server configuration you wish to have easy access from the Server view, i.e. define **/*-log4j.xml for JBoss servers if you want to easily access the logging configuration files.</p>
-
- <p><small><a href="https://jira.jboss.org/jira/browse/JBIDE-2534">Related jira</a></small></p>
+ <p>Now XML Catalog contains schemas for JBoss AS 5.1.0.GA listed below:</p>
+ <ul>
+ <li>jboss-common_5_1.xsd</li>
+ <li>jboss_5_1.xsd</li>
+ <li>jboss-ds_5_0.xsd</li>
+ <li>jboss-web_5_1.xsd</li>
+ <li>jboss-client_5_1.xsd</li>
+ </ul>
+ <p><small><a href="https://jira.jboss.org/jira/browse/JBIDE-5030">Related jira</a></small></p>
</td>
</tr>
@@ -42,50 +44,6 @@
</td>
</tr>
- <tr>
- <td valign="top" align="left">
- <p align="right">
- <b>JBoss configuration Variable</b></td>
- <td valign="top">
- <p>You can now use <code>${jboss_config}</code> to refer to the selected JBoss Configuration to allow for portable filesets.</p>
- <p><img src="../images/config_variable_in_filefilter.png"/></p>
-
- <p>Since this variable is an Eclipse Variable it can even be
- used in launch configurations and similar places. Here a
- specific server/runtime needs to be named,
- i.e. <code>${jboss_config:JMyBoss4}</code>.
-
- <p><small><a href="https://jira.jboss.org/jira/browse/JBIDE-4680">Related jira</a></small></p>
- </td>
- </tr>
-
- <tr>
- <td colspan="2">
- <hr/>
- </td>
- </tr>
-
- <tr>
- <td valign="top" align="left">
- <p align="right">
- <b>Updated icons/images to new JBoss logo</b></td>
- <td valign="top">
- <p>The new wizards for Server types now uses the new JBoss logo</p>
-
- <p><img src="../images/jbosslogo_server.png"/></p>
-
- <p><small><a href="https://jira.jboss.org/jira/browse/JBIDE-4709">Related jira</a></small></p>
- </td>
- </tr>
-
- <tr>
- <td colspan="2">
- <hr/>
- </td>
- </tr>
-
-
-
</table>
</body>
Modified: trunk/documentation/whatsnew/core/core-news-3.1.0.M4.html
===================================================================
--- trunk/documentation/whatsnew/core/core-news-3.1.0.M4.html 2009-10-28 00:40:44 UTC (rev 18331)
+++ trunk/documentation/whatsnew/core/core-news-3.1.0.M4.html 2009-10-28 01:26:12 UTC (rev 18332)
@@ -6,38 +6,28 @@
<meta http-equiv="Content-Language" content="en-us" />
<meta http-equiv="Content-Type" content="text/html; charset=iso-8859-1" />
<link rel="stylesheet" href="../whatsnew.css" />
-<title>What's New</title>
+<title>What's New Core/General 3.1.0.M4</title>
</head>
<body>
-<h1>What's New Core/General</h1>
+<h1>What's New Core/General 3.1.0.M4</h1>
<p align="right"><a href="../index.html">< Main Index</a> <a
href="../jst/jst-news-3.1.0.M4.html">JST Tools ></a></p>
<table border="0" cellpadding="10" cellspacing="0" width="80%">
- <tr>
+ <!--tr>
<td colspan="2">
<hr />
- <h3>Project Archives</h3>
+ <h3>Web Projects View</h3>
<hr />
</td>
</tr>
<tr>
- <td valign="top" align="left"><a name="itemname3" id="itemname3"></a><b>Nested archives now supports incremental updates</b></td>
+ <td valign="top" align="left"><a name="itemname3" id="itemname3"></a><b>Menu key is supported</b></td>
<td valign="top">
- <p>Previously nested project archives were possible to define, but updates in a nested archive were not always happening.</p>
+ <p>Menu key now shows the same context menu in 'Web Projects' view as right mouse click does. </p>
- <p>This is now fixed allowing you to have structures like the following:</p>
-
- <p>
- <verbatim>
- x.jar
- ear/x.ear
- ear/x.ear/x.jar
- </verbatim>
- <p>And when updating x.jar in the top-level the ear project's version of x.jar will now also be updated.</p>
-
<p><small><a
- href="https://jira.jboss.org/jira/browse/JBIDE-4249">Related Jira</a></small></p>
+ href="https://jira.jboss.org/jira/browse/JBIDE-5041">Related Jira</a></small></p>
</td>
</tr>
@@ -45,42 +35,8 @@
<tr>
<td colspan="2"><hr />
</td>
- </tr>
+ </tr-->
- <tr>
- <td valign="top" align="left"><a name="itemname3" id="itemname3"></a><b>Build Project Archive Action</b></td>
- <td valign="top">
- <p>There is now a "Build Project Archive" action which users can configure a hotkey for if they wish.</p>
- <p>When invoked the project for the currently selected resource will be built.</p>
- <p><img src="../images/build_project_archives_action.png"/></p>
-
- <p><small><a
- href="https://jira.jboss.org/jira/browse/JBIDE-2452">Related Jira</a></small></p>
-
- </td>
- </tr>
-
- <tr>
- <td colspan="2">
- <hr />
- <h3>Properties editor</h3>
- <hr />
- </td>
- </tr>
- <tr>
- <td valign="top" align="left"><a name="itemname3" id="itemname3"></a><b>Filter/Search Regular Expression</b></td>
- <td valign="top">
- <p>The JBoss Tools properties editor's filter field now supports regular expressions.</p>
-
- <p><img src="../images/properties_regular_expression.png"/></p>
-
- <p>By default the Name and Value fields are just substring seach, but if you enable "Expressions" you can use regular expressions.</p>
-
- <p><small><a
- href="https://jira.jboss.org/jira/browse/JBIDE-4576">Related Jira</a></small></p>
- </td>
- </tr>
-
</table>
</body>
Modified: trunk/documentation/whatsnew/esb/esb-news-1.1.0.M4.html
===================================================================
--- trunk/documentation/whatsnew/esb/esb-news-1.1.0.M4.html 2009-10-28 00:40:44 UTC (rev 18331)
+++ trunk/documentation/whatsnew/esb/esb-news-1.1.0.M4.html 2009-10-28 01:26:12 UTC (rev 18332)
@@ -6,10 +6,10 @@
<meta http-equiv="Content-Language" content="en-us" />
<meta http-equiv="Content-Type" content="text/html; charset=iso-8859-1" />
<link rel="stylesheet" href="../whatsnew.css"/>
-<title>ESB tools 1.1.0.CR2 What's New</title>
+<title>ESB tools 1.1.0.M4 What's New</title>
</head>
<body>
-<h1>ESB tools 1.1.0.CR2 What's New</h1>
+<h1>ESB tools 1.1.0.M4 What's New</h1>
<p align="right"><a href="../index.html">< Main Index</a> <a href="../smooks/smooks-news-1.1.0.M4.html">Smooks Tools ></a></p>
Modified: trunk/documentation/whatsnew/examples/examples-news-1.1.0.M4.html
===================================================================
--- trunk/documentation/whatsnew/examples/examples-news-1.1.0.M4.html 2009-10-28 00:40:44 UTC (rev 18331)
+++ trunk/documentation/whatsnew/examples/examples-news-1.1.0.M4.html 2009-10-28 01:26:12 UTC (rev 18332)
@@ -6,10 +6,10 @@
<meta http-equiv="Content-Language" content="en-us" />
<meta http-equiv="Content-Type" content="text/html; charset=iso-8859-1" />
<link rel="stylesheet" href="../whatsnew.css"/>
-<title>Examples 1.1.0.M1 What's New</title>
+<title>Examples 1.1.0.M4 What's New</title>
</head>
<body>
-<h1>Examples 1.1.0.M1 What's New</h1>
+<h1>Examples 1.1.0.M4 What's New</h1>
<p align="right"><a href="../index.html">< Main Index</a> <a href="../esb/esb-news-1.1.0.M4.html">ESB Tools ></a></p>
@@ -22,14 +22,14 @@
</td>
</tr>
<td valign="top" align="right">
- <a name="itemnam2e" id="itemname2"></a><b>User provided project examples</b>
+ <a name="itemnam2e" id="itemname2"></a><b>Seam 2.2 Examples</b>
</td>
<td width="70%" valign="top">
- <p>You can now add your own project examples url to JBoss Tools without providing a plugin. Allowing you to use 3rd party project examples or simply just try out creating your own.</p>
+ <p>DVD Store and Booking examples were migrated to Seam 2.2 and adapted for JBoss EAP5. They are available from Experimental Sites.</p>
<p><img src="../images/customprojectexamples.png"/></p>
- <p><small><a href="https://jira.jboss.org/jira/browse/JBIDE-4292">Related jira</a></small></p>
+ <p><small><a href="https://jira.jboss.org/jira/browse/JBIDE-5012">Related jira</a></small></p>
</td>
</tr>
Modified: trunk/documentation/whatsnew/hibernate/hibernate-news-3.3.0.M4.html
===================================================================
--- trunk/documentation/whatsnew/hibernate/hibernate-news-3.3.0.M4.html 2009-10-28 00:40:44 UTC (rev 18331)
+++ trunk/documentation/whatsnew/hibernate/hibernate-news-3.3.0.M4.html 2009-10-28 01:26:12 UTC (rev 18332)
@@ -6,10 +6,10 @@
<meta http-equiv="Content-Language" content="en-us" />
<meta http-equiv="Content-Type" content="text/html; charset=iso-8859-1" />
<link rel="stylesheet" href="../whatsnew.css"/>
-<title>Hibernate tools 3.3.0.M3 What's New</title>
+<title>Hibernate tools 3.3.0.M4 What's New</title>
</head>
<body>
-<h1>Hibernate tools 3.3.0.M3 What's New</h1>
+<h1>Hibernate tools 3.3.0.M4 What's New</h1>
<p align="right"><a href="../index.html">< Main Index</a> <a href="../maven/maven-news-1.0.0.M3.html">Maven Tools ></a></p>
Added: trunk/documentation/whatsnew/jst/images/composite-comp-ca.png
===================================================================
(Binary files differ)
Property changes on: trunk/documentation/whatsnew/jst/images/composite-comp-ca.png
___________________________________________________________________
Name: svn:mime-type
+ application/octet-stream
Copied: trunk/documentation/whatsnew/jst/images/touch-descriptors.png (from rev 18300, trunk/documentation/whatsnew/jst/touch-descriptors.png)
===================================================================
(Binary files differ)
Property changes on: trunk/documentation/whatsnew/jst/images/touch-descriptors.png
___________________________________________________________________
Name: svn:mime-type
+ application/octet-stream
Modified: trunk/documentation/whatsnew/jst/jst-news-1.0.0.beta2.html
===================================================================
--- trunk/documentation/whatsnew/jst/jst-news-1.0.0.beta2.html 2009-10-28 00:40:44 UTC (rev 18331)
+++ trunk/documentation/whatsnew/jst/jst-news-1.0.0.beta2.html 2009-10-28 01:26:12 UTC (rev 18332)
@@ -32,7 +32,7 @@
</p>
<p>
- <img src="touch-descriptors.png"/>
+ <img src="images/touch-descriptors.png"/>
</p>
<p>Note: The touch feature is intelligent enough to detect which descriptor to touch according to what type of project that is currently selected. e.g. if you are in WAR that is deployed into an EAR it will also touch the EAR's descriptors to ensure it is also properly restarted; if the WAR is not in an EAR only the war descriptors will be touched. Same procedure happens for EJB jar's.</p>
Modified: trunk/documentation/whatsnew/jst/jst-news-3.1.0.M4.html
===================================================================
--- trunk/documentation/whatsnew/jst/jst-news-3.1.0.M4.html 2009-10-28 00:40:44 UTC (rev 18331)
+++ trunk/documentation/whatsnew/jst/jst-news-3.1.0.M4.html 2009-10-28 01:26:12 UTC (rev 18332)
@@ -5,97 +5,80 @@
<head>
<meta http-equiv="Content-Language" content="en-us" />
<meta http-equiv="Content-Type" content="text/html; charset=iso-8859-1" />
-<link rel="stylesheet" href="../whatsnew.css"/>
-<title>JST/JSF 3.1.0.M3 What's New</title>
+<link rel="stylesheet" href="../whatsnew.css" />
+<title>JST/JSF 3.1.0.M4 What's New</title>
</head>
<body>
-<h1>JST/JSF 3.1.0.M3 What's New</h1>
+<h1>JST/JSF 3.1.0.M4 What's New</h1>
-<p align="right"><a href="../core/core-news-3.1.0.M4.html">< Main Index</a> <a href="../as/as-news-3.1.0.M4.html">Server Tools ></a></p>
+<p align="right"><a href="../core/core-news-3.1.0.M4.html"><
+Main Index</a> <a href="../as/as-news-3.1.0.M4.html">Server Tools ></a></p>
<table border="0" cellpadding="10" cellspacing="0" width="80%">
- <tr>
- <td colspan="2">
- <hr/>
- <h3>OpenOn</h3>
- <hr/>
- </td>
- </tr>
- <tr>
- <td valign="top" align="left">
- <p><b>EL Variables</b></p></td>
- <td valign="top"><p>OpenOn's are now available for source elements.</p>
+ <tr>
+ <td colspan="2">
+ <hr />
+ <h3>Web Projects View</h3>
+ <hr />
+ </td>
+ </tr>
+ <tr>
+ <td valign="top" align="left"><a name="itemname3" id="itemname3"></a><b>Menu
+ key is supported</b></td>
+ <td valign="top">
+ <p>Menu key now shows the same context menu in 'Web Projects' view
+ as right mouse click does.</p>
- <p><small><a href="https://jira.jboss.org/jira/browse/JBIDE-2806">Related Jira</a></small></p>
- </td>
- </tr>
+ <p><small><a
+ href="https://jira.jboss.org/jira/browse/JBIDE-5041">Related Jira</a></small></p>
- <tr>
- <td colspan="2">
- <hr/>
- <h3>Code assist</h3>
- <hr/>
- </td>
- </tr>
- <tr>
- <td valign="top" align="left">
- <p><b>Unified EL completion for Seam and JSF projects</b></p></td>
- <td valign="top"><p>EL completion for Seam and JSF projects are now unified (uses same codebase).</p>
+ </td>
+ </tr>
-<p>In previous releases there were small differences between how code completion were done for projects with or without Seam configured, i.e. code completion for Seam variables were not available in Wizards and property sheets and some of the features of JBoss EL were not honored in JSF projects.</p>
+ <tr>
+ <td colspan="2">
+ <hr />
+ <h3>RichFaces 3.3.2.SR1 Update</h3>
+ <hr />
+ </td>
+ </tr>
+ <tr>
+ <td valign="top" align="left"><a name="itemname3" id="itemname3"></a><b>Menu
+ key is supported</b></td>
+ <td valign="top">
+ <p>Richfaces 3.3 Capability was updated to Richfaces 3.3.2.SR1
+ release</p>
- <p><small>Related jiras: <a href="https://jira.jboss.org/jira/browse/JBIDE-2920">1</a>, <a href="https://jira.jboss.org/jira/browse/JBIDE-1826">2</a></small></p>
- </td>
- </tr>
- <tr>
- <td colspan="2"><hr />
- </td>
- </tr>
+ <p><small><a
+ href="https://jira.jboss.org/jira/browse/JBIDE-5025">Related Jira</a></small></p>
- <tr>
- <td valign="top" align="left">
- <p><b>EL completion in style attributes</b></p></td>
- <td valign="top"><p>Code assist for EL variables are now available in style attributes of XHTML files.</p>
+ </td>
+ </tr>
- <p><small><a href="https://jira.jboss.org/jira/browse/JBIDE-3750">Related Jira</a></small></p>
- </td>
- </tr>
- <tr>
- <td colspan="2"><hr />
- </td>
- </tr>
+ <tr>
+ <td colspan="2">
+ <hr />
+ <h3>Code Assists</h3>
+ <hr />
+ </td>
+ </tr>
+ <tr>
+ <td valign="top" align="left"><a name="itemname3" id="itemname3"></a><b>JSF 2 Composite Component Attributes</b></td>
+ <td valign="top">
+ <p>Content assists support added for JSF 2 Composite UI Components</p>
+ <p><img src="images/composite-comp-ca.png" /></p>
+ <p><small><a
+ href="https://jira.jboss.org/jira/browse/JBIDE-5025">Related Jira</a></small></p>
- <tr>
- <td valign="top" align="left">
- <p><b>Information hover for JSF tags</b></p></td>
- <td valign="top"><p>When code completing JSF/Facelets tags we now show a information box with the related tag documentation. Descriptions are fetched from TLD and facelet information.</p>
+ </td>
+ </tr>
- <p><img src="../images/tagdocs.png"/></p>
+ <tr>
+ <td colspan="2">
+ <hr />
+ </td>
+ </tr>
- <p><small><a href="https://jira.jboss.org/jira/browse/JBIDE-534">Related Jira</a></small></p>
- </td>
- </tr>
- <tr>
- <td colspan="2"><hr />
- </td>
- </tr>
- <tr>
- <td valign="top" align="left">
- <p><b>Code assist for attributes expecting an ID in richfaces</b></p></td>
- <td valign="top"><p>Code assist now provides id completion for attributes that is known to work with ID's (for, focus, reRender, etc.). Both single and multi-valued (comma separated) completion are supported.</p>
-
- <p><img src="../images/forid_like_codeassist.png"/></p>
-
-
- <p><small><a href="https://jira.jboss.org/jira/browse/JBIDE-3571">Related Jira</a></small></p>
- </td>
- </tr>
- <tr>
- <td colspan="2"><hr />
- </td>
- </tr>
-
-
</table>
</body>
Deleted: trunk/documentation/whatsnew/jst/touch-descriptors.png
===================================================================
(Binary files differ)
Modified: trunk/documentation/whatsnew/smooks/smooks-news-1.1.0.M4.html
===================================================================
--- trunk/documentation/whatsnew/smooks/smooks-news-1.1.0.M4.html 2009-10-28 00:40:44 UTC (rev 18331)
+++ trunk/documentation/whatsnew/smooks/smooks-news-1.1.0.M4.html 2009-10-28 01:26:12 UTC (rev 18332)
@@ -6,10 +6,10 @@
<meta http-equiv="Content-Language" content="en-us" />
<meta http-equiv="Content-Type" content="text/html; charset=iso-8859-1" />
<link rel="stylesheet" href="../whatsnew.css" />
-<title>Smooks tools 1.1.0.M3 What's New</title>
+<title>Smooks tools 1.1.0.M4 What's New</title>
</head>
<body>
-<h1>Smooks tools 1.1.0.M3 What's New</h1>
+<h1>Smooks tools 1.1.0.M4 What's New</h1>
<p align="right"><a href="../index.html">< Main Index</a> <a
href="../core/core-news-3.1.0.M4.html">Core/General ></a></p>
Added: trunk/documentation/whatsnew/vpe/images/jsf2composition1.png
===================================================================
(Binary files differ)
Property changes on: trunk/documentation/whatsnew/vpe/images/jsf2composition1.png
___________________________________________________________________
Name: svn:mime-type
+ application/octet-stream
Added: trunk/documentation/whatsnew/vpe/images/selection-bar1.png
===================================================================
(Binary files differ)
Property changes on: trunk/documentation/whatsnew/vpe/images/selection-bar1.png
___________________________________________________________________
Name: svn:mime-type
+ application/octet-stream
Deleted: trunk/documentation/whatsnew/vpe/vpe-news-3.1.0.M3.html
===================================================================
--- trunk/documentation/whatsnew/vpe/vpe-news-3.1.0.M3.html 2009-10-28 00:40:44 UTC (rev 18331)
+++ trunk/documentation/whatsnew/vpe/vpe-news-3.1.0.M3.html 2009-10-28 01:26:12 UTC (rev 18332)
@@ -1,138 +0,0 @@
-<?xml version="1.0" encoding="iso-8859-1"?>
-<!DOCTYPE html PUBLIC "-//W3C//DTD XHTML 1.0 Transitional//EN"
- "http://www.w3.org/TR/xhtml1/DTD/xhtml1-transitional.dtd">
-<html xmlns="http://www.w3.org/1999/xhtml">
-<head>
-<meta http-equiv="Content-Language" content="en-us" />
-<meta http-equiv="Content-Type" content="text/html; charset=iso-8859-1" />
-<link rel="stylesheet" href="../whatsnew.css" />
-<title>What's New Visual Page Editor</title>
-</head>
-<body>
-<h1>What's New Visual Page Editor</h1>
-
-<p align="right"><a href="../index.html">< Main Index</a> <a
- href="../core/core-news-3.1.0.M3.html">Core Tools ></a></p>
-<table border="0" cellpadding="10" cellspacing="0" width="80%">
- <tr>
- <td colspan="2">
- <hr />
- <h3>CSS Editing</h3>
- <hr />
- </td>
- </tr>
- <tr>
- <td valign="top" align="left"><a name="itemname3" id="itemname3"></a><b>CSS Perspective</b></td>
- <td valign="top">
- <p>There is now a CSS Editing perspective that provides a default layout showing the CSS Properties and CSS Preview views.</p>
- <p>Good when editing .css files where these views has their use.</p>
-
- <p><img src="../images/css_properties_perspective.png"/></p>
-
- <p><small><a
- href="https://jira.jboss.org/jira/browse/JBIDE-3504">Related Jira</a></small></p>
- </td>
- </tr>
-
- <tr>
- <td colspan="2">
- <hr />
- </td>
- </tr>
- <tr>
- <td colspan="2">
- <hr />
- <h3>Facelets</h3>
- <hr />
- </td>
- </tr>
- <tr>
- <td valign="top" align="left"><a name="itemname3" id="itemname3"></a><b>Custom components in .jar</b></td>
- <td valign="top">
- <p>Support for custom components previously only
- worked for exploded directory structure, it now also
- work when you are using custom components from a
- jar.</p>
-
- <p><small><a
- href="https://jira.jboss.org/jira/browse/JBIDE-3247">Related Jira</a></small></p>
- </td>
- </tr>
-
- <tr>
- <td colspan="2">
- <hr />
- </td>
- </tr>
-
- <tr>
- <td valign="top" align="left"><a name="itemname3" id="itemname3"></a><b>Toolbar for smaller screens</b></td>
- <td valign="top">
- <p>The toolbar and selection bar in Visual Page Editor now "collapses" seamlessly when there is less space available for it. A small arrow is shown when needed and can be used to access the non-visible parts.</p>
-
- <p><img src="../images/scrollable_toolbars.png"/></p>
- <p><small><a
- href="https://jira.jboss.org/jira/browse/JBIDE-4029">Related Jira</a></small></p>
- </td>
- </tr>
-
-
- <tr>
- <td colspan="2">
- <hr />
- </td>
- </tr>
-
-
- <tr>
- <td valign="top" align="left"><a name="itemname3" id="itemname3"></a><b>Selection bar optimized</b></td>
- <td valign="top">
- <p>The selection bar is now not updating on *every* change, but only when it needs to - making it faster and not flickering when scrolling or typing.</p>
-
- <p><img src="../images/selectionbar_optimized.png"/></p>
- <p><small><a
- href="https://jira.jboss.org/jira/browse/JBIDE-4430">Related Jira</a></small></p>
- </td>
- </tr>
-
-
- <tr>
- <td colspan="2">
- <hr />
- </td>
- </tr>
-
- <tr>
- <td valign="top" align="left"><a name="itemname3" id="itemname3"></a><b>More components</b></td>
- <td valign="top">
- <p>New Richfaces 3.3.1 and standard jsp/JSTL core and functions are now rendered visually in the page editor.</p>
-
- <p><small><a
- href="https://jira.jboss.org/jira/browse/JBIDE-3548">Related Jira</a></small></p>
- </td>
- </tr>
-
-
- <tr>
- <td valign="top" align="left"><a name="itemname3" id="itemname3"></a><b>OpenOn for tag libs</b></td>
- <td valign="top">
- <p>Files referenced in the <code>source</code> tag's of a facelet library definition can now be open with OpenOn (F3 or Ctrl+Mouse).</p>
-
- <p><small><a
- href="https://jira.jboss.org/jira/browse/JBIDE-4509">Related Jira</a></small></p>
- </td>
- </tr>
-
- <tr>
- <td colspan="2">
- <hr />
- </td>
- </tr>
-
-</table>
-
-</body>
-
-</html>
-
-
Copied: trunk/documentation/whatsnew/vpe/vpe-news-3.1.0.M4.html (from rev 18279, trunk/documentation/whatsnew/vpe/vpe-news-3.1.0.M3.html)
===================================================================
--- trunk/documentation/whatsnew/vpe/vpe-news-3.1.0.M4.html (rev 0)
+++ trunk/documentation/whatsnew/vpe/vpe-news-3.1.0.M4.html 2009-10-28 01:26:12 UTC (rev 18332)
@@ -0,0 +1,84 @@
+<?xml version="1.0" encoding="iso-8859-1"?>
+<!DOCTYPE html PUBLIC "-//W3C//DTD XHTML 1.0 Transitional//EN"
+ "http://www.w3.org/TR/xhtml1/DTD/xhtml1-transitional.dtd">
+<html xmlns="http://www.w3.org/1999/xhtml">
+<head>
+<meta http-equiv="Content-Language" content="en-us" />
+<meta http-equiv="Content-Type" content="text/html; charset=iso-8859-1" />
+<link rel="stylesheet" href="../whatsnew.css" />
+<title>What's New Visual Page Editor 3.1.0.M4</title>
+</head>
+<body>
+<h1>What's New Visual Page Editor 3.1.0.M4</h1>
+
+<p align="right"><a href="../index.html">< Main Index</a> <a
+ href="../core/core-news-3.1.0.M3.html">Core Tools ></a></p>
+<table border="0" cellpadding="10" cellspacing="0" width="80%">
+ <tr>
+ <td colspan="2">
+ <hr />
+ <h3>JSF2 Composite UI Components Support</h3>
+ <hr />
+ </td>
+ </tr>
+ <tr>
+ <td valign="top" align="left"><a name="itemname3" id="itemname3"></a><b>Composite UI Component Rendering</b></td>
+ <td valign="top"><p>Visual Editor can render Composite UI components from CLASSPATH jar's an Web root 'resources' folder.</p>
+ <p>It also supports rendering for parameters in custom tags.</p>
+
+ <p><img src="images/jsf2composition1.png"/></p>
+
+ <p><small><a
+ href="https://jira.jboss.org/jira/browse/JBIDE-5091">Related Jira</a></small></p>
+ </td>
+ </tr>
+
+ <tr>
+ <td colspan="2">
+ <hr />
+ <h3>General</h3>
+ <hr />
+ </td>
+ </tr>
+ <tr>
+ <td valign="top" align="left"><a name="itemname3" id="itemname3"></a><b>Selection bar</b></td>
+ <td valign="top">
+ <p>Selection bar now always shows all tags in selected nodes hierarchy, so you can iterate it back and forth.</p>
+
+ <p><img src="images/selection-bar1.png"/></p>
+
+ <p><small><a
+ href="https://jira.jboss.org/jira/browse/JBIDE-4945">Related Jira</a></small></p>
+ </td>
+ </tr>
+
+ <tr>
+ <td colspan="2">
+ <hr />
+ <h3>Facelets</h3>
+ <hr />
+ </td>
+ </tr>
+ <tr>
+ <td valign="top" align="left"><a name="itemname3" id="itemname3"></a><b>Facelets taglib import to Palette</b></td>
+ <td valign="top">
+ <p>Now Facelets taglib can be imported to Palette View</p>
+
+ <p><small><a
+ href="https://jira.jboss.org/jira/browse/JBIDE-4945">Related Jira</a></small></p>
+ </td>
+ </tr>
+
+ <tr>
+ <td colspan="2">
+ <hr />
+ </td>
+ </tr>
+
+</table>
+
+</body>
+
+</html>
+
+
15 years, 1 month
JBoss Tools SVN: r18331 - trunk/as/plugins/org.jboss.ide.eclipse.as.ui/jbossui/org/jboss/ide/eclipse/as/ui/wizards.
by jbosstools-commits@lists.jboss.org
Author: rob.stryker(a)jboss.com
Date: 2009-10-27 20:40:44 -0400 (Tue, 27 Oct 2009)
New Revision: 18331
Modified:
trunk/as/plugins/org.jboss.ide.eclipse.as.ui/jbossui/org/jboss/ide/eclipse/as/ui/wizards/JBossRuntimeWizardFragment.java
Log:
random NPE if user tries to create an EAP 5.0 with no java 6 JREs available
Modified: trunk/as/plugins/org.jboss.ide.eclipse.as.ui/jbossui/org/jboss/ide/eclipse/as/ui/wizards/JBossRuntimeWizardFragment.java
===================================================================
--- trunk/as/plugins/org.jboss.ide.eclipse.as.ui/jbossui/org/jboss/ide/eclipse/as/ui/wizards/JBossRuntimeWizardFragment.java 2009-10-27 23:42:58 UTC (rev 18330)
+++ trunk/as/plugins/org.jboss.ide.eclipse.as.ui/jbossui/org/jboss/ide/eclipse/as/ui/wizards/JBossRuntimeWizardFragment.java 2009-10-28 00:40:44 UTC (rev 18331)
@@ -199,11 +199,13 @@
jreCombo.select(0);
} else {
IVMInstall install = rt.getVM();
- String vmName = install.getName();
- String[] jres = jreCombo.getItems();
- for (int i = 0; i < jres.length; i++) {
- if (vmName.equals(jres[i]))
- jreCombo.select(i);
+ if( install != null ) {
+ String vmName = install.getName();
+ String[] jres = jreCombo.getItems();
+ for (int i = 0; i < jres.length; i++) {
+ if (vmName.equals(jres[i]))
+ jreCombo.select(i);
+ }
}
}
jreComboIndex = jreCombo.getSelectionIndex();
15 years, 1 month