You are viewing a plain text version of this content. The canonical link for it is here.
Posted to commits@taverna.apache.org by st...@apache.org on 2015/02/17 12:45:49 UTC

[25/52] [abbrv] incubator-taverna-workbench git commit: taverna-ui-impl/

http://git-wip-us.apache.org/repos/asf/incubator-taverna-workbench/blob/72850d5a/activity-palette-impl/src/main/java/net/sf/taverna/t2/workbench/ui/activitypalette/ActivityPaletteConfigurationPanel.java
----------------------------------------------------------------------
diff --git a/activity-palette-impl/src/main/java/net/sf/taverna/t2/workbench/ui/activitypalette/ActivityPaletteConfigurationPanel.java b/activity-palette-impl/src/main/java/net/sf/taverna/t2/workbench/ui/activitypalette/ActivityPaletteConfigurationPanel.java
deleted file mode 100644
index 6166e60..0000000
--- a/activity-palette-impl/src/main/java/net/sf/taverna/t2/workbench/ui/activitypalette/ActivityPaletteConfigurationPanel.java
+++ /dev/null
@@ -1,284 +0,0 @@
-/*******************************************************************************
- * Copyright (C) 2007 The University of Manchester
- *
- *  Modifications to the initial code base are copyright of their
- *  respective authors, or their employers as appropriate.
- *
- *  This program is free software; you can redistribute it and/or
- *  modify it under the terms of the GNU Lesser General Public License
- *  as published by the Free Software Foundation; either version 2.1 of
- *  the License, or (at your option) any later version.
- *
- *  This program is distributed in the hope that it will be useful, but
- *  WITHOUT ANY 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 along with this program; if not, write to the Free Software
- *  Foundation, Inc., 59 Temple Place, Suite 330, Boston, MA 02111-1307
- ******************************************************************************/
-package net.sf.taverna.t2.workbench.ui.activitypalette;
-
-import static java.awt.BorderLayout.CENTER;
-import static java.awt.BorderLayout.EAST;
-import static java.awt.BorderLayout.NORTH;
-import static java.awt.BorderLayout.SOUTH;
-import static java.awt.FlowLayout.LEFT;
-import static java.awt.FlowLayout.RIGHT;
-import static javax.swing.BoxLayout.Y_AXIS;
-import static javax.swing.JOptionPane.INFORMATION_MESSAGE;
-import static javax.swing.JOptionPane.WARNING_MESSAGE;
-import static javax.swing.JOptionPane.YES_NO_OPTION;
-import static javax.swing.JOptionPane.YES_OPTION;
-import static javax.swing.JOptionPane.showConfirmDialog;
-import static javax.swing.JOptionPane.showInputDialog;
-import static javax.swing.border.BevelBorder.LOWERED;
-
-import java.awt.BorderLayout;
-import java.awt.Component;
-import java.awt.FlowLayout;
-import java.awt.event.ActionEvent;
-import java.awt.event.ActionListener;
-import java.util.ArrayList;
-import java.util.HashMap;
-import java.util.List;
-import java.util.Map;
-
-import javax.swing.BoxLayout;
-import javax.swing.DefaultComboBoxModel;
-import javax.swing.DefaultListCellRenderer;
-import javax.swing.DefaultListModel;
-import javax.swing.JButton;
-import javax.swing.JComboBox;
-import javax.swing.JLabel;
-import javax.swing.JList;
-import javax.swing.JPanel;
-import javax.swing.border.BevelBorder;
-
-import org.apache.log4j.Logger;
-
-@SuppressWarnings("serial")
-public class ActivityPaletteConfigurationPanel extends JPanel {
-	private static Logger logger = Logger
-			.getLogger(ActivityPaletteConfigurationPanel.class);
-
-	private Map<String,List<String>> values = new HashMap<>();
-	private Map<String,String> names = new HashMap<>();
-	private DefaultComboBoxModel<String> model;
-	private DefaultListModel<String> listModel;
-	private JList<String> propertyListItems;
-	private String selectedKey;
-	private JButton deleteTypeButton;
-	private final ActivityPaletteConfiguration config;
-
-	public ActivityPaletteConfigurationPanel(ActivityPaletteConfiguration config) {
-		super(new BorderLayout());
-		this.config = config;
-
-		model = new DefaultComboBoxModel<>();
-		for (String key : config.getInternalPropertyMap().keySet()) {
-			if (key.startsWith("taverna.")
-					&& config.getPropertyStringList(key) != null) {
-				model.addElement(key);
-				values.put(key,
-						new ArrayList<>(config.getPropertyStringList(key)));
-			}
-			if (key.startsWith("name.taverna."))
-				names.put(key, config.getProperty(key).toString());
-		}
-		deleteTypeButton = new JButton("Delete");
-
-		final JButton addTypeButton = new JButton("Add");
-		final JComboBox<String> comboBox = new JComboBox<>(model);
-		comboBox.setRenderer(new DefaultListCellRenderer() {
-			@Override
-			public Component getListCellRendererComponent(JList<?> list,
-					Object value, int index, boolean isSelected,
-					boolean cellHasFocus) {
-				if (value != null && value instanceof String) {
-					String name = names.get("name." + value);
-					if (name != null)
-						value = name;
-				}
-				return super.getListCellRendererComponent(list, value, index,
-						isSelected, cellHasFocus);
-			}
-		});
-
-		deleteTypeButton.addActionListener(new ActionListener() {
-			@Override
-			public void actionPerformed(ActionEvent e) {
-				String displayText = names.get("name." + selectedKey);
-				if (displayText == null)
-					displayText = selectedKey;
-				if (confirm("Confirm removal",
-						"Are you sure you wish to remove the type "
-								+ displayText + "?")) {
-					names.remove("name." + selectedKey);
-					values.remove(selectedKey);
-					model.removeElement(selectedKey);
-					comboBox.setSelectedIndex(0);
-				}
-			}
-		});
-
-		addTypeButton.addActionListener(new ActionListener() {
-			@Override
-			public void actionPerformed(ActionEvent e) {
-				String key = input("New key", "Provide the new key.");
-				if (key == null)
-					return;
-				String name = input("Name for the key",
-						"Provide the name for the key: " + key);
-				if (name == null)
-					return;
-
-				values.put(key, new ArrayList<String>());
-				names.put("name." + key, name);
-				model.addElement(key);
-				comboBox.setSelectedItem(key);
-			}
-		});
-
-		comboBox.addActionListener(new ActionListener() {
-			@Override
-			public void actionPerformed(ActionEvent e) {
-				if (comboBox.getSelectedItem() != null
-						&& comboBox.getSelectedItem() instanceof String) {
-					selectedKey = (String) comboBox.getSelectedItem();
-					List<String> selectedList = values.get(selectedKey);
-					populateList(selectedList);
-					deleteTypeButton.setEnabled(selectedList.size() == 0);
-				}
-			}
-		});
-
-		JPanel propertySelectionPanel = new JPanel(new FlowLayout(LEFT));
-		propertySelectionPanel.add(new JLabel("Activity type:"));
-		propertySelectionPanel.add(comboBox);
-		propertySelectionPanel.add(addTypeButton);
-		propertySelectionPanel.add(deleteTypeButton);
-		add(propertySelectionPanel, NORTH);
-
-		JPanel listPanel = new JPanel(new BorderLayout());
-		listModel = new DefaultListModel<>();
-		propertyListItems = new JList<>(listModel);
-		propertyListItems.setBorder(new BevelBorder(LOWERED));
-
-		listPanel.add(propertyListItems, CENTER);
-		listPanel.add(listButtons(), EAST);
-
-		add(listPanel, CENTER);
-
-		add(applyButtonPanel(), SOUTH);
-
-		if (model.getSize() > 0)
-			comboBox.setSelectedItem(model.getElementAt(0));
-	}
-
-	private void populateList(List<String> selectedList) {
-		listModel.removeAllElements();
-		for (String item : selectedList)
-			listModel.addElement(item);
-	}
-
-	private JPanel applyButtonPanel() {
-		JPanel applyPanel = new JPanel(new FlowLayout(RIGHT));
-		JButton applyButton = new JButton("Apply");
-
-		applyButton.addActionListener(new ActionListener() {
-			@Override
-			public void actionPerformed(ActionEvent e) {
-				config.getInternalPropertyMap().clear();
-				for (String key : values.keySet()) {
-					List<String> properties = values.get(key);
-					config.setPropertyStringList(key, new ArrayList<>(
-							properties));
-				}
-				for (String key : names.keySet())
-					config.setProperty(key, names.get(key));
-				store();
-			}
-		});
-
-		applyPanel.add(applyButton);
-		return applyPanel;
-	}
-
-	private void store() {
-		try {
-			//FIXME
-			//ConfigurationManager.getInstance().store(config);
-		} catch (Exception e1) {
-			logger.error("There was an error storing the configuration:"
-					+ config.getFilePrefix() + " (UUID=" + config.getUUID()
-					+ ")", e1);
-		}
-	}
-
-	private JPanel listButtons() {
-		JPanel panel = new JPanel();
-		panel.setLayout(new BoxLayout(panel, Y_AXIS));
-		JButton addButton = new JButton("+");
-		addButton.addActionListener(new ActionListener() {
-			@Override
-			public void actionPerformed(ActionEvent e) {
-				String value = input("New property", "Provide new value for: "
-						+ selectedKey);
-				if (value != null) {
-					listModel.addElement(value);
-					values.get(selectedKey).add(value);
-					deleteTypeButton.setEnabled(false);
-				}
-			}
-		});
-
-		JButton deleteButton = new JButton("-");
-		deleteButton.addActionListener(new ActionListener() {
-			@Override
-			public void actionPerformed(ActionEvent e) {
-				Object value = propertyListItems.getSelectedValue();
-				if (confirm("Confirm removal",
-						"Are you sure you wish to remove " + value + "?")) {
-					listModel.removeElement(value);
-					values.get(selectedKey).remove(value);
-					if (values.get(selectedKey).size() == 0)
-						deleteTypeButton.setEnabled(true);
-				}
-			}
-		});
-
-		panel.add(addButton);
-		panel.add(deleteButton);
-
-		return panel;
-	}
-
-	private boolean confirm(String title, String message) {
-		return showConfirmDialog(this, message, title, YES_NO_OPTION,
-				WARNING_MESSAGE) == YES_OPTION;
-	}
-
-	private String input(String title, String message) {
-		return showInputDialog(this, message, title, INFORMATION_MESSAGE);
-	}
-
-/*	private JButton getAddTypeButton() {
-		JButton result = new JButton("Add");
-		result.addActionListener(new ActionListener() {
-			public void actionPerformed(ActionEvent e) {
-				String val = input("New property value","New property value");
-				if (val!=null) {
-					if (values.get(val) == null) {
-						model.addElement(val);
-						values.put(val, new ArrayList<String>());
-					} else
-						showMessageDialog(ActivityPaletteConfigurationPanel.this, "This property already exists");
-				}
-			}
-		});
-		return result;
-	}
-*/
-}

