[jbosstools-commits] JBoss Tools SVN: r23623 - in branches/smooks-dmb/plugins/org.jboss.tools.smooks.ui/src/org/jboss/tools/smooks: configuration/editors and 2 other directories.

jbosstools-commits at lists.jboss.org jbosstools-commits at lists.jboss.org
Wed Jul 21 05:11:29 EDT 2010


Author: DartPeng
Date: 2010-07-21 05:11:28 -0400 (Wed, 21 Jul 2010)
New Revision: 23623

Removed:
   branches/smooks-dmb/plugins/org.jboss.tools.smooks.ui/src/org/jboss/tools/smooks/configuration/editors/AttributeFieldEditPart.java
   branches/smooks-dmb/plugins/org.jboss.tools.smooks.ui/src/org/jboss/tools/smooks/configuration/editors/ClassPathFileProcessor.java
   branches/smooks-dmb/plugins/org.jboss.tools.smooks.ui/src/org/jboss/tools/smooks/configuration/editors/Codegenerator.java
   branches/smooks-dmb/plugins/org.jboss.tools.smooks.ui/src/org/jboss/tools/smooks/configuration/editors/CompoundStructuredDataContentProvider.java
   branches/smooks-dmb/plugins/org.jboss.tools.smooks.ui/src/org/jboss/tools/smooks/configuration/editors/CompoundStructuredDataLabelProvider.java
   branches/smooks-dmb/plugins/org.jboss.tools.smooks.ui/src/org/jboss/tools/smooks/configuration/editors/CurrentProjecViewerFilter.java
   branches/smooks-dmb/plugins/org.jboss.tools.smooks.ui/src/org/jboss/tools/smooks/configuration/editors/ExtentionInputContentProvider.java
   branches/smooks-dmb/plugins/org.jboss.tools.smooks.ui/src/org/jboss/tools/smooks/configuration/editors/FieldMarkerComposite.java
   branches/smooks-dmb/plugins/org.jboss.tools.smooks.ui/src/org/jboss/tools/smooks/configuration/editors/GraphicsConstants.java
   branches/smooks-dmb/plugins/org.jboss.tools.smooks.ui/src/org/jboss/tools/smooks/configuration/editors/IFieldMarker.java
   branches/smooks-dmb/plugins/org.jboss.tools.smooks.ui/src/org/jboss/tools/smooks/configuration/editors/IFilePathProcessor.java
   branches/smooks-dmb/plugins/org.jboss.tools.smooks.ui/src/org/jboss/tools/smooks/configuration/editors/IXMLStructuredObject.java
   branches/smooks-dmb/plugins/org.jboss.tools.smooks.ui/src/org/jboss/tools/smooks/configuration/editors/Messages.java
   branches/smooks-dmb/plugins/org.jboss.tools.smooks.ui/src/org/jboss/tools/smooks/configuration/editors/SelectorAttributes.java
   branches/smooks-dmb/plugins/org.jboss.tools.smooks.ui/src/org/jboss/tools/smooks/configuration/editors/SmooksConfigFileHandle.java
   branches/smooks-dmb/plugins/org.jboss.tools.smooks.ui/src/org/jboss/tools/smooks/configuration/editors/SmooksConfigfileContentDescriber.java
   branches/smooks-dmb/plugins/org.jboss.tools.smooks.ui/src/org/jboss/tools/smooks/configuration/editors/SmooksMultiFormEditor.java
   branches/smooks-dmb/plugins/org.jboss.tools.smooks.ui/src/org/jboss/tools/smooks/configuration/editors/SmooksMultiPageEditorContributor.java
   branches/smooks-dmb/plugins/org.jboss.tools.smooks.ui/src/org/jboss/tools/smooks/configuration/editors/SmooksStuffDetailsPageProvider.java
   branches/smooks-dmb/plugins/org.jboss.tools.smooks.ui/src/org/jboss/tools/smooks/configuration/editors/SmooksToolsStartup.java
   branches/smooks-dmb/plugins/org.jboss.tools.smooks.ui/src/org/jboss/tools/smooks/configuration/editors/SmooksXMLEditor.java
   branches/smooks-dmb/plugins/org.jboss.tools.smooks.ui/src/org/jboss/tools/smooks/configuration/editors/StructuredDataSelectionWizardDailog.java
   branches/smooks-dmb/plugins/org.jboss.tools.smooks.ui/src/org/jboss/tools/smooks/configuration/editors/Template.txt
   branches/smooks-dmb/plugins/org.jboss.tools.smooks.ui/src/org/jboss/tools/smooks/configuration/editors/messages.properties
   branches/smooks-dmb/plugins/org.jboss.tools.smooks.ui/src/org/jboss/tools/smooks/configuration/navigator/
   branches/smooks-dmb/plugins/org.jboss.tools.smooks.ui/src/org/jboss/tools/smooks/graphical/editors/editparts/
   branches/smooks-dmb/plugins/org.jboss.tools.smooks.ui/src/org/jboss/tools/smooks/graphical/editors/model/
   branches/smooks-dmb/plugins/org.jboss.tools.smooks.ui/src/org/jboss/tools/smooks/launch/ExceptionHandler.java
   branches/smooks-dmb/plugins/org.jboss.tools.smooks.ui/src/org/jboss/tools/smooks/launch/Messages.java
   branches/smooks-dmb/plugins/org.jboss.tools.smooks.ui/src/org/jboss/tools/smooks/launch/SmooksLaunchConfigurationDelegate.java
   branches/smooks-dmb/plugins/org.jboss.tools.smooks.ui/src/org/jboss/tools/smooks/launch/SmooksLaunchShortcut.java
   branches/smooks-dmb/plugins/org.jboss.tools.smooks.ui/src/org/jboss/tools/smooks/launch/SmooksLaunchTabGroup.java
   branches/smooks-dmb/plugins/org.jboss.tools.smooks.ui/src/org/jboss/tools/smooks/launch/SmooksLauncher.java
   branches/smooks-dmb/plugins/org.jboss.tools.smooks.ui/src/org/jboss/tools/smooks/launch/SmooksRunTab.java
   branches/smooks-dmb/plugins/org.jboss.tools.smooks.ui/src/org/jboss/tools/smooks/launch/messages.properties
Log:


Deleted: branches/smooks-dmb/plugins/org.jboss.tools.smooks.ui/src/org/jboss/tools/smooks/configuration/editors/AttributeFieldEditPart.java
===================================================================
--- branches/smooks-dmb/plugins/org.jboss.tools.smooks.ui/src/org/jboss/tools/smooks/configuration/editors/AttributeFieldEditPart.java	2010-07-21 08:59:08 UTC (rev 23622)
+++ branches/smooks-dmb/plugins/org.jboss.tools.smooks.ui/src/org/jboss/tools/smooks/configuration/editors/AttributeFieldEditPart.java	2010-07-21 09:11:28 UTC (rev 23623)
@@ -1,70 +0,0 @@
-/*******************************************************************************
- * Copyright (c) 2008 Red Hat, Inc.
- * Distributed under license by Red Hat, Inc. All rights reserved.
- * This program is made available under the terms of the
- * Eclipse Public License v1.0 which accompanies this distribution,
- * and is available at http://www.eclipse.org/legal/epl-v10.html
- *
- * Contributors:
- *     Red Hat, Inc. - initial API and implementation
- ******************************************************************************/
-package org.jboss.tools.smooks.configuration.editors;
-
-import org.eclipse.swt.widgets.Control;
-
-/**
- * @author Dart (dpeng at redhat.com)
- *
- */
-public class AttributeFieldEditPart {
-	
-	private Object attribute;
-	
-	private IFieldMarker fieldMarker;
-	
-	private Control contentControl;
-
-	/**
-	 * @return the fieldMarker
-	 */
-	public IFieldMarker getFieldMarker() {
-		return fieldMarker;
-	}
-
-	/**
-	 * @param fieldMarker the fieldMarker to set
-	 */
-	public void setFieldMarker(IFieldMarker fieldMarker) {
-		this.fieldMarker = fieldMarker;
-	}
-
-	/**
-	 * @return the contentControl
-	 */
-	public Control getContentControl() {
-		return contentControl;
-	}
-
-	/**
-	 * @param contentControl the contentControl to set
-	 */
-	public void setContentControl(Control contentControl) {
-		this.contentControl = contentControl;
-	}
-
-	/**
-	 * @return the attribute
-	 */
-	public Object getAttribute() {
-		return attribute;
-	}
-
-	/**
-	 * @param attribute the attribute to set
-	 */
-	public void setAttribute(Object attribute) {
-		this.attribute = attribute;
-	}
-	
-	
-}

Deleted: branches/smooks-dmb/plugins/org.jboss.tools.smooks.ui/src/org/jboss/tools/smooks/configuration/editors/ClassPathFileProcessor.java
===================================================================
--- branches/smooks-dmb/plugins/org.jboss.tools.smooks.ui/src/org/jboss/tools/smooks/configuration/editors/ClassPathFileProcessor.java	2010-07-21 08:59:08 UTC (rev 23622)
+++ branches/smooks-dmb/plugins/org.jboss.tools.smooks.ui/src/org/jboss/tools/smooks/configuration/editors/ClassPathFileProcessor.java	2010-07-21 09:11:28 UTC (rev 23623)
@@ -1,72 +0,0 @@
-/**
- * 
- */
-package org.jboss.tools.smooks.configuration.editors;
-
-import org.eclipse.core.resources.IFile;
-import org.eclipse.core.resources.IProject;
-import org.eclipse.core.runtime.IPath;
-import org.eclipse.jdt.core.IClasspathEntry;
-import org.eclipse.jdt.core.IJavaProject;
-import org.eclipse.jdt.core.JavaCore;
-import org.eclipse.jdt.core.JavaModelException;
-
-/**
- * @author DartPeng
- * 
- */
-public class ClassPathFileProcessor implements IFilePathProcessor {
-
-	/*
-	 * (non-Javadoc)
-	 * 
-	 * @seeorg.jboss.tools.smooks.configuration.editors.IFilePathProcessor#
-	 * processFileSystemPath(java.lang.String)
-	 */
-	public String processFileSystemPath(String filePath) {
-		return filePath;
-	}
-
-	/*
-	 * (non-Javadoc)
-	 * 
-	 * @seeorg.jboss.tools.smooks.configuration.editors.IFilePathProcessor#
-	 * processWorkBenchPath(org.eclipse.core.resources.IFile)
-	 */
-	public String processWorkBenchPath(IFile file) {
-		IProject project = file.getProject();
-		IJavaProject javaProject = JavaCore.create(project);
-		String path = null;
-		if (javaProject != null) {
-			try {
-				IClasspathEntry[] classpathEntries = javaProject.getRawClasspath();
-				for (int i = 0; i < classpathEntries.length; i++) {
-					IClasspathEntry entry = classpathEntries[i];
-//					if(entry.getEntryKind() == IClasspathEntry.CPE_SOURCE){
-						IPath sourcePath = entry.getPath();
-						if(sourcePath.isPrefixOf(file.getFullPath())){
-							IPath filePath = file.getFullPath();
-							String sp = sourcePath.toPortableString();
-							String fp = filePath.toPortableString();
-							path = fp.substring(sp.length(), fp.length());
-							break;
-						}
-//					}
-				}
-			} catch (JavaModelException e) {
-//				e.printStackTrace();
-				// ignore
-			}
-		}
-		if(path == null){
-		    path = file.getFullPath().removeFirstSegments(1).toPortableString();
-		}
-		if(path.charAt(0) == '\\' || path.charAt(0) == '/' ){
-			
-		}else{
-			path = "/" + path; //$NON-NLS-1$
-		}
-		return path;
-	}
-
-}

Deleted: branches/smooks-dmb/plugins/org.jboss.tools.smooks.ui/src/org/jboss/tools/smooks/configuration/editors/Codegenerator.java
===================================================================
--- branches/smooks-dmb/plugins/org.jboss.tools.smooks.ui/src/org/jboss/tools/smooks/configuration/editors/Codegenerator.java	2010-07-21 08:59:08 UTC (rev 23622)
+++ branches/smooks-dmb/plugins/org.jboss.tools.smooks.ui/src/org/jboss/tools/smooks/configuration/editors/Codegenerator.java	2010-07-21 09:11:28 UTC (rev 23623)
@@ -1,118 +0,0 @@
-package org.jboss.tools.smooks.configuration.editors;
-
-import java.io.BufferedReader;
-import java.io.File;
-import java.io.FileNotFoundException;
-import java.io.FileReader;
-import java.io.FileWriter;
-import java.io.IOException;
-import java.lang.reflect.Field;
-import java.util.Iterator;
-import java.util.List;
-
-import org.eclipse.emf.ecore.EAttribute;
-import org.eclipse.emf.ecore.EClass;
-import org.eclipse.emf.ecore.EPackage;
-
-public class Codegenerator {
-	String basePath = "/home/DartPeng/Work/eclipse/smooks-configuration-workspace/org.jboss.tools.smooks.ui/src/org/jboss/tools/smooks/configuration/editors/uitls/temp/"; //$NON-NLS-1$
-	String tempContents = ""; //$NON-NLS-1$
-
-	public Codegenerator() {
-		try {
-			FileReader reader = new FileReader(
-				new File(
-					"/home/DartPeng/Work/eclipse/smooks-configuration-workspace/org.jboss.tools.smooks.ui/src/org/jboss/tools/smooks/configuration/editors/Template.txt")); //$NON-NLS-1$
-			BufferedReader r = new BufferedReader(reader);
-			String line = r.readLine();
-			while (line != null) {
-				tempContents += line;
-				line = r.readLine();
-				if (line != null) {
-					tempContents += "\n"; //$NON-NLS-1$
-				}
-			}
-		} catch (FileNotFoundException e) {
-			e.printStackTrace();
-		} catch (IOException e) {
-			e.printStackTrace();
-		}
-	}
-
-	public static void main(String[] args) {
-//		Codegenerator g = new Codegenerator();
-//		try {
-//			g.generateCodes(DatasourcePackage.eINSTANCE);
-//		} catch (IllegalArgumentException e) {
-//			e.printStackTrace();
-//		} catch (IllegalAccessException e) {
-//			e.printStackTrace();
-//		} catch (IOException e) {
-//			e.printStackTrace();
-//		}
-	}
-
-	public void generateCodes(EPackage epackage) throws IllegalArgumentException,
-		IllegalAccessException, IOException {
-		Field[] fields = epackage.getClass().getDeclaredFields();
-		for (int i = 0; i < fields.length; i++) {
-			Field f = fields[i];
-			f.setAccessible(true);
-			Class<?> clazz = f.getType();
-			if (clazz == EClass.class) {
-				EClass eClass = (EClass) f.get(epackage);
-				if (eClass.isAbstract() || eClass.isInterface()) {
-					continue;
-				}
-				File file = new File(basePath + eClass.getName() + "UICreator.java"); //$NON-NLS-1$
-				System.out.println("map.put(" + eClass.getName() + "Impl.class, new " //$NON-NLS-1$ //$NON-NLS-2$
-					+ eClass.getName() + "UICreator());"); //$NON-NLS-1$
-				if (!file.exists()) {
-					file.createNewFile();
-					FileWriter writer = new FileWriter(file);
-					writer.write(generateContents(eClass, epackage));
-					writer.close();
-				}
-			}
-		}
-	}
-
-	private String generateContents(EClass eClass, EPackage ePackage) {
-		if (tempContents != null) {
-			String className = eClass.getName() + "UICreator"; //$NON-NLS-1$
-			String t = tempContents;
-			if (t.indexOf("${className}") != -1) { //$NON-NLS-1$
-				String s = t.substring(0, t.indexOf("${className}")); //$NON-NLS-1$
-				String es = t.substring(t.indexOf("${className}") + "${className}".length(), t //$NON-NLS-1$ //$NON-NLS-2$
-					.length());
-				t = s + className + es;
-			}
-			String epName = ePackage.getClass().getSimpleName();
-			if (epName.endsWith("Impl")) { //$NON-NLS-1$
-				epName = epName.substring(0, epName.indexOf("Impl")); //$NON-NLS-1$
-			}
-
-			String allepName = epName + ".eINSTANCE.get" + eClass.getName(); //$NON-NLS-1$
-			List<EAttribute> alist = eClass.getEAllAttributes();
-			String attributeMethod = ""; //$NON-NLS-1$
-			for (Iterator<?> iterator = alist.iterator(); iterator.hasNext();) {
-				EAttribute attribute = (EAttribute) iterator.next();
-				String atn = attribute.getName();
-				String firstC = new String(new char[] { atn.toCharArray()[0] });
-				firstC = firstC.toUpperCase();
-				atn = firstC + atn.substring(1, atn.length());
-				String n = allepName + "_" + atn + "()"; //$NON-NLS-1$ //$NON-NLS-2$
-				String cn = "if(feature == " + n + "){}\n"; //$NON-NLS-1$ //$NON-NLS-2$
-				attributeMethod += cn;
-			}
-			int index2 = t.indexOf("${attributeMethod}"); //$NON-NLS-1$
-			if (index2 != -1) {
-				String am1 = t.substring(0, index2);
-				String am2 = t.substring(index2 + "${attributeMethod}".length(), t.length()); //$NON-NLS-1$
-				t = am1 + attributeMethod + am2;
-			}
-			return t;
-		}
-		return ""; //$NON-NLS-1$
-	}
-}

Deleted: branches/smooks-dmb/plugins/org.jboss.tools.smooks.ui/src/org/jboss/tools/smooks/configuration/editors/CompoundStructuredDataContentProvider.java
===================================================================
--- branches/smooks-dmb/plugins/org.jboss.tools.smooks.ui/src/org/jboss/tools/smooks/configuration/editors/CompoundStructuredDataContentProvider.java	2010-07-21 08:59:08 UTC (rev 23622)
+++ branches/smooks-dmb/plugins/org.jboss.tools.smooks.ui/src/org/jboss/tools/smooks/configuration/editors/CompoundStructuredDataContentProvider.java	2010-07-21 09:11:28 UTC (rev 23623)
@@ -1,142 +0,0 @@
-/*******************************************************************************
- * Copyright (c) 2009 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.configuration.editors;
-
-import java.util.ArrayList;
-import java.util.Collection;
-import java.util.Iterator;
-import java.util.List;
-
-import org.eclipse.jface.viewers.ITreeContentProvider;
-import org.eclipse.jface.viewers.Viewer;
-import org.jboss.tools.smooks.configuration.editors.wizard.IViewerInitor;
-import org.jboss.tools.smooks.configuration.editors.wizard.ViewerInitorStore;
-
-/**
- * @author Dart (dpeng at redhat.com)
- *         <p>
- *         Apr 12, 2009
- */
-public class CompoundStructuredDataContentProvider implements ITreeContentProvider {
-
-	private List<ITreeContentProvider> contentProviderList = new ArrayList<ITreeContentProvider>();
-
-	public CompoundStructuredDataContentProvider() {
-		Collection<IViewerInitor> lists = ViewerInitorStore.getInstance().getViewerInitorCollection();
-		for (Iterator<IViewerInitor> iterator = lists.iterator(); iterator.hasNext();) {
-			IViewerInitor viewerInitor = (IViewerInitor) iterator.next();
-			contentProviderList.add(viewerInitor.getTreeContentProvider());
-		}
-	}
-
-	/*
-	 * (non-Javadoc)
-	 * 
-	 * @see
-	 * org.eclipse.jface.viewers.ITreeContentProvider#getChildren(java.lang.
-	 * Object)
-	 */
-	public Object[] getChildren(Object parentElement) {
-		for (Iterator<?> iterator = contentProviderList.iterator(); iterator.hasNext();) {
-			ITreeContentProvider provider = (ITreeContentProvider) iterator.next();
-			Object[] objs = provider.getChildren(parentElement);
-			if (objs == null || objs.length == 0) {
-				continue;
-			}
-			return objs;
-		}
-		return new Object[] {};
-	}
-
-	/*
-	 * (non-Javadoc)
-	 * 
-	 * @see
-	 * org.eclipse.jface.viewers.ITreeContentProvider#getParent(java.lang.Object
-	 * )
-	 */
-	public Object getParent(Object element) {
-		for (Iterator<?> iterator = contentProviderList.iterator(); iterator.hasNext();) {
-			ITreeContentProvider provider = (ITreeContentProvider) iterator.next();
-			Object parent = provider.getParent(element);
-			if (parent == null) {
-				continue;
-			}
-			return parent;
-		}
-		return null;
-	}
-
-	/*
-	 * (non-Javadoc)
-	 * 
-	 * @see
-	 * org.eclipse.jface.viewers.ITreeContentProvider#hasChildren(java.lang.
-	 * Object)
-	 */
-	public boolean hasChildren(Object element) {
-		for (Iterator<?> iterator = contentProviderList.iterator(); iterator.hasNext();) {
-			ITreeContentProvider provider = (ITreeContentProvider) iterator.next();
-			boolean parent = provider.hasChildren(element);
-			if (!parent) {
-				continue;
-			}
-			return parent;
-		}
-		return false;
-	}
-
-	/*
-	 * (non-Javadoc)
-	 * 
-	 * @see
-	 * org.eclipse.jface.viewers.IStructuredContentProvider#getElements(java
-	 * .lang.Object)
-	 */
-	public Object[] getElements(Object inputElement) {
-		if(inputElement instanceof List<?>){
-			return ((List<?>)inputElement).toArray();
-		}
-		for (Iterator<?> iterator = contentProviderList.iterator(); iterator.hasNext();) {
-			ITreeContentProvider provider = (ITreeContentProvider) iterator.next();
-			Object[] objs = provider.getElements(inputElement);
-			if (objs == null || objs.length == 0) {
-				continue;
-			}
-			return objs;
-		}
-		return new Object[] {};
-	}
-
-	/*
-	 * (non-Javadoc)
-	 * 
-	 * @see org.eclipse.jface.viewers.IContentProvider#dispose()
-	 */
-	public void dispose() {
-		for (Iterator<?> iterator = contentProviderList.iterator(); iterator.hasNext();) {
-			ITreeContentProvider provider = (ITreeContentProvider) iterator.next();
-			provider.dispose();
-		}
-	}
-
-	/*
-	 * (non-Javadoc)
-	 * 
-	 * @see
-	 * org.eclipse.jface.viewers.IContentProvider#inputChanged(org.eclipse.jface
-	 * .viewers.Viewer, java.lang.Object, java.lang.Object)
-	 */
-	public void inputChanged(Viewer viewer, Object oldInput, Object newInput) {
-
-	}
-
-}

