[jbosstools-commits] JBoss Tools SVN: r23624 - branches/smooks-dmb/plugins/org.jboss.tools.smooks.ui/src/org/jboss/tools/smooks/graphical/editors.

jbosstools-commits at lists.jboss.org jbosstools-commits at lists.jboss.org
Wed Jul 21 05:12:08 EDT 2010


Author: DartPeng
Date: 2010-07-21 05:12:07 -0400 (Wed, 21 Jul 2010)
New Revision: 23624

Removed:
   branches/smooks-dmb/plugins/org.jboss.tools.smooks.ui/src/org/jboss/tools/smooks/graphical/editors/GraphicalModelFactory.java
   branches/smooks-dmb/plugins/org.jboss.tools.smooks.ui/src/org/jboss/tools/smooks/graphical/editors/IGraphicalEditorPart.java
   branches/smooks-dmb/plugins/org.jboss.tools.smooks.ui/src/org/jboss/tools/smooks/graphical/editors/ISmooksEditorInitListener.java
   branches/smooks-dmb/plugins/org.jboss.tools.smooks.ui/src/org/jboss/tools/smooks/graphical/editors/ITaskNodeProvider.java
   branches/smooks-dmb/plugins/org.jboss.tools.smooks.ui/src/org/jboss/tools/smooks/graphical/editors/Messages.java
   branches/smooks-dmb/plugins/org.jboss.tools.smooks.ui/src/org/jboss/tools/smooks/graphical/editors/ProcessGraphContentProvider.java
   branches/smooks-dmb/plugins/org.jboss.tools.smooks.ui/src/org/jboss/tools/smooks/graphical/editors/SmooksMessage.java
   branches/smooks-dmb/plugins/org.jboss.tools.smooks.ui/src/org/jboss/tools/smooks/graphical/editors/SmooksProcessGraphicalEditor.java
   branches/smooks-dmb/plugins/org.jboss.tools.smooks.ui/src/org/jboss/tools/smooks/graphical/editors/SmooksTaskDetailsEditorSite.java
   branches/smooks-dmb/plugins/org.jboss.tools.smooks.ui/src/org/jboss/tools/smooks/graphical/editors/TaskTypeManager.java
   branches/smooks-dmb/plugins/org.jboss.tools.smooks.ui/src/org/jboss/tools/smooks/graphical/editors/messages.properties
Log:


Deleted: branches/smooks-dmb/plugins/org.jboss.tools.smooks.ui/src/org/jboss/tools/smooks/graphical/editors/GraphicalModelFactory.java
===================================================================
--- branches/smooks-dmb/plugins/org.jboss.tools.smooks.ui/src/org/jboss/tools/smooks/graphical/editors/GraphicalModelFactory.java	2010-07-21 09:11:28 UTC (rev 23623)
+++ branches/smooks-dmb/plugins/org.jboss.tools.smooks.ui/src/org/jboss/tools/smooks/graphical/editors/GraphicalModelFactory.java	2010-07-21 09:12:07 UTC (rev 23624)
@@ -1,21 +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.graphical.editors;
-
-import org.jboss.tools.smooks.editor.ISmooksModelProvider;
-
-/**
- * @author Dart
- * 
- */
-public interface GraphicalModelFactory {
-	public Object createGraphicalModel(Object model, ISmooksModelProvider provider);
-}

Deleted: branches/smooks-dmb/plugins/org.jboss.tools.smooks.ui/src/org/jboss/tools/smooks/graphical/editors/IGraphicalEditorPart.java
===================================================================
--- branches/smooks-dmb/plugins/org.jboss.tools.smooks.ui/src/org/jboss/tools/smooks/graphical/editors/IGraphicalEditorPart.java	2010-07-21 09:11:28 UTC (rev 23623)
+++ branches/smooks-dmb/plugins/org.jboss.tools.smooks.ui/src/org/jboss/tools/smooks/graphical/editors/IGraphicalEditorPart.java	2010-07-21 09:12:07 UTC (rev 23624)
@@ -1,22 +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.graphical.editors;
-
-
-/**
- * @author Dart
- *
- */
-public interface IGraphicalEditorPart {
-	String getID();
-	
-//	boolean canLink(AbstractSmooksGraphicalModel graphModel);
-}

Deleted: branches/smooks-dmb/plugins/org.jboss.tools.smooks.ui/src/org/jboss/tools/smooks/graphical/editors/ISmooksEditorInitListener.java
===================================================================
--- branches/smooks-dmb/plugins/org.jboss.tools.smooks.ui/src/org/jboss/tools/smooks/graphical/editors/ISmooksEditorInitListener.java	2010-07-21 09:11:28 UTC (rev 23623)
+++ branches/smooks-dmb/plugins/org.jboss.tools.smooks.ui/src/org/jboss/tools/smooks/graphical/editors/ISmooksEditorInitListener.java	2010-07-21 09:12:07 UTC (rev 23624)
@@ -1,19 +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.graphical.editors;
-
-/**
- * @author Dart
- *
- */
-public interface ISmooksEditorInitListener {
-	void initFailed(int messageType , String message);
-}

Deleted: branches/smooks-dmb/plugins/org.jboss.tools.smooks.ui/src/org/jboss/tools/smooks/graphical/editors/ITaskNodeProvider.java
===================================================================
--- branches/smooks-dmb/plugins/org.jboss.tools.smooks.ui/src/org/jboss/tools/smooks/graphical/editors/ITaskNodeProvider.java	2010-07-21 09:11:28 UTC (rev 23623)
+++ branches/smooks-dmb/plugins/org.jboss.tools.smooks.ui/src/org/jboss/tools/smooks/graphical/editors/ITaskNodeProvider.java	2010-07-21 09:12:07 UTC (rev 23624)
@@ -1,25 +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.graphical.editors;
-
-import org.jboss.tools.smooks.graphical.editors.process.TaskType;
-
-/**
- * @author Dart
- *
- */
-public interface ITaskNodeProvider {
-	
-	public TaskType getTaskType();
-	
-	public void setTaskType(TaskType taskType);
-	
-}