http://git-wip-us.apache.org/repos/asf/incubator-taverna-workbench/blob/72850d5a/activity-palette-impl/src/main/java/net/sf/taverna/t2/workbench/ui/activitypalette/ActivityPaletteConfigurationUIFactory.java
----------------------------------------------------------------------
diff --git a/activity-palette-impl/src/main/java/net/sf/taverna/t2/workbench/ui/activitypalette/ActivityPaletteConfigurationUIFactory.java b/activity-palette-impl/src/main/java/net/sf/taverna/t2/workbench/ui/activitypalette/ActivityPaletteConfigurationUIFactory.java
deleted file mode 100644
index 39c4a5a..0000000
--- a/activity-palette-impl/src/main/java/net/sf/taverna/t2/workbench/ui/activitypalette/ActivityPaletteConfigurationUIFactory.java
+++ /dev/null
@@ -1,52 +0,0 @@
-/*******************************************************************************
- * Copyright (C) 2007 The University of Manchester
- *
- *  Modifications to the initial code base are copyright of their
- *  respective authors, or their employers as appropriate.
- *
- *  This program is free software; you can redistribute it and/or
- *  modify it under the terms of the GNU Lesser General Public License
- *  as published by the Free Software Foundation; either version 2.1 of
- *  the License, or (at your option) any later version.
- *
- *  This program is distributed in the hope that it will be useful, but
- *  WITHOUT ANY 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 along with this program; if not, write to the Free Software
- *  Foundation, Inc., 59 Temple Place, Suite 330, Boston, MA 02111-1307
- ******************************************************************************/
-package net.sf.taverna.t2.workbench.ui.activitypalette;
-
-import javax.swing.JPanel;
-
-import uk.org.taverna.configuration.Configurable;
-import uk.org.taverna.configuration.ConfigurationUIFactory;
-
-public class ActivityPaletteConfigurationUIFactory implements
-		ConfigurationUIFactory {
-	private ActivityPaletteConfiguration activityPaletteConfiguration;
-
-	@Override
-	public boolean canHandle(String uuid) {
-		return uuid != null && uuid.equals(getConfigurable().getUUID());
-	}
-
-	@Override
-	public Configurable getConfigurable() {
-		return activityPaletteConfiguration;
-	}
-
-	@Override
-	public JPanel getConfigurationPanel() {
-		return new ActivityPaletteConfigurationPanel(
-				activityPaletteConfiguration);
-	}
-
-	public void setActivityPaletteConfiguration(
-			ActivityPaletteConfiguration activityPaletteConfiguration) {
-		this.activityPaletteConfiguration = activityPaletteConfiguration;
-	}
-}

http://git-wip-us.apache.org/repos/asf/incubator-taverna-workbench/blob/72850d5a/activity-palette-impl/src/main/resources/META-INF/services/net.sf.taverna.t2.workbench.configuration.ConfigurationUIFactory
----------------------------------------------------------------------
diff --git a/activity-palette-impl/src/main/resources/META-INF/services/net.sf.taverna.t2.workbench.configuration.ConfigurationUIFactory b/activity-palette-impl/src/main/resources/META-INF/services/net.sf.taverna.t2.workbench.configuration.ConfigurationUIFactory
deleted file mode 100644
index 6c9fed9..0000000
--- a/activity-palette-impl/src/main/resources/META-INF/services/net.sf.taverna.t2.workbench.configuration.ConfigurationUIFactory
+++ /dev/null
@@ -1 +0,0 @@
-#net.sf.taverna.t2.workbench.ui.activitypalette.ActivityPaletteConfigurationUIFactory
\ No newline at end of file

http://git-wip-us.apache.org/repos/asf/incubator-taverna-workbench/blob/72850d5a/activity-palette-impl/src/main/resources/META-INF/spring/activity-palette-impl-context-osgi.xml
----------------------------------------------------------------------
diff --git a/activity-palette-impl/src/main/resources/META-INF/spring/activity-palette-impl-context-osgi.xml b/activity-palette-impl/src/main/resources/META-INF/spring/activity-palette-impl-context-osgi.xml
deleted file mode 100644
index 34921f5..0000000
--- a/activity-palette-impl/src/main/resources/META-INF/spring/activity-palette-impl-context-osgi.xml
+++ /dev/null
@@ -1,17 +0,0 @@
-<?xml version="1.0" encoding="UTF-8"?>
-<beans:beans xmlns="http://www.springframework.org/schema/osgi" xmlns:xsi="http://www.w3.org/2001/XMLSchema-instance"
-	xmlns:beans="http://www.springframework.org/schema/beans"
-	xsi:schemaLocation="http://www.springframework.org/schema/beans
-                      http://www.springframework.org/schema/beans/spring-beans.xsd
-                      http://www.springframework.org/schema/osgi
-                      http://www.springframework.org/schema/osgi/spring-osgi.xsd">
-
-	<service ref="ServiceDescriptionRegistryImpl" interface="net.sf.taverna.t2.servicedescriptions.ServiceDescriptionRegistry"/>
-	<service ref="ServiceDescriptionsConfigurationImpl" interface="net.sf.taverna.t2.servicedescriptions.ServiceDescriptionsConfiguration"/>
-
-	<reference id="configurationManager" interface="uk.org.taverna.configuration.ConfigurationManager" />
-	<reference id="applicationConfiguration" interface="uk.org.taverna.configuration.app.ApplicationConfiguration" />
-
-	<list id="serviceDescriptionProviders" interface="net.sf.taverna.t2.servicedescriptions.ServiceDescriptionProvider" cardinality="0..N" greedy-proxying="true"/>
-
-</beans:beans>

http://git-wip-us.apache.org/repos/asf/incubator-taverna-workbench/blob/72850d5a/activity-palette-impl/src/main/resources/META-INF/spring/activity-palette-impl-context.xml
----------------------------------------------------------------------
diff --git a/activity-palette-impl/src/main/resources/META-INF/spring/activity-palette-impl-context.xml b/activity-palette-impl/src/main/resources/META-INF/spring/activity-palette-impl-context.xml
deleted file mode 100644
index 9f7110f..0000000
--- a/activity-palette-impl/src/main/resources/META-INF/spring/activity-palette-impl-context.xml
+++ /dev/null
@@ -1,23 +0,0 @@
-<?xml version="1.0" encoding="UTF-8"?>
-<beans xmlns="http://www.springframework.org/schema/beans" xmlns:xsi="http://www.w3.org/2001/XMLSchema-instance"
-	xsi:schemaLocation="http://www.springframework.org/schema/beans
-                      http://www.springframework.org/schema/beans/spring-beans.xsd">
-
-	<bean name="ServiceDescriptionRegistryImpl" class="net.sf.taverna.t2.servicedescriptions.impl.ServiceDescriptionRegistryImpl">
-		<constructor-arg name="applicationConfiguration" ref="applicationConfiguration" />
-		<property name="serviceDescriptionProvidersList" ref="serviceDescriptionProviders" />
-		<property name="serviceDescriptionsConfig">
-		 	<ref local="ServiceDescriptionsConfigurationImpl"/>
-		</property>
-	</bean>
-
-	<bean id="ServiceDescriptionsConfigurationImpl" class="net.sf.taverna.t2.servicedescriptions.impl.ServiceDescriptionsConfigurationImpl">
-		<constructor-arg ref="configurationManager"/>
-	</bean>
-
-	<!-- Don't think ActivityPalette is still used -->
-	<!-- <bean id="ActivityPaletteConfiguration" class="net.sf.taverna.t2.workbench.ui.activitypalette.ActivityPaletteConfiguration">
-		<constructor-arg ref="configurationManager"/>
-	</bean> -->
-
-</beans>

http://git-wip-us.apache.org/repos/asf/incubator-taverna-workbench/blob/72850d5a/activity-palette-impl/src/test/java/net/sf/taverna/t2/workbench/ui/activitypalette/ActivityPaletteConfigurationTest.java
----------------------------------------------------------------------
diff --git a/activity-palette-impl/src/test/java/net/sf/taverna/t2/workbench/ui/activitypalette/ActivityPaletteConfigurationTest.java b/activity-palette-impl/src/test/java/net/sf/taverna/t2/workbench/ui/activitypalette/ActivityPaletteConfigurationTest.java
deleted file mode 100644
index 081a9af..0000000
--- a/activity-palette-impl/src/test/java/net/sf/taverna/t2/workbench/ui/activitypalette/ActivityPaletteConfigurationTest.java
+++ /dev/null
@@ -1,97 +0,0 @@
-/*******************************************************************************
- * Copyright (C) 2007 The University of Manchester
- *
- *  Modifications to the initial code base are copyright of their
- *  respective authors, or their employers as appropriate.
- *
- *  This program is free software; you can redistribute it and/or
- *  modify it under the terms of the GNU Lesser General Public License
- *  as published by the Free Software Foundation; either version 2.1 of
- *  the License, or (at your option) any later version.
- *
- *  This program is distributed in the hope that it will be useful, but
- *  WITHOUT ANY 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 along with this program; if not, write to the Free Software
- *  Foundation, Inc., 59 Temple Place, Suite 330, Boston, MA 02111-1307
- ******************************************************************************/
-package net.sf.taverna.t2.workbench.ui.activitypalette;
-
-import static org.junit.Assert.assertEquals;
-import static org.junit.Assert.assertNull;
-import static org.junit.Assert.assertTrue;
-
-import java.io.File;
-import java.util.ArrayList;
-import java.util.List;
-import java.util.UUID;
-
-import org.junit.Before;
-import org.junit.Test;
-
-import uk.org.taverna.configuration.app.impl.ApplicationConfigurationImpl;
-import uk.org.taverna.configuration.impl.ConfigurationManagerImpl;
-
-public class ActivityPaletteConfigurationTest {
-
-	private ActivityPaletteConfiguration conf;
-	private ConfigurationManagerImpl manager;
-
-	@Before
-	public void setup() {
-		File f = new File(System.getProperty("java.io.tmpdir"));
-		final File d = new File(f,UUID.randomUUID().toString());
-		d.mkdir();
-		manager = new ConfigurationManagerImpl(new ApplicationConfigurationImpl() {
-			@Override
-			public File getApplicationHomeDir() {
-				return d;
-			}
-		});
-		conf=new ActivityPaletteConfiguration(manager);
-		conf.restoreDefaults();
-	}
-
-	@Test
-	public void testEmptyList() throws Exception {
-		conf.setPropertyStringList("list", new ArrayList<String>());
-		assertTrue("Result was not a list but was:"+conf.getProperty("list"),conf.getPropertyStringList("list") instanceof List);
-		assertTrue("Result was not a list but was:"+conf.getPropertyStringList("list"),conf.getPropertyStringList("list") instanceof List);
-		List<String> list = conf.getPropertyStringList("list");
-		assertEquals("There should be 0 elements",0,list.size());
-	}
-
-	@Test
-	public void testSingleItem() throws Exception {
-		List<String> list = new ArrayList<>();
-		list.add("fred");
-		conf.setPropertyStringList("single", list);
-
-		assertTrue("should be an ArrayList",conf.getPropertyStringList("single") instanceof List);
-		List<String> l = conf.getPropertyStringList("single");
-		assertEquals("There should be 1 element",1,l.size());
-		assertEquals("Its value should be fred","fred",l.get(0));
-	}
-
-	@Test
-	public void testList() throws Exception {
-		List<String> list = new ArrayList<>();
-		list.add("fred");
-		list.add("bloggs");
-		conf.setPropertyStringList("list", list);
-
-		assertTrue("should be an ArrayList",conf.getPropertyStringList("list") instanceof List);
-		List<String> l = conf.getPropertyStringList("list");
-		assertEquals("There should be 1 element",2,l.size());
-		assertEquals("Its value should be fred","fred",l.get(0));
-		assertEquals("Its value should be bloggs","bloggs",l.get(1));
-	}
-
-	@Test
-	public void testNull() throws Exception {
-		assertNull("Should return null",conf.getProperty("blah blah blah"));
-	}
-}

http://git-wip-us.apache.org/repos/asf/incubator-taverna-workbench/blob/72850d5a/activity-palette-impl/src/test/resources/META-INF/services/net.sf.taverna.t2.partition.PartitionAlgorithmSetSPI
----------------------------------------------------------------------
diff --git a/activity-palette-impl/src/test/resources/META-INF/services/net.sf.taverna.t2.partition.PartitionAlgorithmSetSPI b/activity-palette-impl/src/test/resources/META-INF/services/net.sf.taverna.t2.partition.PartitionAlgorithmSetSPI
deleted file mode 100644
index 9f3c02d..0000000
--- a/activity-palette-impl/src/test/resources/META-INF/services/net.sf.taverna.t2.partition.PartitionAlgorithmSetSPI
+++ /dev/null
@@ -1 +0,0 @@
-net.sf.taverna.t2.partition.DummyPartitionAlgorithmSet
\ No newline at end of file