Deleted: branches/smooks-dmb/plugins/org.jboss.tools.smooks.ui/src/org/jboss/tools/smooks/configuration/editors/CompoundStructuredDataLabelProvider.java
===================================================================
--- branches/smooks-dmb/plugins/org.jboss.tools.smooks.ui/src/org/jboss/tools/smooks/configuration/editors/CompoundStructuredDataLabelProvider.java	2010-07-21 08:59:08 UTC (rev 23622)
+++ branches/smooks-dmb/plugins/org.jboss.tools.smooks.ui/src/org/jboss/tools/smooks/configuration/editors/CompoundStructuredDataLabelProvider.java	2010-07-21 09:11:28 UTC (rev 23623)
@@ -1,72 +0,0 @@
-/*******************************************************************************
- * Copyright (c) 2009 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.configuration.editors;
-
-import java.util.ArrayList;
-import java.util.Collection;
-import java.util.Iterator;
-import java.util.List;
-
-import org.eclipse.jface.viewers.ILabelProvider;
-import org.eclipse.jface.viewers.LabelProvider;
-import org.eclipse.swt.graphics.Image;
-import org.jboss.tools.smooks.configuration.editors.wizard.IViewerInitor;
-import org.jboss.tools.smooks.configuration.editors.wizard.ViewerInitorStore;
-
-/**
- * @author Dart (dpeng at redhat.com)<p>
- * Apr 12, 2009
- */
-public class CompoundStructuredDataLabelProvider extends LabelProvider {
-	private List<ILabelProvider> labelProviderList = new ArrayList<ILabelProvider>();
-	
-	public CompoundStructuredDataLabelProvider() {
-		Collection<IViewerInitor> lists = ViewerInitorStore.getInstance().getViewerInitorCollection();
-		for (Iterator<IViewerInitor> iterator = lists.iterator(); iterator.hasNext();) {
-			IViewerInitor viewerInitor = (IViewerInitor) iterator.next();
-			labelProviderList.add(viewerInitor.getLabelProvider());
-		}
-	}
-
-	/* (non-Javadoc)
-	 * @see org.eclipse.jface.viewers.LabelProvider#getImage(java.lang.Object)
-	 */
-	@Override
-	public Image getImage(Object element) {
-		for (Iterator<?> iterator = labelProviderList.iterator(); iterator.hasNext();) {
-			ILabelProvider provider = (ILabelProvider) iterator.next();
-			Image img = provider.getImage(element);
-			if (img == null) {
-				continue;
-			}
-			return img;
-		}
-		return super.getImage(element);
-	}
-
-	/* (non-Javadoc)
-	 * @see org.eclipse.jface.viewers.LabelProvider#getText(java.lang.Object)
-	 */
-	@Override
-	public String getText(Object element) {
-		for (Iterator<?> iterator = labelProviderList.iterator(); iterator.hasNext();) {
-			ILabelProvider provider = (ILabelProvider) iterator.next();
-			String text = provider.getText(element);
-			if (text == null || text.length() == 0) {
-				continue;
-			}
-			return text;
-		}
-		return super.getText(element);
-	}
-	
-	
-}

Deleted: branches/smooks-dmb/plugins/org.jboss.tools.smooks.ui/src/org/jboss/tools/smooks/configuration/editors/CurrentProjecViewerFilter.java
===================================================================
--- branches/smooks-dmb/plugins/org.jboss.tools.smooks.ui/src/org/jboss/tools/smooks/configuration/editors/CurrentProjecViewerFilter.java	2010-07-21 08:59:08 UTC (rev 23622)
+++ branches/smooks-dmb/plugins/org.jboss.tools.smooks.ui/src/org/jboss/tools/smooks/configuration/editors/CurrentProjecViewerFilter.java	2010-07-21 09:11:28 UTC (rev 23623)
@@ -1,56 +0,0 @@
-/**
- * 
- */
-package org.jboss.tools.smooks.configuration.editors;
-
-import org.eclipse.core.resources.IProject;
-import org.eclipse.core.resources.IResource;
-import org.eclipse.core.runtime.IAdaptable;
-import org.eclipse.jface.viewers.Viewer;
-import org.eclipse.jface.viewers.ViewerFilter;
-
-/**
- * @author DartPeng
- * 
- */
-public class CurrentProjecViewerFilter extends ViewerFilter {
-
-	private IResource referenceResource;
-
-	public CurrentProjecViewerFilter(IResource referenceResource) {
-		this.referenceResource = referenceResource;
-	}
-
-	/*
-	 * (non-Javadoc)
-	 * 
-	 * @see
-	 * org.eclipse.jface.viewers.ViewerFilter#select(org.eclipse.jface.viewers
-	 * .Viewer, java.lang.Object, java.lang.Object)
-	 */
-	@Override
-	public boolean select(Viewer viewer, Object parentElement, Object element) {
-		IProject project = null;
-		if (referenceResource != null) {
-			project = referenceResource.getProject();
-		}
-		if (project == null) {
-			return true;
-		}
-		IResource resource = null;
-		if (element instanceof IResource) {
-			resource = (IResource)element;
-		} else {
-			if (element instanceof IAdaptable) {
-				resource = (IResource) ((IAdaptable) element).getAdapter(IResource.class);
-			}
-		}
-		if (resource != null) {
-			if(project == resource.getProject()){
-				return true;
-			}
-		}
-		return false;
-	}
-
-}

Deleted: branches/smooks-dmb/plugins/org.jboss.tools.smooks.ui/src/org/jboss/tools/smooks/configuration/editors/ExtentionInputContentProvider.java
===================================================================
--- branches/smooks-dmb/plugins/org.jboss.tools.smooks.ui/src/org/jboss/tools/smooks/configuration/editors/ExtentionInputContentProvider.java	2010-07-21 08:59:08 UTC (rev 23622)
+++ branches/smooks-dmb/plugins/org.jboss.tools.smooks.ui/src/org/jboss/tools/smooks/configuration/editors/ExtentionInputContentProvider.java	2010-07-21 09:11:28 UTC (rev 23623)
@@ -1,62 +0,0 @@
-/*******************************************************************************
- * Copyright (c) 2009 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.configuration.editors;
-
-import java.util.List;
-
-import org.eclipse.jface.viewers.IStructuredContentProvider;
-import org.eclipse.jface.viewers.Viewer;
-
-/**
- * @author Dart (dpeng at redhat.com)
- *         <p>
- *         Apr 12, 2009
- */
-public class ExtentionInputContentProvider implements IStructuredContentProvider {
-
-	/*
-	 * (non-Javadoc)
-	 * 
-	 * @see
-	 * org.eclipse.jface.viewers.IStructuredContentProvider#getElements(java
-	 * .lang.Object)
-	 */
-	public Object[] getElements(Object inputElement) {
-		if (inputElement instanceof List<?>) {
-			return ((List<?>) inputElement).toArray();
-			// return
-			// ((SmooksGraphicsExtType)inputElement).getInput().toArray();
-		}
-		return new Object[] {};
-	}
-
-	/*
-	 * (non-Javadoc)
-	 * 
-	 * @see org.eclipse.jface.viewers.IContentProvider#dispose()
-	 */
-	public void dispose() {
-
-	}
-
-	/*
-	 * (non-Javadoc)
-	 * 
-	 * @see
-	 * org.eclipse.jface.viewers.IContentProvider#inputChanged(org.eclipse.jface
-	 * .viewers.Viewer, java.lang.Object, java.lang.Object)
-	 */
-	public void inputChanged(Viewer viewer, Object oldInput, Object newInput) {
-		// TODO Auto-generated method stub
-
-	}
-
-}

Deleted: branches/smooks-dmb/plugins/org.jboss.tools.smooks.ui/src/org/jboss/tools/smooks/configuration/editors/FieldMarkerComposite.java
===================================================================
--- branches/smooks-dmb/plugins/org.jboss.tools.smooks.ui/src/org/jboss/tools/smooks/configuration/editors/FieldMarkerComposite.java	2010-07-21 08:59:08 UTC (rev 23622)
+++ branches/smooks-dmb/plugins/org.jboss.tools.smooks.ui/src/org/jboss/tools/smooks/configuration/editors/FieldMarkerComposite.java	2010-07-21 09:11:28 UTC (rev 23623)
@@ -1,131 +0,0 @@
-/*******************************************************************************
- * Copyright (c) 2008 Red Hat, Inc.
- * Distributed under license by Red Hat, Inc. All rights reserved.
- * This program is made available under the terms of the
- * Eclipse Public License v1.0 which accompanies this distribution,
- * and is available at http://www.eclipse.org/legal/epl-v10.html
- *
- * Contributors:
- *     Red Hat, Inc. - initial API and implementation
- ******************************************************************************/
-package org.jboss.tools.smooks.configuration.editors;
-
-import org.eclipse.jface.window.DefaultToolTip;
-import org.eclipse.swt.SWT;
-import org.eclipse.swt.events.PaintEvent;
-import org.eclipse.swt.events.PaintListener;
-import org.eclipse.swt.graphics.Color;
-import org.eclipse.swt.graphics.GC;
-import org.eclipse.swt.graphics.Image;
-import org.eclipse.swt.graphics.Point;
-import org.eclipse.swt.widgets.Canvas;
-import org.eclipse.swt.widgets.Composite;
-import org.eclipse.swt.widgets.Control;
-import org.eclipse.swt.widgets.Event;
-import org.eclipse.ui.forms.FormColors;
-import org.eclipse.ui.forms.IFormColors;
-import org.jboss.tools.smooks.configuration.SmooksConfigurationActivator;
-
-/**
- * @author Dart (dpeng at redhat.com)
- * 
- */
-public class FieldMarkerComposite extends Canvas implements IFieldMarker, PaintListener {
-
-	private Image errorImage = null;
-
-	private Image waringImage = null;
-
-	// private Image informationImage = null;
-
-	private int type = TYPE_NONE;
-
-	private DefaultToolTip toolTip = null;
-
-	public FieldMarkerComposite(Composite parent, int style) {
-		super(parent, style);
-		this.setBackground(new Color(null,255,255,255));
-		errorImage = SmooksConfigurationActivator.getDefault().getImageRegistry()
-				.get(GraphicsConstants.IMAGE_OVR_ERROR);
-		waringImage = SmooksConfigurationActivator.getDefault().getImageRegistry().get(
-				GraphicsConstants.IMAGE_OVR_WARING);
-		this.addPaintListener(this);
-		toolTip = new DefaultToolTip(this) {
-
-			/*
-			 * (non-Javadoc)
-			 * 
-			 * @see
-			 * org.eclipse.jface.window.DefaultToolTip#createToolTipContentArea
-			 * (org.eclipse.swt.widgets.Event,
-			 * org.eclipse.swt.widgets.Composite)
-			 */
-			@Override
-			protected Composite createToolTipContentArea(Event event, Composite parent) {
-				return super.createToolTipContentArea(event, parent);
-			}
-
-			public Point getLocation(Point tipSize, Event event) {
-				Point point = super.getLocation(tipSize, event);
-				point.y = ((Control) getToolTipArea(null)).toDisplay(0, 0).y - 24;
-				point.x = ((Control) getToolTipArea(null)).toDisplay(0, 0).x;
-				return point;
-			}
-
-		};
-		((DefaultToolTip) toolTip).setBackgroundColor(new Color(null, 255, 255, 255));
-		FormColors colors = new FormColors(getDisplay());
-		((DefaultToolTip) toolTip).setForegroundColor(colors.getColor(IFormColors.TITLE));
-		toolTip.setStyle(SWT.NONE);
-	}
-
-	/*
-	 * (non-Javadoc)
-	 * 
-	 * @see
-	 * org.jboss.tools.smooks.configuration.editors.IFieldMarker#setMarkerType()
-	 */
-	public void setMarkerType(int type) {
-		this.type = type;
-		if (this.isDisposed())
-			return;
-		this.redraw();
-	}
-
-	public int getMarkerType() {
-		return type;
-	}
-
-	/*
-	 * (non-Javadoc)
-	 * 
-	 * @see
-	 * org.jboss.tools.smooks.configuration.editors.IFieldMarker#setMessage()
-	 */
-	public void setMessage(String message) {
-		toolTip.setText(message);
-	}
-
-	public String getMessage() {
-		return getToolTipText();
-	}
-
-	public void clean() {
-		setMarkerType(TYPE_NONE);
-		if(isDisposed()) return;
-		this.setToolTipText(null);
-		this.redraw();
-	}
-
-	public void paintControl(PaintEvent e) {
-		GC gc = e.gc;
-		gc.fillRectangle(getBounds());
-		if (type == IFieldMarker.TYPE_ERROR) {
-			gc.drawImage(errorImage, 0, 0);
-		}
-		if (type == IFieldMarker.TYPE_WARINING) {
-			gc.drawImage(waringImage, 0, 0);
-		}
-	}
-
-}

Deleted: branches/smooks-dmb/plugins/org.jboss.tools.smooks.ui/src/org/jboss/tools/smooks/configuration/editors/GraphicsConstants.java
===================================================================
--- branches/smooks-dmb/plugins/org.jboss.tools.smooks.ui/src/org/jboss/tools/smooks/configuration/editors/GraphicsConstants.java	2010-07-21 08:59:08 UTC (rev 23622)
+++ branches/smooks-dmb/plugins/org.jboss.tools.smooks.ui/src/org/jboss/tools/smooks/configuration/editors/GraphicsConstants.java	2010-07-21 09:11:28 UTC (rev 23623)
@@ -1,115 +0,0 @@
-package org.jboss.tools.smooks.configuration.editors;
-
-import org.eclipse.swt.graphics.Color;
-import org.eclipse.swt.widgets.Display;
-import org.eclipse.ui.forms.FormColors;
-import org.eclipse.ui.forms.IFormColors;
-
-public final class GraphicsConstants {
-
-	public static Color BORDER_CORLOR;
-
-	public static Color TB_BG_CORLOR;
-	
-	public static Color FONT_COLOR ;
-
-	static {
-		FormColors toolkit = new FormColors(Display.getDefault());
-		BORDER_CORLOR = toolkit.getBorderColor();
-		TB_BG_CORLOR = toolkit.getColor(IFormColors.TB_BG);
-		FONT_COLOR = toolkit.getColor(IFormColors.TITLE);
-//		toolkit.dispose();
-	}
-
-	public static final String IMAGE_JAVA_AMPPING_TASK = "icons/full/obj32/java_mapping_task.jpg"; //$NON-NLS-1$
-	
-	public static final String IMAGE_DRAG_LINK = "icons/full/obj16/drag_link.gif"; //$NON-NLS-1$
-	
-	public static final String IMAGE_ADD_TASK_BUTTON = "icons/full/obj16/add_task_button.png"; //$NON-NLS-1$
-
-	public static final String IMAGE_LINK16 = "icons/full/obj16/connection16.gif"; //$NON-NLS-1$
-
-	public static final String IMAGE_LINK24 = "icons/full/obj16/connection24.gif"; //$NON-NLS-1$
-
-	public static final String IMAGE_APPLY_XSL_TASK = "icons/full/obj32/xsl_task.png"; //$NON-NLS-1$
-
-	public static final String IMAGE_APPLY_FREEMARKER_TASK = "icons/full/obj32/freemarker_task.jpg"; //$NON-NLS-1$
-
-	public static final String IMAGE_INPUT_TASK = "icons/full/obj32/input_task.jpg"; //$NON-NLS-1$
-
-	public static final String IMAGE_JAVA_ATTRIBUTE = "icons/full/obj16/att_obj.gif"; //$NON-NLS-1$
-
-	public static final String IMAGE_VALIDATED_TAG = "icons/full/obj16/validated_tag.gif"; //$NON-NLS-1$
-
-	public static final String IMAGE_PROPERTY_SHEET_PAGE = "icons/full/prop_ps.gif"; //$NON-NLS-1$
-
-	public static final String IMAGE_JAVA_OBJECT = "icons/full/obj16/class_obj.gif"; //$NON-NLS-1$
-
-	public static final String IMAGE_PACKAGE_OBJECT = "icons/full/obj16/package_obj.gif"; //$NON-NLS-1$
-
-	public static final String IMAGE_XSL_CHOICE = "icons/full/obj16/xsl_choice.gif"; //$NON-NLS-1$
-
-	public static final String IMAGE_XSL_TEMPLATE_APPLY = "icons/full/obj16/xsl_template_apply.gif"; //$NON-NLS-1$
-
-	public static final String IMAGE_XSL_FOREACH = "icons/full/obj16/xsl_foreach.gif"; //$NON-NLS-1$
-
-	public static final String IMAGE_XSL_SORT = "icons/full/obj16/xsl_sort.gif"; //$NON-NLS-1$
-
-	public static final String IMAGE_XSL_IF = "icons/full/obj16/xsl_if.gif"; //$NON-NLS-1$
-
-	public static final String IMAGE_XSL_STYLESHEET = "icons/full/obj16/xsl_stylesheet.gif"; //$NON-NLS-1$
-
-	public static final String IMAGE_XSL_TEMPLATE = "icons/full/obj16/xsl_template.gif"; //$NON-NLS-1$
-
-	public static final String IMAGE_OVR_ERROR = "icons/full/ovr16/error_co.gif"; //$NON-NLS-1$
-
-	public static final String IMAGE_OVR_WARING = "icons/full/ovr16/warning_co.gif"; //$NON-NLS-1$
-
-	public static final String IMAGE_JAVA_INTERFACE = "icons/full/obj16/int_obj.gif"; //$NON-NLS-1$
-
-	public static final String IMAGE_JAVA_COLLECTION = "icons/full/obj16/javalistmodel.gif"; //$NON-NLS-1$
-
-	public static final String IMAGE_JAVA_BEAN = "icons/full/obj16/java_bean.png"; //$NON-NLS-1$
-
-	public static final String IMAGE_INPUT_DATA_HEADER = "icons/full/obj16/input_data_header.gif"; //$NON-NLS-1$
-
-	public static final String IMAGE_JAVA_ARRAY = "icons/full/obj16/javaarraymodel.gif"; //$NON-NLS-1$
-
-	public static final String IMAGE_CHECKBOX_CHECK = "icons/full/obj16/checkbox_checked.gif"; //$NON-NLS-1$
-
-	public static final String IMAGE_CHECKBOX_UNCHECK = "icons/full/obj16/checkbox_uncheck.gif"; //$NON-NLS-1$
-
-	public static final String JAVA_PROPERTY_ICON_PATH = IMAGE_JAVA_ATTRIBUTE;
-
-	public static final String JAVA_PROPERTY_ICON = JAVA_PROPERTY_ICON_PATH;
-
-	public static final String IMAGE_PATH_ERROR = "icons/full/obj16/error_obj.gif"; //$NON-NLS-1$
-
-	public static final String IMAGE_PATH_WARNING = "icons/full/obj16/warning_obj.gif"; //$NON-NLS-1$
-
-	public static final String IMAGE_PATH_BLANK = "icons/full/obj16/blank.gif"; //$NON-NLS-1$
-
-	public static final String IMAGE_WARNING = IMAGE_PATH_WARNING;
-
-	public static final String IMAGE_ERROR = IMAGE_PATH_ERROR;
-
-	public static final String IMAGE_EMPTY = IMAGE_PATH_BLANK;
-
-	public static final String IMAGE_XML_ELEMENT = "icons/full/obj16/element_obj.gif"; //$NON-NLS-1$
-
-	public static final String IMAGE_XML_ATTRIBUTE = "icons/full/obj16/attribute_obj.gif"; //$NON-NLS-1$
-
-	public static final String IMAGE_MAPPING_LINE = "icons/full/obj16/mapping_line.gif"; //$NON-NLS-1$
-
-	public static final String IMAGE_BINDING_LINE = "icons/full/obj16/binding_line.gif"; //$NON-NLS-1$
-
-	public static final String IMAGE_UNKNOWN_OBJ = "icons/full/obj16/unknown_obj.gif"; //$NON-NLS-1$
-
-	public static final String IMAGE_JAVA_FILE = "icons/full/obj16/jcu_obj.gif"; //$NON-NLS-1$
-	
-	public static final String IMAGE_CSV_FILE = "icons/full/obj16/csvfile.gif"; //$NON-NLS-1$
-
-	public static final String IMAGE_XML_FILE = "icons/full/obj16/XMLFile.gif"; //$NON-NLS-1$
-
-	public static final String IMAGE_XSD_FILE = "icons/full/obj16/XSDFile.gif"; //$NON-NLS-1$
-}