Deleted: branches/smooks-dmb/plugins/org.jboss.tools.smooks.ui/src/org/jboss/tools/smooks/graphical/editors/Messages.java
===================================================================
--- branches/smooks-dmb/plugins/org.jboss.tools.smooks.ui/src/org/jboss/tools/smooks/graphical/editors/Messages.java	2010-07-21 09:11:28 UTC (rev 23623)
+++ branches/smooks-dmb/plugins/org.jboss.tools.smooks.ui/src/org/jboss/tools/smooks/graphical/editors/Messages.java	2010-07-21 09:12:07 UTC (rev 23624)
@@ -1,46 +0,0 @@
-package org.jboss.tools.smooks.graphical.editors;
-
-import org.eclipse.osgi.util.NLS;
-
-public class Messages extends NLS {
-	private static final String BUNDLE_NAME = "org.jboss.tools.smooks.graphical.editors.messages"; //$NON-NLS-1$
-	public static String SmooksFreemarkerTemplateGraphicalEditor_Warning_CSV_Fields_Empty;
-	public static String SmooksFreemarkerTemplateGraphicalEditor_Warning_Must_Link_CSV_Record;
-	public static String SmooksFreemarkerTemplateGraphicalEditor_Warning_Must_Link_to_Collection;
-	public static String SmooksFreemarkerTemplateGraphicalEditor_Warning_Quote_Empty;
-	public static String SmooksFreemarkerTemplateGraphicalEditor_Warning_Separator_Empty;
-	public static String SmooksGraphicalEditorMenuContextProvider_Add_Menu_Text;
-	public static String SmooksGraphicalEditorPaletteRootCreator_General_Palette_Drawer;
-	public static String SmooksGraphicalEditorPaletteRootCreator_Link_Tool_Text;
-	public static String SmooksGraphicalEditorPaletteRootCreator_Link_Tool_Tooltip;
-	public static String SmooksJavaMappingGraphicalEditor_BeanIdEmptyErrormessage;
-	public static String SmooksJavaMappingGraphicalEditor_NodeMustLinkWithJavaBean;
-	public static String SmooksJavaMappingGraphicalEditor_NodeMustLinkWithSource;
-	public static String SmooksJavaMappingGraphicalEditor_NullLabel;
-	public static String SmooksJavaMappingGraphicalEditor_WarningMessage1;
-	public static String SmooksProcessGraphicalEditor_4;
-	public static String SmooksProcessGraphicalEditor_AddTaskActionText;
-	public static String SmooksProcessGraphicalEditor_FormText;
-	public static String SmooksProcessGraphicalEditor_TaskConfigurationSectionTitle;
-	public static String SmooksProcessGraphicalEditor_TasksMapSectionTitle;
-	public static String SmooksXSLTemplateGraphicalEditor_Group_Name;
-	public static String TaskTypeManager_ApplyTemplateTaskLabel;
-	public static String TaskTypeManager_ApplyXSLTemplateTaskLabel;
-	public static String TaskTypeManager_Input;
-	public static String TaskTypeManager_InputTaskLabel;
-	public static String TaskTypeManager_JavaMappingTaskLabel;
-	public static String XSLLabelProvider_Text_Null_Value;
-	public static String SmooksProcessGraphicalEditor_Empty_Input_File;
-	public static String SmooksProcessGraphicalEditor_Java_Mapping_Not_Found;
-	public static String SmooksProcessGraphicalEditor_No_Input_File_Active;
-	public static String SmooksProcessGraphicalEditor_No_Input_Specified;
-	public static String SmooksProcessGraphicalEditor_No_Input_Task_Found;
-	public static String SmooksProcessGraphicalEditor_ValidationError_MultipleTemplate;
-	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/graphical/editors/ProcessGraphContentProvider.java
===================================================================
--- branches/smooks-dmb/plugins/org.jboss.tools.smooks.ui/src/org/jboss/tools/smooks/graphical/editors/ProcessGraphContentProvider.java	2010-07-21 09:11:28 UTC (rev 23623)
+++ branches/smooks-dmb/plugins/org.jboss.tools.smooks.ui/src/org/jboss/tools/smooks/graphical/editors/ProcessGraphContentProvider.java	2010-07-21 09:12:07 UTC (rev 23624)
@@ -1,87 +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.graphical.editors;
-
-import java.util.ArrayList;
-import java.util.Iterator;
-import java.util.List;
-
-import org.eclipse.jface.viewers.Viewer;
-import org.eclipse.zest.core.viewers.IGraphEntityContentProvider;
-import org.jboss.tools.smooks.graphical.editors.process.ProcessType;
-import org.jboss.tools.smooks.graphical.editors.process.TaskType;
-
-/**
- * @author Dart
- * 
- */
-public class ProcessGraphContentProvider implements IGraphEntityContentProvider {
-
-	private void collectTasks(List<Object> list, TaskType task) {
-		list.add(task);
-		List<?> tasks = task.getTask();
-		for (Iterator<?> iterator = tasks.iterator(); iterator.hasNext();) {
-			TaskType t = (TaskType) iterator.next();
-			collectTasks(list, t);
-		}
-	}
-
-	private void collectObjects(List<Object> list, ProcessType process) {
-		List<?> tasks = process.getTask();
-		for (Iterator<?> iterator = tasks.iterator(); iterator.hasNext();) {
-			TaskType t = (TaskType) iterator.next();
-			collectTasks(list, t);
-		}
-	}
-
-	public Object[] getElements(Object arg0) {
-		List<Object> list = new ArrayList<Object>();
-		if (arg0 instanceof ProcessType) {
-			collectObjects(list, (ProcessType) arg0);
-		}
-		return list.toArray();
-	}
-
-	/*
-	 * (non-Javadoc)
-	 * 
-	 * @see org.eclipse.jface.viewers.IContentProvider#dispose()
-	 */
-	public void dispose() {
-		// TODO Auto-generated method stub
-
-	}
-
-	/*
-	 * (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) {
-
-	}
-
-	/*
-	 * (non-Javadoc)
-	 * 
-	 * @see
-	 * org.eclipse.zest.core.viewers.IGraphEntityContentProvider#getConnectedTo
-	 * (java.lang.Object)
-	 */
-	public Object[] getConnectedTo(Object arg0) {
-		if (arg0 instanceof TaskType) {
-			return ((TaskType) arg0).getTask().toArray();
-		}
-		return new Object[] {};
-	}
-}

Deleted: branches/smooks-dmb/plugins/org.jboss.tools.smooks.ui/src/org/jboss/tools/smooks/graphical/editors/SmooksMessage.java
===================================================================
--- branches/smooks-dmb/plugins/org.jboss.tools.smooks.ui/src/org/jboss/tools/smooks/graphical/editors/SmooksMessage.java	2010-07-21 09:11:28 UTC (rev 23623)
+++ branches/smooks-dmb/plugins/org.jboss.tools.smooks.ui/src/org/jboss/tools/smooks/graphical/editors/SmooksMessage.java	2010-07-21 09:12:07 UTC (rev 23624)
@@ -1,123 +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.graphical.editors;
-
-import org.eclipse.swt.widgets.Control;
-import org.eclipse.ui.forms.IMessage;
-
-/**
- * @author Dart
- *
- */
-public class SmooksMessage implements IMessage {
-
-	private int messageType;
-	
-	private Control control;
-	
-	private Object data;
-	
-	private Object key;
-	
-	private String prefix = "-"; //$NON-NLS-1$
-	
-	private String message;
-	
-	public SmooksMessage(int messageType , String message){
-		this.setMessage(message);
-		this.setMessageType(messageType);
-	}
-
-	/**
-	 * @return the messageType
-	 */
-	public int getMessageType() {
-		return messageType;
-	}
-
-	/**
-	 * @param messageType the messageType to set
-	 */
-	public void setMessageType(int messageType) {
-		this.messageType = messageType;
-	}
-
-	/**
-	 * @return the control
-	 */
-	public Control getControl() {
-		return control;
-	}
-
-	/**
-	 * @param control the control to set
-	 */
-	public void setControl(Control control) {
-		this.control = control;
-	}
-
-	/**
-	 * @return the data
-	 */
-	public Object getData() {
-		return data;
-	}
-
-	/**
-	 * @param data the data to set
-	 */
-	public void setData(Object data) {
-		this.data = data;
-	}
-
-	/**
-	 * @return the key
-	 */
-	public Object getKey() {
-		return key;
-	}
-
-	/**
-	 * @param key the key to set
-	 */
-	public void setKey(Object key) {
-		this.key = key;
-	}
-
-	/**
-	 * @return the prefix
-	 */
-	public String getPrefix() {
-		return prefix;
-	}
-
-	/**
-	 * @param prefix the prefix to set
-	 */
-	public void setPrefix(String prefix) {
-		this.prefix = prefix;
-	}
-
-	/**
-	 * @return the message
-	 */
-	public String getMessage() {
-		return message;
-	}
-
-	/**
-	 * @param message the message to set
-	 */
-	public void setMessage(String message) {
-		this.message = message;
-	}
-
-}

Deleted: branches/smooks-dmb/plugins/org.jboss.tools.smooks.ui/src/org/jboss/tools/smooks/graphical/editors/SmooksProcessGraphicalEditor.java
===================================================================
--- branches/smooks-dmb/plugins/org.jboss.tools.smooks.ui/src/org/jboss/tools/smooks/graphical/editors/SmooksProcessGraphicalEditor.java	2010-07-21 09:11:28 UTC (rev 23623)
+++ branches/smooks-dmb/plugins/org.jboss.tools.smooks.ui/src/org/jboss/tools/smooks/graphical/editors/SmooksProcessGraphicalEditor.java	2010-07-21 09:12:07 UTC (rev 23624)
@@ -1,555 +0,0 @@
-/**
- * 
- */
-package org.jboss.tools.smooks.graphical.editors;
-
-import java.beans.PropertyChangeEvent;
-import java.beans.PropertyChangeListener;
-import java.util.ArrayList;
-import java.util.HashMap;
-import java.util.Iterator;
-import java.util.List;
-import java.util.Map;
-
-import org.eclipse.draw2d.IFigure;
-import org.eclipse.jface.action.IAction;
-import org.eclipse.jface.action.IMenuListener;
-import org.eclipse.jface.action.IMenuManager;
-import org.eclipse.jface.action.MenuManager;
-import org.eclipse.jface.dialogs.IMessageProvider;
-import org.eclipse.jface.viewers.ISelection;
-import org.eclipse.jface.viewers.ISelectionChangedListener;
-import org.eclipse.jface.viewers.IStructuredSelection;
-import org.eclipse.jface.viewers.SelectionChangedEvent;
-import org.eclipse.swt.SWT;
-import org.eclipse.swt.custom.SashForm;
-import org.eclipse.swt.events.FocusEvent;
-import org.eclipse.swt.events.FocusListener;
-import org.eclipse.swt.layout.FillLayout;
-import org.eclipse.swt.layout.GridData;
-import org.eclipse.swt.layout.GridLayout;
-import org.eclipse.swt.widgets.Composite;
-import org.eclipse.swt.widgets.Menu;
-import org.eclipse.ui.IEditorActionBarContributor;
-import org.eclipse.ui.forms.IManagedForm;
-import org.eclipse.ui.forms.IMessage;
-import org.eclipse.ui.forms.editor.FormEditor;
-import org.eclipse.ui.forms.editor.FormPage;
-import org.eclipse.ui.forms.widgets.FormToolkit;
-import org.eclipse.ui.forms.widgets.ScrolledForm;
-import org.eclipse.ui.forms.widgets.Section;
-import org.eclipse.ui.part.MultiPageEditorActionBarContributor;
-import org.eclipse.zest.core.viewers.GraphViewer;
-import org.eclipse.zest.core.widgets.CGraphNode;
-import org.eclipse.zest.core.widgets.Graph;
-import org.eclipse.zest.core.widgets.GraphItem;
-import org.eclipse.zest.core.widgets.ZestStyles;
-import org.eclipse.zest.layouts.LayoutStyles;
-import org.eclipse.zest.layouts.algorithms.HorizontalTreeLayoutAlgorithm;
-import org.jboss.tools.smooks.configuration.editors.GraphicsConstants;
-import org.jboss.tools.smooks.editor.ISmooksModelProvider;
-import org.jboss.tools.smooks.graphical.actions.AbstractProcessGraphAction;
-import org.jboss.tools.smooks.graphical.actions.AddNextTaskNodeAction;
-import org.jboss.tools.smooks.graphical.actions.DeleteTaskNodeAction;
-import org.jboss.tools.smooks.graphical.editors.Messages;
-import org.jboss.tools.smooks.graphical.editors.ProcessGraphContentProvider;
-import org.jboss.tools.smooks.graphical.editors.SmooksMessage;
-import org.jboss.tools.smooks.graphical.editors.TaskTypeManager;
-import org.jboss.tools.smooks.graphical.editors.TaskTypeManager.TaskTypeDescriptor;
-import org.jboss.tools.smooks.graphical.editors.process.IProcessProvider;
-import org.jboss.tools.smooks.graphical.editors.process.ProcessFactory;
-import org.jboss.tools.smooks.graphical.editors.process.ProcessGraphicalViewerLabelProvider;
-import org.jboss.tools.smooks.graphical.editors.process.ProcessTaskAnalyzer;
-import org.jboss.tools.smooks.graphical.editors.process.ProcessType;
-import org.jboss.tools.smooks.graphical.editors.process.TaskNodeFigure;
-
-/**
- * @author Dart
- *
- */
-public class SmooksProcessGraphicalEditor extends FormPage implements IProcessProvider , PropertyChangeListener{
-	
-	private boolean processMapActived = false;
-
-	private int currentMessageType = IMessageProvider.NONE;
-
-	private String currentMessage = null;
-
-	private boolean processChanged = false;
-
-	private boolean lockProcessChangeEvent = false;
-
-	private List<IAction> processPanelActions = new ArrayList<IAction>();
-
-	public static final int EXECUTE_COMMAND = 0;
-
-	public static final int REDO_COMMAND = 1;
-
-	public static final int UNDO_COMMAND = 2;
-
-	private Object emptyKey = new Object();
-
-	private ISmooksModelProvider smooksModelProvider = null;
-
-	private GraphViewer processGraphViewer;
-
-//	private ScrolledPageBook pageBook;
-
-	private Map<String, Object> registedTaskPages = new HashMap<String, Object>();
-
-	private MenuManager manager;
-
-	protected boolean needupdatewhenshow = true;
-
-	private ProcessType process;
-
-	private Map<Object, String> smooksModelIdMap = new HashMap<Object, String>();
-	
-	private Map<String,Object> detailsControlMap = new HashMap<String, Object>();
-
-	private Composite detailsContentsComposite;
-	
-
-	public SmooksProcessGraphicalEditor(FormEditor editor, String id, String title, ISmooksModelProvider provider) {
-		super(editor, id, title);
-		this.smooksModelProvider = provider;
-	}
-
-	public SmooksProcessGraphicalEditor(String id, String title, ISmooksModelProvider provider) {
-		super(id, title);
-		this.smooksModelProvider = provider;
-		this.getManagedForm();
-	}
-
-	protected void createFormContent(IManagedForm managedForm) {
-		super.createFormContent(managedForm);
-		final ScrolledForm form = managedForm.getForm();
-		FormToolkit toolkit = managedForm.getToolkit();
-		toolkit.decorateFormHeading(form.getForm());
-		form.getBody().setLayout(new FillLayout());
-		form.setText(Messages.SmooksProcessGraphicalEditor_FormText);
-
-		Composite mainComposite = toolkit.createComposite(form.getBody());
-
-		GridLayout mgl = new GridLayout();
-		mgl.marginHeight = 13;
-		mgl.horizontalSpacing = 20;
-		mainComposite.setLayout(mgl);
-
-		SashForm sashForm = new SashForm(mainComposite, SWT.VERTICAL);
-		sashForm.SASH_WIDTH = 1;
-		GridData gd = new GridData(GridData.FILL_BOTH);
-		sashForm.setLayoutData(gd);
-
-		createProcessGraphicalSection(toolkit, sashForm);
-
-		createTaskDetailsSection(toolkit, sashForm);
-
-		sashForm.setWeights(new int[] { 2, 8 });
-
-//		validateEnd(null);
-	}
-	
-	protected void createTaskDetailsSection(FormToolkit toolkit, Composite parent) {
-		Composite taskDetailsComposite = toolkit.createComposite(parent);
-		FillLayout taskDetailsFillLayout = new FillLayout();
-		taskDetailsFillLayout.marginWidth = 0;
-		taskDetailsFillLayout.marginHeight = 5;
-		taskDetailsComposite.setLayout(taskDetailsFillLayout);
-
-		Section section = toolkit.createSection(taskDetailsComposite, Section.TITLE_BAR);
-		section.setText(Messages.SmooksProcessGraphicalEditor_TaskConfigurationSectionTitle);
-		detailsContentsComposite = toolkit.createComposite(section);
-		section.setClient(detailsContentsComposite);
-//		pageBook = new ScrolledPageBook(section);
-		section.setLayout(new FillLayout());
-//		pageBook.setBackground(toolkit.getColors().getBackground());
-//		section.setClient(pageBook);
-
-//		Composite emptyComposite = pageBook.createPage(emptyKey);
-//		emptyComposite.setLayout(new FillLayout());
-//		createEmptyTaskPanel(emptyComposite, toolkit);
-//		pageBook.showPage(emptyKey);
-	}
-
-	
-	protected void createProcessGraphicalSection(FormToolkit toolkit, Composite parent) {
-		Section processGraphSection = toolkit.createSection(parent, Section.TITLE_BAR);
-		processGraphSection.setText(Messages.SmooksProcessGraphicalEditor_TasksMapSectionTitle);
-
-		Composite processGraphComposite = toolkit.createComposite(processGraphSection);
-
-		GridLayout processGraphGridLayoutLayout = new GridLayout();
-		// processGraphFillLayout.marginWidth = 1;
-		// processGraphFillLayout.marginHeight = 1;
-		processGraphComposite.setLayout(processGraphGridLayoutLayout);
-
-		processGraphSection.setClient(processGraphComposite);
-
-		GridData gd = new GridData(GridData.FILL_HORIZONTAL);
-
-		// Composite toolBarComposite =
-		// toolkit.createComposite(processGraphComposite);
-		// FillLayout l = new FillLayout();
-		// l.marginHeight = 1;
-		// l.marginWidth = 1;
-		// toolBarComposite.setLayout(l);
-
-		// toolBarComposite.setLayoutData(gd);
-		//
-		// toolBarComposite.setBackground(toolkit.getColors().getBorderColor());
-		//
-		// createProcessToolBar(toolBarComposite, toolkit);
-
-		Composite graphMainComposite = toolkit.createComposite(processGraphComposite);
-		FillLayout l1 = new FillLayout();
-		l1.marginHeight = 1;
-		l1.marginWidth = 1;
-		graphMainComposite.setLayout(l1);
-		gd = new GridData(GridData.FILL_BOTH);
-		graphMainComposite.setLayoutData(gd);
-		graphMainComposite.setBackground(toolkit.getColors().getBorderColor());
-
-		createProcessGraphicalPanel(graphMainComposite);
-
-		hookProcessGraphicalViewer();
-		configProcessGraphicalViewer();
-		initProcessGraphicalViewer();
-	}
-	
-	protected void initProcessGraphicalViewer() {
-		boolean disableProcessViewer = false;
-		if (process == null) {
-			process = ProcessFactory.eINSTANCE.createProcessType();
-			process.addPropertyChangeListener(this);
-		}
-		ProcessTaskAnalyzer analyzer = new ProcessTaskAnalyzer();
-		lockProcessChangeEvent = true;
-		analyzer.analyzeTaskNode(process, smooksModelProvider.getSmooksModel());
-		lockProcessChangeEvent = false;
-		if (getProcessGraphViewer() != null) {
-			getProcessGraphViewer().setInput(process);
-		}
-		if (disableProcessViewer) {
-			getProcessGraphViewer().getControl().setBackground(
-					getManagedForm().getToolkit().getColors().getBorderColor());
-			getProcessGraphViewer().setInput(null);
-			getProcessGraphViewer().getControl().setEnabled(false);
-		}
-	}
-
-	public GraphViewer getProcessGraphViewer() {
-		return processGraphViewer;
-	}
-
-	protected void initProcessGraphicalPanelActions(IMenuManager manager) {
-
-		// AddTaskNodeAction addInputTaskAction = new
-		// AddInputTaskAction(smooksModelProvider);
-		// manager.add(addInputTaskAction);
-		// processPanelActions.add(addInputTaskAction);
-
-		MenuManager addNextTaskMenuManager = new MenuManager(Messages.SmooksProcessGraphicalEditor_AddTaskActionText);
-		manager.add(addNextTaskMenuManager);
-
-		generateNextTaskActions(addNextTaskMenuManager);
-
-		// MenuManager addPreTaskMenuManager = new
-		// MenuManager("Add Previous Task");
-		// manager.add(addPreTaskMenuManager);
-		//
-		// fillPreTaskMenu(addPreTaskMenuManager);
-
-		DeleteTaskNodeAction deleteAction = new DeleteTaskNodeAction(this, smooksModelProvider, this);
-		manager.add(deleteAction);
-
-		this.processPanelActions.add(deleteAction);
-
-	}
-	
-	private void generateNextTaskActions(MenuManager addNextTaskMenuManager) {
-		List<TaskTypeDescriptor> list = TaskTypeManager.getAllTaskList();
-		for (Iterator<?> iterator = list.iterator(); iterator.hasNext();) {
-			TaskTypeDescriptor taskTypeDescriptor = (TaskTypeDescriptor) iterator.next();
-			AddNextTaskNodeAction addNextInputAction = new AddNextTaskNodeAction(taskTypeDescriptor.getId(),
-					taskTypeDescriptor.getLabel(), smooksModelProvider, this);
-			this.processPanelActions.add(addNextInputAction);
-			addNextTaskMenuManager.add(addNextInputAction);
-		}
-	}
-
-	
-	protected void configProcessGraphicalViewer() {
-		manager = new MenuManager();
-
-		initProcessGraphicalPanelActions(manager);
-
-		Menu menu = manager.createContextMenu(getProcessGraphViewer().getControl());
-		getProcessGraphViewer().getControl().setMenu(menu);
-		manager.addMenuListener(new IMenuListener() {
-
-			public void menuAboutToShow(IMenuManager manager) {
-				try {
-					manager.removeAll();
-					if (needupdatewhenshow) {
-						updateProcessActions(processGraphViewer.getSelection());
-						fillProcessMenu(manager);
-					} else {
-						for (Iterator<?> iterator = processPanelActions.iterator(); iterator.hasNext();) {
-							IAction action = (IAction) iterator.next();
-							if (action.isEnabled() && !(action instanceof DeleteTaskNodeAction)) {
-								manager.add(action);
-							}
-						}
-					}
-					needupdatewhenshow = true;
-				} catch (Exception e) {
-					e.printStackTrace();
-				}
-				needupdatewhenshow = true;
-			}
-		});
-	}
-	
-	public void updateProcessActions(ISelection selection) {
-		try{
-		for (Iterator<?> iterator = processPanelActions.iterator(); iterator.hasNext();) {
-			IAction a = (IAction) iterator.next();
-			if (a instanceof AbstractProcessGraphAction) {
-				((AbstractProcessGraphAction) a).selectionChanged(new SelectionChangedEvent(processGraphViewer,
-						selection));
-			}
-		}
-		manager.update();
-		}catch(Throwable t){
-			t.printStackTrace();
-		}
-	}
-	
-	public void fillProcessMenu(IMenuManager manager) {
-		MenuManager addNextTaskMenuManager = new MenuManager(Messages.SmooksProcessGraphicalEditor_AddTaskActionText);
-		manager.add(addNextTaskMenuManager);
-
-		for (Iterator<?> iterator = processPanelActions.iterator(); iterator.hasNext();) {
-			IAction action = (IAction) iterator.next();
-			if (action instanceof DeleteTaskNodeAction) {
-				manager.add(action);
-			} else {
-				addNextTaskMenuManager.add(action);
-			}
-		}
-	}
-
-
-	
-	protected void hookProcessGraphicalViewer() {
-		getProcessGraphViewer().addSelectionChangedListener(new ISelectionChangedListener() {
-
-			public void selectionChanged(SelectionChangedEvent event) {
-				IStructuredSelection selection = (IStructuredSelection) event.getSelection();
-				Object firstElement = selection.getFirstElement();
-				if (firstElement == null) {
-					unhighlightGraphNodes();
-				}
-				Graph graph = getProcessGraphViewer().getGraphControl();
-				List<?> nodes = graph.getNodes();
-				GraphItem item = null;
-				for (Iterator<?> iterator = nodes.iterator(); iterator.hasNext();) {
-					GraphItem graphItem = (GraphItem) iterator.next();
-					if (graphItem.getData() == firstElement) {
-						item = graphItem;
-						break;
-					}
-				}
-				if (item != null) {
-					unhighlightGraphNodes();
-					highlightGraphNode(item);
-				}
-//				showTaskControl(firstElement);
-//				SmooksProcessGraphicalEditor.this.selectionChanged(event);
-				updateGlobalActions();
-			}
-		});
-		// when focus change , update the actions in the Eclipse menu via
-		// EditorContributor
-		getProcessGraphViewer().getControl().addFocusListener(new FocusListener() {
-
-			public void focusLost(FocusEvent e) {
-				processMapActived = false;
-				updateGlobalActions();
-			}
-
-			public void focusGained(FocusEvent e) {
-				processMapActived = true;
-				updateGlobalActions();
-			}
-		});
-	}
-	
-	private void updateGlobalActions() {
-		IEditorActionBarContributor contributor = getEditorSite().getActionBarContributor();
-		if (contributor != null && contributor instanceof MultiPageEditorActionBarContributor) {
-			// clean all actions
-			((MultiPageEditorActionBarContributor) contributor).setActivePage(null);
-			// re-active the page and add all actions
-			((MultiPageEditorActionBarContributor) contributor).setActivePage(SmooksProcessGraphicalEditor.this);
-		}
-	}
-	
-	public void propertyChange(PropertyChangeEvent evt) {
-		if (lockProcessChangeEvent)
-			return;
-		String name = evt.getPropertyName();
-		Object newtask = evt.getNewValue();
-		Object oldtask = evt.getOldValue();
-		if (ProcessType.PRO_ADD_CHILD.equals(name) || ProcessType.PRO_REMOVE_CHILD.equals(name)) {
-			if (getProcessGraphViewer() != null) {
-				getProcessGraphViewer().refresh();
-				getProcessGraphViewer().applyLayout();
-			}
-			processChanged = true;
-			getManagedForm().dirtyStateChanged();
-		}
-
-//		if (ProcessType.PRO_ADD_CHILD.equals(name)) {
-//			this.showTaskControl(newtask);
-//		}
-//		if (ProcessType.PRO_REMOVE_CHILD.equals(name)) {
-//			this.showTaskControl(null);
-//			disposeTaskDetails(oldtask);
-//		}
-//		validateEnd(null);
-	}
-	
-	protected void unhighlightGraphNodes() {
-
-		Graph graph = this.getProcessGraphViewer().getGraphControl();
-		List<?> elements = graph.getNodes();
-		for (Iterator<?> iterator = elements.iterator(); iterator.hasNext();) {
-			GraphItem graphItem = (GraphItem) iterator.next();
-			unhighlightGraphNode(graphItem);
-		}
-	}
-
-	protected void unhighlightGraphNode(GraphItem item) {
-		if (item instanceof CGraphNode) {
-			IFigure figure = ((CGraphNode) item).getFigure();
-			if (figure instanceof TaskNodeFigure) {
-				((TaskNodeFigure) figure).unhighlightLabel();
-			}
-		}
-	}
-
-	protected void highlightGraphNode(GraphItem item) {
-		if (item instanceof CGraphNode) {
-			IFigure figure = ((CGraphNode) item).getFigure();
-			if (figure instanceof TaskNodeFigure) {
-				((TaskNodeFigure) figure).highlightLabel(org.eclipse.draw2d.ColorConstants.darkBlue);
-			}
-		}
-	}
-	
-	protected void createProcessGraphicalPanel(Composite parent) {
-		processGraphViewer = new GraphViewer(parent, SWT.NONE);
-		processGraphViewer.getControl().dispose();
-		processGraphViewer.setControl(new Graph(parent, SWT.NONE) {
-
-			/*
-			 * (non-Javadoc)
-			 * 
-			 * @see org.eclipse.zest.core.widgets.Graph#dispose()
-			 */
-			@Override
-			public void dispose() {
-				try {
-					super.dispose();
-				} catch (Throwable e) {
-					e.printStackTrace();
-				}
-			}
-
-		});
-		// GridData gd = new GridData(GridData.FILL_BOTH);
-		// processGraphViewer.getControl().setLayoutData(gd);
-		// processGraphViewer.setNodeStyle(ZestStyles.NODES_FISHEYE);
-		processGraphViewer.setContentProvider(new ProcessGraphContentProvider());
-		processGraphViewer.setLabelProvider(new ProcessGraphicalViewerLabelProvider(this));
-		processGraphViewer.setConnectionStyle(ZestStyles.CONNECTIONS_DIRECTED);
-		HorizontalTreeLayoutAlgorithm layoutAlgorithm = new HorizontalTreeLayoutAlgorithm(
-				LayoutStyles.NO_LAYOUT_NODE_RESIZING);
-		processGraphViewer.setLayoutAlgorithm(layoutAlgorithm, true);
-		if (parent instanceof Section) {
-			((Section) parent).setClient(processGraphViewer.getControl());
-		}
-	}
-
-	
-	public void createPartControl(Composite parent) {
-		super.createPartControl(parent);
-		updateHeaderFormMessage();
-	}
-	
-	protected void updateHeaderFormMessage() {
-		if (this.getManagedForm() != null) {
-			getManagedForm().getMessageManager().removeAllMessages();
-			getManagedForm().getMessageManager().update();
-			getProcessGraphViewer().getControl().setEnabled(true);
-			getProcessGraphViewer().getControl().setBackground(
-					getManagedForm().getToolkit().getColors().getBackground());
-		}
-		if (currentMessageType != IMessageProvider.NONE && currentMessage != null) {
-			if (this.getProcessGraphViewer() != null) {
-				getProcessGraphViewer().getControl().setBackground(GraphicsConstants.BORDER_CORLOR);
-				getProcessGraphViewer().getControl().setEnabled(false);
-				getProcessGraphViewer().setInput(new Object());
-//				showTaskControl(null);
-			}
-			if (this.getManagedForm() != null) {
-
-				String[] messages = currentMessage.split("\n"); //$NON-NLS-1$
-				List<IMessage> messageList = new ArrayList<IMessage>();
-				for (int i = 0; i < messages.length; i++) {
-					String message = messages[i];
-					if (message != null)
-						message.trim();
-					if (message.length() == 0) {
-						continue;
-					}
-					messageList.add(new SmooksMessage(currentMessageType, message));
-				}
-				String mainMessage = null;
-				if (messageList.isEmpty()) {
-					mainMessage = currentMessage;
-				} else {
-					mainMessage = messageList.get(0).getMessage();
-				}
-
-				this.getManagedForm().getForm().getForm().setMessage(mainMessage, currentMessageType,
-						messageList.toArray(new IMessage[] {}));
-
-			}
-		}
-	}
-	
-	/**
-	 * @return the needupdatewhenshow
-	 */
-	public boolean isNeedupdatewhenshow() {
-		return needupdatewhenshow;
-	}
-
-	/**
-	 * @param needupdatewhenshow
-	 *            the needupdatewhenshow to set
-	 */
-	public void setNeedupdatewhenshow(boolean needupdatewhenshow) {
-		this.needupdatewhenshow = needupdatewhenshow;
-	}
-
-	public ProcessType getProcess() {
-		return this.process;
-	}
-
-
-	
-}

Deleted: branches/smooks-dmb/plugins/org.jboss.tools.smooks.ui/src/org/jboss/tools/smooks/graphical/editors/SmooksTaskDetailsEditorSite.java
===================================================================
--- branches/smooks-dmb/plugins/org.jboss.tools.smooks.ui/src/org/jboss/tools/smooks/graphical/editors/SmooksTaskDetailsEditorSite.java	2010-07-21 09:11:28 UTC (rev 23623)
+++ branches/smooks-dmb/plugins/org.jboss.tools.smooks.ui/src/org/jboss/tools/smooks/graphical/editors/SmooksTaskDetailsEditorSite.java	2010-07-21 09:12:07 UTC (rev 23624)
@@ -1,48 +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.graphical.editors;
-
-import org.eclipse.ui.IEditorPart;
-import org.eclipse.ui.forms.editor.FormPage;
-import org.eclipse.ui.part.MultiPageEditorPart;
-import org.eclipse.ui.part.MultiPageEditorSite;
-
-/**
- * @author Dart
- * 
- */
-public class SmooksTaskDetailsEditorSite extends MultiPageEditorSite {
-
-	private FormPage parentEditor = null;
-
-	public SmooksTaskDetailsEditorSite(MultiPageEditorPart multiPageEditor, IEditorPart editor,
-			FormPage parentEditor) {
-		super(multiPageEditor, editor);
-		this.parentEditor = parentEditor;
-	}
-
-	/**
-	 * @return the parentEditor
-	 */
-	public FormPage getParentEditor() {
-		return parentEditor;
-	}
-
-	/**
-	 * @param parentEditor the parentEditor to set
-	 */
-	public void setParentEditor(FormPage parentEditor) {
-		this.parentEditor = parentEditor;
-	}
-	
-	
-
-}

Deleted: branches/smooks-dmb/plugins/org.jboss.tools.smooks.ui/src/org/jboss/tools/smooks/graphical/editors/TaskTypeManager.java
===================================================================
--- branches/smooks-dmb/plugins/org.jboss.tools.smooks.ui/src/org/jboss/tools/smooks/graphical/editors/TaskTypeManager.java	2010-07-21 09:11:28 UTC (rev 23623)
+++ branches/smooks-dmb/plugins/org.jboss.tools.smooks.ui/src/org/jboss/tools/smooks/graphical/editors/TaskTypeManager.java	2010-07-21 09:12:07 UTC (rev 23624)
@@ -1,218 +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.graphical.editors;
-
-import java.util.ArrayList;
-import java.util.Iterator;
-import java.util.List;
-
-import org.jboss.tools.smooks.configuration.editors.GraphicsConstants;
-import org.jboss.tools.smooks.graphical.editors.process.TaskType;
-import org.jboss.tools.smooks.graphical.editors.process.TemplateAppyTaskNode;
-//import org.jboss.tools.smooks.model.freemarker.Freemarker;
-//import org.jboss.tools.smooks.model.javabean12.BeanType;
-//import org.jboss.tools.smooks.model.smooks.AbstractResourceConfig;
-//import org.jboss.tools.smooks.model.smooks.SmooksResourceListType;
-
-/**
- * @author Dart
- * 
- */
-public class TaskTypeManager {
-
-	public static final String TASK_ID_INPUT = "input"; //$NON-NLS-1$
-
-	public static final String TASK_ID_JAVA_MAPPING = "java_mapping"; //$NON-NLS-1$
-
-	public static final String TASK_ID_XSL_TEMPLATE = "xsl_template"; //$NON-NLS-1$
-
-	public static final String TASK_ID_FREEMARKER_CSV_TEMPLATE = "freemarker_csv_template"; //$NON-NLS-1$
-
-	public static final String TASK_ID_FREEMARKER_XML_TEMPLATE = "freemarker_xml_template"; //$NON-NLS-1$
-
-	private static List<TaskTypeDescriptor> allTaskList = null;
-
-	public static String[] getChildTaskIDs(String parentId) {
-		if (parentId == null)
-			return null;
-		if (parentId.equals(TaskTypeManager.TASK_ID_INPUT)) {
-			return new String[] { TaskTypeManager.TASK_ID_JAVA_MAPPING };
-		}
-		if (parentId.equals(TaskTypeManager.TASK_ID_JAVA_MAPPING)) {
-			return new String[] { TaskTypeManager.TASK_ID_FREEMARKER_CSV_TEMPLATE };
-		}
-		return null;
-	}
-
-	/**
-	 * @return the allTaskList
-	 */
-	public static List<TaskTypeDescriptor> getAllTaskList() {
-		if (allTaskList == null) {
-			allTaskList = new ArrayList<TaskTypeDescriptor>();
-
-			// init
-			allTaskList.add(new TaskTypeDescriptor(TASK_ID_INPUT, Messages.TaskTypeManager_Input,
-					GraphicsConstants.IMAGE_INPUT_TASK));
-			allTaskList.add(new TaskTypeDescriptor(TASK_ID_JAVA_MAPPING, Messages.TaskTypeManager_JavaMappingTaskLabel,
-					GraphicsConstants.IMAGE_JAVA_AMPPING_TASK));
-			allTaskList.add(new TaskTypeDescriptor(TASK_ID_FREEMARKER_CSV_TEMPLATE,
-					Messages.TaskTypeManager_ApplyTemplateTaskLabel, GraphicsConstants.IMAGE_APPLY_FREEMARKER_TASK));
-		}
-		return allTaskList;
-	}
-
-	public static List<Object> getAssociatedSmooksElementsType(TaskType taskType) {
-		return null;
-	}
-
-//	public static List<Object> getAssociatedSmooksElementsType(String taskID) {
-//		List<Object> elementsType = new ArrayList<Object>();
-//		if (taskID == null)
-//			return null;
-//		if (TASK_ID_JAVA_MAPPING.equals(taskID)) {
-//			elementsType.add(BeanType.class);
-//		}
-//		if (TASK_ID_FREEMARKER_CSV_TEMPLATE.equals(taskID)) {
-//			elementsType.add(Freemarker.class);
-//		}
-//		return elementsType;
-//	}
-
-	public static String getTaskLabel(TaskType task) {
-		if (task != null) {
-			String taskId = task.getId();
-			if (taskId != null) {
-				if (taskId.equals(TASK_ID_FREEMARKER_CSV_TEMPLATE)) {
-					String messageType = ""; //$NON-NLS-1$
-					if (task instanceof TemplateAppyTaskNode) {
-						messageType = ((TemplateAppyTaskNode) task).getType();
-					}
-					if (messageType == null)
-						messageType = ""; //$NON-NLS-1$
-					if (messageType.length() > 0){
-						return Messages.TaskTypeManager_ApplyTemplateTaskLabel + " (" + messageType +")"; //$NON-NLS-1$ //$NON-NLS-2$
-					}else{
-						return  Messages.TaskTypeManager_ApplyTemplateTaskLabel;
-					}
-				}
-				if (taskId.equals(TASK_ID_INPUT)) {
-					return Messages.TaskTypeManager_InputTaskLabel;
-				}
-				if (taskId.equals(TASK_ID_JAVA_MAPPING)) {
-					return Messages.TaskTypeManager_JavaMappingTaskLabel;
-				}
-				if (taskId.equals(TASK_ID_XSL_TEMPLATE)) {
-					return Messages.TaskTypeManager_ApplyXSLTemplateTaskLabel;
-				}
-			}
-		}
-		return ""; //$NON-NLS-1$
-	}
-
-//	/**
-//	 * 
-//	 * @param taskID
-//	 * @param smooksResourceList
-//	 * @return
-//	 */
-//	public static List<Object> getAssociatedSmooksElements(TaskType taskType, SmooksResourceListType smooksResourceList) {
-//		List<Object> elementTypes = getAssociatedSmooksElementsType(taskType.getId());
-//		List<AbstractResourceConfig> resourceConfigList = smooksResourceList.getAbstractResourceConfig();
-//		List<Object> associatedElements = new ArrayList<Object>();
-//		for (Iterator<?> iterator = resourceConfigList.iterator(); iterator.hasNext();) {
-//			AbstractResourceConfig abstractResourceConfig = (AbstractResourceConfig) iterator.next();
-//			if (isSameType(abstractResourceConfig, elementTypes) && canRemove(abstractResourceConfig, taskType)) {
-//				associatedElements.add(abstractResourceConfig);
-//			}
-//		}
-//		return associatedElements;
-//	}
-//
-//	private static boolean canRemove(AbstractResourceConfig abstractResourceConfig, TaskType taskType) {
-//		if (abstractResourceConfig instanceof Freemarker) {
-//			return taskType.inTheTask(abstractResourceConfig);
-//		}
-//		return true;
-//	}
-
-	private static boolean isSameType(Object element, List<Object> elementTypes) {
-		for (Iterator<?> iterator = elementTypes.iterator(); iterator.hasNext();) {
-			Class<?> object = (Class<?>) iterator.next();
-			if (object.isInstance(element)) {
-				return true;
-			}
-		}
-		return false;
-	}
-
-	public static final class TaskTypeDescriptor {
-
-		private String id;
-
-		private String label;
-
-		private String imagePath;
-
-		public TaskTypeDescriptor(String id, String label, String imagePath) {
-			this.id = id;
-			this.label = label;
-			this.imagePath = imagePath;
-		}
-
-		/**
-		 * @return the id
-		 */
-		public String getId() {
-			return id;
-		}
-
-		/**
-		 * @param id
-		 *            the id to set
-		 */
-		public void setId(String id) {
-			this.id = id;
-		}
-
-		/**
-		 * @return the label
-		 */
-		public String getLabel() {
-			return label;
-		}
-
-		/**
-		 * @param label
-		 *            the label to set
-		 */
-		public void setLabel(String label) {
-			this.label = label;
-		}
-
-		/**
-		 * @return the imagePath
-		 */
-		public String getImagePath() {
-			return imagePath;
-		}
-
-		/**
-		 * @param imagePath
-		 *            the imagePath to set
-		 */
-		public void setImagePath(String imagePath) {
-			this.imagePath = imagePath;
-		}
-
-	}
-
-}

Deleted: branches/smooks-dmb/plugins/org.jboss.tools.smooks.ui/src/org/jboss/tools/smooks/graphical/editors/messages.properties
===================================================================
--- branches/smooks-dmb/plugins/org.jboss.tools.smooks.ui/src/org/jboss/tools/smooks/graphical/editors/messages.properties	2010-07-21 09:11:28 UTC (rev 23623)
+++ branches/smooks-dmb/plugins/org.jboss.tools.smooks.ui/src/org/jboss/tools/smooks/graphical/editors/messages.properties	2010-07-21 09:12:07 UTC (rev 23624)
@@ -1,32 +0,0 @@
-SmooksFreemarkerTemplateGraphicalEditor_Warning_CSV_Fields_Empty=CSV fields can't be empty
-SmooksFreemarkerTemplateGraphicalEditor_Warning_Must_Link_CSV_Record=Must link CSV-Record before linking this node.
-SmooksFreemarkerTemplateGraphicalEditor_Warning_Must_Link_to_Collection=Must be linked with collection java class node
-SmooksFreemarkerTemplateGraphicalEditor_Warning_Quote_Empty=Quote character can't be empty
-SmooksFreemarkerTemplateGraphicalEditor_Warning_Separator_Empty=Separator character can't be empty
-SmooksGraphicalEditorMenuContextProvider_Add_Menu_Text=Add
-SmooksGraphicalEditorPaletteRootCreator_General_Palette_Drawer=General
-SmooksGraphicalEditorPaletteRootCreator_Link_Tool_Text=Link
-SmooksGraphicalEditorPaletteRootCreator_Link_Tool_Tooltip=Connect node
-SmooksJavaMappingGraphicalEditor_BeanIdEmptyErrormessage=The Bean ID shouldn't be empty
-SmooksJavaMappingGraphicalEditor_NodeMustLinkWithJavaBean=The node must link to another Java Bean
-SmooksJavaMappingGraphicalEditor_NodeMustLinkWithSource=The node must be linked with input source
-SmooksJavaMappingGraphicalEditor_NullLabel=<NULL>
-SmooksJavaMappingGraphicalEditor_WarningMessage1=Decoder should be '
-SmooksProcessGraphicalEditor_4=No java mapping has been specified in the Java Mapping task.
-SmooksProcessGraphicalEditor_ValidationError_MultipleTemplate=Doesn't support multiple template task.
-SmooksProcessGraphicalEditor_AddTaskActionText=Add Task
-SmooksProcessGraphicalEditor_FormText=Smooks Processing
-SmooksProcessGraphicalEditor_TaskConfigurationSectionTitle=Selected Task Details
-SmooksProcessGraphicalEditor_TasksMapSectionTitle=Processing Tasks
-SmooksXSLTemplateGraphicalEditor_Group_Name=XSL Template
-TaskTypeManager_ApplyTemplateTaskLabel=Apply Template
-TaskTypeManager_ApplyXSLTemplateTaskLabel=Apply XSL Template
-TaskTypeManager_Input=Input
-TaskTypeManager_InputTaskLabel=Input Task
-TaskTypeManager_JavaMappingTaskLabel=Java Mapping
-XSLLabelProvider_Text_Null_Value=\ (Null Value)
-SmooksProcessGraphicalEditor_Empty_Input_File=Sample input file is empty.
-SmooksProcessGraphicalEditor_Java_Mapping_Not_Found=Mapping to Java classes is missing or incorrect.
-SmooksProcessGraphicalEditor_No_Input_File_Active=No sample input file is specified.
-SmooksProcessGraphicalEditor_No_Input_Specified=No Input configuration has been specified.
-SmooksProcessGraphicalEditor_No_Input_Task_Found=No Input task was found.



More information about the jbosstools-commits mailing list