http://git-wip-us.apache.org/repos/asf/incubator-taverna-workbench/blob/72850d5a/activity-palette-impl/src/test/resources/META-INF/services/net.sf.taverna.t2.partition.PropertyExtractorSPI
----------------------------------------------------------------------
diff --git a/activity-palette-impl/src/test/resources/META-INF/services/net.sf.taverna.t2.partition.PropertyExtractorSPI b/activity-palette-impl/src/test/resources/META-INF/services/net.sf.taverna.t2.partition.PropertyExtractorSPI
deleted file mode 100644
index f5e7226..0000000
--- a/activity-palette-impl/src/test/resources/META-INF/services/net.sf.taverna.t2.partition.PropertyExtractorSPI
+++ /dev/null
@@ -1,3 +0,0 @@
-net.sf.taverna.t2.partition.DummyExtractor1
-net.sf.taverna.t2.partition.DummyExtractor2
-net.sf.taverna.t2.partition.DummyExtractor3
\ No newline at end of file

http://git-wip-us.apache.org/repos/asf/incubator-taverna-workbench/blob/72850d5a/activity-palette-impl/src/test/resources/META-INF/services/net.sf.taverna.t2.partition.QueryFactory
----------------------------------------------------------------------
diff --git a/activity-palette-impl/src/test/resources/META-INF/services/net.sf.taverna.t2.partition.QueryFactory b/activity-palette-impl/src/test/resources/META-INF/services/net.sf.taverna.t2.partition.QueryFactory
deleted file mode 100644
index 2d26d31a..0000000
--- a/activity-palette-impl/src/test/resources/META-INF/services/net.sf.taverna.t2.partition.QueryFactory
+++ /dev/null
@@ -1,2 +0,0 @@
-net.sf.taverna.t2.partition.DummyActivityQueryFactory
-net.sf.taverna.t2.partition.DummyQueryFactory
\ No newline at end of file

http://git-wip-us.apache.org/repos/asf/incubator-taverna-workbench/blob/72850d5a/configuration-impl/pom.xml
----------------------------------------------------------------------
diff --git a/configuration-impl/pom.xml b/configuration-impl/pom.xml
deleted file mode 100644
index 19356bb..0000000
--- a/configuration-impl/pom.xml
+++ /dev/null
@@ -1,61 +0,0 @@
-<?xml version="1.0" encoding="UTF-8"?>
-<project xmlns="http://maven.apache.org/POM/4.0.0" xmlns:xsi="http://www.w3.org/2001/XMLSchema-instance" xsi:schemaLocation="http://maven.apache.org/POM/4.0.0 http://maven.apache.org/maven-v4_0_0.xsd">
-	<modelVersion>4.0.0</modelVersion>
-	<parent>
-		<groupId>net.sf.taverna.t2</groupId>
-		<artifactId>ui-impl</artifactId>
-		<version>2.0-SNAPSHOT</version>
-	</parent>
-	<groupId>net.sf.taverna.t2.ui-impl</groupId>
-	<artifactId>configuration-impl</artifactId>
-	<packaging>bundle</packaging>
-	<name>Configuration Management Implementations</name>
-	<description>General configuration management</description>
-
-	<dependencies>
-		<dependency>
-			<groupId>net.sf.taverna.t2.ui-api</groupId>
-			<artifactId>menu-api</artifactId>
-			<version>${t2.ui.api.version}</version>
-		</dependency>
-		<dependency>
-			<groupId>net.sf.taverna.t2.ui-api</groupId>
-			<artifactId>helper-api</artifactId>
-			<version>${t2.ui.api.version}</version>
-		</dependency>
-		<dependency>
-			<groupId>net.sf.taverna.t2.ui-api</groupId>
-			<artifactId>configuration-api</artifactId>
-			<version>${t2.ui.api.version}</version>
-		</dependency>
-		<dependency>
-			<groupId>uk.org.taverna.configuration</groupId>
-			<artifactId>taverna-configuration-api</artifactId>
-			<version>${taverna.configuration.version}</version>
-		</dependency>
-		<dependency>
-			<groupId>uk.org.taverna.configuration</groupId>
-			<artifactId>taverna-app-configuration-api</artifactId>
-			<version>${taverna.configuration.version}</version>
-		</dependency>
-
-		<dependency>
-			<groupId>junit</groupId>
-			<artifactId>junit</artifactId>
-			<scope>test</scope>
-		</dependency>
-		<dependency>
-			<groupId>uk.org.taverna.configuration</groupId>
-			<artifactId>taverna-configuration-impl</artifactId>
-			<version>0.1.1-SNAPSHOT</version>
-			<scope>test</scope>
-		</dependency>
-		<dependency>
-			<groupId>uk.org.taverna.configuration</groupId>
-			<artifactId>taverna-app-configuration-impl</artifactId>
-			<version>0.1.1-SNAPSHOT</version>
-			<scope>test</scope>
-		</dependency>
-	</dependencies>
-
-</project>

http://git-wip-us.apache.org/repos/asf/incubator-taverna-workbench/blob/72850d5a/configuration-impl/src/main/java/net/sf/taverna/t2/workbench/ui/impl/configuration/WorkbenchConfigurationImpl.java
----------------------------------------------------------------------
diff --git a/configuration-impl/src/main/java/net/sf/taverna/t2/workbench/ui/impl/configuration/WorkbenchConfigurationImpl.java b/configuration-impl/src/main/java/net/sf/taverna/t2/workbench/ui/impl/configuration/WorkbenchConfigurationImpl.java
deleted file mode 100644
index 0e63a4a..0000000
--- a/configuration-impl/src/main/java/net/sf/taverna/t2/workbench/ui/impl/configuration/WorkbenchConfigurationImpl.java
+++ /dev/null
@@ -1,210 +0,0 @@
-/*******************************************************************************
- * Copyright (C) 2007 The University of Manchester
- *
- *  Modifications to the initial code base are copyright of their
- *  respective authors, or their employers as appropriate.
- *
- *  This program is free software; you can redistribute it and/or
- *  modify it under the terms of the GNU Lesser General Public License
- *  as published by the Free Software Foundation; either version 2.1 of
- *  the License, or (at your option) any later version.
- *
- *  This program is distributed in the hope that it will be useful, but
- *  WITHOUT ANY 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 along with this program; if not, write to the Free Software
- *  Foundation, Inc., 59 Temple Place, Suite 330, Boston, MA 02111-1307
- ******************************************************************************/
-package net.sf.taverna.t2.workbench.ui.impl.configuration;
-
-import java.io.File;
-import java.util.HashMap;
-import java.util.Map;
-
-import net.sf.taverna.t2.workbench.configuration.workbench.WorkbenchConfiguration;
-
-import org.apache.log4j.Logger;
-
-import uk.org.taverna.configuration.AbstractConfigurable;
-import uk.org.taverna.configuration.ConfigurationManager;
-import uk.org.taverna.configuration.app.ApplicationConfiguration;
-
-/**
- * An implementation of Configurable for general Workbench configuration
- * properties
- * 
- * @author Stuart Owen
- * @author Stian Soiland-Reyes
- */
-public class WorkbenchConfigurationImpl extends AbstractConfigurable implements
-		WorkbenchConfiguration {
-	private static Logger logger = Logger
-			.getLogger(WorkbenchConfiguration.class);
-	private static final int DEFAULT_MAX_MENU_ITEMS = 20;
-	public static final String TAVERNA_DOTLOCATION = "taverna.dotlocation";
-	public static final String MAX_MENU_ITEMS = "taverna.maxmenuitems";
-	public static final String WARN_INTERNAL_ERRORS = "taverna.warninternal";
-	public static final String CAPTURE_CONSOLE = "taverna.captureconsole";
-	private static final String BIN = "bin";
-	private static final String BUNDLE_CONTENTS = "Contents";
-	private static final String BUNDLE_MAC_OS = "MacOS";
-	private static final String DOT_EXE = "dot.exe";
-	private static final String DOT_FALLBACK = "dot";
-	public static String uuid = "c14856f0-5967-11dd-ae16-0800200c9a66";
-	private static final String MAC_OS_X = "Mac OS X";
-	private static final String WIN32I386 = "win32i386";
-	private static final String WINDOWS = "Windows";
-
-	private ApplicationConfiguration applicationConfiguration;
-
-	/**
-	 * Constructs a new <code>WorkbenchConfigurationImpl</code>.
-	 * 
-	 * @param configurationManager
-	 */
-	public WorkbenchConfigurationImpl(ConfigurationManager configurationManager) {
-		super(configurationManager);
-	}
-
-	Map<String, String> defaultWorkbenchProperties = null;
-	Map<String, String> workbenchProperties = new HashMap<String, String>();
-
-	@Override
-	public String getCategory() {
-		return "general";
-	}
-
-	@Override
-	public Map<String, String> getDefaultPropertyMap() {
-		if (defaultWorkbenchProperties == null) {
-			defaultWorkbenchProperties = new HashMap<>();
-			String dotLocation = System.getProperty(TAVERNA_DOTLOCATION) != null ? System
-					.getProperty(TAVERNA_DOTLOCATION) : getDefaultDotLocation();
-			if (dotLocation != null)
-				defaultWorkbenchProperties
-						.put(TAVERNA_DOTLOCATION, dotLocation);
-			defaultWorkbenchProperties.put(MAX_MENU_ITEMS,
-					Integer.toString(DEFAULT_MAX_MENU_ITEMS));
-			defaultWorkbenchProperties.put(WARN_INTERNAL_ERRORS,
-					Boolean.FALSE.toString());
-			defaultWorkbenchProperties.put(CAPTURE_CONSOLE,
-					Boolean.TRUE.toString());
-		}
-		return defaultWorkbenchProperties;
-	}
-
-	@Override
-	public String getDisplayName() {
-		return "Workbench";
-	}
-
-	@Override
-	public String getFilePrefix() {
-		return "Workbench";
-	}
-
-	@Override
-	public String getUUID() {
-		return uuid;
-	}
-
-	@Override
-	public boolean getWarnInternalErrors() {
-		String property = getProperty(WARN_INTERNAL_ERRORS);
-		return Boolean.parseBoolean(property);
-	}
-
-	@Override
-	public boolean getCaptureConsole() {
-		String property = getProperty(CAPTURE_CONSOLE);
-		return Boolean.parseBoolean(property);
-	}
-
-	@Override
-	public void setWarnInternalErrors(boolean warnInternalErrors) {
-		setProperty(WARN_INTERNAL_ERRORS, Boolean.toString(warnInternalErrors));
-	}
-
-	@Override
-	public void setCaptureConsole(boolean captureConsole) {
-		setProperty(CAPTURE_CONSOLE, Boolean.toString(captureConsole));
-	}
-
-	@Override
-	public void setMaxMenuItems(int maxMenuItems) {
-		if (maxMenuItems < 2)
-			throw new IllegalArgumentException(
-					"Maximum menu items must be at least 2");
-		setProperty(MAX_MENU_ITEMS, Integer.toString(maxMenuItems));
-	}
-
-	@Override
-	public int getMaxMenuItems() {
-		String property = getProperty(MAX_MENU_ITEMS);
-		try {
-			int maxMenuItems = Integer.parseInt(property);
-			if (maxMenuItems >= 2)
-				return maxMenuItems;
-			logger.warn(MAX_MENU_ITEMS + " can't be less than 2");
-		} catch (NumberFormatException ex) {
-			logger.warn("Invalid number for " + MAX_MENU_ITEMS + ": "
-					+ property);
-		}
-		// We'll return the default instead
-		return DEFAULT_MAX_MENU_ITEMS;
-	}
-
-	@Override
-	public String getDotLocation() {
-		return getProperty(TAVERNA_DOTLOCATION);
-	}
-
-	@Override
-	public void setDotLocation(String dotLocation) {
-		setProperty(TAVERNA_DOTLOCATION, dotLocation);
-	}
-
-	private String getDefaultDotLocation() {
-		if (applicationConfiguration == null)
-			return null;
-		File startupDir = applicationConfiguration.getStartupDir();
-		if (startupDir == null)
-			return DOT_FALLBACK;
-
-		String os = System.getProperty("os.name");
-		if (os.equals(MAC_OS_X))
-			if (startupDir.getParentFile() != null) {
-				File contentsDir = startupDir.getParentFile().getParentFile();
-				if (contentsDir != null
-						&& contentsDir.getName().equalsIgnoreCase(
-								BUNDLE_CONTENTS)) {
-					File dot = new File(new File(contentsDir, BUNDLE_MAC_OS),
-							DOT_FALLBACK);
-					if (dot.exists())
-						return dot.getAbsolutePath();
-				}
-			} else if (os.startsWith(WINDOWS)) {
-				File binWin386Dir = new File(new File(startupDir, BIN),
-						WIN32I386);
-				File dot = new File(binWin386Dir, DOT_EXE);
-				if (dot.exists())
-					return dot.getAbsolutePath();
-			}
-		return DOT_FALLBACK;
-	}
-
-	/**
-	 * Sets the applicationConfiguration.
-	 * 
-	 * @param applicationConfiguration
-	 *            the new value of applicationConfiguration
-	 */
-	public void setApplicationConfiguration(
-			ApplicationConfiguration applicationConfiguration) {
-		this.applicationConfiguration = applicationConfiguration;
-		defaultWorkbenchProperties = null;
-	}
-}