Deleted: branches/smooks-dmb/plugins/org.jboss.tools.smooks.ui/src/org/jboss/tools/smooks/configuration/editors/IFieldMarker.java
===================================================================
--- branches/smooks-dmb/plugins/org.jboss.tools.smooks.ui/src/org/jboss/tools/smooks/configuration/editors/IFieldMarker.java	2010-07-21 08:59:08 UTC (rev 23622)
+++ branches/smooks-dmb/plugins/org.jboss.tools.smooks.ui/src/org/jboss/tools/smooks/configuration/editors/IFieldMarker.java	2010-07-21 09:11:28 UTC (rev 23623)
@@ -1,34 +0,0 @@
-/*******************************************************************************
- * Copyright (c) 2008 Red Hat, Inc.
- * Distributed under license by Red Hat, Inc. All rights reserved.
- * This program is made available under the terms of the
- * Eclipse Public License v1.0 which accompanies this distribution,
- * and is available at http://www.eclipse.org/legal/epl-v10.html
- *
- * Contributors:
- *     Red Hat, Inc. - initial API and implementation
- ******************************************************************************/
-package org.jboss.tools.smooks.configuration.editors;
-
-/**
- * @author Dart (dpeng at redhat.com)
- *
- */
-public interface IFieldMarker {
-	
-	int TYPE_ERROR = 1;
-	
-	int TYPE_WARINING = 2;
-	
-	int TYPE_NONE = 0;
-	
-	void setMessage(String message);
-	
-	void setMarkerType(int type);
-	
-	int getMarkerType();
-	
-	String getMessage();
-	
-	void clean();
-}

Deleted: branches/smooks-dmb/plugins/org.jboss.tools.smooks.ui/src/org/jboss/tools/smooks/configuration/editors/IFilePathProcessor.java
===================================================================
--- branches/smooks-dmb/plugins/org.jboss.tools.smooks.ui/src/org/jboss/tools/smooks/configuration/editors/IFilePathProcessor.java	2010-07-21 08:59:08 UTC (rev 23622)
+++ branches/smooks-dmb/plugins/org.jboss.tools.smooks.ui/src/org/jboss/tools/smooks/configuration/editors/IFilePathProcessor.java	2010-07-21 09:11:28 UTC (rev 23623)
@@ -1,16 +0,0 @@
-/**
- * 
- */
-package org.jboss.tools.smooks.configuration.editors;
-
-import org.eclipse.core.resources.IFile;
-
-/**
- * @author DartPeng
- *
- */
-public interface IFilePathProcessor {
-	String processWorkBenchPath(IFile file);
-	
-	String processFileSystemPath(String filePath);
-}

Deleted: branches/smooks-dmb/plugins/org.jboss.tools.smooks.ui/src/org/jboss/tools/smooks/configuration/editors/IXMLStructuredObject.java
===================================================================
--- branches/smooks-dmb/plugins/org.jboss.tools.smooks.ui/src/org/jboss/tools/smooks/configuration/editors/IXMLStructuredObject.java	2010-07-21 08:59:08 UTC (rev 23622)
+++ branches/smooks-dmb/plugins/org.jboss.tools.smooks.ui/src/org/jboss/tools/smooks/configuration/editors/IXMLStructuredObject.java	2010-07-21 09:11:28 UTC (rev 23623)
@@ -1,25 +0,0 @@
-/**
- * 
- */
-package org.jboss.tools.smooks.configuration.editors;
-
-import java.util.List;
-
-/**
- * @author Dart
- *
- */
-public interface IXMLStructuredObject {
-	
-	public String getNodeName();
-	
-	public List<IXMLStructuredObject> getChildren();
-	
-	public IXMLStructuredObject getParent();
-	
-	public Object getID();
-	
-	public boolean isRootNode();
-	
-	public boolean isAttribute();
-}

Deleted: branches/smooks-dmb/plugins/org.jboss.tools.smooks.ui/src/org/jboss/tools/smooks/configuration/editors/Messages.java
===================================================================
--- branches/smooks-dmb/plugins/org.jboss.tools.smooks.ui/src/org/jboss/tools/smooks/configuration/editors/Messages.java	2010-07-21 08:59:08 UTC (rev 23622)
+++ branches/smooks-dmb/plugins/org.jboss.tools.smooks.ui/src/org/jboss/tools/smooks/configuration/editors/Messages.java	2010-07-21 09:11:28 UTC (rev 23623)
@@ -1,93 +0,0 @@
-package org.jboss.tools.smooks.configuration.editors;
-
-import org.eclipse.osgi.util.NLS;
-
-public class Messages extends NLS {
-	private static final String BUNDLE_NAME = "org.jboss.tools.smooks.configuration.editors.messages"; //$NON-NLS-1$
-	public static String ChildrenSelectionWizardPage_selectchilderror;
-	public static String ChildrenSelectionWizardPage_wizardtitle;
-	public static String FileSelectionWizard_WizardPageName;
-	public static String FileSelectionWizard_WizardTitle;
-	public static String FileSelectionWizardPage_PageDescription;
-	public static String FileSelectionWizardPage_PageTitle;
-	public static String ModelChildrenTablePanelCreator_DownButtonLable;
-	public static String ModelChildrenTablePanelCreator_NewButtonLabel;
-	public static String ModelChildrenTablePanelCreator_PropertiesButtonLabel;
-	public static String ModelChildrenTablePanelCreator_RemoveButtonLabel;
-	public static String ModelChildrenTablePanelCreator_UpButtonLabel;
-	public static String NewOrModifySmooksElementDialog_CloseButtonLabel;
-	public static String PropertyUICreator_browsebutton;
-	public static String PropertyUICreator_namelabel;
-	public static String PropertyUICreator_nslabel;
-	public static String SelectorCreationDialog_AddInputLinkLabel;
-	public static String SelectorCreationDialog_DialogTitle;
-	public static String SelectorCreationDialog_FullPathPolicy;
-	public static String SelectorCreationDialog_InputViewerlabel;
-	public static String SelectorCreationDialog_OnlyNamePolicy;
-	public static String SelectorCreationDialog_PolicyLabel;
-	public static String SelectorCreationDialog_SperatorCharlabel;
-	public static String SmooksActionBarContributor_33;
-	public static String SmooksActionBarContributor_AddSmooksReasourceActionLabel;
-	public static String SmooksActionBarContributor_AddSmooksResourceActionLabel;
-	public static String SmooksActionBarContributor_CreateSiblingActionLabel;
-	public static String SmooksActionBarContributor_NewSiblingActionLabel;
-	public static String SmooksActionBarContributor_OpenProperyViewActionLabel;
-	public static String SmooksActionBarContributor_RefreshViewActionLabel;
-	public static String SmooksActionBarContributor_ValidateActionLabel;
-	public static String SmooksConfigFileHandle_exception;
-	public static String SmooksConfigurationOverviewPage_ConfigurationSectionTitle;
-	public static String SmooksConfigurationOverviewPage_FilterSettingSectionTitle;
-	public static String SmooksConfigurationOverviewPage_FilterTypeLabel;
-	public static String SmooksConfigurationOverviewPage_SerializationLabel;
-	public static String SmooksConfigurationOverviewPage_VersionLabel;
-	public static String SmooksConfigurationReaderPage_AddInputButtonLabel;
-	public static String SmooksConfigurationReaderPage_DeleteInputButtonLabel;
-	public static String SmooksConfigurationReaderPage_EditReaderDes;
-	public static String SmooksConfigurationReaderPage_InputSectionTitle;
-	public static String SmooksConfigurationReaderPage_InputTableExtensionLabel;
-	public static String SmooksConfigurationReaderPage_InputTablePathColumnLabel;
-	public static String SmooksConfigurationReaderPage_InputTableTypeColumnText;
-	public static String SmooksConfigurationReaderPage_NewReaderDes;
-	public static String SmooksConfigurationReaderPage_NewReaderTitle;
-	public static String SmooksConfigurationReaderPage_PageTitle;
-	public static String SmooksConfigurationReaderPage_ReaderSectionTitle;
-	public static String SmooksConfigurationResourceConfigPage_FormTitle;
-	public static String SmooksConfigurationResourceConfigPage_SectionTitle;
-	public static String SmooksMasterDetailBlock_AddButtonLabel;
-	public static String SmooksMasterDetailBlock_DownButtonLabel;
-	public static String SmooksMasterDetailBlock_RemoveButtonlabel;
-	public static String SmooksMasterDetailBlock_UpButtonLabel;
-	public static String SmooksMultiFormEditor_opetiontab_label;
-	public static String SmooksMultiFormEditor_optinepage_name;
-	public static String SmooksMultiFormEditor_processpage_name;
-	public static String SmooksMultiFormEditor_processtabel_label;
-	public static String SmooksReaderFormPage_AddButtonLabel;
-	public static String SmooksReaderFormPage_CantFindTypeErrorTitle;
-	public static String SmooksReaderFormPage_DeleteButtonLabel;
-	public static String SmooksReaderFormPage_Error_Creating_Input_Model;
-	public static String SmooksReaderFormPage_Input_Error;
-	public static String SmooksReaderFormPage_InputConfigurationSectionDes;
-	public static String SmooksReaderFormPage_InputConfigurationSectionTitle;
-	public static String SmooksReaderFormPage_InputDataSectionDes;
-	public static String SmooksReaderFormPage_InputDataSectionTitle;
-	public static String SmooksReaderFormPage_InputSectionTitle;
-	public static String SmooksReaderFormPage_InputTypeLabel;
-	public static String SmooksReaderFormPage_InputTypeSectionTitle;
-	public static String SmooksReaderFormPage_JavaReaderComboText;
-	public static String SmooksReaderFormPage_NoInputComboText;
-	public static String SmooksReaderFormPage_OpenFileErrorTitle;
-	public static String SmooksReaderFormPage_PathColumnText;
-	public static String SmooksReaderFormPage_RefreshLinkLabel;
-	public static String SmooksReaderFormPage_TypeColumnText;
-	public static String SmooksReaderFormPage_Warning_Specify_Input_Type;
-	public static String SmooksReaderFormPage_Warning_Specify_Sample_Data;
-	public static String SmooksReaderFormPage_XMLReaderComboText;
-	public static String SmooksReaderFormPage_XSDReaderComboText;
-	static {
-		// initialize resource bundle
-		NLS.initializeMessages(BUNDLE_NAME, Messages.class);
-	}
-
-	private Messages() {
-	}
-}

Deleted: branches/smooks-dmb/plugins/org.jboss.tools.smooks.ui/src/org/jboss/tools/smooks/configuration/editors/SelectorAttributes.java
===================================================================
--- branches/smooks-dmb/plugins/org.jboss.tools.smooks.ui/src/org/jboss/tools/smooks/configuration/editors/SelectorAttributes.java	2010-07-21 08:59:08 UTC (rev 23622)
+++ branches/smooks-dmb/plugins/org.jboss.tools.smooks.ui/src/org/jboss/tools/smooks/configuration/editors/SelectorAttributes.java	2010-07-21 09:11:28 UTC (rev 23623)
@@ -1,35 +0,0 @@
-/**
- * 
- */
-package org.jboss.tools.smooks.configuration.editors;
-
-
-/**
- * @author Dart
- *
- */
-public class SelectorAttributes {
-	public static final String ONLY_NAME = "only_name"; //$NON-NLS-1$
-
-	public static final String FULL_PATH = "full_path"; //$NON-NLS-1$
-
-	public static final String IGNORE_ROOT = "ignore_root"; //$NON-NLS-1$
-
-	public static final String INCLUDE_PARENT = "include_parent"; //$NON-NLS-1$
-	private String selectorSperator = "/"; //$NON-NLS-1$
-	private String selectorPolicy = SelectorAttributes.FULL_PATH;
-	public String getSelectorSperator() {
-		return selectorSperator;
-	}
-	public void setSelectorSperator(String selectorSperator) {
-		this.selectorSperator = selectorSperator;
-	}
-	public String getSelectorPolicy() {
-		return selectorPolicy;
-	}
-	public void setSelectorPolicy(String selectorPolicy) {
-		this.selectorPolicy = selectorPolicy;
-	}
-	
-	
-}

Deleted: branches/smooks-dmb/plugins/org.jboss.tools.smooks.ui/src/org/jboss/tools/smooks/configuration/editors/SmooksConfigFileHandle.java
===================================================================
--- branches/smooks-dmb/plugins/org.jboss.tools.smooks.ui/src/org/jboss/tools/smooks/configuration/editors/SmooksConfigFileHandle.java	2010-07-21 08:59:08 UTC (rev 23622)
+++ branches/smooks-dmb/plugins/org.jboss.tools.smooks.ui/src/org/jboss/tools/smooks/configuration/editors/SmooksConfigFileHandle.java	2010-07-21 09:11:28 UTC (rev 23623)
@@ -1,155 +0,0 @@
-/*******************************************************************************
- * Copyright (c) 2008 Red Hat, Inc.
- * Distributed under license by Red Hat, Inc. All rights reserved.
- * This program is made available under the terms of the
- * Eclipse Public License v1.0 which accompanies this distribution,
- * and is available at http://www.eclipse.org/legal/epl-v10.html
- *
- * Contributors:
- *     Red Hat, Inc. - initial API and implementation
- ******************************************************************************/
-package org.jboss.tools.smooks.configuration.editors;
-
-import java.io.IOException;
-import java.io.StringReader;
-
-import javax.xml.parsers.ParserConfigurationException;
-import javax.xml.parsers.SAXParser;
-import javax.xml.parsers.SAXParserFactory;
-
-import org.xml.sax.Attributes;
-import org.xml.sax.InputSource;
-import org.xml.sax.SAXException;
-import org.xml.sax.SAXNotRecognizedException;
-import org.xml.sax.SAXNotSupportedException;
-import org.xml.sax.XMLReader;
-import org.xml.sax.helpers.DefaultHandler;
-
-/**
- * @author Dart dpeng at redhat.com
- * 
- */
-public class SmooksConfigFileHandle extends DefaultHandler {
-	private boolean correctContentFile = false;
-
-	//		private static final String SMOOKS_RESOURCE_LIST = "smooks-resource-list"; //$NON-NLS-1$
-
-	private String[] smooksSpportURI = null;
-
-	private SAXParserFactory fFactory;
-
-	public SmooksConfigFileHandle() {
-		super();
-		smooksSpportURI = createSupportURI();
-	}
-
-	protected String[] createSupportURI() {
-		return new String[] { "http://www.milyn.org/xsd/smooks-1.1.xsd",
-				"http://www.milyn.org/xsd/smooks-1.0.xsd", "http://www.milyn.org/xsd/smooks/freemarker-1.1.xsd" }; //$NON-NLS-1$
-	}
-
-	private final SAXParser createParser(SAXParserFactory parserFactory) throws ParserConfigurationException,
-			SAXException, SAXNotRecognizedException, SAXNotSupportedException {
-		// Initialize the parser.
-		final SAXParser parser = parserFactory.newSAXParser();
-		final XMLReader reader = parser.getXMLReader();
-		// disable DTD validation
-		try {
-			reader.setFeature("http://xml.org/sax/features/validation", false); //$NON-NLS-1$
-			reader.setFeature("http://apache.org/xml/features/nonvalidating/load-external-dtd", false); //$NON-NLS-1$
-		} catch (SAXNotRecognizedException e) {
-		} catch (SAXNotSupportedException e) {
-		}
-		return parser;
-	}
-
-	private SAXParserFactory getFactory() {
-		synchronized (this) {
-			if (fFactory != null) {
-				return fFactory;
-			}
-			fFactory = SAXParserFactory.newInstance();
-			fFactory.setNamespaceAware(true);
-		}
-		return fFactory;
-	}
-
-	public boolean parseContents(InputSource contents) throws ParserConfigurationException, IOException {
-		try {
-			fFactory = getFactory();
-			if (fFactory == null) {
-				return false;
-			}
-			final SAXParser parser = createParser(fFactory);
-			contents.setSystemId("/"); //$NON-NLS-1$
-			parser.parse(contents, this);
-		} catch (SAXException e) {
-			// stop parsing
-		}
-		return true;
-	}
-
-	/*
-	 * Resolve external entity definitions to an empty string. This is to speed
-	 * up processing of files with external DTDs. Not resolving the contents of
-	 * the DTD is ok, as only the System ID of the DTD declaration is used.
-	 * 
-	 * @see org.xml.sax.helpers.DefaultHandler#resolveEntity(java.lang.String,
-	 * java.lang.String)
-	 */
-	public InputSource resolveEntity(String publicId, String systemId) throws SAXException {
-		return new InputSource(new StringReader("")); //$NON-NLS-1$
-	}
-
-	@Override
-	public void startPrefixMapping(String prefix, String uri) throws SAXException {
-		super.startPrefixMapping(prefix, uri);
-		if (containtSmooksURI(uri)) {
-			setCorrectContentFile(true);
-			throw new SAXException(Messages.SmooksConfigFileHandle_exception);
-		}
-	}
-
-	private boolean unSupportUIR(String uri) {
-		// if (EdiPackage.eNS_URI.equals(uri)) {
-		// return true;
-		// }
-		return false;
-	}
-
-	private boolean containtSmooksURI(String uri) {
-		for (int i = 0; i < smooksSpportURI.length; i++) {
-			if (uri != null) {
-				if (uri.trim().equalsIgnoreCase(smooksSpportURI[i])) {
-					return true;
-				}
-			}
-		}
-		return false;
-	}
-
-	/*
-	 * (non-Javadoc)
-	 * 
-	 * @see org.xml.sax.ContentHandler#startElement(java.lang.String,
-	 * java.lang.String, java.lang.String, org.xml.sax.Attributes)
-	 */
-	public final void startElement(final String uri, final String elementName, final String qualifiedName,
-			final Attributes attributes) throws SAXException {
-		if (isCorrectContentFile()) {
-			throw new SAXException(Messages.SmooksConfigFileHandle_exception);
-		}
-		if (containtSmooksURI(uri)) {
-			setCorrectContentFile(true);
-			throw new SAXException(Messages.SmooksConfigFileHandle_exception);
-		}
-	}
-
-	public boolean isCorrectContentFile() {
-		return correctContentFile;
-	}
-
-	public void setCorrectContentFile(boolean correctContentFile) {
-		this.correctContentFile = correctContentFile;
-	}
-}

