You are viewing a plain text version of this content. The canonical link for it is here.
Posted to commits@oozie.apache.org by rk...@apache.org on 2016/08/04 19:05:21 UTC
[2/4] oozie git commit: OOZIE-2625 Drop workflowgenerator (rkanter)
http://git-wip-us.apache.org/repos/asf/oozie/blob/aec39dd2/workflowgenerator/src/main/java/org/apache/oozie/tools/workflowgenerator/client/property/action/ShellPropertyTable.java
----------------------------------------------------------------------
diff --git a/workflowgenerator/src/main/java/org/apache/oozie/tools/workflowgenerator/client/property/action/ShellPropertyTable.java b/workflowgenerator/src/main/java/org/apache/oozie/tools/workflowgenerator/client/property/action/ShellPropertyTable.java
deleted file mode 100644
index 188157e..0000000
--- a/workflowgenerator/src/main/java/org/apache/oozie/tools/workflowgenerator/client/property/action/ShellPropertyTable.java
+++ /dev/null
@@ -1,190 +0,0 @@
-/**
- * Licensed to the Apache Software Foundation (ASF) under one
- * or more contributor license agreements. See the NOTICE file
- * distributed with this work for additional information
- * regarding copyright ownership. The ASF licenses this file
- * to you under the Apache License, Version 2.0 (the
- * "License"); you may not use this file except in compliance
- * with the License. You may obtain a copy of the License at
- *
- * http://www.apache.org/licenses/LICENSE-2.0
- *
- * Unless required by applicable law or agreed to in writing, software
- * distributed under the License is distributed on an "AS IS" BASIS,
- * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
- * See the License for the specific language governing permissions and
- * limitations under the License.
- */
-
-package org.apache.oozie.tools.workflowgenerator.client.property.action;
-
-import java.util.ArrayList;
-import java.util.Arrays;
-import java.util.List;
-
-import org.apache.oozie.tools.workflowgenerator.client.property.Property;
-import org.apache.oozie.tools.workflowgenerator.client.property.PropertyTable;
-import org.apache.oozie.tools.workflowgenerator.client.widget.NodeWidget;
-
-import com.google.gwt.user.client.ui.Grid;
-import com.google.gwt.user.client.ui.HasVerticalAlignment;
-import com.google.gwt.user.client.ui.HorizontalPanel;
-import com.google.gwt.user.client.ui.RadioButton;
-import com.google.gwt.user.client.ui.TextBox;
-import com.google.gwt.xml.client.Document;
-import com.google.gwt.xml.client.Element;
-
-/**
- * Class for property table of shell action
- */
-public class ShellPropertyTable extends PropertyTable {
-
- private TextBox jt;
- private TextBox nn;
- private TextBox exec;
- private List<Property> configs;
- private List<Property> prepare;
- private List<Property> others;
- private RadioButton rby;
- private RadioButton rbn;
-
- /**
- * Constructor which records node widget and initializes
- *
- * @param w
- */
- public ShellPropertyTable(NodeWidget w) {
- super(w);
- initConf();
- initWidget();
- }
-
- /**
- * Initialize configuration
- */
- protected void initConf() {
- configs = new ArrayList<Property>();
- configs.add(new Property("mapred.job.queue.name", ""));
-
- prepare = new ArrayList<Property>();
- prepare.add(new Property("", ""));
-
- others = new ArrayList<Property>();
- others.add(new Property("", ""));
- }
-
- /**
- * Generate xml elements of shell action and attach them to xml doc
- */
- public void generateXML(Document doc, Element root, NodeWidget next) {
-
- Element action = doc.createElement("action");
- action.setAttribute("name", current.getName());
-
- // create <shell>
- Element shellEle = doc.createElement("shell");
- action.appendChild(shellEle);
-
- // create <job-tracker>
- shellEle.appendChild(generateElement(doc, "job-tracker", jt));
-
- // create <name-node>
- shellEle.appendChild(generateElement(doc, "name-node", nn));
-
- // create <prepare>
- prepareToXML(prepare, shellEle, doc);
-
- // create <job-xml>
- filterListToXML(others, shellEle, doc, "job-xml");
-
- // create <configuration>
- configToXML(configs, shellEle, doc);
-
- // create <exec>
- shellEle.appendChild(generateElement(doc, "exec", exec));
-
- // create <argument>
- filterListToXML(others, shellEle, doc, "argument");
-
- // create <env-var>
- filterListToXML(others, shellEle, doc, "env-var");
-
- // create <file>
- filterListToXML(others, shellEle, doc, "file");
-
- // create <archive>
- filterListToXML(others, shellEle, doc, "archive");
-
- // create <capture-output>
- if (rby.getValue()) {
- Element outputele = doc.createElement("capture-output");
- shellEle.appendChild(outputele);
- }
-
- // create <ok>
- action.appendChild(generateOKElement(doc, next));
-
- // create <error>
- action.appendChild(generateErrorElement(doc));
-
- root.appendChild(action);
- }
-
- /**
- * Initialize widgets shown in property table
- */
- protected void initWidget() {
-
- grid = new Grid(10, 2);
- this.add(grid);
-
- this.setAlwaysShowScrollBars(true);
- this.setSize("100%", "80%");
-
- // insert row for Name
- name = insertTextRow(grid, 0, "Name");
-
- // insert row for OK
- insertOKRow(grid, 1);
-
- // insert row for ERROR
- insertErrorRow(grid, 2);
-
- // insert row for JobTracker
- jt = insertTextRow(grid, 3, "JobTracker");
-
- // insert row for NameNode
- nn = insertTextRow(grid, 4, "NameNode");
-
- // insert row for Exec
- exec = insertTextRow(grid, 5, "Exec");
-
- // insert row for Parameter
- grid.setWidget(6, 0, createLabel("Parameter"));
- grid.setWidget(
- 6,
- 1,
- createSubTable("Tag", "value", others,
- Arrays.asList("", "argument", "job-xml", "env-var", "file", "archive")));
-
- // insert row for Configuration
- grid.setWidget(7, 0, createLabel("Configuration"));
- grid.setWidget(7, 1, createSubTable("Property Name", "Value", configs, null));
-
- // insert row for prepare
- grid.setWidget(8, 0, createLabel("Prepare"));
- grid.setWidget(8, 1, createSubTable("Operation", "Path", prepare, Arrays.asList("", "delete", "mkdir")));
-
- // insert row for Capture output
- grid.setWidget(9, 0, createLabel("Capture Output"));
- HorizontalPanel btnpanel = new HorizontalPanel();
- btnpanel.setVerticalAlignment(HasVerticalAlignment.ALIGN_BOTTOM);
- rbn = new RadioButton("outputGroup", "false");
- rby = new RadioButton("outputGroup", "true");
- rbn.setChecked(true);
- btnpanel.add(rby);
- btnpanel.add(rbn);
- grid.setWidget(9, 1, btnpanel);
-
- }
-}
http://git-wip-us.apache.org/repos/asf/oozie/blob/aec39dd2/workflowgenerator/src/main/java/org/apache/oozie/tools/workflowgenerator/client/property/action/StreamingPropertyTable.java
----------------------------------------------------------------------
diff --git a/workflowgenerator/src/main/java/org/apache/oozie/tools/workflowgenerator/client/property/action/StreamingPropertyTable.java b/workflowgenerator/src/main/java/org/apache/oozie/tools/workflowgenerator/client/property/action/StreamingPropertyTable.java
deleted file mode 100644
index 21d5628..0000000
--- a/workflowgenerator/src/main/java/org/apache/oozie/tools/workflowgenerator/client/property/action/StreamingPropertyTable.java
+++ /dev/null
@@ -1,206 +0,0 @@
-/**
- * Licensed to the Apache Software Foundation (ASF) under one
- * or more contributor license agreements. See the NOTICE file
- * distributed with this work for additional information
- * regarding copyright ownership. The ASF licenses this file
- * to you under the Apache License, Version 2.0 (the
- * "License"); you may not use this file except in compliance
- * with the License. You may obtain a copy of the License at
- *
- * http://www.apache.org/licenses/LICENSE-2.0
- *
- * Unless required by applicable law or agreed to in writing, software
- * distributed under the License is distributed on an "AS IS" BASIS,
- * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
- * See the License for the specific language governing permissions and
- * limitations under the License.
- */
-
-package org.apache.oozie.tools.workflowgenerator.client.property.action;
-
-import java.util.ArrayList;
-import java.util.Arrays;
-import java.util.List;
-
-import org.apache.oozie.tools.workflowgenerator.client.property.Property;
-import org.apache.oozie.tools.workflowgenerator.client.widget.NodeWidget;
-
-import com.google.gwt.xml.client.Text;
-import com.google.gwt.user.client.ui.Grid;
-import com.google.gwt.xml.client.Document;
-import com.google.gwt.xml.client.Element;
-
-/**
- * Class for property table of MR streaming action
- */
-public class StreamingPropertyTable extends MapReducePropertyTable {
-
- private List<Property> streaming;
-
- /**
- * Constructor which records node widget and initializes
- *
- * @param w node widget
- */
- public StreamingPropertyTable(NodeWidget w) {
- super(w);
- }
-
- /**
- * Initialize a property table
- */
- @Override
- protected void init() {
- initConf();
- initWidget();
- }
-
- /**
- * Initialize configuration
- */
- @Override
- protected void initConf() {
- configs = new ArrayList<Property>();
- configs.add(new Property("mapred.job.queue.name", ""));
-
- prepare = new ArrayList<Property>();
- prepare.add(new Property("", ""));
-
- others = new ArrayList<Property>();
- others.add(new Property("", ""));
-
- streaming = new ArrayList<Property>();
- streaming.add(new Property("", ""));
- }
-
- /**
- * Generate xml elements of streaming action and attach them to xml doc
- */
- public void generateXML(Document doc, Element root, NodeWidget next) {
-
- Element action = doc.createElement("action");
- action.setAttribute("name", current.getName());
-
- // create <map-reduce>
- Element mrEle = doc.createElement("map-reduce");
- action.appendChild(mrEle);
-
- // create <job-tracker>
- mrEle.appendChild(generateElement(doc, "job-tracker", jt));
-
- // create <name-node>
- mrEle.appendChild(generateElement(doc, "name-node", nn));
-
- // create <prepare>
- prepareToXML(prepare, mrEle, doc);
-
- // create <streaming>
- Element streamEle = null;
- streamEle = filterListToXML(streaming, mrEle, streamEle, doc, "mapper");
- streamEle = filterListToXML(streaming, mrEle, streamEle, doc, "reducer");
- streamEle = filterListToXML(streaming, mrEle, streamEle, doc, "record-reader");
- streamEle = filterListToXML(streaming, mrEle, streamEle, doc, "record-reader-mapping");
- streamEle = filterListToXML(streaming, mrEle, streamEle, doc, "env");
-
- // create <job-xml>
- filterListToXML(others, mrEle, doc, "job-xml");
-
- // create <configuration>
- configToXML(configs, mrEle, doc);
-
- // create <file>
- filterListToXML(others, mrEle, doc, "file");
-
- // create <archive>
- filterListToXML(others, mrEle, doc, "archive");
-
- // create <ok>
- action.appendChild(generateOKElement(doc, next));
-
- // create <error>
- action.appendChild(generateErrorElement(doc));
-
- root.appendChild(action);
- }
-
- /**
- * Create xml element of specified tag name
- *
- * @param list list of properties
- * @param root xml element under which new elements are added
- * @param streaming streaming element
- * @param doc xml doc
- * @param key tag name
- * @return
- */
- protected Element filterListToXML(List<Property> list, Element root, Element streaming, Document doc, String key) {
-
- for (Property prop : list) {
- if (prop.getName() != null && !prop.getName().matches("\\s*") && prop.getValue() != null
- && !prop.getValue().matches("\\s*")) {
- if (prop.getName().equals(key)) {
- if (streaming == null) {
- streaming = doc.createElement("streaming");
- root.appendChild(streaming);
- }
- // create key element
- Element nameele = doc.createElement(key);
- streaming.appendChild(nameele);
-
- // create text node under created element
- Text valele = doc.createTextNode(prop.getValue());
- nameele.appendChild(valele);
- }
- }
- }
- return streaming;
- }
-
- /**
- * Initialize widgets shown in property table
- */
- protected void initWidget() {
-
- grid = new Grid(9, 2);
- this.add(grid);
-
- this.setAlwaysShowScrollBars(true);
- this.setSize("100%", "80%");
-
- // insert row for Name
- name = insertTextRow(grid, 0, "Name");
-
- // insert row for OK
- insertOKRow(grid, 1);
-
- // insert row for ERROR
- insertErrorRow(grid, 2);
-
- // insert row for streaming setting
- grid.setWidget(3, 0, createLabel("Streaming Setting"));
- grid.setWidget(
- 3,
- 1,
- createSubTable("Tag", "value", streaming,
- Arrays.asList("", "mapper", "reducer", "record-reader", "record-reader-mapping", "env")));
-
- // insert row for JobTracker
- jt = insertTextRow(grid, 4, "JobTracker");
-
- // insert row for NameNode
- nn = insertTextRow(grid, 5, "NameNode");
-
- // insert row for prepare
- grid.setWidget(6, 0, createLabel("Prepare"));
- grid.setWidget(6, 1, createSubTable("Operation", "Path", prepare, Arrays.asList("", "delete", "mkdir")));
-
- // insert row for Configuration
- grid.setWidget(7, 0, createLabel("Configuration"));
- grid.setWidget(7, 1, createSubTable("Property Name", "Value", configs, null));
-
- // insert row for others
- grid.setWidget(8, 0, createLabel("Others"));
- grid.setWidget(8, 1, createSubTable("Tag", "value", others, Arrays.asList("", "job-xml", "file", "archive")));
-
- }
-}
http://git-wip-us.apache.org/repos/asf/oozie/blob/aec39dd2/workflowgenerator/src/main/java/org/apache/oozie/tools/workflowgenerator/client/property/action/SubWFPropertyTable.java
----------------------------------------------------------------------
diff --git a/workflowgenerator/src/main/java/org/apache/oozie/tools/workflowgenerator/client/property/action/SubWFPropertyTable.java b/workflowgenerator/src/main/java/org/apache/oozie/tools/workflowgenerator/client/property/action/SubWFPropertyTable.java
deleted file mode 100644
index 90281cd..0000000
--- a/workflowgenerator/src/main/java/org/apache/oozie/tools/workflowgenerator/client/property/action/SubWFPropertyTable.java
+++ /dev/null
@@ -1,140 +0,0 @@
-/**
- * Licensed to the Apache Software Foundation (ASF) under one
- * or more contributor license agreements. See the NOTICE file
- * distributed with this work for additional information
- * regarding copyright ownership. The ASF licenses this file
- * to you under the Apache License, Version 2.0 (the
- * "License"); you may not use this file except in compliance
- * with the License. You may obtain a copy of the License at
- *
- * http://www.apache.org/licenses/LICENSE-2.0
- *
- * Unless required by applicable law or agreed to in writing, software
- * distributed under the License is distributed on an "AS IS" BASIS,
- * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
- * See the License for the specific language governing permissions and
- * limitations under the License.
- */
-
-package org.apache.oozie.tools.workflowgenerator.client.property.action;
-
-import java.util.ArrayList;
-import java.util.List;
-
-import org.apache.oozie.tools.workflowgenerator.client.property.Property;
-import org.apache.oozie.tools.workflowgenerator.client.property.PropertyTable;
-import org.apache.oozie.tools.workflowgenerator.client.widget.NodeWidget;
-
-import com.google.gwt.xml.client.Text;
-import com.google.gwt.user.client.ui.Grid;
-import com.google.gwt.user.client.ui.HasVerticalAlignment;
-import com.google.gwt.user.client.ui.HorizontalPanel;
-import com.google.gwt.user.client.ui.ListBox;
-import com.google.gwt.user.client.ui.RadioButton;
-import com.google.gwt.user.client.ui.TextBox;
-import com.google.gwt.xml.client.Document;
-import com.google.gwt.xml.client.Element;
-
-/**
- * Class for property table of subworkflow action
- */
-public class SubWFPropertyTable extends PropertyTable {
-
- private List<Property> configs;
- private TextBox apppath;
- private RadioButton rby;
- private RadioButton rbn;
-
- /**
- * Constructor which records node widget and initializes
- *
- * @param w node widget
- */
- public SubWFPropertyTable(NodeWidget w) {
- super(w);
- initConf();
- initWidget();
- }
-
- /**
- * Initialize configuration
- */
- protected void initConf() {
- configs = new ArrayList<Property>();
- configs.add(new Property("mapred.job.queue.name", ""));
- }
-
- /**
- * Generate xml elements of subworkflow action and attach them to xml doc
- */
- public void generateXML(Document doc, Element root, NodeWidget next) {
-
- Element action = doc.createElement("action");
- action.setAttribute("name", current.getName());
-
- // create <sub-workflow>
- Element subwfEle = doc.createElement("sub-workflow");
- action.appendChild(subwfEle);
-
- // create <app-path>
- subwfEle.appendChild(generateElement(doc, "app-path", apppath));
-
- // create <propagate-configuration>
- if (rby.getValue()) {
- Element proele = doc.createElement("propagate-configuration");
- subwfEle.appendChild(proele);
- }
-
- // create <configuration>
- configToXML(configs, subwfEle, doc);
-
- // create <ok>
- action.appendChild(generateOKElement(doc, next));
-
- // create <error>
- action.appendChild(generateErrorElement(doc));
-
- root.appendChild(action);
- }
-
- /**
- * Initialize widgets shown in property table
- */
- protected void initWidget() {
-
- grid = new Grid(6, 2);
- this.add(grid);
-
- this.setAlwaysShowScrollBars(true);
- this.setSize("100%", "80%");
-
- // insert row for Name
- name = insertTextRow(grid, 0, "Name");
-
- // insert row for OK
- insertOKRow(grid, 1);
-
- // insert row for ERROR
- insertErrorRow(grid, 2);
-
- // insert row for App path
- apppath = insertTextRow(grid, 3, "App Path");
-
- // insert row for Propagate config
- grid.setWidget(4, 0, createLabel("Propagate Config"));
- HorizontalPanel radiopanel = new HorizontalPanel();
- radiopanel.setVerticalAlignment(HasVerticalAlignment.ALIGN_BOTTOM);
- rbn = new RadioButton("propagateGroup", "false");
- rby = new RadioButton("propagateGroup", "true");
- rbn.setChecked(true);
- radiopanel.add(rby);
- radiopanel.add(rbn);
- grid.setWidget(4, 1, radiopanel);
-
- // insert row for Configuration
- grid.setWidget(5, 0, createLabel("Configuration"));
- grid.setWidget(5, 1, createSubTable("Property Name", "Value", configs, null));
-
- }
-
-}
http://git-wip-us.apache.org/repos/asf/oozie/blob/aec39dd2/workflowgenerator/src/main/java/org/apache/oozie/tools/workflowgenerator/client/property/control/DecisionPropertyTable.java
----------------------------------------------------------------------
diff --git a/workflowgenerator/src/main/java/org/apache/oozie/tools/workflowgenerator/client/property/control/DecisionPropertyTable.java b/workflowgenerator/src/main/java/org/apache/oozie/tools/workflowgenerator/client/property/control/DecisionPropertyTable.java
deleted file mode 100644
index 3fc780b..0000000
--- a/workflowgenerator/src/main/java/org/apache/oozie/tools/workflowgenerator/client/property/control/DecisionPropertyTable.java
+++ /dev/null
@@ -1,423 +0,0 @@
-/**
- * Licensed to the Apache Software Foundation (ASF) under one
- * or more contributor license agreements. See the NOTICE file
- * distributed with this work for additional information
- * regarding copyright ownership. The ASF licenses this file
- * to you under the Apache License, Version 2.0 (the
- * "License"); you may not use this file except in compliance
- * with the License. You may obtain a copy of the License at
- *
- * http://www.apache.org/licenses/LICENSE-2.0
- *
- * Unless required by applicable law or agreed to in writing, software
- * distributed under the License is distributed on an "AS IS" BASIS,
- * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
- * See the License for the specific language governing permissions and
- * limitations under the License.
- */
-
-package org.apache.oozie.tools.workflowgenerator.client.property.control;
-
-import java.util.ArrayList;
-import java.util.List;
-
-import org.apache.oozie.tools.workflowgenerator.client.OozieDiagramController;
-import org.apache.oozie.tools.workflowgenerator.client.property.PropertyTable;
-import org.apache.oozie.tools.workflowgenerator.client.widget.NodeWidget;
-
-import com.google.gwt.cell.client.ButtonCell;
-import com.google.gwt.cell.client.FieldUpdater;
-import com.google.gwt.cell.client.TextCell;
-import com.google.gwt.cell.client.TextInputCell;
-import com.google.gwt.xml.client.Text;
-import com.google.gwt.event.dom.client.ClickEvent;
-import com.google.gwt.event.dom.client.ClickHandler;
-import com.google.gwt.event.logical.shared.ValueChangeEvent;
-import com.google.gwt.event.logical.shared.ValueChangeHandler;
-import com.google.gwt.safehtml.shared.SafeHtmlBuilder;
-import com.google.gwt.user.cellview.client.CellTable;
-import com.google.gwt.user.cellview.client.Column;
-import com.google.gwt.user.client.Window;
-import com.google.gwt.user.client.ui.Button;
-import com.google.gwt.user.client.ui.CheckBox;
-import com.google.gwt.user.client.ui.Grid;
-import com.google.gwt.user.client.ui.Label;
-import com.google.gwt.user.client.ui.ListBox;
-import com.google.gwt.user.client.ui.TextBox;
-import com.google.gwt.user.client.ui.VerticalPanel;
-import com.google.gwt.view.client.ListDataProvider;
-import com.google.gwt.xml.client.Document;
-import com.google.gwt.xml.client.Element;
-import com.orange.links.client.connection.Connection;
-import com.orange.links.client.shapes.DecorationShape;
-
-/**
- * Class for property table of decision node
- */
-public class DecisionPropertyTable extends PropertyTable {
-
- private Grid gridName;
- private Grid gridForm;
- private Grid gridCase;
- private List<NodeWidget> neighbors;
- private ListBox addbox;
- private TextBox predbox;
- private CheckBox defaultcheck;
- private ListDataProvider<SwitchCase> dataProvider;
- private List<SwitchCase> cases;
-
- /**
- * Constructor which records node widget and initializes
- *
- * @param w node widget
- */
- public DecisionPropertyTable(NodeWidget w) {
- super(w);
- initConf();
- initWidget();
- }
-
- class SwitchCase {
- private NodeWidget widget;
- private String predicate;
- private Connection connection;
-
- public SwitchCase(NodeWidget w, String p, Connection c) {
- widget = w;
- predicate = p;
- connection = c;
- }
-
- public NodeWidget getWidget() {
- return widget;
- }
-
- public String getPreDicate() {
- return predicate;
- }
-
- public void setPredicate(String s) {
- predicate = s;
- }
-
- public Connection getConnection() {
- return connection;
- }
-
- }
-
- /**
- * Initialize configuration
- */
- private void initConf() {
- neighbors = new ArrayList<NodeWidget>();
- cases = new ArrayList<SwitchCase>();
- updateWidgetDropDown();
- updateNeighborList();
- dataProvider = new ListDataProvider<SwitchCase>(cases);
- }
-
- /**
- * Update a list of node widgets that this decision node has connection to
- */
- public void updateNeighborList() {
-
- List<SwitchCase> backup = new ArrayList<SwitchCase>();
- for (SwitchCase c : cases)
- backup.add(c);
- cases.clear();
-
- OozieDiagramController controller = current.getController();
- neighbors = controller.getCurrentNeighbor(current);
- if (neighbors == null) {
- neighbors = new ArrayList<NodeWidget>();
- }
- for (NodeWidget n : neighbors) {
- Connection conn = controller.getConnection(current, n);
- SwitchCase entry = null;
-
- // check existing case
- for (SwitchCase s : backup) {
- if (s.getWidget() == n) {
- entry = s;
- break;
- }
- }
- if (entry == null) {
- entry = new SwitchCase(n, "", conn);
- }
- cases.add(entry);
- }
- }
-
- /**
- * Update a table showing a list of switch cases
- */
- public void updateNeighborTable() {
-
- dataProvider = new ListDataProvider<SwitchCase>(cases);
- gridForm.setWidget(0, 1, createAddBox());
- gridForm.setWidget(0, 4, createAddButton());
- gridCase.setWidget(0, 1, createCaseTable());
- }
-
- private ListBox createAddBox() {
- addbox = new ListBox();
- for (int i = 0; i < widgetDropDown.size(); i++) {
- NodeWidget w = widgetDropDown.get(i);
- addbox.addItem(prettyItemString(w));
- }
- return addbox;
- }
-
- /**
- * Generate xml elements of decision node and attach them to xml doc
- */
- public void generateXML(Document doc, Element root, NodeWidget next) {
-
- Element action = doc.createElement("decision");
- action.setAttribute("name", name.getText());
- Element switchele = doc.createElement("switch");
- action.appendChild(switchele);
- for (SwitchCase ca : cases) {
- boolean isDefault = false;
- Connection conn = ca.getConnection();
- if (conn.getDecoration() != null) {
- isDefault = true;
- }
- if (isDefault) {
- Element defEle = doc.createElement("default");
- defEle.setAttribute("to", ca.getWidget().getName());
- switchele.appendChild(defEle);
- }
- else {
- Element caseEle = doc.createElement("case");
- caseEle.setAttribute("to", ca.getWidget().getName());
- Text txt = doc.createTextNode(ca.getPreDicate());
- caseEle.appendChild(txt);
- switchele.appendChild(caseEle);
- }
- }
- root.appendChild(action);
- }
-
- /**
- * Initialize widgets shown in property table
- */
- protected void initWidget() {
-
- this.setAlwaysShowScrollBars(true);
- this.setSize("100%", "80%");
-
- VerticalPanel container = new VerticalPanel();
- this.add(container);
-
- gridName = new Grid(1, 2);
- container.add(gridName);
-
- // Name Form
- name = insertTextRow(gridName, 0, "Name");
-
- // Button and TextBox to add new <case>
- gridForm = new Grid(1, 5);
- container.add(gridForm);
- gridForm.setWidget(0, 0, createLabel("Add New Case"));
- gridForm.setWidget(0, 1, createAddBox());
- predbox = new TextBox();
- gridForm.setWidget(0, 2, predbox);
- defaultcheck = new CheckBox("default");
- defaultcheck.setValue(false); // as default, <case to>
- // if <defaul> selected, make textbox for predicate read-only
- defaultcheck.addValueChangeHandler(new ValueChangeHandler<Boolean>() {
- @Override
- public void onValueChange(ValueChangeEvent<Boolean> event) {
- if (event.getValue()) {
- predbox.setReadOnly(true);
- }
- else {
- predbox.setReadOnly(false);
- }
- }
- });
- gridForm.setWidget(0, 3, defaultcheck);
- gridForm.setWidget(0, 4, createAddButton());
-
- // Table to store list of <case>
- gridCase = new Grid(1, 2);
- container.add(gridCase);
- gridCase.setWidget(0, 0, createLabel("Switch"));
- gridCase.setWidget(0, 1, createCaseTable());
-
- }
-
- /**
- * Create a button to add a new switch case
- *
- * @return
- */
- protected Button createAddButton() {
- Button btn = new Button("add path");
- btn.getElement().setAttribute("style",
- "margin:2px;padding:0px;-webkit-border-radius:5px;-moz-border-radius:5px;-border-radius:5px;");
-
- btn.addClickHandler(new ClickHandler() {
-
- @Override
- public void onClick(ClickEvent event) {
- OozieDiagramController controller = current.getController();
- NodeWidget target = widgetDropDown.get(addbox.getSelectedIndex());
- String predicate = predbox.getText();
- Boolean isDefault = defaultcheck.getValue();
- if (!controller.isConnected(current, target)) {
- Connection conn = controller.addMultiConnection(current, target);
- if (conn == null)
- return;
- // if default checked, add decoration label to connection
- if (isDefault) {
- initializeDefault(dataProvider.getList());
- addDecorationDefaultLabel(conn);
- }
- SwitchCase newcase = new SwitchCase(target, predicate, conn);
- dataProvider.getList().add(newcase);
-
- }
- else {
- Window.alert("the case already exists!");
- }
- }
- });
-
- return btn;
- }
-
- /**
- * Create an expandable table to show switch cases
- *
- * @return
- */
- protected CellTable<SwitchCase> createCaseTable() {
-
- final CellTable<SwitchCase> table = new CellTable<SwitchCase>();
- dataProvider.addDataDisplay(table);
-
- // Add Case column
- Column<SwitchCase, String> caseCol = null;
-
- caseCol = new Column<SwitchCase, String>(new TextCell()) {
- @Override
- public String getValue(SwitchCase object) {
- return prettyItemString(object.getWidget());
- }
- };
- table.addColumn(caseCol, "To");
-
- // Add Predicate column
- Column<SwitchCase, String> predicateCol = null;
-
- predicateCol = new Column<SwitchCase, String>(new CustomTextCell()) {
- @Override
- public String getValue(SwitchCase object) {
- return object.getPreDicate();
- }
- };
-
- predicateCol.setFieldUpdater(new FieldUpdater<SwitchCase, String>() {
- @Override
- public void update(int index, SwitchCase object, String value) {
- object.setPredicate(value);
- }
- });
- table.addColumn(predicateCol, "Predicate");
-
- // Button to delete row
- Column<SwitchCase, String> defaultCol = new Column<SwitchCase, String>(new ButtonCell()) {
- @Override
- public String getValue(SwitchCase object) {
- Connection c = object.getConnection();
- DecorationShape ds = c.getDecoration();
- String rel = "Change to Default";
- if (ds != null)
- rel = "Default";
- return rel;
- }
- };
-
- defaultCol.setFieldUpdater(new FieldUpdater<SwitchCase, String>() {
-
- @Override
- public void update(int index, SwitchCase object, String value) {
- initializeDefault(dataProvider.getList());
- Connection c = object.getConnection();
- addDecorationDefaultLabel(c);
- table.redraw();
- }
- });
-
- table.addColumn(defaultCol, "");
-
- // Button to delete row
- Column<SwitchCase, String> delCol = new Column<SwitchCase, String>(new ButtonCell()) {
- @Override
- public String getValue(SwitchCase object) {
- return " - ";
- }
- };
-
- delCol.setFieldUpdater(new FieldUpdater<SwitchCase, String>() {
-
- @Override
- public void update(int index, SwitchCase object, String value) {
- dataProvider.getList().remove(index);
- OozieDiagramController controller = (OozieDiagramController) current.getGenerator()
- .getDiagramController();
- controller.removeConnection(current, object.getWidget());
- }
- });
-
- table.addColumn(delCol, "");
-
- return table;
- }
-
- class CustomTextCell extends TextInputCell {
- public void render(Context context, String data, SafeHtmlBuilder sb) {
- Connection c = ((SwitchCase) (context.getKey())).getConnection();
- if (c.getDecoration() != null) {
- sb.appendHtmlConstant("<div contentEditable='false' unselectable='true'>-----------</div>");
- }
- else {
- super.render(context, data, sb);
- }
- }
- }
-
- /**
- * Add a default label to a switch case
- *
- * @param c
- */
- public void addDecorationDefaultLabel(Connection c) {
- OozieDiagramController controller = (OozieDiagramController) current.getGenerator().getDiagramController();
- Label decorationLabel = new Label("Default");
- decorationLabel.getElement().setAttribute("style", "font-weight: bold;");
- controller.addDecoration(decorationLabel, c);
- }
-
- /**
- * Remove a default label from existing switch cases
- *
- * @param li
- */
- public void initializeDefault(List<SwitchCase> li) {
-
- OozieDiagramController controller = current.getController();
- for (SwitchCase s : li) {
- Connection c = s.getConnection();
- DecorationShape decoShape = c.getDecoration();
- if (decoShape != null) {
- controller.getView().remove(decoShape.asWidget());
- }
- c.removeDecoration();
- }
- }
-}
http://git-wip-us.apache.org/repos/asf/oozie/blob/aec39dd2/workflowgenerator/src/main/java/org/apache/oozie/tools/workflowgenerator/client/property/control/EndPropertyTable.java
----------------------------------------------------------------------
diff --git a/workflowgenerator/src/main/java/org/apache/oozie/tools/workflowgenerator/client/property/control/EndPropertyTable.java b/workflowgenerator/src/main/java/org/apache/oozie/tools/workflowgenerator/client/property/control/EndPropertyTable.java
deleted file mode 100644
index 76afebe..0000000
--- a/workflowgenerator/src/main/java/org/apache/oozie/tools/workflowgenerator/client/property/control/EndPropertyTable.java
+++ /dev/null
@@ -1,67 +0,0 @@
-/**
- * Licensed to the Apache Software Foundation (ASF) under one
- * or more contributor license agreements. See the NOTICE file
- * distributed with this work for additional information
- * regarding copyright ownership. The ASF licenses this file
- * to you under the Apache License, Version 2.0 (the
- * "License"); you may not use this file except in compliance
- * with the License. You may obtain a copy of the License at
- *
- * http://www.apache.org/licenses/LICENSE-2.0
- *
- * Unless required by applicable law or agreed to in writing, software
- * distributed under the License is distributed on an "AS IS" BASIS,
- * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
- * See the License for the specific language governing permissions and
- * limitations under the License.
- */
-
-package org.apache.oozie.tools.workflowgenerator.client.property.control;
-
-import org.apache.oozie.tools.workflowgenerator.client.property.PropertyTable;
-import org.apache.oozie.tools.workflowgenerator.client.widget.NodeWidget;
-
-import com.google.gwt.user.client.ui.Grid;
-import com.google.gwt.user.client.ui.TextBox;
-import com.google.gwt.xml.client.Document;
-import com.google.gwt.xml.client.Element;
-
-/**
- * Class for property table of end node
- */
-public class EndPropertyTable extends PropertyTable {
-
- /**
- * Constructor which records node widget and initializes
- *
- * @param w node widget
- */
- public EndPropertyTable(NodeWidget w) {
- super(w);
- initWidget();
- }
-
- /**
- * Generate xml elements of end node and attach them to xml doc
- */
- public void generateXML(Document doc, Element root, NodeWidget next) {
-
- Element action = doc.createElement("end");
- action.setAttribute("name", name.getText());
- }
-
- /**
- * Initialize widgets shown in property table
- */
- protected void initWidget() {
-
- grid = new Grid(1, 2);
- this.add(grid);
-
- this.setAlwaysShowScrollBars(true);
- this.setSize("100%", "80%");
-
- name = insertTextRow(grid, 0, "Name");
- }
-
-}
http://git-wip-us.apache.org/repos/asf/oozie/blob/aec39dd2/workflowgenerator/src/main/java/org/apache/oozie/tools/workflowgenerator/client/property/control/ForkPropertyTable.java
----------------------------------------------------------------------
diff --git a/workflowgenerator/src/main/java/org/apache/oozie/tools/workflowgenerator/client/property/control/ForkPropertyTable.java b/workflowgenerator/src/main/java/org/apache/oozie/tools/workflowgenerator/client/property/control/ForkPropertyTable.java
deleted file mode 100644
index 8139508..0000000
--- a/workflowgenerator/src/main/java/org/apache/oozie/tools/workflowgenerator/client/property/control/ForkPropertyTable.java
+++ /dev/null
@@ -1,237 +0,0 @@
-/**
- * Licensed to the Apache Software Foundation (ASF) under one
- * or more contributor license agreements. See the NOTICE file
- * distributed with this work for additional information
- * regarding copyright ownership. The ASF licenses this file
- * to you under the Apache License, Version 2.0 (the
- * "License"); you may not use this file except in compliance
- * with the License. You may obtain a copy of the License at
- *
- * http://www.apache.org/licenses/LICENSE-2.0
- *
- * Unless required by applicable law or agreed to in writing, software
- * distributed under the License is distributed on an "AS IS" BASIS,
- * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
- * See the License for the specific language governing permissions and
- * limitations under the License.
- */
-
-package org.apache.oozie.tools.workflowgenerator.client.property.control;
-
-import java.util.ArrayList;
-import java.util.List;
-
-import org.apache.oozie.tools.workflowgenerator.client.OozieDiagramController;
-import org.apache.oozie.tools.workflowgenerator.client.property.PropertyTable;
-import org.apache.oozie.tools.workflowgenerator.client.widget.NodeWidget;
-
-import com.google.gwt.cell.client.ButtonCell;
-import com.google.gwt.cell.client.FieldUpdater;
-import com.google.gwt.cell.client.TextCell;
-import com.google.gwt.event.dom.client.ClickEvent;
-import com.google.gwt.event.dom.client.ClickHandler;
-import com.google.gwt.user.cellview.client.CellTable;
-import com.google.gwt.user.cellview.client.Column;
-import com.google.gwt.user.client.Window;
-import com.google.gwt.user.client.ui.Button;
-import com.google.gwt.user.client.ui.Grid;
-import com.google.gwt.user.client.ui.ListBox;
-import com.google.gwt.user.client.ui.VerticalPanel;
-import com.google.gwt.view.client.ListDataProvider;
-import com.google.gwt.xml.client.Document;
-import com.google.gwt.xml.client.Element;
-
-/**
- * Class for property table of fork node
- */
-public class ForkPropertyTable extends PropertyTable {
-
- private Grid gridName;
- private Grid gridForm;
- private Grid gridPath;
- private List<NodeWidget> neighbors;
- private ListBox addbox;
- private ListDataProvider<NodeWidget> dataProvider;
-
- /**
- * Constructor which records node widget and initializes
- *
- * @param w node widget
- */
- public ForkPropertyTable(NodeWidget w) {
- super(w);
- initConf();
- initWidget();
- }
-
- /**
- * Initialize configuration
- */
- private void initConf() {
- neighbors = new ArrayList<NodeWidget>();
- updateWidgetDropDown();
- updateNeighborList();
- }
-
- /**
- * Update a list of node widgets that this fork node has connection to
- */
- public void updateNeighborList() {
-
- OozieDiagramController controller = current.getController();
- neighbors = controller.getCurrentNeighbor(current);
- if (neighbors == null) {
- neighbors = new ArrayList<NodeWidget>();
- }
- dataProvider = new ListDataProvider<NodeWidget>(neighbors);
- }
-
- /**
- * Update a table listing node widgets that this fork has connection to
- */
- public void updateNeighborTable() {
- gridForm.setWidget(0, 1, createAddBox());
- gridForm.setWidget(0, 2, createAddButton());
- gridPath.setWidget(0, 1, createPathTable());
- }
-
- /**
- * Create dropdown list of node widgets to create a new path
- *
- * @return
- */
- private ListBox createAddBox() {
- addbox = new ListBox();
- for (int i = 0; i < widgetDropDown.size(); i++) {
- NodeWidget w = widgetDropDown.get(i);
- addbox.addItem(prettyItemString(w));
- }
- return addbox;
- }
-
- /**
- * Generate xml elements of fork node and attach them to xml doc
- */
- public void generateXML(Document doc, Element root, NodeWidget next) {
-
- Element action = doc.createElement("fork");
- action.setAttribute("name", name.getText());
- for (NodeWidget w : neighbors) {
- Element pathEle = doc.createElement("path");
- pathEle.setAttribute("start", w.getName());
- action.appendChild(pathEle);
- }
- root.appendChild(action);
-
- }
-
- /**
- * Initialize widgets shown in property table
- */
- protected void initWidget() {
-
- VerticalPanel vertical = new VerticalPanel();
- this.add(vertical);
-
- this.setAlwaysShowScrollBars(true);
- this.setSize("100%", "80%");
-
- // insert row for Name
- gridName = new Grid(1, 2);
- vertical.add(gridName);
- name = insertTextRow(gridName, 0, "Name");
-
- // insert row for Add Path Input/Button
- gridForm = new Grid(1, 3);
- vertical.add(gridForm);
- gridForm.setWidget(0, 0, createLabel("Add new path"));
- gridForm.setWidget(0, 1, createAddBox());
- gridForm.setWidget(0, 2, createAddButton());
-
- // insert row for Fork Path List
- gridPath = new Grid(1, 2);
- vertical.add(gridPath);
- gridPath.setWidget(0, 0, createLabel("Path List"));
- gridPath.setWidget(0, 1, createPathTable());
- }
-
- /**
- * Create a button to add a new path
- *
- * @return
- */
- protected Button createAddButton() {
- Button btn = new Button("add");
- btn.getElement().setAttribute("style",
- "margin:2px;padding:0px;-webkit-border-radius:5px;-moz-border-radius:5px;-border-radius:5px;");
-
- btn.addClickHandler(new ClickHandler() {
-
- @Override
- public void onClick(ClickEvent event) {
- OozieDiagramController controller = (OozieDiagramController) current.getGenerator()
- .getDiagramController();
- NodeWidget w = widgetDropDown.get(addbox.getSelectedIndex());
- if (!neighbors.contains(w)) {
- dataProvider.getList().add(w);
- controller.addMultiConnection(current, w);
- }
- else {
- Window.alert("the path already exists!");
- }
- }
- });
-
- return btn;
- }
-
- /**
- * Create a expandable table listing paths that this fork node has
- *
- * @return
- */
- protected CellTable<NodeWidget> createPathTable() {
-
- CellTable<NodeWidget> table = new CellTable<NodeWidget>();
- dataProvider.addDataDisplay(table);
-
- // Add Name column
- Column<NodeWidget, String> nameCol = null;
-
- nameCol = new Column<NodeWidget, String>(new TextCell()) {
- @Override
- public String getValue(NodeWidget object) {
- return prettyItemString(object);
- }
- };
- table.addColumn(nameCol, "To");
-
- // Button to delete row
- Column<NodeWidget, String> delCol = new Column<NodeWidget, String>(new ButtonCell()) {
- @Override
- public String getValue(NodeWidget object) {
- return " - ";
- }
- };
-
- delCol.setFieldUpdater(new FieldUpdater<NodeWidget, String>() {
-
- @Override
- public void update(int index, NodeWidget object, String value) {
- List<NodeWidget> li = (List<NodeWidget>) dataProvider.getList();
- dataProvider.getList().remove(index);
- OozieDiagramController controller = current.getController();
- controller.removeConnection(current, object);
- }
- });
-
- table.addColumn(delCol, "");
-
- return table;
- }
-
- protected void display() {
- this.clear();
-
- }
-}
http://git-wip-us.apache.org/repos/asf/oozie/blob/aec39dd2/workflowgenerator/src/main/java/org/apache/oozie/tools/workflowgenerator/client/property/control/JoinPropertyTable.java
----------------------------------------------------------------------
diff --git a/workflowgenerator/src/main/java/org/apache/oozie/tools/workflowgenerator/client/property/control/JoinPropertyTable.java b/workflowgenerator/src/main/java/org/apache/oozie/tools/workflowgenerator/client/property/control/JoinPropertyTable.java
deleted file mode 100644
index 967d05e..0000000
--- a/workflowgenerator/src/main/java/org/apache/oozie/tools/workflowgenerator/client/property/control/JoinPropertyTable.java
+++ /dev/null
@@ -1,72 +0,0 @@
-/**
- * Licensed to the Apache Software Foundation (ASF) under one
- * or more contributor license agreements. See the NOTICE file
- * distributed with this work for additional information
- * regarding copyright ownership. The ASF licenses this file
- * to you under the Apache License, Version 2.0 (the
- * "License"); you may not use this file except in compliance
- * with the License. You may obtain a copy of the License at
- *
- * http://www.apache.org/licenses/LICENSE-2.0
- *
- * Unless required by applicable law or agreed to in writing, software
- * distributed under the License is distributed on an "AS IS" BASIS,
- * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
- * See the License for the specific language governing permissions and
- * limitations under the License.
- */
-
-package org.apache.oozie.tools.workflowgenerator.client.property.control;
-
-import org.apache.oozie.tools.workflowgenerator.client.property.PropertyTable;
-import org.apache.oozie.tools.workflowgenerator.client.widget.NodeWidget;
-
-import com.google.gwt.user.client.ui.Grid;
-import com.google.gwt.xml.client.Document;
-import com.google.gwt.xml.client.Element;
-
-/**
- * Class for property table of join node
- */
-public class JoinPropertyTable extends PropertyTable {
-
- /**
- * Constructor which records node widget and initializes
- *
- * @param w node widget
- */
- public JoinPropertyTable(NodeWidget w) {
- super(w);
- initWidget();
- }
-
- /**
- * Generate xml elements of join node and attach them to xml doc
- */
- public void generateXML(Document doc, Element root, NodeWidget next) {
-
- Element action = doc.createElement("join");
- action.setAttribute("name", name.getText());
- action.setAttribute("to", next.getName());
- root.appendChild(action);
-
- }
-
- /**
- * Initialize widgets shown in property table
- */
- protected void initWidget() {
-
- grid = new Grid(2, 2);
- this.add(grid);
-
- this.setAlwaysShowScrollBars(true);
- this.setSize("100%", "80%");
-
- // insert row for name
- name = insertTextRow(grid, 0, "Name");
-
- // insert row for OK
- insertOKRow(grid, 1);
- }
-}
http://git-wip-us.apache.org/repos/asf/oozie/blob/aec39dd2/workflowgenerator/src/main/java/org/apache/oozie/tools/workflowgenerator/client/property/control/KillPropertyTable.java
----------------------------------------------------------------------
diff --git a/workflowgenerator/src/main/java/org/apache/oozie/tools/workflowgenerator/client/property/control/KillPropertyTable.java b/workflowgenerator/src/main/java/org/apache/oozie/tools/workflowgenerator/client/property/control/KillPropertyTable.java
deleted file mode 100644
index 28dbcfe..0000000
--- a/workflowgenerator/src/main/java/org/apache/oozie/tools/workflowgenerator/client/property/control/KillPropertyTable.java
+++ /dev/null
@@ -1,77 +0,0 @@
-/**
- * Licensed to the Apache Software Foundation (ASF) under one
- * or more contributor license agreements. See the NOTICE file
- * distributed with this work for additional information
- * regarding copyright ownership. The ASF licenses this file
- * to you under the Apache License, Version 2.0 (the
- * "License"); you may not use this file except in compliance
- * with the License. You may obtain a copy of the License at
- *
- * http://www.apache.org/licenses/LICENSE-2.0
- *
- * Unless required by applicable law or agreed to in writing, software
- * distributed under the License is distributed on an "AS IS" BASIS,
- * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
- * See the License for the specific language governing permissions and
- * limitations under the License.
- */
-
-package org.apache.oozie.tools.workflowgenerator.client.property.control;
-
-import org.apache.oozie.tools.workflowgenerator.client.property.PropertyTable;
-import org.apache.oozie.tools.workflowgenerator.client.widget.NodeWidget;
-
-import com.google.gwt.user.client.ui.Grid;
-import com.google.gwt.user.client.ui.TextBox;
-import com.google.gwt.xml.client.Document;
-import com.google.gwt.xml.client.Element;
-
-/**
- * Class for property table of kill node
- */
-public class KillPropertyTable extends PropertyTable {
-
- private TextBox message;
-
- /**
- * Constructor which records node widget and initializes
- *
- * @param w node widget
- */
- public KillPropertyTable(NodeWidget w) {
- super(w);
- initWidget();
- }
-
- /**
- * Generate xml elements of kill node and attach them to xml doc
- */
- public void generateXML(Document doc, Element root, NodeWidget next) {
-
- // create <kill>
- Element action = doc.createElement("kill");
- root.appendChild(action);
- action.setAttribute("name", name.getText());
-
- // create <message>
- action.appendChild(generateElement(doc, "message", message));
- }
-
- /**
- * Initialize widgets shown in property table
- */
- protected void initWidget() {
-
- grid = new Grid(2, 2);
- this.add(grid);
-
- this.setAlwaysShowScrollBars(true);
- this.setSize("100%", "80%");
-
- // insert row for Name
- name = insertTextRow(grid, 0, "Name");
-
- // insert row for Message
- message = insertTextRow(grid, 1, "Message");
- }
-}
http://git-wip-us.apache.org/repos/asf/oozie/blob/aec39dd2/workflowgenerator/src/main/java/org/apache/oozie/tools/workflowgenerator/client/property/control/StartPropertyTable.java
----------------------------------------------------------------------
diff --git a/workflowgenerator/src/main/java/org/apache/oozie/tools/workflowgenerator/client/property/control/StartPropertyTable.java b/workflowgenerator/src/main/java/org/apache/oozie/tools/workflowgenerator/client/property/control/StartPropertyTable.java
deleted file mode 100644
index b2da80f..0000000
--- a/workflowgenerator/src/main/java/org/apache/oozie/tools/workflowgenerator/client/property/control/StartPropertyTable.java
+++ /dev/null
@@ -1,73 +0,0 @@
-/**
- * Licensed to the Apache Software Foundation (ASF) under one
- * or more contributor license agreements. See the NOTICE file
- * distributed with this work for additional information
- * regarding copyright ownership. The ASF licenses this file
- * to you under the Apache License, Version 2.0 (the
- * "License"); you may not use this file except in compliance
- * with the License. You may obtain a copy of the License at
- *
- * http://www.apache.org/licenses/LICENSE-2.0
- *
- * Unless required by applicable law or agreed to in writing, software
- * distributed under the License is distributed on an "AS IS" BASIS,
- * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
- * See the License for the specific language governing permissions and
- * limitations under the License.
- */
-
-package org.apache.oozie.tools.workflowgenerator.client.property.control;
-
-import org.apache.oozie.tools.workflowgenerator.client.property.PropertyTable;
-import org.apache.oozie.tools.workflowgenerator.client.widget.NodeWidget;
-
-import com.google.gwt.user.client.ui.Grid;
-import com.google.gwt.user.client.ui.TextBox;
-import com.google.gwt.xml.client.Document;
-import com.google.gwt.xml.client.Element;
-
-/**
- * Class for property table of start node
- */
-public class StartPropertyTable extends PropertyTable {
-
- /**
- * Constructor which records node widget and initializes
- *
- * @param w node widget
- */
- public StartPropertyTable(NodeWidget w) {
- super(w);
- initWidget();
- }
-
- /**
- * Generate xml elements of start node and attach them to xml doc
- */
- public void generateXML(Document doc, Element root, NodeWidget next) {
-
- // create <start>
- Element action = doc.createElement("start");
- action.setAttribute("to", okVal.getName());
- }
-
- /**
- * Initialize widgets shown in xml doc
- */
- protected void initWidget() {
-
- grid = new Grid(1, 2);
- this.add(grid);
-
- // Start widget doesn't expose Name TextBox to users, but internally
- // keep the data.
- name = new TextBox();
- name.setText("Start Node");
-
- this.setAlwaysShowScrollBars(true);
- this.setSize("100%", "80%");
-
- // insert row for OK
- insertOKRow(grid, 0);
- }
-}
http://git-wip-us.apache.org/repos/asf/oozie/blob/aec39dd2/workflowgenerator/src/main/java/org/apache/oozie/tools/workflowgenerator/client/property/control/WrkflowPropertyTable.java
----------------------------------------------------------------------
diff --git a/workflowgenerator/src/main/java/org/apache/oozie/tools/workflowgenerator/client/property/control/WrkflowPropertyTable.java b/workflowgenerator/src/main/java/org/apache/oozie/tools/workflowgenerator/client/property/control/WrkflowPropertyTable.java
deleted file mode 100644
index e096c53..0000000
--- a/workflowgenerator/src/main/java/org/apache/oozie/tools/workflowgenerator/client/property/control/WrkflowPropertyTable.java
+++ /dev/null
@@ -1,169 +0,0 @@
-/**
- * Licensed to the Apache Software Foundation (ASF) under one
- * or more contributor license agreements. See the NOTICE file
- * distributed with this work for additional information
- * regarding copyright ownership. The ASF licenses this file
- * to you under the Apache License, Version 2.0 (the
- * "License"); you may not use this file except in compliance
- * with the License. You may obtain a copy of the License at
- *
- * http://www.apache.org/licenses/LICENSE-2.0
- *
- * Unless required by applicable law or agreed to in writing, software
- * distributed under the License is distributed on an "AS IS" BASIS,
- * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
- * See the License for the specific language governing permissions and
- * limitations under the License.
- */
-
-package org.apache.oozie.tools.workflowgenerator.client.property.control;
-
-import java.util.ArrayList;
-import java.util.List;
-
-import org.apache.oozie.tools.workflowgenerator.client.property.Property;
-import org.apache.oozie.tools.workflowgenerator.client.property.PropertyTable;
-import org.apache.oozie.tools.workflowgenerator.client.widget.NodeWidget;
-
-import com.google.gwt.user.client.ui.Grid;
-import com.google.gwt.user.client.ui.HasHorizontalAlignment;
-import com.google.gwt.user.client.ui.Label;
-import com.google.gwt.user.client.ui.ListBox;
-import com.google.gwt.user.client.ui.TextBox;
-import com.google.gwt.xml.client.Document;
-import com.google.gwt.xml.client.Element;
-
-/**
- * Class for property table of workflow
- */
-public class WrkflowPropertyTable extends PropertyTable {
-
- private TextBox jt;
- private TextBox nn;
- private List<Property> configs;
- private ListBox namespace;
-
- /**
- * Constructor which records node widget and initializes
- *
- * @param w node widget
- */
- public WrkflowPropertyTable(NodeWidget w) {
- super(w);
- initConf();
- initWidget();
- }
-
- /**
- * Initialize configuration
- */
- protected void initConf() {
- configs = new ArrayList<Property>();
- configs.add(new Property(" ", " "));
- }
-
- /**
- * Create a label with common format
- */
- @Override
- protected Label createLabel(String name) {
- Label label = new Label(name);
- label.setWidth("200px");
- label.setHeight("7px");
- label.setHorizontalAlignment(HasHorizontalAlignment.ALIGN_CENTER);
- return label;
- }
-
- /**
- * Generate xml elements of workflow (such as global section) and attach
- * them to xml doc
- */
- public void generateXML(Document doc, Element root, NodeWidget next) {
-
- if (namespace != null && namespace.getSelectedIndex() < 3) {
- return;
- }
-
- // create <global>
- Element globalEle = doc.createElement("global");
-
- // create <job-tracker>
- if (jt.getText() != null && !jt.getText().matches("\\s*")) {
- globalEle.appendChild(generateElement(doc, "job-tracker", jt));
- }
-
- // create <name-node>
- if (nn.getText() != null && !nn.getText().matches("\\s*")) {
- globalEle.appendChild(generateElement(doc, "name-node", nn));
- }
-
- // create <configuration>
- configToXML(configs, globalEle, doc);
-
- // add <global> only when child nodes exist(if not, do not put <global>)
- if (globalEle.hasChildNodes()) {
- root.appendChild(globalEle);
- }
- }
-
- /**
- * Initialize widgets shown in propery table
- */
- protected void initWidget() {
-
- grid = new Grid(5, 2);
- this.add(grid);
-
- this.setAlwaysShowScrollBars(true);
- this.setSize("100%", "80%");
-
- // insert row for Name
- name = insertTextRow(grid, 0, "Name");
- name.setText("WrkflowGeneratorDemo"); // default value
-
- // insert row for Namespace
- grid.setWidget(1, 0, createLabel("NameSpace"));
- namespace = new ListBox();
- grid.setWidget(1, 1, createNameSpaceList(namespace));
-
- // insert row for JobTracker
- jt = insertTextRow(grid, 2, "Global JobTracker");
-
- // insert row for NameNode
- nn = insertTextRow(grid, 3, "Global NameNode");
-
- // insert row for Global Configuration
- grid.setWidget(4, 0, createLabel("Global Configuration"));
- grid.setWidget(4, 1, createSubTable("Property Name", "Value", configs, null));
-
- }
-
- /**
- * Create a drop down list of name spaces
- *
- * @param b list box
- * @return
- */
- protected ListBox createNameSpaceList(ListBox b) {
- if (b == null) {
- b = new ListBox();
- }
- b.addItem("uri:oozie:workflow:0.1");
- b.addItem("uri:oozie:workflow:0.2");
- b.addItem("uri:oozie:workflow:0.3");
- b.addItem("uri:oozie:workflow:0.4");
- b.setSelectedIndex(2);
-
- return b;
- }
-
- /**
- * Return a name space
- *
- * @return name space
- */
- public String getNameSpace() {
- return namespace.getItemText(namespace.getSelectedIndex());
- }
-
-}
http://git-wip-us.apache.org/repos/asf/oozie/blob/aec39dd2/workflowgenerator/src/main/java/org/apache/oozie/tools/workflowgenerator/client/widget/NodeWidget.java
----------------------------------------------------------------------
diff --git a/workflowgenerator/src/main/java/org/apache/oozie/tools/workflowgenerator/client/widget/NodeWidget.java b/workflowgenerator/src/main/java/org/apache/oozie/tools/workflowgenerator/client/widget/NodeWidget.java
deleted file mode 100644
index 3f2ad38..0000000
--- a/workflowgenerator/src/main/java/org/apache/oozie/tools/workflowgenerator/client/widget/NodeWidget.java
+++ /dev/null
@@ -1,272 +0,0 @@
-/**
- * Licensed to the Apache Software Foundation (ASF) under one
- * or more contributor license agreements. See the NOTICE file
- * distributed with this work for additional information
- * regarding copyright ownership. The ASF licenses this file
- * to you under the Apache License, Version 2.0 (the
- * "License"); you may not use this file except in compliance
- * with the License. You may obtain a copy of the License at
- *
- * http://www.apache.org/licenses/LICENSE-2.0
- *
- * Unless required by applicable law or agreed to in writing, software
- * distributed under the License is distributed on an "AS IS" BASIS,
- * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
- * See the License for the specific language governing permissions and
- * limitations under the License.
- */
-
-package org.apache.oozie.tools.workflowgenerator.client.widget;
-
-import org.apache.oozie.tools.workflowgenerator.client.OozieDiagramController;
-import org.apache.oozie.tools.workflowgenerator.client.OozieWorkflowGenerator;
-import org.apache.oozie.tools.workflowgenerator.client.property.PropertyTable;
-import org.apache.oozie.tools.workflowgenerator.client.property.PropertyTableFactory;
-
-import com.google.gwt.event.dom.client.HasAllTouchHandlers;
-import com.google.gwt.event.dom.client.MouseDownEvent;
-import com.google.gwt.event.dom.client.MouseDownHandler;
-import com.google.gwt.event.dom.client.TouchCancelEvent;
-import com.google.gwt.event.dom.client.TouchCancelHandler;
-import com.google.gwt.event.dom.client.TouchEndEvent;
-import com.google.gwt.event.dom.client.TouchEndHandler;
-import com.google.gwt.event.dom.client.TouchMoveEvent;
-import com.google.gwt.event.dom.client.TouchMoveHandler;
-import com.google.gwt.event.dom.client.TouchStartEvent;
-import com.google.gwt.event.dom.client.TouchStartHandler;
-import com.google.gwt.event.shared.HandlerRegistration;
-import com.google.gwt.user.client.Command;
-import com.google.gwt.user.client.ui.Label;
-import com.google.gwt.user.client.ui.MenuItem;
-import com.google.gwt.xml.client.Document;
-import com.google.gwt.xml.client.Element;
-import com.orange.links.client.menu.ContextMenu;
-import com.orange.links.client.menu.HasContextMenu;
-import com.orange.links.client.save.IsDiagramSerializable;
-
-/**
- * Abstract class used as base for node widget
- */
-public abstract class NodeWidget extends Label implements HasContextMenu, HasAllTouchHandlers, IsDiagramSerializable {
-
- protected ContextMenu contextMenu;
- protected OozieWorkflowGenerator generator;
- protected OozieDiagramController controller;
- protected PropertyTable table;
- protected boolean visited = false;
- protected String identifier = "nodewidget"; // for serialization to be
- // implemented
- protected String content = ""; // for serialization to be implemented
-
- public NodeWidget() {
- super("");
- initMenu();
- initEvent();
- }
-
- /**
- * Constructor which records OozieWorkflowGenerator
- *
- * @param gen OozieWorkflowGenerator
- */
- public NodeWidget(OozieWorkflowGenerator gen, String style) {
- this();
- generator = gen;
- controller = gen.getDiagramController();
- setStyleName(style);
- initPropertyTable();
- }
-
- /**
- * Initialize property table
- */
- protected void initPropertyTable() {
- PropertyTableFactory factory = PropertyTableFactory.getInstance();
- table = factory.createPropertyTable(this);
- generator.setPropertyTable(table);
- }
-
- /**
- * Initialize right-click context menu
- */
- protected void initMenu() {
- contextMenu = new ContextMenu();
- contextMenu.addItem(new MenuItem("Delete", new Command() {
- @Override
- public void execute() {
- generator.removeWidget(NodeWidget.this);
- }
- }));
- }
-
- /**
- * Initialize event handler
- */
- protected void initEvent() {
-
- // Register MouseDown Event to update property table of the selected
- // action
- this.addMouseDownHandler(new MouseDownHandler() {
-
- @Override
- public void onMouseDown(MouseDownEvent event) {
- generator.setPropertyTable(table);
- updateOnSelection();
- }
- });
- }
-
- /**
- * Update information when clicked in workflow design panel
- */
- protected abstract void updateOnSelection();
-
- /**
- * Return an instance of OozieWorkflowGenerator
- *
- * @return
- */
- public OozieWorkflowGenerator getGenerator() {
- return this.generator;
- }
-
- /**
- * Return an instance of property table
- *
- * @return Property Tab
- */
- public PropertyTable getPropertyTable() {
- return this.table;
- }
-
- /**
- * Return an instance of OozieDiagramController
- *
- * @return
- */
- public OozieDiagramController getController() {
- return this.controller;
- }
-
- /**
- * Return a name of node widget
- *
- * @return
- */
- public String getName() {
- return table.getName();
- }
-
- /**
- * Set a name of node widget
- *
- * @param n name
- */
- public void setName(String n) {
- table.setName(n);
- }
-
- /**
- * Generate xml elements of this node widget and attach them to xml doc
- *
- * @param doc xml document
- * @param root xml element under which elements of this node widget are
- * added
- * @param next next node widget to be executed after this in workflow
- */
- public void generateXML(Document doc, Element root, NodeWidget next) {
- table.generateXML(doc, root, next);
- }
-
- /**
- * Add TouchStartHandler
- */
- @Override
- public HandlerRegistration addTouchStartHandler(TouchStartHandler handler) {
- return addDomHandler(handler, TouchStartEvent.getType());
- }
-
- /**
- * Add TouchEndHandler
- */
- @Override
- public HandlerRegistration addTouchEndHandler(TouchEndHandler handler) {
- return addDomHandler(handler, TouchEndEvent.getType());
- }
-
- /**
- * Add TouchMoveHandler
- */
- @Override
- public HandlerRegistration addTouchMoveHandler(TouchMoveHandler handler) {
- return addDomHandler(handler, TouchMoveEvent.getType());
- }
-
- /**
- * Add TouchCancelHandler
- */
- @Override
- public HandlerRegistration addTouchCancelHandler(TouchCancelHandler handler) {
- return addDomHandler(handler, TouchCancelEvent.getType());
- }
-
- /**
- * Return a type of node widget (used for serialization not yet implemented)
- */
- @Override
- public String getType() {
- return this.identifier;
- }
-
- /**
- * Return content representation of node widget (used for serialization not
- * yet implemented)
- */
- @Override
- public String getContentRepresentation() {
- return this.content;
- }
-
- /**
- * Set content representation of node widget (used for serialization not yet
- * implemented)
- */
- @Override
- public void setContentRepresentation(String contentRepresentation) {
- this.content = contentRepresentation;
- }
-
- /**
- * Return right-click context menu
- */
- @Override
- public ContextMenu getContextMenu() {
- return this.contextMenu;
- }
-
- /**
- * Return if node widget is already visited in tree-traversal algorithm
- * which generates xml
- *
- * @return
- */
- public boolean isVisited() {
- return this.visited;
- }
-
- /**
- * Set flag when node widget is visited in tree-traversal algorithm which
- * generates xml
- */
- public void visit() {
- this.visited = true;
- }
-
- /**
- * Initialize visited flag
- */
- public void unvisit() {
- this.visited = false;
- }
-
-}
http://git-wip-us.apache.org/repos/asf/oozie/blob/aec39dd2/workflowgenerator/src/main/java/org/apache/oozie/tools/workflowgenerator/client/widget/action/EmailActionWidget.java
----------------------------------------------------------------------
diff --git a/workflowgenerator/src/main/java/org/apache/oozie/tools/workflowgenerator/client/widget/action/EmailActionWidget.java b/workflowgenerator/src/main/java/org/apache/oozie/tools/workflowgenerator/client/widget/action/EmailActionWidget.java
deleted file mode 100644
index 032a0a1..0000000
--- a/workflowgenerator/src/main/java/org/apache/oozie/tools/workflowgenerator/client/widget/action/EmailActionWidget.java
+++ /dev/null
@@ -1,48 +0,0 @@
-/**
- * Licensed to the Apache Software Foundation (ASF) under one
- * or more contributor license agreements. See the NOTICE file
- * distributed with this work for additional information
- * regarding copyright ownership. The ASF licenses this file
- * to you under the Apache License, Version 2.0 (the
- * "License"); you may not use this file except in compliance
- * with the License. You may obtain a copy of the License at
- *
- * http://www.apache.org/licenses/LICENSE-2.0
- *
- * Unless required by applicable law or agreed to in writing, software
- * distributed under the License is distributed on an "AS IS" BASIS,
- * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
- * See the License for the specific language governing permissions and
- * limitations under the License.
- */
-
-package org.apache.oozie.tools.workflowgenerator.client.widget.action;
-
-import org.apache.oozie.tools.workflowgenerator.client.OozieWorkflowGenerator;
-import org.apache.oozie.tools.workflowgenerator.client.widget.NodeWidget;
-
-/**
- * Class for node widget of email action
- */
-public class EmailActionWidget extends NodeWidget {
-
- /**
- * Constructor which records oozie workflow generator and initializes
- * property table
- *
- * @param gen oozieWorkflowGenerator
- */
- public EmailActionWidget(OozieWorkflowGenerator gen) {
- super(gen, "oozie-EmailActionWidget");
- }
-
- /**
- * Update current lists of created node widgets when clicked in workflow
- * design panel
- */
- @Override
- public void updateOnSelection() {
- table.updateWidgetDropDown();
- table.updateErrorDropDown();
- }
-}
http://git-wip-us.apache.org/repos/asf/oozie/blob/aec39dd2/workflowgenerator/src/main/java/org/apache/oozie/tools/workflowgenerator/client/widget/action/FSActionWidget.java
----------------------------------------------------------------------
diff --git a/workflowgenerator/src/main/java/org/apache/oozie/tools/workflowgenerator/client/widget/action/FSActionWidget.java b/workflowgenerator/src/main/java/org/apache/oozie/tools/workflowgenerator/client/widget/action/FSActionWidget.java
deleted file mode 100644
index 76e2783..0000000
--- a/workflowgenerator/src/main/java/org/apache/oozie/tools/workflowgenerator/client/widget/action/FSActionWidget.java
+++ /dev/null
@@ -1,48 +0,0 @@
-/**
- * Licensed to the Apache Software Foundation (ASF) under one
- * or more contributor license agreements. See the NOTICE file
- * distributed with this work for additional information
- * regarding copyright ownership. The ASF licenses this file
- * to you under the Apache License, Version 2.0 (the
- * "License"); you may not use this file except in compliance
- * with the License. You may obtain a copy of the License at
- *
- * http://www.apache.org/licenses/LICENSE-2.0
- *
- * Unless required by applicable law or agreed to in writing, software
- * distributed under the License is distributed on an "AS IS" BASIS,
- * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
- * See the License for the specific language governing permissions and
- * limitations under the License.
- */
-
-package org.apache.oozie.tools.workflowgenerator.client.widget.action;
-
-import org.apache.oozie.tools.workflowgenerator.client.OozieWorkflowGenerator;
-import org.apache.oozie.tools.workflowgenerator.client.widget.NodeWidget;
-
-/**
- * Class for node widget of fs action
- */
-public class FSActionWidget extends NodeWidget {
-
- /**
- * Constructor which records oozie workflow generator and initializes
- * property table
- *
- * @param gen oozieWorkflowGenerator
- */
- public FSActionWidget(OozieWorkflowGenerator gen) {
- super(gen, "oozie-FSActionWidget");
- }
-
- /**
- * Update current lists of created node widgets when clicked in workflow
- * design panel
- */
- @Override
- public void updateOnSelection() {
- table.updateWidgetDropDown();
- table.updateErrorDropDown();
- }
-}
http://git-wip-us.apache.org/repos/asf/oozie/blob/aec39dd2/workflowgenerator/src/main/java/org/apache/oozie/tools/workflowgenerator/client/widget/action/JavaActionWidget.java
----------------------------------------------------------------------
diff --git a/workflowgenerator/src/main/java/org/apache/oozie/tools/workflowgenerator/client/widget/action/JavaActionWidget.java b/workflowgenerator/src/main/java/org/apache/oozie/tools/workflowgenerator/client/widget/action/JavaActionWidget.java
deleted file mode 100644
index 2cafaec..0000000
--- a/workflowgenerator/src/main/java/org/apache/oozie/tools/workflowgenerator/client/widget/action/JavaActionWidget.java
+++ /dev/null
@@ -1,49 +0,0 @@
-/**
- * Licensed to the Apache Software Foundation (ASF) under one
- * or more contributor license agreements. See the NOTICE file
- * distributed with this work for additional information
- * regarding copyright ownership. The ASF licenses this file
- * to you under the Apache License, Version 2.0 (the
- * "License"); you may not use this file except in compliance
- * with the License. You may obtain a copy of the License at
- *
- * http://www.apache.org/licenses/LICENSE-2.0
- *
- * Unless required by applicable law or agreed to in writing, software
- * distributed under the License is distributed on an "AS IS" BASIS,
- * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
- * See the License for the specific language governing permissions and
- * limitations under the License.
- */
-
-package org.apache.oozie.tools.workflowgenerator.client.widget.action;
-
-import org.apache.oozie.tools.workflowgenerator.client.OozieWorkflowGenerator;
-import org.apache.oozie.tools.workflowgenerator.client.widget.NodeWidget;
-
-/**
- * Class for node widget of java action
- */
-public class JavaActionWidget extends NodeWidget {
-
- /**
- * Constructor which records oozie workflow generator and initializes
- * property table
- *
- * @param gen oozieWorkflowGenerator
- */
- public JavaActionWidget(OozieWorkflowGenerator gen) {
- super(gen, "oozie-JavaActionWidget");
- }
-
- /**
- * Update current lists of created node widgets when clicked in workflow
- * design panel
- */
- @Override
- public void updateOnSelection() {
- table.updateWidgetDropDown();
- table.updateErrorDropDown();
- }
-
-}
http://git-wip-us.apache.org/repos/asf/oozie/blob/aec39dd2/workflowgenerator/src/main/java/org/apache/oozie/tools/workflowgenerator/client/widget/action/MapReduceActionWidget.java
----------------------------------------------------------------------
diff --git a/workflowgenerator/src/main/java/org/apache/oozie/tools/workflowgenerator/client/widget/action/MapReduceActionWidget.java b/workflowgenerator/src/main/java/org/apache/oozie/tools/workflowgenerator/client/widget/action/MapReduceActionWidget.java
deleted file mode 100644
index 572e59b..0000000
--- a/workflowgenerator/src/main/java/org/apache/oozie/tools/workflowgenerator/client/widget/action/MapReduceActionWidget.java
+++ /dev/null
@@ -1,48 +0,0 @@
-/**
- * Licensed to the Apache Software Foundation (ASF) under one
- * or more contributor license agreements. See the NOTICE file
- * distributed with this work for additional information
- * regarding copyright ownership. The ASF licenses this file
- * to you under the Apache License, Version 2.0 (the
- * "License"); you may not use this file except in compliance
- * with the License. You may obtain a copy of the License at
- *
- * http://www.apache.org/licenses/LICENSE-2.0
- *
- * Unless required by applicable law or agreed to in writing, software
- * distributed under the License is distributed on an "AS IS" BASIS,
- * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
- * See the License for the specific language governing permissions and
- * limitations under the License.
- */
-
-package org.apache.oozie.tools.workflowgenerator.client.widget.action;
-
-import org.apache.oozie.tools.workflowgenerator.client.OozieWorkflowGenerator;
-import org.apache.oozie.tools.workflowgenerator.client.widget.NodeWidget;
-
-/**
- * Class for node widget of MR action
- */
-public class MapReduceActionWidget extends NodeWidget {
-
- /**
- * Constructor which records oozie workflow generator and initializes
- * property table
- *
- * @param gen oozieWorkflowGenerator
- */
- public MapReduceActionWidget(OozieWorkflowGenerator gen) {
- super(gen, "oozie-MapReduceActionWidget");
- }
-
- /**
- * Update current lists of created node widgets when clicked in workflow
- * design panel
- */
- @Override
- public void updateOnSelection() {
- table.updateWidgetDropDown();
- table.updateErrorDropDown();
- }
-}
http://git-wip-us.apache.org/repos/asf/oozie/blob/aec39dd2/workflowgenerator/src/main/java/org/apache/oozie/tools/workflowgenerator/client/widget/action/PigActionWidget.java
----------------------------------------------------------------------
diff --git a/workflowgenerator/src/main/java/org/apache/oozie/tools/workflowgenerator/client/widget/action/PigActionWidget.java b/workflowgenerator/src/main/java/org/apache/oozie/tools/workflowgenerator/client/widget/action/PigActionWidget.java
deleted file mode 100644
index 9fa5710..0000000
--- a/workflowgenerator/src/main/java/org/apache/oozie/tools/workflowgenerator/client/widget/action/PigActionWidget.java
+++ /dev/null
@@ -1,49 +0,0 @@
-/**
- * Licensed to the Apache Software Foundation (ASF) under one
- * or more contributor license agreements. See the NOTICE file
- * distributed with this work for additional information
- * regarding copyright ownership. The ASF licenses this file
- * to you under the Apache License, Version 2.0 (the
- * "License"); you may not use this file except in compliance
- * with the License. You may obtain a copy of the License at
- *
- * http://www.apache.org/licenses/LICENSE-2.0
- *
- * Unless required by applicable law or agreed to in writing, software
- * distributed under the License is distributed on an "AS IS" BASIS,
- * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
- * See the License for the specific language governing permissions and
- * limitations under the License.
- */
-
-package org.apache.oozie.tools.workflowgenerator.client.widget.action;
-
-import org.apache.oozie.tools.workflowgenerator.client.OozieWorkflowGenerator;
-import org.apache.oozie.tools.workflowgenerator.client.widget.NodeWidget;
-
-/**
- * Class for node widget of pig action
- */
-public class PigActionWidget extends NodeWidget {
-
- /**
- * Constructor which records oozie workflow generator and initializes
- * property table
- *
- * @param gen oozieWorkflowGenerator
- */
- public PigActionWidget(OozieWorkflowGenerator gen) {
- super(gen, "oozie-PigActionWidget");
- }
-
- /**
- * Update current lists of created node widgets when clicked in workflow
- * design panel
- */
- @Override
- public void updateOnSelection() {
- table.updateWidgetDropDown();
- table.updateErrorDropDown();
- }
-
-}
http://git-wip-us.apache.org/repos/asf/oozie/blob/aec39dd2/workflowgenerator/src/main/java/org/apache/oozie/tools/workflowgenerator/client/widget/action/PipesActionWidget.java
----------------------------------------------------------------------
diff --git a/workflowgenerator/src/main/java/org/apache/oozie/tools/workflowgenerator/client/widget/action/PipesActionWidget.java b/workflowgenerator/src/main/java/org/apache/oozie/tools/workflowgenerator/client/widget/action/PipesActionWidget.java
deleted file mode 100644
index 868cb51..0000000
--- a/workflowgenerator/src/main/java/org/apache/oozie/tools/workflowgenerator/client/widget/action/PipesActionWidget.java
+++ /dev/null
@@ -1,48 +0,0 @@
-/**
- * Licensed to the Apache Software Foundation (ASF) under one
- * or more contributor license agreements. See the NOTICE file
- * distributed with this work for additional information
- * regarding copyright ownership. The ASF licenses this file
- * to you under the Apache License, Version 2.0 (the
- * "License"); you may not use this file except in compliance
- * with the License. You may obtain a copy of the License at
- *
- * http://www.apache.org/licenses/LICENSE-2.0
- *
- * Unless required by applicable law or agreed to in writing, software
- * distributed under the License is distributed on an "AS IS" BASIS,
- * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
- * See the License for the specific language governing permissions and
- * limitations under the License.
- */
-
-package org.apache.oozie.tools.workflowgenerator.client.widget.action;
-
-import org.apache.oozie.tools.workflowgenerator.client.OozieWorkflowGenerator;
-import org.apache.oozie.tools.workflowgenerator.client.widget.NodeWidget;
-
-/**
- * Class for node widget of MR pipes action
- */
-public class PipesActionWidget extends NodeWidget {
-
- /**
- * Constructor which records oozie workflow generator and initializes
- * property table
- *
- * @param gen oozieWorkflowGenerator
- */
- public PipesActionWidget(OozieWorkflowGenerator gen) {
- super(gen, "oozie-PipesActionWidget");
- }
-
- /**
- * Update current lists of created node widgets when clicked in workflow
- * design panel
- */
- @Override
- public void updateOnSelection() {
- table.updateWidgetDropDown();
- table.updateErrorDropDown();
- }
-}
http://git-wip-us.apache.org/repos/asf/oozie/blob/aec39dd2/workflowgenerator/src/main/java/org/apache/oozie/tools/workflowgenerator/client/widget/action/SSHActionWidget.java
----------------------------------------------------------------------
diff --git a/workflowgenerator/src/main/java/org/apache/oozie/tools/workflowgenerator/client/widget/action/SSHActionWidget.java b/workflowgenerator/src/main/java/org/apache/oozie/tools/workflowgenerator/client/widget/action/SSHActionWidget.java
deleted file mode 100644
index bdeb0de..0000000
--- a/workflowgenerator/src/main/java/org/apache/oozie/tools/workflowgenerator/client/widget/action/SSHActionWidget.java
+++ /dev/null
@@ -1,48 +0,0 @@
-/**
- * Licensed to the Apache Software Foundation (ASF) under one
- * or more contributor license agreements. See the NOTICE file
- * distributed with this work for additional information
- * regarding copyright ownership. The ASF licenses this file
- * to you under the Apache License, Version 2.0 (the
- * "License"); you may not use this file except in compliance
- * with the License. You may obtain a copy of the License at
- *
- * http://www.apache.org/licenses/LICENSE-2.0
- *
- * Unless required by applicable law or agreed to in writing, software
- * distributed under the License is distributed on an "AS IS" BASIS,
- * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
- * See the License for the specific language governing permissions and
- * limitations under the License.
- */
-
-package org.apache.oozie.tools.workflowgenerator.client.widget.action;
-
-import org.apache.oozie.tools.workflowgenerator.client.OozieWorkflowGenerator;
-import org.apache.oozie.tools.workflowgenerator.client.widget.NodeWidget;
-
-/**
- * Class for node widget of SSH action
- */
-public class SSHActionWidget extends NodeWidget {
-
- /**
- * Constructor which records oozie workflow generator and initializes
- * property table
- *
- * @param gen oozieWorkflowGenerator
- */
- public SSHActionWidget(OozieWorkflowGenerator gen) {
- super(gen, "oozie-SSHActionWidget");
- }
-
- /**
- * Update current lists of created node widgets when clicked in workflow
- * design panel
- */
- @Override
- public void updateOnSelection() {
- table.updateWidgetDropDown();
- table.updateErrorDropDown();
- }
-}