http://git-wip-us.apache.org/repos/asf/incubator-taverna-workbench/blob/72850d5a/configuration-impl/src/main/java/net/sf/taverna/t2/workbench/ui/impl/configuration/WorkbenchConfigurationPanel.java
----------------------------------------------------------------------
diff --git a/configuration-impl/src/main/java/net/sf/taverna/t2/workbench/ui/impl/configuration/WorkbenchConfigurationPanel.java b/configuration-impl/src/main/java/net/sf/taverna/t2/workbench/ui/impl/configuration/WorkbenchConfigurationPanel.java
deleted file mode 100644
index ecddc35..0000000
--- a/configuration-impl/src/main/java/net/sf/taverna/t2/workbench/ui/impl/configuration/WorkbenchConfigurationPanel.java
+++ /dev/null
@@ -1,266 +0,0 @@
-/*******************************************************************************
- * Copyright (C) 2007 The University of Manchester
- *
- *  Modifications to the initial code base are copyright of their
- *  respective authors, or their employers as appropriate.
- *
- *  This program is free software; you can redistribute it and/or
- *  modify it under the terms of the GNU Lesser General Public License
- *  as published by the Free Software Foundation; either version 2.1 of
- *  the License, or (at your option) any later version.
- *
- *  This program is distributed in the hope that it will be useful, but
- *  WITHOUT ANY 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 along with this program; if not, write to the Free Software
- *  Foundation, Inc., 59 Temple Place, Suite 330, Boston, MA 02111-1307
- ******************************************************************************/
-package net.sf.taverna.t2.workbench.ui.impl.configuration;
-
-import static java.awt.GridBagConstraints.*;
-import static javax.swing.JFileChooser.APPROVE_OPTION;
-import static javax.swing.JOptionPane.INFORMATION_MESSAGE;
-import static javax.swing.JOptionPane.WARNING_MESSAGE;
-import static javax.swing.JOptionPane.showMessageDialog;
-import static net.sf.taverna.t2.workbench.helper.Helper.showHelp;
-import static net.sf.taverna.t2.workbench.icons.WorkbenchIcons.openIcon;
-
-import java.awt.Component;
-import java.awt.FlowLayout;
-import java.awt.GridBagConstraints;
-import java.awt.GridBagLayout;
-import java.awt.Insets;
-import java.awt.event.ActionEvent;
-
-import javax.swing.AbstractAction;
-import javax.swing.JButton;
-import javax.swing.JCheckBox;
-import javax.swing.JFileChooser;
-import javax.swing.JLabel;
-import javax.swing.JPanel;
-import javax.swing.JTextArea;
-import javax.swing.JTextField;
-import javax.swing.border.EmptyBorder;
-
-import net.sf.taverna.t2.workbench.configuration.workbench.WorkbenchConfiguration;
-
-import org.apache.log4j.Logger;
-
-@SuppressWarnings("serial")
-public class WorkbenchConfigurationPanel extends JPanel {
-	private static final String RESTART_MSG = "For the new configuration to be fully applied, it is advised to restart Taverna.";
-	private static final String DOT_PATH_MSG = "Path to Graphviz executable <code>dot</code>:";
-	private static final String CONTEXT_MENU_SIZE_MSG = "Maximum number of services/ports in right-click menu:";
-	private static Logger logger = Logger
-			.getLogger(WorkbenchConfigurationUIFactory.class);
-
-	private JTextField dotLocation = new JTextField(25);
-	private JTextField menuItems = new JTextField(10);
-	private JCheckBox warnInternal = new JCheckBox("Warn on internal errors");
-	private JCheckBox captureConsole = new JCheckBox(
-			"Capture output on stdout/stderr to log file");
-
-	private final WorkbenchConfiguration workbenchConfiguration;
-
-	public WorkbenchConfigurationPanel(
-			WorkbenchConfiguration workbenchConfiguration) {
-		super();
-		this.workbenchConfiguration = workbenchConfiguration;
-		initComponents();
-	}
-
-	private static JLabel htmlLabel(String html) {
-		return new JLabel("<html><body>" + html + "</body></html>");
-	}
-
-	private void initComponents() {
-		this.setLayout(new GridBagLayout());
-		GridBagConstraints gbc = new GridBagConstraints();
-
-		// Title describing what kind of settings we are configuring here
-		JTextArea descriptionText = new JTextArea(
-				"General Workbench configuration");
-		descriptionText.setLineWrap(true);
-		descriptionText.setWrapStyleWord(true);
-		descriptionText.setEditable(false);
-		descriptionText.setFocusable(false);
-		descriptionText.setBorder(new EmptyBorder(10, 10, 10, 10));
-		gbc.anchor = WEST;
-		gbc.gridx = 0;
-		gbc.gridy = 0;
-		gbc.gridwidth = 2;
-		gbc.weightx = 1.0;
-		gbc.weighty = 0.0;
-		gbc.fill = HORIZONTAL;
-		this.add(descriptionText, gbc);
-
-		gbc.gridx = 0;
-		gbc.gridy = 1;
-		gbc.gridwidth = 2;
-		gbc.weightx = 0.0;
-		gbc.weighty = 0.0;
-		gbc.insets = new Insets(10, 5, 0, 0);
-		gbc.fill = NONE;
-		this.add(htmlLabel(DOT_PATH_MSG), gbc);
-
-		dotLocation.setText(workbenchConfiguration.getDotLocation());
-		gbc.gridy++;
-		gbc.gridwidth = 1;
-		gbc.weightx = 1.0;
-		gbc.insets = new Insets(0, 0, 0, 0);
-		gbc.fill = HORIZONTAL;
-		this.add(dotLocation, gbc);
-
-		JButton browseButton = new JButton();
-		gbc.gridx = 1;
-		gbc.weightx = 0.0;
-		gbc.fill = NONE;
-		this.add(browseButton, gbc);
-		browseButton.setAction(new AbstractAction() {
-			@Override
-			public void actionPerformed(ActionEvent e) {
-				System.setProperty("com.apple.macos.use-file-dialog-packages",
-						"false");
-				JFileChooser fileChooser = new JFileChooser();
-				fileChooser.putClientProperty(
-						"JFileChooser.appBundleIsTraversable", "always");
-				fileChooser.putClientProperty(
-						"JFileChooser.packageIsTraversable", "always");
-
-				fileChooser.setDialogTitle("Browse for dot");
-
-				fileChooser.resetChoosableFileFilters();
-				fileChooser.setAcceptAllFileFilterUsed(false);
-
-				fileChooser.setMultiSelectionEnabled(false);
-
-				int returnVal = fileChooser
-						.showOpenDialog(WorkbenchConfigurationPanel.this);
-				if (returnVal == APPROVE_OPTION)
-					dotLocation.setText(fileChooser.getSelectedFile()
-							.getAbsolutePath());
-			}
-		});
-		browseButton.setIcon(openIcon);
-
-		gbc.gridx = 0;
-		gbc.gridy++;
-		gbc.gridwidth = 2;
-		gbc.weightx = 0.0;
-		gbc.weighty = 0.0;
-		gbc.insets = new Insets(10, 5, 0, 0);
-		gbc.fill = HORIZONTAL;
-		this.add(htmlLabel(CONTEXT_MENU_SIZE_MSG), gbc);
-
-		menuItems.setText(Integer.toString(workbenchConfiguration
-				.getMaxMenuItems()));
-		gbc.gridy++;
-		gbc.weightx = 1.0;
-		gbc.gridwidth = 1;
-		gbc.insets = new Insets(0, 0, 0, 0);
-		gbc.fill = HORIZONTAL;
-		this.add(menuItems, gbc);
-
-		gbc.gridx = 0;
-		gbc.gridy++;
-		gbc.gridwidth = 2;
-		gbc.weightx = 1.0;
-		gbc.fill = HORIZONTAL;
-		gbc.insets = new Insets(10, 0, 0, 0);
-		warnInternal
-				.setSelected(workbenchConfiguration.getWarnInternalErrors());
-		this.add(warnInternal, gbc);
-
-		gbc.gridy++;
-		gbc.insets = new Insets(0, 0, 10, 0);
-		captureConsole.setSelected(workbenchConfiguration.getCaptureConsole());
-		this.add(captureConsole, gbc);
-
-		// Add the buttons panel
-		gbc.gridx = 0;
-		gbc.gridy++;
-		gbc.gridwidth = 3;
-		gbc.weightx = 1.0;
-		gbc.weighty = 1.0;
-		gbc.fill = BOTH;
-		gbc.anchor = SOUTH;
-		this.add(getButtonsPanel(), gbc);
-	}
-
-	private Component getButtonsPanel() {
-		final JPanel panel = new JPanel();
-		panel.setLayout(new FlowLayout(FlowLayout.CENTER));
-
-		/**
-		 * The helpButton shows help about the current component
-		 */
-		JButton helpButton = new JButton(new AbstractAction("Help") {
-			@Override
-			public void actionPerformed(ActionEvent arg0) {
-				showHelp(panel);
-			}
-		});
-		panel.add(helpButton);
-
-		/**
-		 * The resetButton changes the property values shown to those
-		 * corresponding to the configuration currently applied.
-		 */
-		JButton resetButton = new JButton(new AbstractAction("Reset") {
-			@Override
-			public void actionPerformed(ActionEvent arg0) {
-				resetFields();
-			}
-		});
-		panel.add(resetButton);
-
-		JButton applyButton = new JButton(new AbstractAction("Apply") {
-			@Override
-			public void actionPerformed(ActionEvent arg0) {
-				String menus = menuItems.getText();
-				try {
-					workbenchConfiguration.setMaxMenuItems(Integer
-							.valueOf(menus));
-				} catch (IllegalArgumentException e) {
-					String message = "Invalid menu items number " + menus
-							+ ":\n" + e.getLocalizedMessage();
-					showMessageDialog(panel, message, "Invalid menu items",
-							WARNING_MESSAGE);
-					return;
-				}
-
-				workbenchConfiguration.setCaptureConsole(captureConsole
-						.isSelected());
-				workbenchConfiguration.setWarnInternalErrors(warnInternal
-						.isSelected());
-				workbenchConfiguration.setDotLocation(dotLocation.getText());
-				try {
-					showMessageDialog(panel, RESTART_MSG, "Restart adviced",
-							INFORMATION_MESSAGE);
-				} catch (Exception e) {
-					logger.error("Error storing updated configuration", e);
-				}
-			}
-		});
-		panel.add(applyButton);
-		return panel;
-	}
-
-	/**
-	 * Resets the shown field values to those currently set (last saved) in the
-	 * configuration.
-	 * 
-	 * @param configurable
-	 */
-	private void resetFields() {
-		menuItems.setText(Integer.toString(workbenchConfiguration
-				.getMaxMenuItems()));
-		dotLocation.setText(workbenchConfiguration.getDotLocation());
-		warnInternal
-				.setSelected(workbenchConfiguration.getWarnInternalErrors());
-		captureConsole.setSelected(workbenchConfiguration.getCaptureConsole());
-	}
-}