Deleted: branches/smooks-dmb/plugins/org.jboss.tools.smooks.ui/src/org/jboss/tools/smooks/configuration/editors/SmooksConfigfileContentDescriber.java
===================================================================
--- branches/smooks-dmb/plugins/org.jboss.tools.smooks.ui/src/org/jboss/tools/smooks/configuration/editors/SmooksConfigfileContentDescriber.java	2010-07-21 08:59:08 UTC (rev 23622)
+++ branches/smooks-dmb/plugins/org.jboss.tools.smooks.ui/src/org/jboss/tools/smooks/configuration/editors/SmooksConfigfileContentDescriber.java	2010-07-21 09:11:28 UTC (rev 23623)
@@ -1,203 +0,0 @@
-/*******************************************************************************
- * Copyright (c) 2009 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.configuration.editors;
-
-import java.io.BufferedReader;
-import java.io.IOException;
-import java.io.InputStream;
-import java.io.Reader;
-
-import javax.xml.parsers.ParserConfigurationException;
-
-import org.eclipse.core.runtime.CoreException;
-import org.eclipse.core.runtime.IConfigurationElement;
-import org.eclipse.core.runtime.IExecutableExtension;
-import org.eclipse.core.runtime.QualifiedName;
-import org.eclipse.core.runtime.content.IContentDescription;
-import org.eclipse.core.runtime.content.ITextContentDescriber;
-import org.xml.sax.InputSource;
-
-/**
- * @author Dart (dpeng at redhat.com) note : Many codes comes from
- *         org.eclipse.core.internal.content.XMLConentDescriber
- */
-public class SmooksConfigfileContentDescriber implements ITextContentDescriber, IExecutableExtension {
-
-	private static final QualifiedName[] SUPPORTED_OPTIONS = new QualifiedName[] { IContentDescription.CHARSET,
-			IContentDescription.BYTE_ORDER_MARK };
-
-	private static final String ENCODING = "encoding="; //$NON-NLS-1$
-
-	private static final String XML_PREFIX = "<?xml "; //$NON-NLS-1$
-
-	/**
-	 * 
-	 */
-	public SmooksConfigfileContentDescriber() {
-		// TODO Auto-generated constructor stub
-	}
-
-	public void setInitializationData(IConfigurationElement config, String propertyName, Object data)
-			throws CoreException {
-
-	}
-
-	public int describeXMLFile(InputStream input, IContentDescription description) throws IOException {
-		byte[] bom = getByteOrderMark(input);
-		String xmlDeclEncoding = "UTF-8"; //$NON-NLS-1$
-		input.reset();
-		if (bom != null) {
-			if (bom == IContentDescription.BOM_UTF_16BE)
-				xmlDeclEncoding = "UTF-16BE"; //$NON-NLS-1$
-			else if (bom == IContentDescription.BOM_UTF_16LE)
-				xmlDeclEncoding = "UTF-16LE"; //$NON-NLS-1$
-			// skip BOM to make comparison simpler
-			input.skip(bom.length);
-			// set the BOM in the description if requested
-			if (description != null && description.isRequested(IContentDescription.BYTE_ORDER_MARK))
-				description.setProperty(IContentDescription.BYTE_ORDER_MARK, bom);
-		}
-		byte[] xmlPrefixBytes = XML_PREFIX.getBytes(xmlDeclEncoding);
-		byte[] prefix = new byte[xmlPrefixBytes.length];
-		if (input.read(prefix) < prefix.length)
-			// there is not enough info to say anything
-			return INDETERMINATE;
-		for (int i = 0; i < prefix.length; i++)
-			if (prefix[i] != xmlPrefixBytes[i])
-				// we don't have a XMLDecl... there is not enough info to say
-				// anything
-				return INDETERMINATE;
-		if (description == null)
-			return VALID;
-		// describe charset if requested
-		if (description.isRequested(IContentDescription.CHARSET)) {
-			String fullXMLDecl = readFullXMLDecl(input, xmlDeclEncoding);
-			if (fullXMLDecl != null) {
-				String charset = getCharset(fullXMLDecl);
-				if (charset != null && !"UTF-8".equalsIgnoreCase(charset)) //$NON-NLS-1$
-					// only set property if value is not default (avoid using a
-					// non-default content description)
-					description.setProperty(IContentDescription.CHARSET, getCharset(fullXMLDecl));
-			}
-		}
-		return VALID;
-	}
-
-	public int describeXMLType(Reader input, IContentDescription description) throws IOException {
-		BufferedReader reader = new BufferedReader(input);
-		String line = reader.readLine();
-		// end of stream
-		if (line == null)
-			return INDETERMINATE;
-		// XMLDecl should be the first string (no blanks allowed)
-		if (!line.startsWith(XML_PREFIX))
-			return INDETERMINATE;
-		if (description == null)
-			return VALID;
-		// describe charset if requested
-		if ((description.isRequested(IContentDescription.CHARSET)))
-			description.setProperty(IContentDescription.CHARSET, getCharset(line));
-		return VALID;
-	}
-
-	public int describe(InputStream input, IContentDescription description) throws IOException {
-		if (this.describeXMLFile(input, description) == INVALID) {
-			return INVALID;
-		}
-		input.reset();
-		return checkCriteria(new InputSource(input));
-	}
-
-	private String readFullXMLDecl(InputStream input, String unicodeEncoding) throws IOException {
-		byte[] xmlDecl = new byte[100];
-		int c = 0;
-		// looks for XMLDecl ending char (?)
-		int read = 0;
-		while (read < xmlDecl.length && (c = input.read()) != -1 && c != '?')
-			xmlDecl[read++] = (byte) c;
-		return c == '?' ? new String(xmlDecl, 0, read, unicodeEncoding) : null;
-	}
-
-	public int describe(Reader input, IContentDescription description) throws IOException {
-		if (this.describeXMLType(input, description) == INVALID) {
-			return INVALID;
-		}
-		input.reset();
-		return checkCriteria(new InputSource(input));
-	}
-	
-	protected SmooksConfigFileHandle createHandle(){
-		return new SmooksConfigFileHandle();
-	}
-
-	/**
-	 * To check the namespaces of the file
-	 * 
-	 * @param contents
-	 * @return
-	 * @throws IOException
-	 */
-	private int checkCriteria(InputSource contents) throws IOException {
-		SmooksConfigFileHandle handle = createHandle();
-		try {
-			if (!handle.parseContents(contents)) {
-				return INDETERMINATE;
-			}
-		} catch (ParserConfigurationException e) {
-			return INDETERMINATE;
-		}
-		if (handle.isCorrectContentFile()) {
-			return VALID;
-		}
-		return INDETERMINATE;
-	}
-
-	private String getCharset(String firstLine) {
-		int encodingPos = firstLine.indexOf(ENCODING);
-		if (encodingPos == -1)
-			return null;
-		char quoteChar = '"';
-		int firstQuote = firstLine.indexOf(quoteChar, encodingPos);
-		if (firstQuote == -1) {
-			quoteChar = '\'';
-			firstQuote = firstLine.indexOf(quoteChar, encodingPos);
-		}
-		if (firstQuote == -1 || firstLine.length() == firstQuote - 1)
-			return null;
-		int secondQuote = firstLine.indexOf(quoteChar, firstQuote + 1);
-		if (secondQuote == -1)
-			return null;
-		return firstLine.substring(firstQuote + 1, secondQuote);
-	}
-
-	public QualifiedName[] getSupportedOptions() {
-		return SUPPORTED_OPTIONS;
-	}
-
-	byte[] getByteOrderMark(InputStream input) throws IOException {
-		int first = input.read();
-		if (first == 0xEF) {
-			// look for the UTF-8 Byte Order Mark (BOM)
-			int second = input.read();
-			int third = input.read();
-			if (second == 0xBB && third == 0xBF)
-				return IContentDescription.BOM_UTF_8;
-		} else if (first == 0xFE) {
-			// look for the UTF-16 BOM
-			if (input.read() == 0xFF)
-				return IContentDescription.BOM_UTF_16BE;
-		} else if (first == 0xFF) {
-			if (input.read() == 0xFE)
-				return IContentDescription.BOM_UTF_16LE;
-		}
-		return null;
-	}
-}

Deleted: branches/smooks-dmb/plugins/org.jboss.tools.smooks.ui/src/org/jboss/tools/smooks/configuration/editors/SmooksMultiFormEditor.java
===================================================================
--- branches/smooks-dmb/plugins/org.jboss.tools.smooks.ui/src/org/jboss/tools/smooks/configuration/editors/SmooksMultiFormEditor.java	2010-07-21 08:59:08 UTC (rev 23622)
+++ branches/smooks-dmb/plugins/org.jboss.tools.smooks.ui/src/org/jboss/tools/smooks/configuration/editors/SmooksMultiFormEditor.java	2010-07-21 09:11:28 UTC (rev 23623)
@@ -1,54 +0,0 @@
-/**
- * 
- */
-package org.jboss.tools.smooks.configuration.editors;
-
-import org.eclipse.ui.PartInitException;
-import org.jboss.tools.smooks.dbm.editor.SmooksConfigurationFormPage;
-import org.jboss.tools.smooks.editor.AbstractSmooksFormEditor;
-import org.jboss.tools.smooks.graphical.editors.SmooksProcessGraphicalEditor;
-
-/**
- * @author Dart
- *
- */
-public class SmooksMultiFormEditor extends AbstractSmooksFormEditor {
-
-	private SmooksConfigurationFormPage optionsPage;
-	
-	@Override
-	protected void addPages() {
-		
-		addProcessGraphicalEditor();
-		
-		optionsPage = createSmooksConfigurationOverviewPage();
-		addSourceSynchronizeListener(optionsPage);
-		addSmooksEditorInitListener(optionsPage);
-		try {
-			int index = this.addPage(optionsPage);
-			setPageText(index, Messages.SmooksMultiFormEditor_opetiontab_label);
-		} catch (PartInitException e) {
-			e.printStackTrace();
-		}
-		
-		super.addPages();
-	}
-
-	private SmooksConfigurationFormPage createSmooksConfigurationOverviewPage() {
-		return new SmooksConfigurationFormPage(this,
-				"options_page", Messages.SmooksMultiFormEditor_optinepage_name, this); //$NON-NLS-1$
-	}
-	private void addProcessGraphicalEditor() {
-		SmooksProcessGraphicalEditor processPage = new SmooksProcessGraphicalEditor(this,
-				"process", Messages.SmooksMultiFormEditor_processpage_name, this); //$NON-NLS-1$
-//		addSourceSynchronizeListener(processPage);
-//		addValidateListener(processPage);
-//		addSmooksEditorInitListener(processPage);
-		try {
-			int index = this.addPage(processPage);
-			setPageText(index, Messages.SmooksMultiFormEditor_processtabel_label);
-		} catch (PartInitException e) {
-			e.printStackTrace();
-		}
-	}
-}

Deleted: branches/smooks-dmb/plugins/org.jboss.tools.smooks.ui/src/org/jboss/tools/smooks/configuration/editors/SmooksMultiPageEditorContributor.java
===================================================================
--- branches/smooks-dmb/plugins/org.jboss.tools.smooks.ui/src/org/jboss/tools/smooks/configuration/editors/SmooksMultiPageEditorContributor.java	2010-07-21 08:59:08 UTC (rev 23622)
+++ branches/smooks-dmb/plugins/org.jboss.tools.smooks.ui/src/org/jboss/tools/smooks/configuration/editors/SmooksMultiPageEditorContributor.java	2010-07-21 09:11:28 UTC (rev 23623)
@@ -1,77 +0,0 @@
-package org.jboss.tools.smooks.configuration.editors;
-
-import org.eclipse.jface.action.IAction;
-import org.eclipse.ui.IActionBars;
-import org.eclipse.ui.IEditorPart;
-import org.eclipse.ui.actions.ActionFactory;
-import org.eclipse.ui.part.MultiPageEditorActionBarContributor;
-import org.eclipse.ui.texteditor.ITextEditorActionConstants;
-import org.jboss.tools.smooks.graphical.actions.ISmooksActionProvider;
-
-/**
- * Manages the installation/deinstallation of global actions for multi-page editors.
- * Responsible for the redirection of global actions to the active editor.
- * Multi-page contributor replaces the contributors for the individual editors in the multi-page editor.
- */
-public class SmooksMultiPageEditorContributor extends MultiPageEditorActionBarContributor {
-	private IEditorPart activeEditorPart;
-	/**
-	 * Creates a multi-page contributor.
-	 */
-	public SmooksMultiPageEditorContributor() {
-		super();
-	}
-	
-	
-	protected IAction getAction(IEditorPart editor , String actionID){
-		if(editor instanceof ISmooksActionProvider){
-			return ((ISmooksActionProvider)editor).getAction(actionID);
-		}
-		return null;
-	}
-	
-	/* (non-JavaDoc)
-	 * Method declared in AbstractMultiPageEditorActionBarContributor.
-	 */
-
-	public void setActivePage(IEditorPart part) {
-		if (activeEditorPart == part)
-			return;
-		activeEditorPart = part;
-		IActionBars actionBars = getActionBars();
-		if (actionBars != null) {
-			
-			IEditorPart editor = activeEditorPart;
-
-			actionBars.setGlobalActionHandler(ActionFactory.DELETE.getId(),
-				getAction(editor, ITextEditorActionConstants.DELETE));
-			actionBars.setGlobalActionHandler(
-				ActionFactory.UNDO.getId(),
-				getAction(editor, ITextEditorActionConstants.UNDO));
-			actionBars.setGlobalActionHandler(
-				ActionFactory.REDO.getId(),
-				getAction(editor, ITextEditorActionConstants.REDO));
-			actionBars.updateActionBars();
-		}
-	}
-//	private void createActions() {
-//		sampleAction = new Action() {
-//			public void run() {
-//				MessageDialog.openInformation(null, "Configuration Plug-in", "Sample Action Executed"); //$NON-NLS-1$ //$NON-NLS-2$
-//			}
-//		};
-//		sampleAction.setText("Sample Action"); //$NON-NLS-1$
-//		sampleAction.setToolTipText("Sample Action tool tip"); //$NON-NLS-1$
-//		sampleAction.setImageDescriptor(PlatformUI.getWorkbench().getSharedImages().
-//				getImageDescriptor(IDE.SharedImages.IMG_OBJS_TASK_TSK));
-//	}
-//	public void contributeToMenu(IMenuManager manager) {
-//		IMenuManager menu = new MenuManager("Editor &Menu"); //$NON-NLS-1$
-//		manager.prependToGroup(IWorkbenchActionConstants.MB_ADDITIONS, menu);
-//		menu.add(sampleAction);
-//	}
-//	public void contributeToToolBar(IToolBarManager manager) {
-//		manager.add(new Separator());
-//		manager.add(sampleAction);
-//	}
-}

Deleted: branches/smooks-dmb/plugins/org.jboss.tools.smooks.ui/src/org/jboss/tools/smooks/configuration/editors/SmooksStuffDetailsPageProvider.java
===================================================================
--- branches/smooks-dmb/plugins/org.jboss.tools.smooks.ui/src/org/jboss/tools/smooks/configuration/editors/SmooksStuffDetailsPageProvider.java	2010-07-21 08:59:08 UTC (rev 23622)
+++ branches/smooks-dmb/plugins/org.jboss.tools.smooks.ui/src/org/jboss/tools/smooks/configuration/editors/SmooksStuffDetailsPageProvider.java	2010-07-21 09:11:28 UTC (rev 23623)
@@ -1,53 +0,0 @@
-/*******************************************************************************
- * Copyright (c) 2009 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.configuration.editors;
-
-import java.util.HashMap;
-import java.util.Map;
-
-import org.eclipse.emf.ecore.EObject;
-import org.eclipse.ui.forms.IDetailsPage;
-import org.eclipse.ui.forms.IDetailsPageProvider;
-
-/**
- * @author Dart (dpeng at redhat.com)
- *         <p>
- *         Apr 7, 2009
- */
-public class SmooksStuffDetailsPageProvider implements IDetailsPageProvider {
-	private Map<Object, IDetailsPage> pages = new HashMap<Object, IDetailsPage>();
-
-	public void registePage(Object key , IDetailsPage page){
-		pages.put(key, page);
-	}
-	/*
-	 * (non-Javadoc)
-	 * 
-	 * @see org.eclipse.ui.forms.IDetailsPageProvider#getPage(java.lang.Object)
-	 */
-	public IDetailsPage getPage(Object key) {
-		return pages.get(key);
-	}
-
-	/*
-	 * (non-Javadoc)
-	 * 
-	 * @see
-	 * org.eclipse.ui.forms.IDetailsPageProvider#getPageKey(java.lang.Object)
-	 */
-	public Object getPageKey(Object object) {
-		if(object instanceof EObject){
-			return EObject.class;
-		}
-		return object.getClass();
-	}
-
-}

Deleted: branches/smooks-dmb/plugins/org.jboss.tools.smooks.ui/src/org/jboss/tools/smooks/configuration/editors/SmooksToolsStartup.java
===================================================================
--- branches/smooks-dmb/plugins/org.jboss.tools.smooks.ui/src/org/jboss/tools/smooks/configuration/editors/SmooksToolsStartup.java	2010-07-21 08:59:08 UTC (rev 23622)
+++ branches/smooks-dmb/plugins/org.jboss.tools.smooks.ui/src/org/jboss/tools/smooks/configuration/editors/SmooksToolsStartup.java	2010-07-21 09:11:28 UTC (rev 23623)
@@ -1,29 +0,0 @@
-/*******************************************************************************
- * Copyright (c) 2009 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.configuration.editors;
-
-import org.eclipse.ui.IStartup;
-
-/**
- * @author Dart (dpeng at redhat.com)<p>
- * Apr 12, 2009
- */
-public class SmooksToolsStartup implements IStartup {
-
-	/* (non-Javadoc)
-	 * @see org.eclipse.ui.IStartup#earlyStartup()
-	 */
-	public void earlyStartup() {
-//		ResourcesPlugin.getWorkspace().addResourceChangeListener(new SmooksResourceChangeListener());
-	}
-
-
-}

Deleted: branches/smooks-dmb/plugins/org.jboss.tools.smooks.ui/src/org/jboss/tools/smooks/configuration/editors/SmooksXMLEditor.java
===================================================================
--- branches/smooks-dmb/plugins/org.jboss.tools.smooks.ui/src/org/jboss/tools/smooks/configuration/editors/SmooksXMLEditor.java	2010-07-21 08:59:08 UTC (rev 23622)
+++ branches/smooks-dmb/plugins/org.jboss.tools.smooks.ui/src/org/jboss/tools/smooks/configuration/editors/SmooksXMLEditor.java	2010-07-21 09:11:28 UTC (rev 23623)
@@ -1,32 +0,0 @@
-/*******************************************************************************
- * Copyright (c) 2008 Red Hat, Inc.
- * Distributed under license by Red Hat, Inc. All rights reserved.
- * This program is made available under the terms of the
- * Eclipse Public License v1.0 which accompanies this distribution,
- * and is available at http://www.eclipse.org/legal/epl-v10.html
- *
- * Contributors:
- *     Red Hat, Inc. - initial API and implementation
- ******************************************************************************/
-package org.jboss.tools.smooks.configuration.editors;
-
-import org.eclipse.core.runtime.CoreException;
-import org.eclipse.ui.IEditorInput;
-import org.eclipse.wst.sse.ui.StructuredTextEditor;
-
-/**
- * @author Dart Peng (dpeng at redhat.com)
- * Date Apr 1, 2009
- */
-public class SmooksXMLEditor extends StructuredTextEditor {
-
-	/* (non-Javadoc)
-	 * @see org.eclipse.wst.sse.ui.StructuredTextEditor#doSetInput(org.eclipse.ui.IEditorInput)
-	 */
-	@Override
-	public void doSetInput(IEditorInput input) throws CoreException {
-		// TODO Auto-generated method stub
-		super.doSetInput(input);
-	}
-
-}