http://git-wip-us.apache.org/repos/asf/incubator-taverna-workbench/blob/72850d5a/configuration-impl/src/main/java/net/sf/taverna/t2/workbench/ui/impl/configuration/WorkbenchConfigurationUIFactory.java
----------------------------------------------------------------------
diff --git a/configuration-impl/src/main/java/net/sf/taverna/t2/workbench/ui/impl/configuration/WorkbenchConfigurationUIFactory.java b/configuration-impl/src/main/java/net/sf/taverna/t2/workbench/ui/impl/configuration/WorkbenchConfigurationUIFactory.java
deleted file mode 100644
index 263233f..0000000
--- a/configuration-impl/src/main/java/net/sf/taverna/t2/workbench/ui/impl/configuration/WorkbenchConfigurationUIFactory.java
+++ /dev/null
@@ -1,52 +0,0 @@
-/*******************************************************************************
- * Copyright (C) 2007 The University of Manchester
- *
- *  Modifications to the initial code base are copyright of their
- *  respective authors, or their employers as appropriate.
- *
- *  This program is free software; you can redistribute it and/or
- *  modify it under the terms of the GNU Lesser General Public License
- *  as published by the Free Software Foundation; either version 2.1 of
- *  the License, or (at your option) any later version.
- *
- *  This program is distributed in the hope that it will be useful, but
- *  WITHOUT ANY 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 along with this program; if not, write to the Free Software
- *  Foundation, Inc., 59 Temple Place, Suite 330, Boston, MA 02111-1307
- ******************************************************************************/
-package net.sf.taverna.t2.workbench.ui.impl.configuration;
-
-import javax.swing.JPanel;
-
-import uk.org.taverna.configuration.Configurable;
-import uk.org.taverna.configuration.ConfigurationUIFactory;
-
-import net.sf.taverna.t2.workbench.configuration.workbench.WorkbenchConfiguration;
-
-public class WorkbenchConfigurationUIFactory implements ConfigurationUIFactory {
-	private WorkbenchConfiguration workbenchConfiguration;
-
-	@Override
-	public boolean canHandle(String uuid) {
-		return uuid.equals(workbenchConfiguration.getUUID());
-	}
-
-	@Override
-	public JPanel getConfigurationPanel() {
-		return new WorkbenchConfigurationPanel(workbenchConfiguration);
-	}
-
-	@Override
-	public Configurable getConfigurable() {
-		return workbenchConfiguration;
-	}
-
-	public void setWorkbenchConfiguration(
-			WorkbenchConfiguration workbenchConfiguration) {
-		this.workbenchConfiguration = workbenchConfiguration;
-	}
-}

http://git-wip-us.apache.org/repos/asf/incubator-taverna-workbench/blob/72850d5a/configuration-impl/src/main/java/net/sf/taverna/t2/workbench/ui/impl/configuration/colour/ColourManagerImpl.java
----------------------------------------------------------------------
diff --git a/configuration-impl/src/main/java/net/sf/taverna/t2/workbench/ui/impl/configuration/colour/ColourManagerImpl.java b/configuration-impl/src/main/java/net/sf/taverna/t2/workbench/ui/impl/configuration/colour/ColourManagerImpl.java
deleted file mode 100644
index 4c03dbe..0000000
--- a/configuration-impl/src/main/java/net/sf/taverna/t2/workbench/ui/impl/configuration/colour/ColourManagerImpl.java
+++ /dev/null
@@ -1,178 +0,0 @@
-/*******************************************************************************
- * Copyright (C) 2007 The University of Manchester
- *
- *  Modifications to the initial code base are copyright of their
- *  respective authors, or their employers as appropriate.
- *
- *  This program is free software; you can redistribute it and/or
- *  modify it under the terms of the GNU Lesser General Public License
- *  as published by the Free Software Foundation; either version 2.1 of
- *  the License, or (at your option) any later version.
- *
- *  This program is distributed in the hope that it will be useful, but
- *  WITHOUT ANY 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 along with this program; if not, write to the Free Software
- *  Foundation, Inc., 59 Temple Place, Suite 330, Boston, MA 02111-1307
- ******************************************************************************/
-package net.sf.taverna.t2.workbench.ui.impl.configuration.colour;
-
-import static java.awt.Color.WHITE;
-import static java.awt.Color.decode;
-
-import java.awt.Color;
-import java.util.HashMap;
-import java.util.Map;
-
-import uk.org.taverna.configuration.AbstractConfigurable;
-import uk.org.taverna.configuration.ConfigurationManager;
-import net.sf.taverna.t2.workbench.configuration.colour.ColourManager;
-
-/**
- * A factory class that determines the colour that a Colourable UI component
- * should be displayed as, according to a schema configured by the user.
- * 
- * @author Stuart Owen
- * @author Ian Dunlop
- * @see Colourable
- */
-public class ColourManagerImpl extends AbstractConfigurable implements
-		ColourManager {
-	// Names of things that may be coloured
-	private static final String WORKFLOW_PORT_OBJECT = "uk.org.taverna.scufl2.api.port.WorkflowPort";
-	private static final String PROCESSOR_PORT_OBJECT = "uk.org.taverna.scufl2.api.port.ProcessorPort";
-	private static final String PROCESSOR_OBJECT = "uk.org.taverna.scufl2.api.core.Processor";
-	private static final String MERGE_OBJECT = "net.sf.taverna.t2.workflowmodel.Merge";
-	private static final String NONEXECUTABLE_ACTIVITY = "http://ns.taverna.org.uk/2010/activity/nonExecutable";
-	private static final String XML_SPLITTER_OUT_ACTIVITY = "http://ns.taverna.org.uk/2010/activity/xml-splitter/out";
-	private static final String XML_SPLITTER_IN_ACTIVITY = "http://ns.taverna.org.uk/2010/activity/xml-splitter/in";
-	private static final String LOCALWORKER_ACTIVITY = "http://ns.taverna.org.uk/2010/activity/localworker";
-	private static final String WSDL_ACTIVITY = "http://ns.taverna.org.uk/2010/activity/wsdl";
-	private static final String CONSTANT_ACTIVITY = "http://ns.taverna.org.uk/2010/activity/constant";
-	private static final String SOAPLAB_ACTIVITY = "http://ns.taverna.org.uk/2010/activity/soaplab";
-	private static final String RSHELL_ACTIVITY = "http://ns.taverna.org.uk/2010/activity/rshell";
-	private static final String NESTED_WORKFLOW = "http://ns.taverna.org.uk/2010/activity/nested-workflow";
-	private static final String MOBY_PARSER_ACTIVITY = "http://ns.taverna.org.uk/2010/activity/biomoby/parser";
-	private static final String MOBY_OBJECT_ACTIVITY = "http://ns.taverna.org.uk/2010/activity/biomoby/object";
-	private static final String MOBY_SERVICE_ACTIVITY = "http://ns.taverna.org.uk/2010/activity/biomoby/service";
-	private static final String BIOMART_ACTIVITY = "http://ns.taverna.org.uk/2010/activity/biomart";
-	private static final String BEANSHELL_ACTIVITY = "http://ns.taverna.org.uk/2010/activity/beanshell";
-	private static final String APICONSUMER_ACTIVITY = "http://ns.taverna.org.uk/2010/activity/apiconsumer";
-
-	// Names of colours used
-	private static final String burlywood2 = "#deb887";
-	private static final String darkgoldenrod1 = "#ffb90f";
-	private static final String darkolivegreen3 = "#a2cd5a";
-	private static final String gold = "#ffd700";
-	private static final String grey = "#777777";
-	private static final String lightcyan2 = "#d1eeee";
-	private static final String lightgoldenrodyellow = "#fafad2";
-	// light purple non standard
-	private static final String lightpurple = "#ab92ea";
-	private static final String lightsteelblue = "#b0c4de";
-	private static final String mediumorchid2 = "#d15fee";
-	private static final String palegreen = "#98fb98";
-	private static final String pink = "#ffc0cb";
-	private static final String purplish = "#8070ff";
-	// ShadedLabel.Orange
-	private static final String shadedorange = "#eece8f";
-	// ShadedLabel.Green
-	private static final String shadedgreen = "#a1c69d";
-	// slightly lighter than the real steelblue4
-	private static final String steelblue4 = "#648faa";
-	private static final String turquoise = "#77aadd";
-	private static final String white = "#ffffff";
-
-	private Map<String, String> defaultPropertyMap;
-	private Map<Object, Color> cachedColours;
-
-	public ColourManagerImpl(ConfigurationManager configurationManager) {
-		super(configurationManager);
-		initialiseDefaults();
-	}
-
-	@Override
-	public String getCategory() {
-		return "colour";
-	}
-
-	@Override
-	public Map<String, String> getDefaultPropertyMap() {
-		if (defaultPropertyMap == null)
-			initialiseDefaults();
-		return defaultPropertyMap;
-	}
-
-	@Override
-	public String getDisplayName() {
-		return "Colour Management";
-	}
-
-	@Override
-	public String getFilePrefix() {
-		return "ColourManagement";
-	}
-
-	/**
-	 * Unique identifier for this ColourManager
-	 */
-	@Override
-	public String getUUID() {
-		return "a2148420-5967-11dd-ae16-0800200c9a66";
-	}
-
-	private void initialiseDefaults() {
-		defaultPropertyMap = new HashMap<>();
-		cachedColours = new HashMap<>();
-
-		defaultPropertyMap.put(APICONSUMER_ACTIVITY, palegreen);
-		defaultPropertyMap.put(BEANSHELL_ACTIVITY, burlywood2);
-		defaultPropertyMap.put(BIOMART_ACTIVITY, lightcyan2);
-		defaultPropertyMap.put(CONSTANT_ACTIVITY, lightsteelblue);
-		defaultPropertyMap.put(LOCALWORKER_ACTIVITY, mediumorchid2);
-		defaultPropertyMap.put(MOBY_SERVICE_ACTIVITY, darkgoldenrod1);
-		defaultPropertyMap.put(MOBY_OBJECT_ACTIVITY, gold);
-		defaultPropertyMap.put(MOBY_PARSER_ACTIVITY, white);
-		defaultPropertyMap.put(NESTED_WORKFLOW, pink);
-		defaultPropertyMap.put(RSHELL_ACTIVITY, steelblue4);
-		defaultPropertyMap.put(SOAPLAB_ACTIVITY, lightgoldenrodyellow);
-		defaultPropertyMap.put(WSDL_ACTIVITY, darkolivegreen3);
-		defaultPropertyMap.put(XML_SPLITTER_IN_ACTIVITY, lightpurple);
-		defaultPropertyMap.put(XML_SPLITTER_OUT_ACTIVITY, lightpurple);
-
-		defaultPropertyMap.put(NONEXECUTABLE_ACTIVITY, grey);
-
-		defaultPropertyMap.put(MERGE_OBJECT, turquoise);
-		defaultPropertyMap.put(PROCESSOR_OBJECT, shadedgreen);
-		defaultPropertyMap.put(PROCESSOR_PORT_OBJECT, purplish);
-		defaultPropertyMap.put(WORKFLOW_PORT_OBJECT, shadedorange);
-	}
-
-	@Override
-	public Color getPreferredColour(String itemKey) {
-		Color colour = cachedColours.get(itemKey);
-		if (colour == null) {
-			String colourString = (String) getProperty(itemKey);
-			colour = colourString == null ? WHITE : decode(colourString);
-			cachedColours.put(itemKey, colour);
-		}
-		return colour;
-	}
-
-	@Override
-	public void setPreferredColour(String itemKey, Color colour) {
-		cachedColours.put(itemKey, colour);
-	}
-
-	@Override
-	public void restoreDefaults() {
-		super.restoreDefaults();
-		if (cachedColours == null)
-			cachedColours = new HashMap<>();
-		else
-			cachedColours.clear();
-	}
-}

http://git-wip-us.apache.org/repos/asf/incubator-taverna-workbench/blob/72850d5a/configuration-impl/src/main/java/net/sf/taverna/t2/workbench/ui/impl/configuration/mimetype/MimeTypeManagerImpl.java
----------------------------------------------------------------------
diff --git a/configuration-impl/src/main/java/net/sf/taverna/t2/workbench/ui/impl/configuration/mimetype/MimeTypeManagerImpl.java b/configuration-impl/src/main/java/net/sf/taverna/t2/workbench/ui/impl/configuration/mimetype/MimeTypeManagerImpl.java
deleted file mode 100644
index 0ff6c65..0000000
--- a/configuration-impl/src/main/java/net/sf/taverna/t2/workbench/ui/impl/configuration/mimetype/MimeTypeManagerImpl.java
+++ /dev/null
@@ -1,82 +0,0 @@
-/*******************************************************************************
- * Copyright (C) 2007 The University of Manchester
- *
- *  Modifications to the initial code base are copyright of their
- *  respective authors, or their employers as appropriate.
- *
- *  This program is free software; you can redistribute it and/or
- *  modify it under the terms of the GNU Lesser General Public License
- *  as published by the Free Software Foundation; either version 2.1 of
- *  the License, or (at your option) any later version.
- *
- *  This program is distributed in the hope that it will be useful, but
- *  WITHOUT ANY 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 along with this program; if not, write to the Free Software
- *  Foundation, Inc., 59 Temple Place, Suite 330, Boston, MA 02111-1307
- ******************************************************************************/
-package net.sf.taverna.t2.workbench.ui.impl.configuration.mimetype;
-
-import java.util.HashMap;
-import java.util.Map;
-
-import net.sf.taverna.t2.workbench.configuration.mimetype.MimeTypeManager;
-import uk.org.taverna.configuration.AbstractConfigurable;
-import uk.org.taverna.configuration.ConfigurationManager;
-
-public class MimeTypeManagerImpl extends AbstractConfigurable implements
-		MimeTypeManager {
-	/**
-	 * Constructs a new <code>MimeTypeManagerImpl</code>.
-	 * 
-	 * @param configurationManager
-	 */
-	public MimeTypeManagerImpl(ConfigurationManager configurationManager) {
-		super(configurationManager);
-	}
-
-	@Override
-	public String getCategory() {
-		return "Mime Type";
-	}
-
-	@Override
-	public Map<String, String> getDefaultPropertyMap() {
-		HashMap<String, String> map = new HashMap<>();
-		map.put("text/plain", "Plain Text");
-		map.put("text/xml", "XML Text");
-		map.put("text/html", "HTML Text");
-		map.put("text/rtf", "Rich Text Format");
-		map.put("text/x-graphviz", "Graphviz Dot File");
-		map.put("image/png", "PNG Image");
-		map.put("image/jpeg", "JPEG Image");
-		map.put("image/gif", "GIF Image");
-		map.put("application/octet-stream", "Binary Data");
-		map.put("application/zip", "Zip File");
-		map.put("chemical/x-swissprot", "SWISSPROT Flat File");
-		map.put("chemical/x-embl-dl-nucleotide", "EMBL Flat File");
-		map.put("chemical/x-ppd", "PPD File");
-		map.put("chemical/seq-aa-genpept", "Genpept Protein");
-		map.put("chemical/seq-na-genbank", "Genbank Nucleotide");
-		map.put("chemical/x-pdb", "PDB 3D Structure File");
-		return map;
-	}
-
-	@Override
-	public String getUUID() {
-		return "b9277fa0-5967-11dd-ae16-0800200c9a66";
-	}
-
-	@Override
-	public String getDisplayName() {
-		return "Mime Type Manager";
-	}
-
-	@Override
-	public String getFilePrefix() {
-		return "MimeTypeManagerImpl";
-	}
-}

http://git-wip-us.apache.org/repos/asf/incubator-taverna-workbench/blob/72850d5a/configuration-impl/src/main/java/net/sf/taverna/t2/workbench/ui/impl/configuration/ui/T2ConfigurationFrameImpl.java
----------------------------------------------------------------------
diff --git a/configuration-impl/src/main/java/net/sf/taverna/t2/workbench/ui/impl/configuration/ui/T2ConfigurationFrameImpl.java b/configuration-impl/src/main/java/net/sf/taverna/t2/workbench/ui/impl/configuration/ui/T2ConfigurationFrameImpl.java
deleted file mode 100644
index 4910f78..0000000
--- a/configuration-impl/src/main/java/net/sf/taverna/t2/workbench/ui/impl/configuration/ui/T2ConfigurationFrameImpl.java
+++ /dev/null
@@ -1,205 +0,0 @@
-/*******************************************************************************
- * Copyright (C) 2007 The University of Manchester
- *
- *  Modifications to the initial code base are copyright of their
- *  respective authors, or their employers as appropriate.
- *
- *  This program is free software; you can redistribute it and/or
- *  modify it under the terms of the GNU Lesser General Public License
- *  as published by the Free Software Foundation; either version 2.1 of
- *  the License, or (at your option) any later version.
- *
- *  This program is distributed in the hope that it will be useful, but
- *  WITHOUT ANY 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 along with this program; if not, write to the Free Software
- *  Foundation, Inc., 59 Temple Place, Suite 330, Boston, MA 02111-1307
- ******************************************************************************/
-package net.sf.taverna.t2.workbench.ui.impl.configuration.ui;
-
-import static javax.swing.JSplitPane.HORIZONTAL_SPLIT;
-import static net.sf.taverna.t2.workbench.helper.HelpCollator.registerComponent;
-import static net.sf.taverna.t2.workbench.helper.Helper.setKeyCatcher;
-
-import java.awt.BorderLayout;
-import java.awt.Dimension;
-import java.util.ArrayList;
-import java.util.Arrays;
-import java.util.Comparator;
-import java.util.List;
-import java.util.Map;
-
-import javax.swing.JFrame;
-import javax.swing.JList;
-import javax.swing.JPanel;
-import javax.swing.JScrollPane;
-import javax.swing.JSplitPane;
-import javax.swing.ListModel;
-import javax.swing.border.EmptyBorder;
-import javax.swing.event.ListSelectionEvent;
-import javax.swing.event.ListSelectionListener;
-
-import net.sf.taverna.t2.workbench.configuration.workbench.ui.T2ConfigurationFrame;
-
-import org.apache.log4j.Logger;
-
-import uk.org.taverna.configuration.ConfigurationUIFactory;
-
-public class T2ConfigurationFrameImpl implements T2ConfigurationFrame {
-	private static Logger logger = Logger.getLogger(T2ConfigurationFrameImpl.class);
-	private static final int FRAME_WIDTH = 700;
-	private static final int FRAME_HEIGHT = 450;
-
-	private List<ConfigurationUIFactory> configurationUIFactories = new ArrayList<>();
-
-	private JFrame frame;
-	private JSplitPane splitPane;
-	private JList<ConfigurableItem> list;
-
-	public T2ConfigurationFrameImpl() {
-	}
-
-	@Override
-	public void showFrame() {
-		getFrame().setVisible(true);
-	}
-
-	@Override
-	public void showConfiguration(String name) {
-		showFrame();
-		ListModel<ConfigurableItem> lm = list.getModel();
-		for (int i = 0; i < lm.getSize(); i++)
-			if (lm.getElementAt(i).toString().equals(name)) {
-				list.setSelectedIndex(i);
-				break;
-			}
-	}
-
-	private JFrame getFrame() {
-		if (frame != null)
-			return frame;
-
-		frame = new JFrame();
-		setKeyCatcher(frame);
-		registerComponent(frame);
-		frame.setLayout(new BorderLayout());
-
-		/*
-		 * Split pane to hold list of properties (on the left) and their
-		 * configurable options (on the right)
-		 */
-		splitPane = new JSplitPane(HORIZONTAL_SPLIT);
-		splitPane.setBorder(null);
-
-		list = getConfigurationList();
-		JScrollPane jspList = new JScrollPane(list);
-		jspList.setBorder(new EmptyBorder(5, 5, 5, 5));
-		jspList.setMinimumSize(new Dimension(150,
-				jspList.getPreferredSize().height));
-
-		splitPane.setLeftComponent(jspList);
-		splitPane.setRightComponent(new JPanel());
-		splitPane.setDividerSize(1);
-
-		// select first item if one exists
-		if (list.getModel().getSize() > 0)
-			list.setSelectedValue(list.getModel().getElementAt(0), true);
-
-		frame.add(splitPane);
-		frame.setSize(new Dimension(FRAME_WIDTH, FRAME_HEIGHT));
-		return frame;
-	}
-
-	private JList<ConfigurableItem> getConfigurationList() {
-		if (list != null)
-			return list;
-
-		list = new JList<>();
-		list.addListSelectionListener(new ListSelectionListener() {
-			@Override
-			public void valueChanged(ListSelectionEvent e) {
-				if (list.getSelectedValue() instanceof ConfigurableItem) {
-					ConfigurableItem item = (ConfigurableItem) list
-							.getSelectedValue();
-					setMainPanel(item.getPanel());
-				}
-
-				/*
-				 * Keep the split pane's divider at its current position - but
-				 * looks ugly. The problem with divider moving from its current
-				 * position after selecting an item from the list on the left is
-				 * that the right hand side panels are loaded dynamically and it
-				 * seems there is nothing we can do about it - it's just the
-				 * JSplitPane's behaviour
-				 */
-				// splitPane.setDividerLocation(splitPane.getLastDividerLocation());
-			}
-		});
-		list.setListData(getListItems());
-		return list;
-	}
-
-	private void setMainPanel(JPanel panel) {
-		panel.setBorder(new EmptyBorder(15, 15, 15, 15));
-		splitPane.setRightComponent(panel);
-	}
-
-	public void setConfigurationUIFactories(
-			List<ConfigurationUIFactory> configurationUIFactories) {
-		this.configurationUIFactories = configurationUIFactories;
-	}
-
-	private ConfigurableItem[] getListItems() {
-		List<ConfigurableItem> arrayList = new ArrayList<>();
-		for (ConfigurationUIFactory fac : configurationUIFactories) {
-			String name = fac.getConfigurable().getDisplayName();
-			if (name != null) {
-				logger.info("Adding configurable for name: " + name);
-				arrayList.add(new ConfigurableItem(fac));
-			} else {
-				logger.warn("The configurable " + fac.getConfigurable().getClass()
-						+ " has a null name");
-			}
-		}
-		// Sort the list alphabetically
-		ConfigurableItem[] array = arrayList.toArray(new ConfigurableItem[0]);
-		Arrays.sort(array, new Comparator<ConfigurableItem>() {
-			@Override
-			public int compare(ConfigurableItem item1, ConfigurableItem item2) {
-				return item1.toString().compareToIgnoreCase(item2.toString());
-			}
-		});
-		return array;
-	}
-
-	public void update(Object service, Map<?, ?> properties) {
-		getConfigurationList().setListData(getListItems());
-		if (frame != null) {
-			frame.revalidate();
-			frame.repaint();
-			// select first item if one exists
-			if (list.getModel().getSize() > 0)
-				list.setSelectedValue(list.getModel().getElementAt(0), true);
-		}
-	}
-
-	class ConfigurableItem {
-		private final ConfigurationUIFactory factory;
-
-		public ConfigurableItem(ConfigurationUIFactory factory) {
-			this.factory = factory;
-		}
-
-		public JPanel getPanel() {
-			return factory.getConfigurationPanel();
-		}
-
-		@Override
-		public String toString() {
-			return factory.getConfigurable().getDisplayName();
-		}
-	}
-}