Deleted: branches/smooks-dmb/plugins/org.jboss.tools.smooks.ui/src/org/jboss/tools/smooks/configuration/editors/StructuredDataSelectionWizardDailog.java
===================================================================
--- branches/smooks-dmb/plugins/org.jboss.tools.smooks.ui/src/org/jboss/tools/smooks/configuration/editors/StructuredDataSelectionWizardDailog.java	2010-07-21 08:59:08 UTC (rev 23622)
+++ branches/smooks-dmb/plugins/org.jboss.tools.smooks.ui/src/org/jboss/tools/smooks/configuration/editors/StructuredDataSelectionWizardDailog.java	2010-07-21 09:11:28 UTC (rev 23623)
@@ -1,86 +0,0 @@
-/*******************************************************************************
- * Copyright (c) 2008 Red Hat, Inc.
- * Distributed under license by Red Hat, Inc. All rights reserved.
- * This program is made available under the terms of the
- * Eclipse Public License v1.0 which accompanies this distribution,
- * and is available at http://www.eclipse.org/legal/epl-v10.html
- *
- * Contributors:
- *     Red Hat, Inc. - initial API and implementation
- ******************************************************************************/
-package org.jboss.tools.smooks.configuration.editors;
-
-import java.util.Properties;
-
-import org.eclipse.jface.wizard.IWizard;
-import org.eclipse.jface.wizard.WizardDialog;
-import org.eclipse.swt.widgets.Shell;
-import org.jboss.tools.smooks.configuration.editors.wizard.IStructuredDataSelectionWizard;
-
-/**
- * @author Dart Peng
- * @Date Aug 6, 2008
- */
-public class StructuredDataSelectionWizardDailog extends WizardDialog {
-
-	private String type = null;
-
-	private String path = null;
-
-	private Properties properties = null;
-
-	public StructuredDataSelectionWizardDailog(Shell parentShell, IWizard newWizard) {
-		super(parentShell, newWizard);
-	}
-
-	public IStructuredDataSelectionWizard getCurrentCreationWizard() {
-		IWizard w = getWizard();
-		if (w != null && w instanceof IStructuredDataSelectionWizard) {
-			return (IStructuredDataSelectionWizard) w;
-		}
-		return null;
-	}
-
-	// public SmooksMultiFormEditor getFormEditor() {
-	// return formEditor;
-	// }
-	//
-	// public void setFormEditor(SmooksMultiFormEditor formEditor) {
-	// this.formEditor = formEditor;
-	// }
-
-	public int show() {
-		int openResult = this.open();
-		if (openResult == WizardDialog.OK) {
-			IStructuredDataSelectionWizard wizard1 = this.getCurrentCreationWizard();
-			type = wizard1.getInputDataTypeID();
-			path = wizard1.getStructuredDataSourcePath();
-			properties = wizard1.getProperties();
-		}
-		return openResult;
-	}
-
-	public String getType() {
-		return type;
-	}
-
-	public void setType(String type) {
-		this.type = type;
-	}
-
-	public String getPath() {
-		return path;
-	}
-
-	public void setPath(String path) {
-		this.path = path;
-	}
-
-	public Properties getProperties() {
-		return properties;
-	}
-
-	public void setProperties(Properties properties) {
-		this.properties = properties;
-	}
-}

Deleted: branches/smooks-dmb/plugins/org.jboss.tools.smooks.ui/src/org/jboss/tools/smooks/configuration/editors/Template.txt
===================================================================
--- branches/smooks-dmb/plugins/org.jboss.tools.smooks.ui/src/org/jboss/tools/smooks/configuration/editors/Template.txt	2010-07-21 08:59:08 UTC (rev 23622)
+++ branches/smooks-dmb/plugins/org.jboss.tools.smooks.ui/src/org/jboss/tools/smooks/configuration/editors/Template.txt	2010-07-21 09:11:28 UTC (rev 23623)
@@ -1,44 +0,0 @@
-/*******************************************************************************
- * Copyright (c) 2009 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.configuration.editors.uitls.temp;
-
-import org.eclipse.emf.ecore.EAttribute;
-import org.eclipse.emf.ecore.EObject;
-import org.eclipse.emf.edit.provider.IItemPropertyDescriptor;
-import org.eclipse.swt.widgets.Composite;
-import org.eclipse.ui.forms.widgets.FormToolkit;
-import org.jboss.tools.smooks.configuration.editors.PropertyUICreator;
-import org.jboss.tools.smooks.configuration.editors.uitls.SmooksUIUtils;
-import org.jboss.tools.smooks.model.javabean.BindingsType;
-import org.jboss.tools.smooks.configuration.editors.SmooksMultiFormEditor;
-
-/**
- * @author Dart Peng (dpeng at redhat.com) Date Apr 10, 2009
- */
-public class ${className} extends PropertyUICreator {
-	
-	/*
-	 * (non-Javadoc)
-	 * 
-	 * @seeorg.jboss.tools.smooks.configuration.editors.IPropertyUICreator#
-	 * createPropertyUI(org.eclipse.ui.forms.widgets.FormToolkit,
-	 * org.eclipse.swt.widgets.Composite,
-	 * org.eclipse.emf.edit.provider.IItemPropertyDescriptor, java.lang.Object,
-	 * org.eclipse.emf.ecore.EAttribute)
-	 */
-	public Composite createPropertyUI(FormToolkit toolkit, Composite parent,
-			IItemPropertyDescriptor propertyDescriptor, Object model, EAttribute feature ,SmooksMultiFormEditor formEditor) {
-		${attributeMethod}
-		return super.createPropertyUI(toolkit, parent, propertyDescriptor, model, feature,
-			formEditor);
-	}
-	
-}

Deleted: branches/smooks-dmb/plugins/org.jboss.tools.smooks.ui/src/org/jboss/tools/smooks/configuration/editors/messages.properties
===================================================================
--- branches/smooks-dmb/plugins/org.jboss.tools.smooks.ui/src/org/jboss/tools/smooks/configuration/editors/messages.properties	2010-07-21 08:59:08 UTC (rev 23622)
+++ branches/smooks-dmb/plugins/org.jboss.tools.smooks.ui/src/org/jboss/tools/smooks/configuration/editors/messages.properties	2010-07-21 09:11:28 UTC (rev 23623)
@@ -1,79 +0,0 @@
-ChildrenSelectionWizardPage_selectchilderror=Please choose a child type
-ChildrenSelectionWizardPage_wizardtitle=Select a Child's Type
-FileSelectionWizard_WizardPageName=File Selection
-FileSelectionWizard_WizardTitle=File Selection
-FileSelectionWizardPage_PageDescription=Select the file from workspace or from file system.
-FileSelectionWizardPage_PageTitle=File Selection
-ModelChildrenTablePanelCreator_DownButtonLable=Down
-ModelChildrenTablePanelCreator_NewButtonLabel=New
-ModelChildrenTablePanelCreator_PropertiesButtonLabel=Properties..
-ModelChildrenTablePanelCreator_RemoveButtonLabel=Remove
-ModelChildrenTablePanelCreator_UpButtonLabel=Up
-NewOrModifySmooksElementDialog_CloseButtonLabel=Close
-PropertyUICreator_browsebutton=Browse
-PropertyUICreator_namelabel=Name
-PropertyUICreator_nslabel=Namespace
-SelectorCreationDialog_AddInputLinkLabel=Click to add Input Data
-SelectorCreationDialog_DialogTitle=Selector generate dialog
-SelectorCreationDialog_FullPathPolicy=Full Path
-SelectorCreationDialog_InputViewerlabel=Input Message:
-SelectorCreationDialog_OnlyNamePolicy=Only Name
-SelectorCreationDialog_PolicyLabel=Selector generate policy : 
-SelectorCreationDialog_SperatorCharlabel=Sperator Char : 
-SmooksActionBarContributor_33=
-SmooksActionBarContributor_AddSmooksReasourceActionLabel=Add Smooks Resource
-SmooksActionBarContributor_AddSmooksResourceActionLabel=Add Smooks Resource
-SmooksActionBarContributor_CreateSiblingActionLabel=Create Sibling
-SmooksActionBarContributor_NewSiblingActionLabel=New Sibling
-SmooksActionBarContributor_OpenProperyViewActionLabel=Show Properties
-SmooksActionBarContributor_RefreshViewActionLabel=Refresh Viewer
-SmooksActionBarContributor_ValidateActionLabel=Validate
-SmooksConfigFileHandle_exception=Stop parsing
-SmooksConfigurationOverviewPage_ConfigurationSectionTitle=Smooks configuration
-SmooksConfigurationOverviewPage_FilterSettingSectionTitle=Filter Settings
-SmooksConfigurationOverviewPage_FilterTypeLabel=Stream Filter Type:
-SmooksConfigurationOverviewPage_SerializationLabel=Default Serialization is On:
-SmooksConfigurationOverviewPage_VersionLabel=Smooks Platform Version : 
-SmooksConfigurationReaderPage_AddInputButtonLabel=Add
-SmooksConfigurationReaderPage_DeleteInputButtonLabel=Delete
-SmooksConfigurationReaderPage_EditReaderDes=Edit the smooks readers
-SmooksConfigurationReaderPage_InputSectionTitle=Input Data
-SmooksConfigurationReaderPage_InputTableExtensionLabel=Extension Paramers
-SmooksConfigurationReaderPage_InputTablePathColumnLabel=Path
-SmooksConfigurationReaderPage_InputTableTypeColumnText=Type
-SmooksConfigurationReaderPage_NewReaderDes=create new smooks reader
-SmooksConfigurationReaderPage_NewReaderTitle=New Smooks Reader
-SmooksConfigurationReaderPage_PageTitle=Reader/Input
-SmooksConfigurationReaderPage_ReaderSectionTitle=Reader
-SmooksConfigurationResourceConfigPage_FormTitle=Message Filter
-SmooksConfigurationResourceConfigPage_SectionTitle=Message Filtering Resources
-SmooksMasterDetailBlock_AddButtonLabel=Add...
-SmooksMasterDetailBlock_DownButtonLabel=Down
-SmooksMasterDetailBlock_RemoveButtonlabel=Remove
-SmooksMasterDetailBlock_UpButtonLabel=Up
-SmooksMultiFormEditor_opetiontab_label=Options
-SmooksMultiFormEditor_optinepage_name=Options
-SmooksMultiFormEditor_processpage_name=Processing
-SmooksMultiFormEditor_processtabel_label=Process
-SmooksReaderFormPage_AddButtonLabel=Add
-SmooksReaderFormPage_CantFindTypeErrorTitle=Can't find type
-SmooksReaderFormPage_DeleteButtonLabel=Delete
-SmooksReaderFormPage_Error_Creating_Input_Model=Check Input Task configuration.  Error creating Input Model from Sample Input Data. Error: "
-SmooksReaderFormPage_Input_Error=Input Error
-SmooksReaderFormPage_InputConfigurationSectionDes=Specify reader details
-SmooksReaderFormPage_InputConfigurationSectionTitle=Input Configuration
-SmooksReaderFormPage_InputDataSectionDes=Select a sample data file
-SmooksReaderFormPage_InputDataSectionTitle=Input Data
-SmooksReaderFormPage_InputSectionTitle=Input Model View
-SmooksReaderFormPage_InputTypeLabel=Input Type:
-SmooksReaderFormPage_InputTypeSectionTitle=Input Type
-SmooksReaderFormPage_JavaReaderComboText=Java
-SmooksReaderFormPage_NoInputComboText=No Input
-SmooksReaderFormPage_OpenFileErrorTitle=Open File
-SmooksReaderFormPage_PathColumnText=Path
-SmooksReaderFormPage_RefreshLinkLabel=Refresh
-SmooksReaderFormPage_TypeColumnText=Type
-SmooksReaderFormPage_Warning_Specify_Input_Type=Input type should be specified.
-SmooksReaderFormPage_Warning_Specify_Sample_Data=Specify sample data in the Input Data section.
-SmooksReaderFormPage_XMLReaderComboText=XML
-SmooksReaderFormPage_XSDReaderComboText=XSD/WSDL

Deleted: branches/smooks-dmb/plugins/org.jboss.tools.smooks.ui/src/org/jboss/tools/smooks/launch/ExceptionHandler.java
===================================================================
--- branches/smooks-dmb/plugins/org.jboss.tools.smooks.ui/src/org/jboss/tools/smooks/launch/ExceptionHandler.java	2010-07-21 08:59:08 UTC (rev 23622)
+++ branches/smooks-dmb/plugins/org.jboss.tools.smooks.ui/src/org/jboss/tools/smooks/launch/ExceptionHandler.java	2010-07-21 09:11:28 UTC (rev 23623)
@@ -1,124 +0,0 @@
-/**
- * JBoss, Home of Professional Open Source
- * Copyright 2009, JBoss Inc., and others contributors as indicated
- * by the @authors tag. All rights reserved.
- * See the copyright.txt in the distribution for a
- * full listing of individual contributors.
- * This copyrighted material is made available to anyone wishing to use,
- * modify, copy, or redistribute it subject to the terms and conditions
- * of the GNU Lesser General Public License, v. 2.1.
- * This program is distributed in the hope that it will be useful, but WITHOUT A
- * WARRANTY; without even the implied warranty of MERCHANTABILITY or FITNESS FOR A
- * PARTICULAR PURPOSE.  See the GNU Lesser General Public License for more details.
- * You should have received a copy of the GNU Lesser General Public License,
- * v.2.1 along with this distribution; if not, write to the Free Software
- * Foundation, Inc., 51 Franklin Street, Fifth Floor, Boston,
- * MA  02110-1301, USA.
- *
- * (C) 2009, JBoss Inc.
-*
- * Contributors:
- *     IBM Corporation - initial API and implementation
- */
-package org.jboss.tools.smooks.launch;
-
-import java.io.StringWriter;
-import java.lang.reflect.InvocationTargetException;
-
-import org.eclipse.swt.widgets.Shell;
-
-import org.eclipse.core.runtime.CoreException;
-import org.eclipse.core.runtime.IStatus;
-
-import org.eclipse.jface.dialogs.ErrorDialog;
-import org.eclipse.jface.dialogs.MessageDialog;
-import org.jboss.tools.smooks.configuration.SmooksConfigurationActivator;
-
-/**
- * The default exception handler shows an error dialog when one of its handle methods
- * is called. If the passed exception is a <code>CoreException</code> an error dialog
- * pops up showing the exception's status information. For a <code>InvocationTargetException</code>
- * a normal message dialog pops up showing the exception's message. Additionally the exception
- * is written to the platform log.
- *
- * TO DO: this class is duplicated from org.eclipse.jdt.ui
- */
-public class ExceptionHandler {
-
-	private static ExceptionHandler fgInstance= new ExceptionHandler();
-
-	/**
-	 * Handles the given <code>CoreException</code>. The workbench shell is used as a parent
-	 * for the dialog window.
-	 *
-	 * @param e the <code>CoreException</code> to be handled
-	 * @param title the dialog window's window title
-	 * @param message message to be displayed by the dialog window
-	 */
-	public static void handle(CoreException e, String title, String message) {
-		handle(e, SmooksConfigurationActivator.getActiveWorkbenchShell(), title, message);
-	}
-
-	/**
-	 * Handles the given <code>CoreException</code>.
-	 *
-	 * @param e the <code>CoreException</code> to be handled
-	 * @param parent the dialog window's parent shell or <code>null</code>
-	 * @param title the dialog window's window title
-	 * @param message message to be displayed by the dialog window
-	 */
-	public static void handle(CoreException e, Shell parent, String title, String message) {
-		fgInstance.perform(e, parent, title, message);
-	}
-
-	/**
-	 * Handles the given <code>InvocationTargetException</code>.
-	 *
-	 * @param e the <code>InvocationTargetException</code> to be handled
-	 * @param parent the dialog window's parent shell or <code>null</code>
-	 * @param title the dialog window's window title
-	 * @param message message to be displayed by the dialog window
-	 */
-	public static void handle(InvocationTargetException e, Shell parent, String title, String message) {
-		fgInstance.perform(e, parent, title, message);
-	}
-
-	//---- Hooks for subclasses to control exception handling ------------------------------------
-
-	protected void perform(CoreException e, Shell shell, String title, String message) {
-		SmooksConfigurationActivator.log(e);
-		IStatus status= e.getStatus();
-		if (status != null) {
-			ErrorDialog.openError(shell, title, message, status);
-		} else {
-			displayMessageDialog(e.getMessage(), shell, title, message);
-		}
-	}
-
-	protected void perform(InvocationTargetException e, Shell shell, String title, String message) {
-		Throwable target= e.getTargetException();
-		if (target instanceof CoreException) {
-			perform((CoreException)target, shell, title, message);
-		} else {
-			SmooksConfigurationActivator.log(e);
-			if (e.getMessage() != null && e.getMessage().length() > 0) {
-				displayMessageDialog(e.getMessage(), shell, title, message);
-			} else {
-				displayMessageDialog(target.getMessage(), shell, title, message);
-			}
-		}
-	}
-
-	private void displayMessageDialog(String exceptionMessage, Shell shell, String title, String message) {
-		StringWriter msg= new StringWriter();
-		if (message != null) {
-			msg.write(message);
-			msg.write("\n\n"); //$NON-NLS-1$
-		}
-		if (exceptionMessage == null || exceptionMessage.length() == 0)
-			msg.write(Messages.ExceptionHandler_Exception_Msg);
-		else
-			msg.write(exceptionMessage);
-		MessageDialog.openError(shell, title, msg.toString());
-	}
-}

Deleted: branches/smooks-dmb/plugins/org.jboss.tools.smooks.ui/src/org/jboss/tools/smooks/launch/Messages.java
===================================================================
--- branches/smooks-dmb/plugins/org.jboss.tools.smooks.ui/src/org/jboss/tools/smooks/launch/Messages.java	2010-07-21 08:59:08 UTC (rev 23622)
+++ branches/smooks-dmb/plugins/org.jboss.tools.smooks.ui/src/org/jboss/tools/smooks/launch/Messages.java	2010-07-21 09:11:28 UTC (rev 23623)
@@ -1,45 +0,0 @@
-package org.jboss.tools.smooks.launch;
-
-import org.eclipse.osgi.util.NLS;
-
-public class Messages extends NLS {
-	private static final String BUNDLE_NAME = "org.jboss.tools.smooks.launch.messages"; //$NON-NLS-1$
-	public static String ExceptionHandler_Exception_Msg;
-	public static String SmooksLaunchConfigurationDelegate_11;
-	public static String SmooksLaunchConfigurationDelegate_Error_Copying_Smooks_Launcher;
-	public static String SmooksLaunchConfigurationDelegate_Error_launching;
-	public static String SmooksLaunchConfigurationDelegate_Error_missing_artifact;
-	public static String SmooksLaunchConfigurationDelegate_Error_missing_artifact2;
-	public static String SmooksLaunchConfigurationDelegate_Error_Title;
-	public static String SmooksLauncher_Error_Do_Not_Support_Java_Inputs;
-	public static String SmooksLauncher_Templating_To_StreamResult;
-	public static String SmooksLauncher_Java_Mapping_Results;
-	public static String SmooksLauncher_Nothing_To_Display;
-	public static String SmooksLauncher_Error_Expected_Four_Args;
-	public static String SmooksLaunchShortcut_Exception_Occurred;
-	public static String SmooksLaunchShortcut_Message_Select_Config;
-	public static String SmooksLaunchShortcut_Title_Launch_Failed;
-	public static String SmooksLaunchShortcut_Title_Select_Config;
-	public static String SmooksRunTab_Button_Browse;
-	public static String SmooksRunTab_Button_Search;
-	public static String SmooksRunTab_Dialog_Title_Select_Config;
-	public static String SmooksRunTab_Error_Invalid_Project_Name;
-	public static String SmooksRunTab_Error_Need_Project_Name;
-	public static String SmooksRunTab_Error_Not_A_Java_Project;
-	public static String SmooksRunTab_Error_Not_A_Java_Project2;
-	public static String SmooksRunTab_Error_Smooks_Configuration_Missing;
-	public static String SmooksRunTab_Error_Unknown_Project_Name;
-	public static String SmooksRunTab_Error_Validation;
-	public static String SmooksRunTab_Label_Configuration;
-	public static String SmooksRunTab_Label_Project;
-	public static String SmooksRunTab_Message_Select_Config;
-	public static String SmooksRunTab_Tab_Name;
-	public static String SmooksRunTab_Title_Select_Config;
-	static {
-		// initialize resource bundle
-		NLS.initializeMessages(BUNDLE_NAME, Messages.class);
-	}
-
-	private Messages() {
-	}
-}