http://git-wip-us.apache.org/repos/asf/incubator-taverna-workbench/blob/72850d5a/configuration-impl/src/main/java/net/sf/taverna/t2/workbench/ui/impl/configuration/ui/WorkbenchConfigurationMenu.java
----------------------------------------------------------------------
diff --git a/configuration-impl/src/main/java/net/sf/taverna/t2/workbench/ui/impl/configuration/ui/WorkbenchConfigurationMenu.java b/configuration-impl/src/main/java/net/sf/taverna/t2/workbench/ui/impl/configuration/ui/WorkbenchConfigurationMenu.java
deleted file mode 100644
index 453f0c0..0000000
--- a/configuration-impl/src/main/java/net/sf/taverna/t2/workbench/ui/impl/configuration/ui/WorkbenchConfigurationMenu.java
+++ /dev/null
@@ -1,61 +0,0 @@
-/*******************************************************************************
- * Copyright (C) 2007 The University of Manchester
- *
- *  Modifications to the initial code base are copyright of their
- *  respective authors, or their employers as appropriate.
- *
- *  This program is free software; you can redistribute it and/or
- *  modify it under the terms of the GNU Lesser General Public License
- *  as published by the Free Software Foundation; either version 2.1 of
- *  the License, or (at your option) any later version.
- *
- *  This program is distributed in the hope that it will be useful, but
- *  WITHOUT ANY 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 along with this program; if not, write to the Free Software
- *  Foundation, Inc., 59 Temple Place, Suite 330, Boston, MA 02111-1307
- ******************************************************************************/
-package net.sf.taverna.t2.workbench.ui.impl.configuration.ui;
-
-import java.awt.event.ActionEvent;
-import java.net.URI;
-
-import javax.swing.AbstractAction;
-import javax.swing.Action;
-
-import net.sf.taverna.t2.ui.menu.AbstractMenuAction;
-import net.sf.taverna.t2.workbench.configuration.workbench.ui.T2ConfigurationFrame;
-
-public class WorkbenchConfigurationMenu extends AbstractMenuAction {
-	private static final String MAC_OS_X = "Mac OS X";
-
-	private T2ConfigurationFrame t2ConfigurationFrame;
-
-	public WorkbenchConfigurationMenu() {
-		super(URI.create("http://taverna.sf.net/2008/t2workbench/menu#preferences"),
-				100);
-	}
-
-	@SuppressWarnings("serial")
-	@Override
-	protected Action createAction() {
-		return new AbstractAction("Preferences") {
-			@Override
-			public void actionPerformed(ActionEvent event) {
-				t2ConfigurationFrame.showFrame();
-			}
-		};
-	}
-
-	@Override
-	public boolean isEnabled() {
-		return !MAC_OS_X.equalsIgnoreCase(System.getProperty("os.name"));
-	}
-
-	public void setT2ConfigurationFrame(T2ConfigurationFrame t2ConfigurationFrame) {
-		this.t2ConfigurationFrame = t2ConfigurationFrame;
-	}
-}

http://git-wip-us.apache.org/repos/asf/incubator-taverna-workbench/blob/72850d5a/configuration-impl/src/main/java/net/sf/taverna/t2/workbench/ui/impl/configuration/ui/WorkbenchPreferencesSection.java
----------------------------------------------------------------------
diff --git a/configuration-impl/src/main/java/net/sf/taverna/t2/workbench/ui/impl/configuration/ui/WorkbenchPreferencesSection.java b/configuration-impl/src/main/java/net/sf/taverna/t2/workbench/ui/impl/configuration/ui/WorkbenchPreferencesSection.java
deleted file mode 100644
index d131ac3..0000000
--- a/configuration-impl/src/main/java/net/sf/taverna/t2/workbench/ui/impl/configuration/ui/WorkbenchPreferencesSection.java
+++ /dev/null
@@ -1,36 +0,0 @@
-/*******************************************************************************
- * Copyright (C) 2007 The University of Manchester   
- * 
- *  Modifications to the initial code base are copyright of their
- *  respective authors, or their employers as appropriate.
- * 
- *  This program is free software; you can redistribute it and/or
- *  modify it under the terms of the GNU Lesser General Public License
- *  as published by the Free Software Foundation; either version 2.1 of
- *  the License, or (at your option) any later version.
- *    
- *  This program is distributed in the hope that it will be useful, but
- *  WITHOUT ANY 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 along with this program; if not, write to the Free Software
- *  Foundation, Inc., 59 Temple Place, Suite 330, Boston, MA 02111-1307
- ******************************************************************************/
-package net.sf.taverna.t2.workbench.ui.impl.configuration.ui;
-
-import java.net.URI;
-
-import net.sf.taverna.t2.ui.menu.AbstractMenuSection;
-
-public class WorkbenchPreferencesSection extends AbstractMenuSection {
-	private static final URI FILE_MENU = URI
-			.create("http://taverna.sf.net/2008/t2workbench/menu#file");
-	private static final URI PREFERENCES_MENU_ITEM = URI
-			.create("http://taverna.sf.net/2008/t2workbench/menu#preferences");
-
-	public WorkbenchPreferencesSection() {
-		super(FILE_MENU, 100, PREFERENCES_MENU_ITEM);
-	}
-}

http://git-wip-us.apache.org/repos/asf/incubator-taverna-workbench/blob/72850d5a/configuration-impl/src/main/resources/META-INF/services/net.sf.taverna.t2.ui.menu.MenuComponent
----------------------------------------------------------------------
diff --git a/configuration-impl/src/main/resources/META-INF/services/net.sf.taverna.t2.ui.menu.MenuComponent b/configuration-impl/src/main/resources/META-INF/services/net.sf.taverna.t2.ui.menu.MenuComponent
deleted file mode 100644
index 3b51dd4..0000000
--- a/configuration-impl/src/main/resources/META-INF/services/net.sf.taverna.t2.ui.menu.MenuComponent
+++ /dev/null
@@ -1,2 +0,0 @@
-net.sf.taverna.t2.workbench.ui.impl.configuration.ui.WorkbenchPreferencesSection
-net.sf.taverna.t2.workbench.ui.impl.configuration.ui.WorkbenchConfigurationMenu

http://git-wip-us.apache.org/repos/asf/incubator-taverna-workbench/blob/72850d5a/configuration-impl/src/main/resources/META-INF/services/net.sf.taverna.t2.workbench.configuration.ConfigurationUIFactory
----------------------------------------------------------------------
diff --git a/configuration-impl/src/main/resources/META-INF/services/net.sf.taverna.t2.workbench.configuration.ConfigurationUIFactory b/configuration-impl/src/main/resources/META-INF/services/net.sf.taverna.t2.workbench.configuration.ConfigurationUIFactory
deleted file mode 100644
index 4af55ec..0000000
--- a/configuration-impl/src/main/resources/META-INF/services/net.sf.taverna.t2.workbench.configuration.ConfigurationUIFactory
+++ /dev/null
@@ -1 +0,0 @@
-net.sf.taverna.t2.workbench.ui.impl.configuration.WorkbenchConfigurationUIFactory
\ No newline at end of file

http://git-wip-us.apache.org/repos/asf/incubator-taverna-workbench/blob/72850d5a/configuration-impl/src/main/resources/META-INF/spring/configuration-impl-context-osgi.xml
----------------------------------------------------------------------
diff --git a/configuration-impl/src/main/resources/META-INF/spring/configuration-impl-context-osgi.xml b/configuration-impl/src/main/resources/META-INF/spring/configuration-impl-context-osgi.xml
deleted file mode 100644
index 29aea44..0000000
--- a/configuration-impl/src/main/resources/META-INF/spring/configuration-impl-context-osgi.xml
+++ /dev/null
@@ -1,27 +0,0 @@
-<?xml version="1.0" encoding="UTF-8"?>
-<beans:beans xmlns="http://www.springframework.org/schema/osgi" xmlns:xsi="http://www.w3.org/2001/XMLSchema-instance"
-	xmlns:beans="http://www.springframework.org/schema/beans"
-	xsi:schemaLocation="http://www.springframework.org/schema/beans
-                      http://www.springframework.org/schema/beans/spring-beans.xsd
-                      http://www.springframework.org/schema/osgi
-                      http://www.springframework.org/schema/osgi/spring-osgi.xsd">
-
-	<service ref="t2ConfigurationFrame" interface="net.sf.taverna.t2.workbench.configuration.workbench.ui.T2ConfigurationFrame" />
-
-	<service ref="WorkbenchConfigurationUIFactory" interface="uk.org.taverna.configuration.ConfigurationUIFactory" />
-
-	<service ref="WorkbenchPreferencesSection" auto-export="interfaces" />
-	<service ref="WorkbenchConfigurationMenu" auto-export="interfaces" />
-
-	<service ref="ColourManager" interface="net.sf.taverna.t2.workbench.configuration.colour.ColourManager" />
-	<service ref="WorkbenchConfiguration" interface="net.sf.taverna.t2.workbench.configuration.workbench.WorkbenchConfiguration" />
-	<service ref="MimeTypeManager" interface="net.sf.taverna.t2.workbench.configuration.mimetype.MimeTypeManager" />
-
-	<reference id="configurationManager" interface="uk.org.taverna.configuration.ConfigurationManager" />
-	<reference id="applicationConfiguration" interface="uk.org.taverna.configuration.app.ApplicationConfiguration" />
-
-	<list id="configurationUIFactories" interface="uk.org.taverna.configuration.ConfigurationUIFactory" cardinality="0..N">
-		<listener ref="t2ConfigurationFrame" bind-method="update" unbind-method="update"/>
-	</list>
-
-</beans:beans>

http://git-wip-us.apache.org/repos/asf/incubator-taverna-workbench/blob/72850d5a/configuration-impl/src/main/resources/META-INF/spring/configuration-impl-context.xml
----------------------------------------------------------------------
diff --git a/configuration-impl/src/main/resources/META-INF/spring/configuration-impl-context.xml b/configuration-impl/src/main/resources/META-INF/spring/configuration-impl-context.xml
deleted file mode 100644
index 40da7fd..0000000
--- a/configuration-impl/src/main/resources/META-INF/spring/configuration-impl-context.xml
+++ /dev/null
@@ -1,34 +0,0 @@
-<?xml version="1.0" encoding="UTF-8"?>
-<beans xmlns="http://www.springframework.org/schema/beans" xmlns:xsi="http://www.w3.org/2001/XMLSchema-instance"
-	xsi:schemaLocation="http://www.springframework.org/schema/beans
-                      http://www.springframework.org/schema/beans/spring-beans.xsd">
-
-	<bean id="t2ConfigurationFrame" class="net.sf.taverna.t2.workbench.ui.impl.configuration.ui.T2ConfigurationFrameImpl">
-		<property name="configurationUIFactories" ref="configurationUIFactories" />
-	</bean>
-
-	<bean id="WorkbenchConfigurationUIFactory" class="net.sf.taverna.t2.workbench.ui.impl.configuration.WorkbenchConfigurationUIFactory">
-		<property name="workbenchConfiguration">
-			<ref local="WorkbenchConfiguration"/>
-		</property>
-	</bean>
-
-	<bean id="WorkbenchPreferencesSection" class="net.sf.taverna.t2.workbench.ui.impl.configuration.ui.WorkbenchPreferencesSection" />
-	<bean id="WorkbenchConfigurationMenu" class="net.sf.taverna.t2.workbench.ui.impl.configuration.ui.WorkbenchConfigurationMenu">
-		<property name="t2ConfigurationFrame">
-			<ref local="t2ConfigurationFrame"/>
-		</property>
-	</bean>
-
-	<bean id="ColourManager" class="net.sf.taverna.t2.workbench.ui.impl.configuration.colour.ColourManagerImpl">
-		<constructor-arg ref="configurationManager"/>
-	</bean>
-	<bean id="WorkbenchConfiguration" class="net.sf.taverna.t2.workbench.ui.impl.configuration.WorkbenchConfigurationImpl">
-		<constructor-arg ref="configurationManager"/>
-		<property name="applicationConfiguration" ref="applicationConfiguration" />
-	</bean>
-	<bean id="MimeTypeManager" class="net.sf.taverna.t2.workbench.ui.impl.configuration.mimetype.MimeTypeManagerImpl">
-		<constructor-arg ref="configurationManager"/>
-	</bean>
-
-</beans>

http://git-wip-us.apache.org/repos/asf/incubator-taverna-workbench/blob/72850d5a/configuration-impl/src/test/java/net/sf/taverna/t2/workbench/ui/impl/configuration/ConfigurationManagerTest.java
----------------------------------------------------------------------
diff --git a/configuration-impl/src/test/java/net/sf/taverna/t2/workbench/ui/impl/configuration/ConfigurationManagerTest.java b/configuration-impl/src/test/java/net/sf/taverna/t2/workbench/ui/impl/configuration/ConfigurationManagerTest.java
deleted file mode 100644
index 1202c11..0000000
--- a/configuration-impl/src/test/java/net/sf/taverna/t2/workbench/ui/impl/configuration/ConfigurationManagerTest.java
+++ /dev/null
@@ -1,109 +0,0 @@
-/*******************************************************************************
- * Copyright (C) 2007 The University of Manchester
- *
- *  Modifications to the initial code base are copyright of their
- *  respective authors, or their employers as appropriate.
- *
- *  This program is free software; you can redistribute it and/or
- *  modify it under the terms of the GNU Lesser General Public License
- *  as published by the Free Software Foundation; either version 2.1 of
- *  the License, or (at your option) any later version.
- *
- *  This program is distributed in the hope that it will be useful, but
- *  WITHOUT ANY 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 along with this program; if not, write to the Free Software
- *  Foundation, Inc., 59 Temple Place, Suite 330, Boston, MA 02111-1307
- ******************************************************************************/
-package net.sf.taverna.t2.workbench.ui.impl.configuration;
-
-import static org.junit.Assert.assertEquals;
-import static org.junit.Assert.assertNotNull;
-
-import java.io.File;
-import java.util.UUID;
-
-import net.sf.taverna.t2.workbench.configuration.colour.ColourManager;
-import net.sf.taverna.t2.workbench.ui.impl.configuration.colour.ColourManagerImpl;
-
-import org.junit.Before;
-import org.junit.Ignore;
-import org.junit.Test;
-
-import uk.org.taverna.configuration.app.impl.ApplicationConfigurationImpl;
-import uk.org.taverna.configuration.impl.ConfigurationManagerImpl;
-
-public class ConfigurationManagerTest {
-
-	ConfigurationManagerImpl configurationManager;
-
-	@Before
-	public void setup() {
-		configurationManager = new ConfigurationManagerImpl(new ApplicationConfigurationImpl());
-	}
-
-	@Test
-	public void createConfigManager() {
-		assertNotNull("Config Manager should not be null", configurationManager);
-	}
-
-	@Ignore("Hardcoded /Users/Ian") //FIXME: update test to work using File.createTempFile(...)
-	@Test
-	public void populateConfigOfColourmanager() {
-		ColourManager manager= new ColourManagerImpl(null);
-
-		manager.setProperty("colour.first", "25");
-		manager.setProperty("colour.second", "223");
-
-		configurationManager.setBaseConfigLocation(new File("/Users/Ian/scratch"));
-		try {
-			configurationManager.store(manager);
-		} catch (Exception e1) {
-			e1.printStackTrace();
-		}
-
-		ColourManager manager2 = new ColourManagerImpl(configurationManager);
-
-		try {
-			configurationManager.populate(manager2);
-		} catch (Exception e) {
-			e.printStackTrace();
-		}
-
-
-		assertEquals("Properties do not match", manager2.getProperty("colour.first"), manager.getProperty("colour.first"));
-		assertEquals("Properties do not match", manager2.getProperty("colour.second"), manager.getProperty("colour.second"));
-
-
-	}
-
-	@Test
-	public void saveColoursForDummyColourable() {
-		String dummy = "";
-		ColourManager manager=new ColourManagerImpl(configurationManager);
-		manager.setProperty(dummy.getClass().getCanonicalName(), "#000000");
-
-		File f = new File(System.getProperty("java.io.tmpdir"));
-		File d = new File(f, UUID.randomUUID().toString());
-		d.mkdir();
-		configurationManager.setBaseConfigLocation(d);
-		try {
-			configurationManager.store(manager);
-		} catch (Exception e1) {
-			e1.printStackTrace();
-		}
-
-		try {
-			configurationManager.populate(manager);
-		} catch (Exception e) {
-			// TODO Auto-generated catch block
-			e.printStackTrace();
-		}
-
-
-	}
-
-}

http://git-wip-us.apache.org/repos/asf/incubator-taverna-workbench/blob/72850d5a/configuration-impl/src/test/java/net/sf/taverna/t2/workbench/ui/impl/configuration/colour/ColourManagerTest.java
----------------------------------------------------------------------
diff --git a/configuration-impl/src/test/java/net/sf/taverna/t2/workbench/ui/impl/configuration/colour/ColourManagerTest.java b/configuration-impl/src/test/java/net/sf/taverna/t2/workbench/ui/impl/configuration/colour/ColourManagerTest.java
deleted file mode 100644
index 0239ea8..0000000
--- a/configuration-impl/src/test/java/net/sf/taverna/t2/workbench/ui/impl/configuration/colour/ColourManagerTest.java
+++ /dev/null
@@ -1,90 +0,0 @@
-/*******************************************************************************
- * Copyright (C) 2007 The University of Manchester
- *
- *  Modifications to the initial code base are copyright of their
- *  respective authors, or their employers as appropriate.
- *
- *  This program is free software; you can redistribute it and/or
- *  modify it under the terms of the GNU Lesser General Public License
- *  as published by the Free Software Foundation; either version 2.1 of
- *  the License, or (at your option) any later version.
- *
- *  This program is distributed in the hope that it will be useful, but
- *  WITHOUT ANY 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 along with this program; if not, write to the Free Software
- *  Foundation, Inc., 59 Temple Place, Suite 330, Boston, MA 02111-1307
- ******************************************************************************/
-package net.sf.taverna.t2.workbench.ui.impl.configuration.colour;
-
-import static org.junit.Assert.assertEquals;
-import static org.junit.Assert.assertNotNull;
-import static org.junit.Assert.assertTrue;
-
-import java.awt.Color;
-import java.io.File;
-import java.util.UUID;
-
-import net.sf.taverna.t2.workbench.configuration.colour.ColourManager;
-
-import org.junit.Before;
-import org.junit.Test;
-
-import uk.org.taverna.configuration.Configurable;
-import uk.org.taverna.configuration.app.impl.ApplicationConfigurationImpl;
-import uk.org.taverna.configuration.impl.ConfigurationManagerImpl;
-
-public class ColourManagerTest {
-
-	private ConfigurationManagerImpl configurationManager;
-
-	@Before
-	public void setup() {
-		configurationManager = new ConfigurationManagerImpl(new ApplicationConfigurationImpl());
-
-		File f = new File(System.getProperty("java.io.tmpdir"));
-		File d = new File(f, UUID.randomUUID().toString());
-		d.mkdir();
-		configurationManager.setBaseConfigLocation(d);
-	}
-
-	@Test
-	public void testGetPreferredColourEqualsWhite() throws Exception {
-		String dummy = new String();
-
-		Color c = new ColourManagerImpl(configurationManager).getPreferredColour(dummy);
-		assertEquals("The default colour should be WHITE", Color.WHITE, c);
-	}
-
-	@Test
-	public void testConfigurableness() throws Exception {
-		ColourManager manager = new ColourManagerImpl(configurationManager);
-		assertTrue(manager instanceof Configurable);
-
-		assertEquals("wrong category", "colour", manager.getCategory());
-		assertEquals("wrong name", "Colour Management", manager.getDisplayName());
-		assertEquals("wrong UUID", "a2148420-5967-11dd-ae16-0800200c9a66",
-				manager.getUUID());
-		assertNotNull("there is no default property map", manager
-				.getDefaultPropertyMap());
-	}
-
-	@Test
-	public void saveAsWrongArrayType() throws Exception {
-		String dummy = "";
-		ColourManager manager = new ColourManagerImpl(configurationManager);
-		manager.setProperty(dummy.getClass().getCanonicalName(), "#ffffff");
-
-		File baseLoc = File.createTempFile("test", "scratch");
-		baseLoc.delete();
-		assertTrue("Could not make directory " + baseLoc, baseLoc.mkdir());
-		configurationManager.setBaseConfigLocation(baseLoc);
-		configurationManager.store(manager);
-		configurationManager.populate(manager);
-		manager.getPreferredColour(dummy);
-	}
-
-}

http://git-wip-us.apache.org/repos/asf/incubator-taverna-workbench/blob/72850d5a/contextual-views-impl/pom.xml
----------------------------------------------------------------------
diff --git a/contextual-views-impl/pom.xml b/contextual-views-impl/pom.xml
deleted file mode 100644
index 1cafa80..0000000
--- a/contextual-views-impl/pom.xml
+++ /dev/null
@@ -1,43 +0,0 @@
-<?xml version="1.0" encoding="UTF-8"?>
-<project xmlns="http://maven.apache.org/POM/4.0.0" xmlns:xsi="http://www.w3.org/2001/XMLSchema-instance"
-	xsi:schemaLocation="http://maven.apache.org/POM/4.0.0 http://maven.apache.org/maven-v4_0_0.xsd">
-	<modelVersion>4.0.0</modelVersion>
-	<parent>
-		<groupId>net.sf.taverna.t2</groupId>
-		<artifactId>ui-impl</artifactId>
-		<version>2.0-SNAPSHOT</version>
-	</parent>
-	<groupId>net.sf.taverna.t2.ui-impl</groupId>
-	<artifactId>contextual-views-impl</artifactId>
-	<packaging>bundle</packaging>
-	<name>Contextual Views Implementation</name>
-	<description>Contextual views for the activities</description>
-	<dependencies>
-		<dependency>
-			<groupId>net.sf.taverna.t2.ui-api</groupId>
-			<artifactId>contextual-views-api</artifactId>
-			<version>${t2.ui.api.version}</version>
-		</dependency>
-		<dependency>
-			<groupId>net.sf.taverna.t2.ui-api</groupId>
-			<artifactId>selection-api</artifactId>
-			<version>${t2.ui.api.version}</version>
-		</dependency>
-		<dependency>
-			<groupId>uk.org.taverna.scufl2</groupId>
-			<artifactId>scufl2-api</artifactId>
-			<version>${scufl2.version}</version>
-		</dependency>
-
-		<dependency>
-			<groupId>javax.help</groupId>
-			<artifactId>javahelp</artifactId>
-		</dependency>
-
-		<dependency>
-			<groupId>junit</groupId>
-			<artifactId>junit</artifactId>
-			<scope>test</scope>
-		</dependency>
-	</dependencies>
-</project>