Deleted: branches/smooks-dmb/plugins/org.jboss.tools.smooks.ui/src/org/jboss/tools/smooks/launch/SmooksLaunchConfigurationDelegate.java
===================================================================
--- branches/smooks-dmb/plugins/org.jboss.tools.smooks.ui/src/org/jboss/tools/smooks/launch/SmooksLaunchConfigurationDelegate.java	2010-07-21 08:59:08 UTC (rev 23622)
+++ branches/smooks-dmb/plugins/org.jboss.tools.smooks.ui/src/org/jboss/tools/smooks/launch/SmooksLaunchConfigurationDelegate.java	2010-07-21 09:11:28 UTC (rev 23623)
@@ -1,260 +0,0 @@
-/*
- * JBoss, Home of Professional Open Source
- * Copyright 2006, JBoss Inc., and others contributors as indicated
- * by the @authors tag. All rights reserved.
- * See the copyright.txt in the distribution for a
- * full listing of individual contributors.
- * This copyrighted material is made available to anyone wishing to use,
- * modify, copy, or redistribute it subject to the terms and conditions
- * of the GNU Lesser General Public License, v. 2.1.
- * This program is distributed in the hope that it will be useful, but WITHOUT A
- * WARRANTY; without even the implied warranty of MERCHANTABILITY or FITNESS FOR A
- * PARTICULAR PURPOSE.  See the GNU Lesser General Public License for more details.
- * You should have received a copy of the GNU Lesser General Public License,
- * v.2.1 along with this distribution; if not, write to the Free Software
- * Foundation, Inc., 51 Franklin Street, Fifth Floor, Boston,
- * MA  02110-1301, USA.
- *
- * (C) 2005-2006, JBoss Inc.
- */
-package org.jboss.tools.smooks.launch;
-
-import java.io.File;
-import java.io.FileNotFoundException;
-import java.io.FileOutputStream;
-import java.io.IOException;
-import java.io.InputStream;
-import java.net.MalformedURLException;
-import java.net.URL;
-import java.net.URLClassLoader;
-import java.util.ArrayList;
-import java.util.Arrays;
-import java.util.List;
-import java.util.Properties;
-
-import org.eclipse.core.resources.IProject;
-import org.eclipse.core.resources.ResourcesPlugin;
-import org.eclipse.core.runtime.CoreException;
-import org.eclipse.core.runtime.IProgressMonitor;
-import org.eclipse.core.runtime.IStatus;
-import org.eclipse.core.runtime.Status;
-import org.eclipse.debug.core.ILaunch;
-import org.eclipse.debug.core.ILaunchConfiguration;
-import org.eclipse.jdt.core.IJavaProject;
-import org.eclipse.jdt.junit.launcher.JUnitLaunchConfigurationDelegate;
-import org.eclipse.jdt.launching.ExecutionArguments;
-import org.eclipse.jdt.launching.IJavaLaunchConfigurationConstants;
-import org.eclipse.jdt.launching.IVMRunner;
-import org.eclipse.jdt.launching.VMRunnerConfiguration;
-import org.eclipse.jface.dialogs.ErrorDialog;
-import org.eclipse.swt.widgets.Display;
-import org.eclipse.swt.widgets.Shell;
-import org.eclipse.ui.PlatformUI;
-import org.jboss.tools.smooks.configuration.ProcessNodeType;
-import org.jboss.tools.smooks.configuration.RuntimeDependency;
-import org.jboss.tools.smooks.configuration.RuntimeMetadata;
-import org.jboss.tools.smooks.core.SmooksInputType;
-import org.jboss.tools.smooks.launch.serialize.MarshallingStrategy;
-import org.jboss.tools.smooks.launch.serialize.ObjectSerializer;
-import org.jboss.tools.smooks.launch.serialize.XPathMarshaller;
-
-/**
- * Smooks Launch Configuration Delegate.
- * 
- * @author <a href="mailto:tom.fennelly at jboss.com">tom.fennelly at jboss.com</a>
- */
-public class SmooksLaunchConfigurationDelegate extends JUnitLaunchConfigurationDelegate {
-	
-	private static final String PLUGIN_ID = "org.jboss.tools.smooks.ui.smooksLauncher"; //$NON-NLS-1$
-
-	/* (non-Javadoc)
-	 * @see org.eclipse.debug.core.model.ILaunchConfigurationDelegate#launch(org.eclipse.debug.core.ILaunchConfiguration, java.lang.String, org.eclipse.debug.core.ILaunch, org.eclipse.core.runtime.IProgressMonitor)
-	 */
-	public void launch(ILaunchConfiguration launchConfig, String mode, ILaunch launch, IProgressMonitor monitor) throws CoreException {
-		IJavaProject javaProject = getJavaProject(launchConfig);
-		IProject project = javaProject.getProject();
-		final String smooksConfigName = launchConfig.getAttribute(IJavaLaunchConfigurationConstants.ATTR_MAIN_TYPE_NAME, ""); //$NON-NLS-1$
-		String[] baseClasspath = getClasspath(launchConfig);
-		final RuntimeMetadata launchMetadata = new RuntimeMetadata();
-
-		launchMetadata.setSmooksConfig(project.findMember(smooksConfigName));
-		
-		if(!launchMetadata.isValidSmooksConfig()) {
-			displayError(smooksConfigName, launchMetadata.getErrorMessage());
-			return;
-		} else {
-			List<RuntimeDependency> dependencies = launchMetadata.getDependencies();
-			URLClassLoader projectClassLoader = toURLClassLoader(baseClasspath);
-			
-			for(RuntimeDependency dependency : dependencies) {
-				if(!dependency.isOnProjectClasspath(projectClassLoader)) {
-					displayError(smooksConfigName, Messages.SmooksLaunchConfigurationDelegate_Error_missing_artifact + dependency.getGroupId() + ":" + dependency.getArtifactId() + Messages.SmooksLaunchConfigurationDelegate_Error_missing_artifact2); //$NON-NLS-1$
-					return;
-				}
-			}
-		}
-
-		IVMRunner runner= getVMRunner(launchConfig, mode);		
-		VMRunnerConfiguration runConfig = buildRunnerConfig(launchConfig, baseClasspath);
-		
-		// check for cancellation
-		if (monitor.isCanceled()) {
-			return;
-		}		
-
-		String inputType = launchMetadata.getInputType();
-		String inputPath = launchMetadata.getInputFile().getAbsolutePath();
-		String nodeTypes = launchMetadata.getNodeTypesString();
-
-		runConfig.setProgramArguments(new String[] {launchMetadata.getConfigFile().getAbsolutePath(), inputType, inputPath, nodeTypes});
-		
-		runner.run(runConfig, launch, monitor);
-	}
-
-	private void displayError(final String smooksConfigName, final String errorMessage) {
-		final Display display = PlatformUI.getWorkbench().getDisplay();
-		display.syncExec(new Runnable() {
-		    public void run(){
-				Shell shell = display.getActiveShell();
-				ErrorDialog.openError(shell, Messages.SmooksLaunchConfigurationDelegate_Error_Title, Messages.SmooksLaunchConfigurationDelegate_Error_launching + smooksConfigName + "'.", new Status(IStatus.ERROR, PLUGIN_ID, IStatus.ERROR, errorMessage, new Exception())); //$NON-NLS-1$ 
-		    }
-		});
-	}
-
-	private VMRunnerConfiguration buildRunnerConfig(ILaunchConfiguration launchConfig, String[] baseClasspath) throws CoreException {
-		List<String> classpath = new ArrayList<String>(Arrays.asList(baseClasspath));
-
-		// We need to add the SmooksLauncher to the launch classpath because it will not be part of the projects
-		// classpath.  Bit of a hack... there's probably a nicer way of doing this!!!
-		File wsTempClasses = copyLauncherResourcesToFilesys();
-		classpath.add(wsTempClasses.getAbsolutePath());
-		
-		VMRunnerConfiguration runConfig= new VMRunnerConfiguration(SmooksLauncher.class.getName(), classpath.toArray(new String[classpath.size()]));
-		String[] envp= getEnvironment(launchConfig);
-		ArrayList<String> vmArguments= new ArrayList<String>();
-		String vmArgs= getVMArguments(launchConfig);
-		ExecutionArguments execArgs= new ExecutionArguments(vmArgs, ""); //$NON-NLS-1$
-		File workingDir = verifyWorkingDirectory(launchConfig);
-
-		vmArguments.addAll(Arrays.asList(execArgs.getVMArgumentsArray()));
-		runConfig.setVMArguments((String[]) vmArguments.toArray(new String[vmArguments.size()]));
-		runConfig.setEnvironment(envp);
-		if(workingDir != null) {
-			runConfig.setWorkingDirectory(workingDir.getAbsolutePath());
-		}
-		runConfig.setVMSpecificAttributesMap(getVMSpecificAttributesMap(launchConfig));
-		runConfig.setBootClassPath(getBootpath(launchConfig));
-		
-		return runConfig;
-	}
-
-	private File copyLauncherResourcesToFilesys() throws CoreException {
-		File wsRootDir = ResourcesPlugin.getWorkspace().getRoot().getRawLocation().toFile();
-		File wsTempClasses = new File(wsRootDir, "temp/launcher/classes"); //$NON-NLS-1$		
-		
-		writeClassToFilesys(SmooksLauncher.class, wsTempClasses);
-		writeClassToFilesys(SmooksInputType.class, wsTempClasses);
-		writeClassToFilesys(ProcessNodeType.class, wsTempClasses);
-		writeClassToFilesys(ObjectSerializer.class, wsTempClasses);
-		writeClassToFilesys(MarshallingStrategy.class, wsTempClasses);
-		writeClassToFilesys(XPathMarshaller.class, wsTempClasses);
-		
-		// Need to send the localized message strings to the launcher... 
-		Properties localizedMessages = new Properties();
-		localizedMessages.setProperty("SmooksLauncher_Error_Do_Not_Support_Java_Inputs", Messages.SmooksLauncher_Error_Do_Not_Support_Java_Inputs);		 //$NON-NLS-1$
-		localizedMessages.setProperty("SmooksLauncher_Error_Expected_Four_Args", Messages.SmooksLauncher_Error_Expected_Four_Args);		 //$NON-NLS-1$
-		localizedMessages.setProperty("SmooksLauncher_Java_Mapping_Results", Messages.SmooksLauncher_Java_Mapping_Results);		 //$NON-NLS-1$
-		localizedMessages.setProperty("SmooksLauncher_Templating_To_StreamResult", Messages.SmooksLauncher_Templating_To_StreamResult); //$NON-NLS-1$
-		localizedMessages.setProperty("SmooksLauncher_Nothing_To_Display", Messages.SmooksLauncher_Nothing_To_Display); //$NON-NLS-1$
-		
-		try {
-			FileOutputStream messagesOutStream = getFilesysOutStream(SmooksLauncher.LOCALIZED_FILE_NAME, SmooksLauncher.class, wsTempClasses);
-			try {
-				localizedMessages.store(messagesOutStream, "Localized messages..."); //$NON-NLS-1$
-			} finally {
-				messagesOutStream.close();
-			}			
-		} catch (IOException e) {
-			new CoreException(new Status(IStatus.ERROR, PLUGIN_ID, IStatus.ERROR, Messages.SmooksLaunchConfigurationDelegate_Error_Copying_Smooks_Launcher, e));
-		}
-		
-		return wsTempClasses;
-	}
-
-	private void writeClassToFilesys(Class<?> theClass, File toDir) throws CoreException {
-		String className = theClass.getSimpleName() + ".class"; //$NON-NLS-1$
-		writeResourceToFilesys(className, theClass, toDir);
-	}
-
-	private void writeResourceToFilesys(String resource, Class<?> refClass, File toDir) {
-		String packagePath = refClass.getPackage().getName().replace(".", "/"); //$NON-NLS-1$ //$NON-NLS-2$
-		String resourcePath = "/" + packagePath + Messages.SmooksLaunchConfigurationDelegate_11 + resource; //$NON-NLS-1$
-		URL resourceURI = refClass.getResource(resourcePath);
-		
-		if(resourceURI != null) {
-			try {
-				InputStream resourceStream = resourceURI.openStream();
-				
-				if(resourceStream != null) {
-					try {
-						File resourceOutFile = new File(toDir, resourcePath);
-						File resourcePackage = resourceOutFile.getParentFile();
-						
-						resourcePackage.mkdirs();
-						if(resourcePackage.exists()) {
-							FileOutputStream resourceOutStream = new FileOutputStream(resourceOutFile);
-							
-							try {
-								byte[] readBuf = new byte[100];
-								int readCount = 0;
-								
-								while(readCount != -1) {
-									readCount = resourceStream.read(readBuf);
-									if(readCount != -1) {
-										resourceOutStream.write(readBuf, 0, readCount);
-									}
-								}
-							} finally {
-								try {
-									resourceOutStream.flush();
-								} finally {									
-									resourceOutStream.close();
-								}
-							}
-						}
-					} finally {
-						resourceStream.close();
-					}
-				}
-			} catch (IOException e) {
-				new CoreException(new Status(IStatus.ERROR, PLUGIN_ID, IStatus.ERROR, Messages.SmooksLaunchConfigurationDelegate_Error_Copying_Smooks_Launcher, e));
-			}
-		}
-	}
-
-	private FileOutputStream getFilesysOutStream(String resource, Class<?> refClass, File toDir) throws FileNotFoundException {
-		String packagePath = refClass.getPackage().getName().replace(".", "/"); //$NON-NLS-1$ //$NON-NLS-2$
-		String resourcePath = "/" + packagePath + "/" + resource; //$NON-NLS-1$ //$NON-NLS-2$
-		File resourceOutFile = new File(toDir, resourcePath);
-		File resourcePackage = resourceOutFile.getParentFile();
-		
-		resourcePackage.mkdirs();
-
-		return new FileOutputStream(resourceOutFile);
-	}
-
-	private URLClassLoader toURLClassLoader(String[]  baseClasspath) {
-		URL[] classPathURLs = new URL[baseClasspath.length];
-		
-		for(int i = 0; i < baseClasspath.length; i++) {
-			try {
-				File cpEntry = new File(baseClasspath[i]);				
-				classPathURLs[i] = cpEntry.toURL();
-			} catch (MalformedURLException e) {
-				e.printStackTrace();
-			}
-		}
-		
-		return new URLClassLoader(classPathURLs);
-	}
-}

Deleted: branches/smooks-dmb/plugins/org.jboss.tools.smooks.ui/src/org/jboss/tools/smooks/launch/SmooksLaunchShortcut.java
===================================================================
--- branches/smooks-dmb/plugins/org.jboss.tools.smooks.ui/src/org/jboss/tools/smooks/launch/SmooksLaunchShortcut.java	2010-07-21 08:59:08 UTC (rev 23622)
+++ branches/smooks-dmb/plugins/org.jboss.tools.smooks.ui/src/org/jboss/tools/smooks/launch/SmooksLaunchShortcut.java	2010-07-21 09:11:28 UTC (rev 23623)
@@ -1,241 +0,0 @@
-package org.jboss.tools.smooks.launch;
-
-import java.util.ArrayList;
-import java.util.List;
-
-import org.eclipse.core.resources.IFile;
-import org.eclipse.core.resources.IProject;
-import org.eclipse.core.resources.IResource;
-import org.eclipse.core.runtime.CoreException;
-import org.eclipse.core.runtime.IAdaptable;
-import org.eclipse.debug.core.DebugPlugin;
-import org.eclipse.debug.core.ILaunchConfiguration;
-import org.eclipse.debug.core.ILaunchConfigurationType;
-import org.eclipse.debug.core.ILaunchConfigurationWorkingCopy;
-import org.eclipse.debug.core.ILaunchManager;
-import org.eclipse.debug.ui.DebugUITools;
-import org.eclipse.debug.ui.IDebugModelPresentation;
-import org.eclipse.jdt.junit.launcher.JUnitLaunchShortcut;
-import org.eclipse.jdt.launching.IJavaLaunchConfigurationConstants;
-import org.eclipse.jface.dialogs.MessageDialog;
-import org.eclipse.jface.viewers.ISelection;
-import org.eclipse.jface.viewers.IStructuredSelection;
-import org.eclipse.jface.window.Window;
-import org.eclipse.swt.widgets.Shell;
-import org.eclipse.ui.IEditorInput;
-import org.eclipse.ui.IEditorPart;
-import org.eclipse.ui.IFileEditorInput;
-import org.eclipse.ui.dialogs.ElementListSelectionDialog;
-import org.eclipse.ui.part.FileEditorInput;
-import org.jboss.tools.smooks.configuration.RuntimeMetadata;
-import org.jboss.tools.smooks.configuration.SmooksConfigurationActivator;
-import org.jboss.tools.smooks.editor.AbstractSmooksFormEditor;
-
-public class SmooksLaunchShortcut extends JUnitLaunchShortcut {
-
-	private static final String EMPTY_STRING= ""; //$NON-NLS-1$
-
-	private Shell getShell() {
-		return SmooksConfigurationActivator.getActiveWorkbenchShell();
-	}
-
-	private ILaunchManager getLaunchManager() {
-		return DebugPlugin.getDefault().getLaunchManager();
-	}
-
-	private List<ILaunchConfiguration> findExistingLaunchConfigurations(ILaunchConfigurationWorkingCopy temporary) throws CoreException {
-		ILaunchConfigurationType configType= temporary.getType();
-
-		ILaunchConfiguration[] configs= getLaunchManager().getLaunchConfigurations(configType);
-		String[] attributeToCompare= getAttributeNamesToCompare();
-
-		ArrayList<ILaunchConfiguration> candidateConfigs= new ArrayList<ILaunchConfiguration>(configs.length);
-		for (int i= 0; i < configs.length; i++) {
-			ILaunchConfiguration config= configs[i];
-			if (hasSameAttributes(config, temporary, attributeToCompare)) {
-				candidateConfigs.add(config);
-			}
-		}
-		return candidateConfigs;
-	}
-
-	private static boolean hasSameAttributes(ILaunchConfiguration config1, ILaunchConfiguration config2, String[] attributeToCompare) {
-		try {
-			for (int i= 0; i < attributeToCompare.length; i++) {
-				String val1= config1.getAttribute(attributeToCompare[i], EMPTY_STRING);
-				String val2= config2.getAttribute(attributeToCompare[i], EMPTY_STRING);
-				if (!val1.equals(val2)) {
-					return false;
-				}
-			}
-			return true;
-		} catch (CoreException e) {
-			// ignore access problems here, return false
-		}
-		return false;
-	}
-
-	public void launch(ISelection selection, String mode) {
-		if (selection instanceof IStructuredSelection) {
-			launch(((IStructuredSelection) selection).toArray(), mode);
-		}
-	}
-
-	public void launch(IEditorPart editor, String mode) {
-		if (editor.getEditorInput() != null && editor.getEditorInput() instanceof IFileEditorInput) {
-			IFile file= ((IFileEditorInput)editor.getEditorInput()).getFile();
-			if (file != null) {
-				launch(new Object[] { file }, mode);
-			}
-		}
-	}
-
-	private void launch(Object[] elements, String mode) {
-		try {
-			IFile elementToLaunch= null;
-
-			if (elements.length == 1) {
-				Object selected= elements[0];
-				if (!(selected instanceof IFile) && selected instanceof IAdaptable) {
-					selected= ((IAdaptable) selected).getAdapter(IFile.class);
-				}
-				if (selected instanceof IFile) {
-					elementToLaunch = (IFile) selected;
-				}
-				RuntimeMetadata metadata = new RuntimeMetadata();
-				metadata.setSmooksConfig(elementToLaunch);
-				if (!metadata.isValidSmooksConfig()) {
-					MessageDialog.openError(getShell(), Messages.SmooksLaunchShortcut_Title_Launch_Failed, metadata.getErrorMessage());
-					return;
-				}
-			}
-			performLaunch(elementToLaunch, mode);
-		} catch (InterruptedException e) {
-			// OK, silently move on
-		} catch (CoreException e) {
-			ExceptionHandler.handle(e, getShell(), 
-					Messages.SmooksLaunchShortcut_Title_Launch_Failed, 
-					Messages.SmooksLaunchShortcut_Exception_Occurred);
-		}
-	}
-
-	private void performLaunch(IFile file, String mode) throws InterruptedException, CoreException {
-		ILaunchConfigurationWorkingCopy temparary= createLaunchConfiguration(file);
-		ILaunchConfiguration config= findExistingLaunchConfiguration(temparary, mode);
-		if (config == null) {
-			// no existing found: create a new one
-			config= temparary.doSave();
-		}
-		DebugUITools.launch(config, mode);
-	}
-
-	private ILaunchConfiguration findExistingLaunchConfiguration(ILaunchConfigurationWorkingCopy temporary, String mode) throws InterruptedException, CoreException {
-		List<?> candidateConfigs= findExistingLaunchConfigurations(temporary);
-
-		// If there are no existing configs associated with the IType, create
-		// one.
-		// If there is exactly one config associated with the IType, return it.
-		// Otherwise, if there is more than one config associated with the
-		// IType, prompt the
-		// user to choose one.
-		int candidateCount= candidateConfigs.size();
-		if (candidateCount == 0) {
-			return null;
-		} else if (candidateCount == 1) {
-			return (ILaunchConfiguration) candidateConfigs.get(0);
-		} else {
-			// Prompt the user to choose a config. A null result means the user
-			// cancelled the dialog, in which case this method returns null,
-			// since cancelling the dialog should also cancel launching
-			// anything.
-			ILaunchConfiguration config= chooseConfiguration(candidateConfigs, mode);
-			if (config != null) {
-				return config;
-			}
-		}
-		return null;
-	}
-
-	private ILaunchConfiguration chooseConfiguration(List<?> configList, String mode) throws InterruptedException {
-		IDebugModelPresentation labelProvider= DebugUITools.newDebugModelPresentation();
-		ElementListSelectionDialog dialog= new ElementListSelectionDialog(getShell(), labelProvider);
-		dialog.setElements(configList.toArray());
-		dialog.setTitle(Messages.SmooksLaunchShortcut_Title_Select_Config);
-		if (mode.equals(ILaunchManager.RUN_MODE)) {
-			dialog.setMessage(Messages.SmooksLaunchShortcut_Message_Select_Config);
-		}
-		dialog.setMultipleSelection(false);
-		int result= dialog.open();
-		if (result == Window.OK) {
-			return (ILaunchConfiguration) dialog.getFirstResult();
-		}
-		throw new InterruptedException(); // cancelled by user
-	}
-
-	protected String getLaunchConfigurationTypeId() {
-		return "org.jboss.tools.smooks.ui.smooksLauncher"; //$NON-NLS-1$
-	}
-
-	protected ILaunchConfigurationWorkingCopy createLaunchConfiguration(IFile file) throws CoreException {
-		if (file != null) {
-			
-			ILaunchConfigurationType configType= getLaunchManager().getLaunchConfigurationType(getLaunchConfigurationTypeId());
-			ILaunchConfigurationWorkingCopy wc= configType.newInstance(null, getLaunchManager().generateUniqueLaunchConfigurationNameFrom(file.getName()));
-
-			IProject project = (IProject) file.getProject();
-			wc.setAttribute(IJavaLaunchConfigurationConstants.ATTR_PROJECT_NAME, project.getName());
-			wc.setAttribute(IJavaLaunchConfigurationConstants.ATTR_MAIN_TYPE_NAME, file.getProjectRelativePath().toPortableString());
-
-			return wc;
-		}
-		
-		return null;
-
-	}
-
-	/* (non-Javadoc)
-	 * @see org.eclipse.jdt.junit.launcher.JUnitLaunchShortcut#getLaunchableResource(org.eclipse.ui.IEditorPart)
-	 */
-	@Override
-	public IResource getLaunchableResource(IEditorPart editor) {
-		if (editor instanceof AbstractSmooksFormEditor) {
-			IEditorInput editorInput = editor.getEditorInput();
-			if (editorInput instanceof FileEditorInput) {
-				return ((FileEditorInput)editorInput).getFile();
-			}
-		}
-		
-		return null;
-	}
-
-	/* (non-Javadoc)
-	 * @see org.eclipse.jdt.junit.launcher.JUnitLaunchShortcut#getLaunchConfigurations(org.eclipse.ui.IEditorPart)
-	 */
-	@Override
-	public ILaunchConfiguration[] getLaunchConfigurations(IEditorPart editor) {
-		if (editor instanceof AbstractSmooksFormEditor) {
-			IEditorInput editorInput = editor.getEditorInput();
-			if (editorInput instanceof FileEditorInput) {
-				ILaunchConfigurationWorkingCopy temparary;
-				try {
-					temparary = createLaunchConfiguration(((FileEditorInput)editorInput).getFile());
-					
-					ILaunchConfiguration existingConfig = findExistingLaunchConfiguration(temparary, ILaunchManager.RUN_MODE);
-					if(existingConfig == null) {
-						existingConfig = temparary.doSave();
-					}
-					
-					return new ILaunchConfiguration[] {existingConfig};
-				} catch (CoreException e) {
-					ExceptionHandler.handle(e, getShell(), 
-							Messages.SmooksLaunchShortcut_Title_Launch_Failed, 
-							Messages.SmooksLaunchShortcut_Exception_Occurred);
-				} catch (InterruptedException e) {
-					e.printStackTrace();
-				}
-			}
-		}
-		
-		return null;
-	}
-}

Deleted: branches/smooks-dmb/plugins/org.jboss.tools.smooks.ui/src/org/jboss/tools/smooks/launch/SmooksLaunchTabGroup.java
===================================================================
--- branches/smooks-dmb/plugins/org.jboss.tools.smooks.ui/src/org/jboss/tools/smooks/launch/SmooksLaunchTabGroup.java	2010-07-21 08:59:08 UTC (rev 23622)
+++ branches/smooks-dmb/plugins/org.jboss.tools.smooks.ui/src/org/jboss/tools/smooks/launch/SmooksLaunchTabGroup.java	2010-07-21 09:11:28 UTC (rev 23623)
@@ -1,49 +0,0 @@
-/*
- * JBoss, Home of Professional Open Source
- * Copyright 2006, JBoss Inc., and others contributors as indicated
- * by the @authors tag. All rights reserved.
- * See the copyright.txt in the distribution for a
- * full listing of individual contributors.
- * This copyrighted material is made available to anyone wishing to use,
- * modify, copy, or redistribute it subject to the terms and conditions
- * of the GNU Lesser General Public License, v. 2.1.
- * This program is distributed in the hope that it will be useful, but WITHOUT A
- * WARRANTY; without even the implied warranty of MERCHANTABILITY or FITNESS FOR A
- * PARTICULAR PURPOSE.  See the GNU Lesser General Public License for more details.
- * You should have received a copy of the GNU Lesser General Public License,
- * v.2.1 along with this distribution; if not, write to the Free Software
- * Foundation, Inc., 51 Franklin Street, Fifth Floor, Boston,
- * MA  02110-1301, USA.
- *
- * (C) 2005-2006, JBoss Inc.
- */
-package org.jboss.tools.smooks.launch;
-
-import org.eclipse.debug.ui.AbstractLaunchConfigurationTabGroup;
-import org.eclipse.debug.ui.CommonTab;
-import org.eclipse.debug.ui.ILaunchConfigurationDialog;
-import org.eclipse.debug.ui.ILaunchConfigurationTab;
-import org.eclipse.jdt.debug.ui.launchConfigurations.JavaArgumentsTab;
-import org.eclipse.jdt.debug.ui.launchConfigurations.JavaClasspathTab;
-import org.eclipse.jdt.debug.ui.launchConfigurations.JavaJRETab;
-
-/**
- * Smooks Launcher Tab Group.
- * @author <a href="mailto:tom.fennelly at jboss.com">tom.fennelly at jboss.com</a>
- */
-public class SmooksLaunchTabGroup extends AbstractLaunchConfigurationTabGroup {
-
-	/* (non-Javadoc)
-	 * @see org.eclipse.debug.ui.ILaunchConfigurationTabGroup#createTabs(org.eclipse.debug.ui.ILaunchConfigurationDialog, java.lang.String)
-	 */
-	public void createTabs(ILaunchConfigurationDialog lcDialog, String mode) {
-		ILaunchConfigurationTab[] tabs = new ILaunchConfigurationTab[] {
-				new SmooksRunTab(),
-				new JavaArgumentsTab(),
-				new JavaJRETab(),
-				new JavaClasspathTab(), 
-				new CommonTab()
-		};
-		setTabs(tabs);
-	}
-}

Deleted: branches/smooks-dmb/plugins/org.jboss.tools.smooks.ui/src/org/jboss/tools/smooks/launch/SmooksLauncher.java
===================================================================
--- branches/smooks-dmb/plugins/org.jboss.tools.smooks.ui/src/org/jboss/tools/smooks/launch/SmooksLauncher.java	2010-07-21 08:59:08 UTC (rev 23622)
+++ branches/smooks-dmb/plugins/org.jboss.tools.smooks.ui/src/org/jboss/tools/smooks/launch/SmooksLauncher.java	2010-07-21 09:11:28 UTC (rev 23623)
@@ -1,169 +0,0 @@
-/**
- * JBoss, Home of Professional Open Source
- * Copyright 2009, JBoss Inc., and others contributors as indicated
- * by the @authors tag. All rights reserved.
- * See the copyright.txt in the distribution for a
- * full listing of individual contributors.
- * This copyrighted material is made available to anyone wishing to use,
- * modify, copy, or redistribute it subject to the terms and conditions
- * of the GNU Lesser General Public License, v. 2.1.
- * This program is distributed in the hope that it will be useful, but WITHOUT A
- * WARRANTY; without even the implied warranty of MERCHANTABILITY or FITNESS FOR A
- * PARTICULAR PURPOSE.  See the GNU Lesser General Public License for more details.
- * You should have received a copy of the GNU Lesser General Public License,
- * v.2.1 along with this distribution; if not, write to the Free Software
- * Foundation, Inc., 51 Franklin Street, Fifth Floor, Boston,
- * MA  02110-1301, USA.
- *
- * (C) 2009, JBoss Inc.
- */
-package org.jboss.tools.smooks.launch;
-
-import java.io.BufferedReader;
-import java.io.File;
-import java.io.FileInputStream;
-import java.io.IOException;
-import java.io.InputStream;
-import java.io.StringReader;
-import java.util.Collection;
-import java.util.HashSet;
-import java.util.Properties;
-import java.util.Set;
-
-import javax.xml.transform.stream.StreamSource;
-
-import org.jboss.tools.smooks.configuration.ProcessNodeType;
-import org.jboss.tools.smooks.core.SmooksInputType;
-import org.jboss.tools.smooks.launch.serialize.ObjectSerializer;
-import org.milyn.Smooks;
-import org.milyn.payload.JavaResult;
-import org.milyn.payload.StringResult;
-import org.xml.sax.SAXException;
-
-/**
- * Smooks runtime Launcher class.
- * 
- * @author <a href="mailto:tom.fennelly at jboss.com">tom.fennelly at jboss.com</a>
- */
-public class SmooksLauncher {
-	
-	public static final String LOCALIZED_FILE_NAME = "localizedMessage.properties"; //$NON-NLS-1$
-
-	/**
-	 * Launcher Main.
-	 * @param args Args.
-	 */
-	public static void main(String[] args) throws IOException, SAXException {
-		Properties localizedMessages = loadLocalizedMessages();
-
-		if(args.length != 4) {
-			throw new RuntimeException(localizedMessages.getProperty("SmooksLauncher_Error_Expected_Four_Args")); //$NON-NLS-1$
-		}
-		
-		if(args[1].equals(SmooksInputType.INPUT_TYPE_JAVA)) {
-			System.out.println(localizedMessages.getProperty("SmooksLauncher_Error_Do_Not_Support_Java_Inputs")); //$NON-NLS-1$
-		} else {
-			File smooksConfig = new File(args[0]);
-			File input = new File(args[2]);
-			
-			assertFile(smooksConfig, "Smooks"); //$NON-NLS-1$
-			assertFile(input, "Input"); //$NON-NLS-1$
-			
-			Smooks smooks = new Smooks(smooksConfig.toURI().getPath());
-			try {
-				Set<ProcessNodeType> processNodeTypes = SmooksLauncher.fromNodeTypeString(args[3]);
-				JavaResult javaResult = new JavaResult();
-				boolean nothingDisplayed = true;
-				
-				if(processNodeTypes.contains(ProcessNodeType.TEMPLATING)) {
-					StringResult stringResult = new StringResult();
-					
-					smooks.filterSource(new StreamSource(new FileInputStream(input)), stringResult, javaResult);
-					System.out.println("[" + localizedMessages.getProperty("SmooksLauncher_Templating_To_StreamResult") + " ...]"); //$NON-NLS-1$ //$NON-NLS-2$ //$NON-NLS-3$
-					System.out.println("    |--"); //$NON-NLS-1$
-					System.out.println(indent(stringResult.toString()));
-					System.out.println("    |--\n"); //$NON-NLS-1$
-					nothingDisplayed = false;
-				} else {
-					smooks.filterSource(new StreamSource(new FileInputStream(input)), javaResult);
-				}
-
-				Collection<ObjectSerializer> serializedJavaResults = ObjectSerializer.serialize(javaResult);
-				if(!serializedJavaResults.isEmpty()) {
-					System.out.println("[" + localizedMessages.getProperty("SmooksLauncher_Java_Mapping_Results") + "...]"); //$NON-NLS-1$ //$NON-NLS-2$ //$NON-NLS-3$
-					
-					for(ObjectSerializer serializedJavaResult : serializedJavaResults) {
-						System.out.println("    |--"); //$NON-NLS-1$
-						System.out.println(indent(serializedJavaResult.getSerializedForm()));
-						System.out.println("    |--"); //$NON-NLS-1$
-					}
-					nothingDisplayed = false;
-				}
-				
-				if(nothingDisplayed) {
-					System.out.println(localizedMessages.getProperty("SmooksLauncher_Nothing_To_Display")); //$NON-NLS-1$
-				}
-			} finally {
-				smooks.close();
-			}
-		}		
-	}
-
-	private static Properties loadLocalizedMessages() {
-		Properties messages = new Properties();
-		InputStream messageStream = SmooksLauncher.class.getResourceAsStream(LOCALIZED_FILE_NAME);
-		
-		try {
-			try {
-				messages.load(messageStream);
-			} catch (IOException e) {
-				System.out.println("Unexpected IOException reading classpath resource stream for '" + LOCALIZED_FILE_NAME + "'. " + e.getMessage()); //$NON-NLS-1$ //$NON-NLS-2$
-				e.printStackTrace();
-			}
-		} finally {
-			try {
-				messageStream.close();
-			} catch (IOException e) {
-				System.out.println("Unexpected IOException closing classpath resource stream for '" + LOCALIZED_FILE_NAME + "'."); //$NON-NLS-1$ //$NON-NLS-2$
-			}
-		}
-		
-		return messages;
-	}
-
-	private static void assertFile(File file, String name) {
-		if(!file.exists()) {
-			throw new RuntimeException("Specified '" + name + "' File '" + file.getAbsolutePath() + "' not found."); //$NON-NLS-1$ //$NON-NLS-2$ //$NON-NLS-3$
-		}
-		if(file.isDirectory()) {
-			throw new RuntimeException("Specified '" + name + "' File '" + file.getAbsolutePath() + "' is a Directory."); //$NON-NLS-1$ //$NON-NLS-2$ //$NON-NLS-3$
-		}
-	}
-
-	public static Set<ProcessNodeType> fromNodeTypeString(String nodeTypeString) {
-		String[] tokens = nodeTypeString.split(","); //$NON-NLS-1$
-		Set<ProcessNodeType> nodeTypes = new HashSet<ProcessNodeType>();
-		
-		for(String token : tokens) {
-			nodeTypes.add(ProcessNodeType.valueOf(token));
-		}
-		
-		return nodeTypes;
-	}
-
-	private static String indent(String in) throws IOException {
-		BufferedReader lineReader = new BufferedReader(new StringReader(in));
-		StringBuilder indentBuf = new StringBuilder();
-		
-		String line = lineReader.readLine();
-		while(line != null) {
-			indentBuf.append("    |").append(line); //$NON-NLS-1$
-			line = lineReader.readLine();
-			if(line != null) {
-				indentBuf.append('\n');
-			}
-		}
-		
-		return indentBuf.toString();
-	}
-}

Deleted: branches/smooks-dmb/plugins/org.jboss.tools.smooks.ui/src/org/jboss/tools/smooks/launch/SmooksRunTab.java
===================================================================
--- branches/smooks-dmb/plugins/org.jboss.tools.smooks.ui/src/org/jboss/tools/smooks/launch/SmooksRunTab.java	2010-07-21 08:59:08 UTC (rev 23622)
+++ branches/smooks-dmb/plugins/org.jboss.tools.smooks.ui/src/org/jboss/tools/smooks/launch/SmooksRunTab.java	2010-07-21 09:11:28 UTC (rev 23623)
@@ -1,443 +0,0 @@
-/*
- * JBoss, Home of Professional Open Source
- * Copyright 2006, JBoss Inc., and others contributors as indicated
- * by the @authors tag. All rights reserved.
- * See the copyright.txt in the distribution for a
- * full listing of individual contributors.
- * This copyrighted material is made available to anyone wishing to use,
- * modify, copy, or redistribute it subject to the terms and conditions
- * of the GNU Lesser General Public License, v. 2.1.
- * This program is distributed in the hope that it will be useful, but WITHOUT A
- * WARRANTY; without even the implied warranty of MERCHANTABILITY or FITNESS FOR A
- * PARTICULAR PURPOSE.  See the GNU Lesser General Public License for more details.
- * You should have received a copy of the GNU Lesser General Public License,
- * v.2.1 along with this distribution; if not, write to the Free Software
- * Foundation, Inc., 51 Franklin Street, Fifth Floor, Boston,
- * MA  02110-1301, USA.
- *
- * (C) 2005-2006, JBoss Inc.
- */
- package org.jboss.tools.smooks.launch;
-
-import org.eclipse.core.resources.IFile;
-import org.eclipse.core.resources.IProject;
-import org.eclipse.core.resources.IResource;
-import org.eclipse.core.resources.IWorkspaceRoot;
-import org.eclipse.core.resources.ResourcesPlugin;
-import org.eclipse.core.runtime.CoreException;
-import org.eclipse.core.runtime.IPath;
-import org.eclipse.core.runtime.IStatus;
-import org.eclipse.core.runtime.Path;
-import org.eclipse.debug.core.ILaunchConfiguration;
-import org.eclipse.debug.core.ILaunchConfigurationWorkingCopy;
-import org.eclipse.debug.ui.AbstractLaunchConfigurationTab;
-import org.eclipse.jdt.core.IJavaModel;
-import org.eclipse.jdt.core.IJavaProject;
-import org.eclipse.jdt.core.JavaCore;
-import org.eclipse.jdt.core.JavaModelException;
-import org.eclipse.jdt.launching.IJavaLaunchConfigurationConstants;
-import org.eclipse.jdt.ui.JavaElementLabelProvider;
-import org.eclipse.jface.dialogs.Dialog;
-import org.eclipse.jface.viewers.ILabelProvider;
-import org.eclipse.jface.viewers.ISelection;
-import org.eclipse.jface.viewers.IStructuredSelection;
-import org.eclipse.jface.window.Window;
-import org.eclipse.swt.SWT;
-import org.eclipse.swt.events.ModifyEvent;
-import org.eclipse.swt.events.ModifyListener;
-import org.eclipse.swt.events.SelectionAdapter;
-import org.eclipse.swt.events.SelectionEvent;
-import org.eclipse.swt.layout.GridData;
-import org.eclipse.swt.layout.GridLayout;
-import org.eclipse.swt.widgets.Button;
-import org.eclipse.swt.widgets.Composite;
-import org.eclipse.swt.widgets.Label;
-import org.eclipse.swt.widgets.Text;
-import org.eclipse.ui.IEditorInput;
-import org.eclipse.ui.IEditorPart;
-import org.eclipse.ui.IWorkbenchPage;
-import org.eclipse.ui.PlatformUI;
-import org.eclipse.ui.dialogs.ElementListSelectionDialog;
-import org.eclipse.ui.dialogs.ElementTreeSelectionDialog;
-import org.eclipse.ui.model.WorkbenchContentProvider;
-import org.eclipse.ui.model.WorkbenchLabelProvider;
-import org.eclipse.ui.part.FileEditorInput;
-import org.jboss.tools.smooks.configuration.RuntimeMetadata;
-import org.jboss.tools.smooks.editor.AbstractSmooksFormEditor;
-
-/**
- * Smooks Run Tab.
- * @author <a href="mailto:tom.fennelly at jboss.com">tom.fennelly at jboss.com</a>
- */
-public class SmooksRunTab extends AbstractLaunchConfigurationTab {
-	
-	// Project UI widgets
-	private Text fProjText;
-	private Button fProjButton;
-	private Text fConfigurationText;
-	private Button fSearchButton;
-	private RuntimeMetadata launchMetaData = new RuntimeMetadata();
-	
-	/* (non-Javadoc)
-	 * @see org.eclipse.debug.ui.ILaunchConfigurationTab#createControl(org.eclipse.swt.widgets.Composite)
-	 */
-	public void createControl(Composite parent) {		
-		Composite comp = new Composite(parent, SWT.NONE);
-		setControl(comp);
-
-		GridLayout topLayout = new GridLayout();
-		topLayout.numColumns= 3;
-		comp.setLayout(topLayout);		
-		
-		createFormElements(comp);
-		
-		Dialog.applyDialogFont(comp);
-		validatePage();
-	}
-
-//	private void createSpacer(Composite comp) {
-//		Label label= new Label(comp, SWT.NONE);
-//		GridData gd= new GridData();
-//		gd.horizontalSpan= 3;
-//		label.setLayoutData(gd);
-//	}
-	
-	private void createFormElements(Composite comp) {
-		GridData gd = new GridData();
-		
-		Label fProjLabel = new Label(comp, SWT.NONE);
-		gd.horizontalIndent = 10;
-		fProjLabel.setText(Messages.SmooksRunTab_Label_Project); 
-		fProjLabel.setLayoutData(gd);
-		
-		fProjText= new Text(comp, SWT.SINGLE | SWT.BORDER);
-		fProjText.setLayoutData(new GridData(GridData.FILL_HORIZONTAL));
-		fProjText.addModifyListener(new ModifyListener() {
-			public void modifyText(ModifyEvent evt) {
-				validatePage();
-				updateLaunchConfigurationDialog();				
-				fSearchButton.setEnabled(fProjText.getText().length() > 0);
-			}
-		});
-			
-		fProjButton = new Button(comp, SWT.PUSH);
-		fProjButton.setText(Messages.SmooksRunTab_Button_Browse); 
-		fProjButton.addSelectionListener(new SelectionAdapter() {
-			public void widgetSelected(SelectionEvent evt) {
-				handleProjectButtonSelected();
-			}
-		});
-		setButtonGridData(fProjButton);
-		
-		Label fConfigLabel = new Label(comp, SWT.NONE);
-		gd = new GridData();
-		gd.horizontalIndent = 10;
-		fConfigLabel.setLayoutData(gd);
-		fConfigLabel.setText(Messages.SmooksRunTab_Label_Configuration); 
-		
-	
-		fConfigurationText = new Text(comp, SWT.SINGLE | SWT.BORDER);
-		fConfigurationText.setLayoutData(new GridData(GridData.FILL_HORIZONTAL));
-		fConfigurationText.addModifyListener(new ModifyListener() {
-			public void modifyText(ModifyEvent evt) {
-				handleSmooksConfigChange();
-				validatePage();
-				updateLaunchConfigurationDialog();
-			}
-		});
-		
-		fSearchButton = new Button(comp, SWT.PUSH);
-		fSearchButton.setEnabled(fProjText.getText().length() > 0);
-		fSearchButton.setText(Messages.SmooksRunTab_Button_Search); 
-		fSearchButton.addSelectionListener(new SelectionAdapter() {
-			public void widgetSelected(SelectionEvent evt) {
-				handleSearchButtonSelected();
-			}
-		});
-		setButtonGridData(fSearchButton);
-	}
-
-	/* (non-Javadoc)
-	 * @see org.eclipse.debug.ui.ILaunchConfigurationTab#setDefaults(org.eclipse.debug.core.ILaunchConfigurationWorkingCopy)
-	 */
-	public void setDefaults(ILaunchConfigurationWorkingCopy launchConfigWC) {
-		IWorkbenchPage activePage = PlatformUI.getWorkbench().getActiveWorkbenchWindow().getActivePage();		
-		
-		launchConfigWC.setAttribute(IJavaLaunchConfigurationConstants.ATTR_PROJECT_NAME, ""); //$NON-NLS-1$
-		launchConfigWC.setAttribute(IJavaLaunchConfigurationConstants.ATTR_MAIN_TYPE_NAME, ""); //$NON-NLS-1$
-
-		if(activePage != null) {
-			IEditorPart editor = activePage.getActiveEditor();
-			
-			// added for Issue JBIDE-5360 - now will get defaults from the navigator first (if valid smooks config) or the smooks editor if it's open
-			boolean foundInNavigator = false;
-			
-			if (activePage.getActivePart().getSite().getSelectionProvider() != null) {
-				
-				ISelection selection = activePage.getActivePart().getSite().getSelectionProvider().getSelection();
-				
-				if (selection instanceof IStructuredSelection) {
-					
-					IStructuredSelection ssel = (IStructuredSelection) selection;
-					
-					if (!ssel.isEmpty() && ssel.getFirstElement() instanceof IFile) {
-						
-						IFile file = (IFile) ssel.getFirstElement();
-						RuntimeMetadata metadata = new RuntimeMetadata();
-						metadata.setSmooksConfig(file);
-						
-						if (metadata.isValidSmooksConfig()) {
-							
-							String configName = getLaunchManager().generateUniqueLaunchConfigurationNameFrom(file.getName());
-							
-							launchConfigWC.rename(configName);
-							launchConfigWC.setAttribute(IJavaLaunchConfigurationConstants.ATTR_PROJECT_NAME, file.getProject().getName()); //$NON-NLS-1$
-							launchConfigWC.setAttribute(IJavaLaunchConfigurationConstants.ATTR_MAIN_TYPE_NAME, file.getProjectRelativePath().toString()); //$NON-NLS-1$
-							
-							foundInNavigator = true;
-						}
-					}
-				}
-			}
-
-			if (editor instanceof AbstractSmooksFormEditor && !foundInNavigator ) {
-				IEditorInput editorInput = editor.getEditorInput();
-				
-				if (editorInput instanceof FileEditorInput && !foundInNavigator) {
-					
-					FileEditorInput fileEI = (FileEditorInput) editorInput;					
-					IFile file = fileEI.getFile();
-					String configName = getLaunchManager().generateUniqueLaunchConfigurationNameFrom(editor.getTitle());
-					
-					launchConfigWC.rename(configName);
-					launchConfigWC.setAttribute(IJavaLaunchConfigurationConstants.ATTR_PROJECT_NAME, file.getProject().getName()); //$NON-NLS-1$
-					launchConfigWC.setAttribute(IJavaLaunchConfigurationConstants.ATTR_MAIN_TYPE_NAME, file.getProjectRelativePath().toString()); //$NON-NLS-1$
-				}
-			}
-		}
-	}
-
-	/* (non-Javadoc)
-	 * @see org.eclipse.debug.ui.ILaunchConfigurationTab#initializeFrom(org.eclipse.debug.core.ILaunchConfiguration)
-	 */
-	public void initializeFrom(ILaunchConfiguration config) {
-		try {
-			fProjText.setText(config.getAttribute(IJavaLaunchConfigurationConstants.ATTR_PROJECT_NAME, ""));  //$NON-NLS-1$
-			fConfigurationText.setText(config.getAttribute(IJavaLaunchConfigurationConstants.ATTR_MAIN_TYPE_NAME, ""));  //$NON-NLS-1$
-		} catch (CoreException ce) {
-		}
-		IResource smooksConfig = getSmooksConfig();
-		if(smooksConfig != null) {
-			launchMetaData.setSmooksConfig(smooksConfig);
-		}
-		validatePage();
-	}
-
-	/*
-	 * (non-Javadoc)
-	 * @see org.eclipse.debug.ui.ILaunchConfigurationTab#performApply(org.eclipse.debug.core.ILaunchConfigurationWorkingCopy)
-	 */
-	public void performApply(ILaunchConfigurationWorkingCopy launchConfigWC) {
-		launchConfigWC.setAttribute(IJavaLaunchConfigurationConstants.ATTR_PROJECT_NAME, fProjText.getText());
-		launchConfigWC.setAttribute(IJavaLaunchConfigurationConstants.ATTR_MAIN_TYPE_NAME, fConfigurationText.getText());
-	}
-
-	/*
-	 * Show a dialog that lists all main types
-	 */
-	private void handleSearchButtonSelected() {
-		ElementTreeSelectionDialog dialog = new ElementTreeSelectionDialog(getShell(), new WorkbenchLabelProvider(), new WorkbenchContentProvider());
-		IWorkspaceRoot root = ResourcesPlugin.getWorkspace().getRoot();
-		IProject project = root.getProject(fProjText.getText());
-
-		if(assertProjectOK(project)) {			
-			dialog.setInput(project);
-		} else {
-			dialog.setInput(root);			
-		}
-
-		dialog.setTitle(Messages.SmooksRunTab_Dialog_Title_Select_Config);
-		if (dialog.open() == Window.CANCEL) {
-			return;
-		}
-		
-		Object[] results = dialog.getResult();
-		if ((results == null) || (results.length < 1)) {
-			return;
-		}		
-
-		IResource resource = (IResource)results[0];
-		fConfigurationText.setText(resource.getProjectRelativePath().toString());
-	}
-	
-	private void handleSmooksConfigChange() {
-		launchMetaData.setSmooksConfig(getSmooksConfig());
-	}
-		
-	/*
-	 * Show a dialog that lets the user select a project.  This in turn provides
-	 * context for the main type, allowing the user to key a main type name, or
-	 * constraining the search for main types to the specified project.
-	 */
-	private void handleProjectButtonSelected() {
-		IJavaProject project = chooseJavaProject();
-		if (project == null) {
-			return;
-		}
-		
-		String projectName = project.getElementName();
-		fProjText.setText(projectName);		
-	}
-	
-	/*
-	 * Realize a Java Project selection dialog and return the first selected project,
-	 * or null if there was none.
-	 */
-	private IJavaProject chooseJavaProject() {
-		IJavaProject[] projects;
-		try {
-			projects= JavaCore.create(getWorkspaceRoot()).getJavaProjects();
-		} catch (JavaModelException e) {
-			projects= new IJavaProject[0];
-		}
-		
-		ILabelProvider labelProvider= new JavaElementLabelProvider(JavaElementLabelProvider.SHOW_DEFAULT);
-		ElementListSelectionDialog dialog= new ElementListSelectionDialog(getShell(), labelProvider);
-		dialog.setTitle(Messages.SmooksRunTab_Title_Select_Config); 
-		dialog.setMessage(Messages.SmooksRunTab_Message_Select_Config); 
-		dialog.setElements(projects);
-		
-		IJavaProject javaProject = getJavaProject();
-		if (javaProject != null) {
-			dialog.setInitialSelections(new Object[] { javaProject });
-		}
-		if (dialog.open() == Window.OK) {			
-			return (IJavaProject) dialog.getFirstResult();
-		}			
-		return null;		
-	}
-	
-	/*
-	 * Return the IJavaProject corresponding to the project name in the project name
-	 * text field, or null if the text does not match a project name.
-	 */
-	private IJavaProject getJavaProject() {
-		String projectName = fProjText.getText().trim();
-		if (projectName.length() < 1) {
-			return null;
-		}
-		return getJavaModel().getJavaProject(projectName);		
-	}
-	
-	/*
-	 * Convenience method to get the workspace root.
-	 */
-	private static IWorkspaceRoot getWorkspaceRoot() {
-		return ResourcesPlugin.getWorkspace().getRoot();
-	}
-	
-	/*
-	 * Convenience method to get access to the java model.
-	 */
-	private IJavaModel getJavaModel() {
-		return JavaCore.create(getWorkspaceRoot());
-	}
-
-
-	/* (non-Javadoc)
-	 * @see org.eclipse.debug.ui.AbstractLaunchConfigurationTab#isValid(org.eclipse.debug.core.ILaunchConfiguration)
-	 */
-	public boolean isValid(ILaunchConfiguration config) {
-		validatePage();
-		return getErrorMessage() == null;
-	}
-
-	private void validatePage() {
-		
-		setErrorMessage(null);
-		setMessage(null);
-
-		String projectName= fProjText.getText().trim();
-		if (projectName.length() == 0) {
-			setErrorMessage(Messages.SmooksRunTab_Error_Need_Project_Name);
-			return;
-		}
-
-		IStatus status= ResourcesPlugin.getWorkspace().validatePath(IPath.SEPARATOR + projectName, IResource.PROJECT);
-		if (!status.isOK() || !Path.ROOT.isValidSegment(projectName)) {
-			setErrorMessage(Messages.SmooksRunTab_Error_Invalid_Project_Name + projectName + "'."); //$NON-NLS-1$
-			return;
-		}
-
-		IProject project= getWorkspaceRoot().getProject(projectName);
-		if (!project.exists()) {
-			setErrorMessage(Messages.SmooksRunTab_Error_Unknown_Project_Name + projectName + "'."); //$NON-NLS-1$
-			return;
-		}
-
-		String configName= fConfigurationText.getText().trim();
-		try {
-			if (!project.hasNature(JavaCore.NATURE_ID)) {
-				setErrorMessage(Messages.SmooksRunTab_Error_Not_A_Java_Project + projectName + Messages.SmooksRunTab_Error_Not_A_Java_Project2);
-				return;
-			}
-			if (configName.length() == 0) {
-				setErrorMessage(Messages.SmooksRunTab_Error_Smooks_Configuration_Missing);
-				return;
-			}
-		} catch (CoreException e) {
-			setErrorMessage(Messages.SmooksRunTab_Error_Validation + e.getMessage());
-		}
-		
-		if(!launchMetaData.isValidSmooksConfig()) {
-			setErrorMessage(launchMetaData.getErrorMessage());
-		}
-	}
-	
-	private IResource getSmooksConfig() {
-		String projectName = fProjText.getText();
-		String configName = fConfigurationText.getText();
-		
-		return getSmooksConfig(projectName, configName);
-	}
-	
-	public static IResource getSmooksConfig(ILaunchConfiguration launchConfig) {		
-		try {
-			String projectName = launchConfig.getAttribute(IJavaLaunchConfigurationConstants.ATTR_PROJECT_NAME, ""); //$NON-NLS-1$;
-			String configName = launchConfig.getAttribute(IJavaLaunchConfigurationConstants.ATTR_MAIN_TYPE_NAME, ""); //$NON-NLS-1$;
-
-			return getSmooksConfig(projectName, configName);
-		} catch (CoreException e) {
-			return null;
-		} 
-	}
-
-	private static IResource getSmooksConfig(String projectName, String configName) {
-		if(projectName != null && !projectName.trim().equals("") && configName != null && !configName.trim().equals("")) { //$NON-NLS-1$ //$NON-NLS-2$
-			IProject project = getWorkspaceRoot().getProject(projectName);
-			if(assertProjectOK(project)) {
-				return project.findMember(configName);
-			}
-		}
-		
-		return null;
-	}
-	
-	/* (non-Javadoc)
-	 * @see org.eclipse.debug.ui.ILaunchConfigurationTab#getName()
-	 */
-	public String getName() {
-		return Messages.SmooksRunTab_Tab_Name; 
-	}
-
-	private void setButtonGridData(Button button) {
-		GridData gridData= new GridData();
-		button.setLayoutData(gridData);
-	}
-
-	private static boolean assertProjectOK(IProject project) {
-		return (project != null && project.exists() && project.isAccessible() && !project.isHidden());
-	}
-} 
-
- 

Deleted: branches/smooks-dmb/plugins/org.jboss.tools.smooks.ui/src/org/jboss/tools/smooks/launch/messages.properties
===================================================================
--- branches/smooks-dmb/plugins/org.jboss.tools.smooks.ui/src/org/jboss/tools/smooks/launch/messages.properties	2010-07-21 08:59:08 UTC (rev 23622)
+++ branches/smooks-dmb/plugins/org.jboss.tools.smooks.ui/src/org/jboss/tools/smooks/launch/messages.properties	2010-07-21 09:11:28 UTC (rev 23623)
@@ -1,31 +0,0 @@
-ExceptionHandler_Exception_Msg=An exception has occurred. Please check the log for details.
-SmooksLaunchConfigurationDelegate_11=/
-SmooksLaunchConfigurationDelegate_Error_Copying_Smooks_Launcher=Error copying SmooksLauncher to classpath.
-SmooksLaunchConfigurationDelegate_Error_launching=Error Launching Smooks Configuration '
-SmooksLaunchConfigurationDelegate_Error_missing_artifact=This configuration depends on the '
-SmooksLaunchConfigurationDelegate_Error_missing_artifact2=' Smooks artifact.  Download Smooks and add the Smooks jars to the Project classpath, or update your Maven POM to include the missing artifact.
-SmooksLaunchConfigurationDelegate_Error_Title=Error
-SmooksLauncher_Error_Do_Not_Support_Java_Inputs=Sorry... we don't support Java Inputs yet.
-SmooksLauncher_Templating_To_StreamResult=Stream Templating Result
-SmooksLauncher_Java_Mapping_Results=Java Mapping Results
-SmooksLauncher_Nothing_To_Display=Nothing to Display:\n    - No Java Mappings.\n    - No Templates Applied.
-SmooksLauncher_Error_Expected_Four_Args=Expected 4 Launch arguments: <Smooks Config> <Input Type> <Input Path> <Node Types>
-SmooksLaunchShortcut_Exception_Occurred=An exception occurred while testing the Smooks Configuration.
-SmooksLaunchShortcut_Message_Select_Config=Select from the available Smooks Runtime Configurations.
-SmooksLaunchShortcut_Title_Launch_Failed=Launch Failed
-SmooksLaunchShortcut_Title_Select_Config=Select Runtime Configuration
-SmooksRunTab_Button_Browse=Browse...
-SmooksRunTab_Button_Search=Search...
-SmooksRunTab_Dialog_Title_Select_Config=Select Smooks Configuration File...
-SmooksRunTab_Error_Invalid_Project_Name=Invalid project name '
-SmooksRunTab_Error_Need_Project_Name=Project name not configured.
-SmooksRunTab_Error_Not_A_Java_Project=Project '
-SmooksRunTab_Error_Not_A_Java_Project2=' is not a Java Project.
-SmooksRunTab_Error_Smooks_Configuration_Missing=Smooks Configuration not specified.
-SmooksRunTab_Error_Unknown_Project_Name=Unknown project name '
-SmooksRunTab_Error_Validation=Unexpected Validation Error: 
-SmooksRunTab_Label_Configuration=Configuration:
-SmooksRunTab_Label_Project=Project:
-SmooksRunTab_Message_Select_Config=Type Project name to narrow selection:
-SmooksRunTab_Tab_Name=Run
-SmooksRunTab_Title_Select_Config=Select Smooks Configuration



More information about the jbosstools-commits mailing list