You are viewing a plain text version of this content. The canonical link for it is here.
Posted to commits@airavata.apache.org by la...@apache.org on 2011/10/30 17:08:52 UTC

svn commit: r1195186 - /incubator/airavata/trunk/modules/xbaya-gui/src/main/java/org/apache/airavata/xbaya/appwrapper/ApplicationDescriptionAdvancedOptionDialog.java

Author: lahiru
Date: Sun Oct 30 16:08:51 2011
New Revision: 1195186

URL: http://svn.apache.org/viewvc?rev=1195186&view=rev
Log:
adding required fields to run gramprovider.

Modified:
    incubator/airavata/trunk/modules/xbaya-gui/src/main/java/org/apache/airavata/xbaya/appwrapper/ApplicationDescriptionAdvancedOptionDialog.java

Modified: incubator/airavata/trunk/modules/xbaya-gui/src/main/java/org/apache/airavata/xbaya/appwrapper/ApplicationDescriptionAdvancedOptionDialog.java
URL: http://svn.apache.org/viewvc/incubator/airavata/trunk/modules/xbaya-gui/src/main/java/org/apache/airavata/xbaya/appwrapper/ApplicationDescriptionAdvancedOptionDialog.java?rev=1195186&r1=1195185&r2=1195186&view=diff
==============================================================================
--- incubator/airavata/trunk/modules/xbaya-gui/src/main/java/org/apache/airavata/xbaya/appwrapper/ApplicationDescriptionAdvancedOptionDialog.java (original)
+++ incubator/airavata/trunk/modules/xbaya-gui/src/main/java/org/apache/airavata/xbaya/appwrapper/ApplicationDescriptionAdvancedOptionDialog.java Sun Oct 30 16:08:51 2011
@@ -1,24 +1,24 @@
-/*
- *
- * 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.
- *
- */
-
+/*
+ *
+ * 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.airavata.xbaya.appwrapper;
 
 import java.awt.BorderLayout;
@@ -30,19 +30,9 @@ import java.awt.event.WindowAdapter;
 import java.awt.event.WindowEvent;
 import java.util.Map;
 
-import javax.swing.GroupLayout;
+import javax.swing.*;
 import javax.swing.GroupLayout.Alignment;
-import javax.swing.JButton;
-import javax.swing.JDialog;
-import javax.swing.JLabel;
-import javax.swing.JPanel;
-import javax.swing.JScrollPane;
-import javax.swing.JSeparator;
-import javax.swing.JTable;
-import javax.swing.JTextField;
 import javax.swing.LayoutStyle.ComponentPlacement;
-import javax.swing.ListSelectionModel;
-import javax.swing.SwingConstants;
 import javax.swing.event.ListSelectionEvent;
 import javax.swing.event.ListSelectionListener;
 import javax.swing.event.TableModelEvent;
@@ -52,6 +42,8 @@ import javax.swing.table.DefaultTableMod
 import org.apache.airavata.commons.gfac.type.ApplicationDeploymentDescription;
 import org.apache.airavata.registry.api.Registry;
 import org.apache.airavata.schemas.gfac.ApplicationDeploymentDescriptionType;
+import org.apache.airavata.schemas.gfac.JobTypeType;
+import org.apache.airavata.xbaya.gui.XBayaComboBox;
 
 public class ApplicationDescriptionAdvancedOptionDialog extends JDialog {
     private static final long serialVersionUID = 3920479739097405014L;
@@ -61,6 +53,13 @@ public class ApplicationDescriptionAdvan
     private JTextField txtSTDIN;
     private JTextField txtSTDOUT;
     private JTextField txtSTDERR;
+    private XBayaComboBox jobType;
+    private JTextField projectAccountNumber;
+    private JTextField projectAccountDescription;
+    private JTextField queueType;
+    private JTextField queueName;
+    private JTextField rslParameterName;
+    private JTextField rslParameterValue;
     private JTable tblEnv;
     private ApplicationDeploymentDescription shellApplicationDescription;
     private DefaultTableModel defaultTableModel;
@@ -148,7 +147,15 @@ public class ApplicationDescriptionAdvan
             JPanel panel = new JPanel();
             getContentPane().add(panel, BorderLayout.CENTER);
             JLabel lblWorkingDirectory = new JLabel("Working Directory");
+            JLabel lbljobType = new JLabel("Job Type");
+            JLabel lblProjectAccountNumber = new JLabel("Project Account Number");
+            JLabel lblProjectAccountDescription = new JLabel("Project Account Description");
+            JLabel lblQueueType = new JLabel("Queue Type");
+            JLabel lblQueueName = new JLabel("Queue Name");
+            JLabel lblRSLParameterName = new JLabel("RSL Parameter Name");
+            JLabel lslRSLParameterValue = new JLabel("RSL Parameter Value");
             JLabel lblInputDirectory = new JLabel("Input directory");
+
             txtInputDir = new JTextField();
             txtInputDir.setColumns(10);
             txtWorkingDir = new JTextField();
@@ -184,6 +191,32 @@ public class ApplicationDescriptionAdvan
             txtSTDERR = new JTextField();
             txtSTDERR.setColumns(10);
 
+            JLabel other = new JLabel("Other");
+            other.setFont(new Font("Tahoma", Font.BOLD, 11));
+            lblStdin.setHorizontalAlignment(SwingConstants.TRAILING);
+
+            projectAccountNumber = new JTextField();
+            projectAccountNumber.setColumns(10);
+
+            projectAccountDescription = new JTextField();
+            projectAccountDescription.setColumns(10);
+
+            queueName = new JTextField();
+            queueName.setColumns(10);
+
+            queueType = new JTextField();
+            queueType.setColumns(10);
+
+            rslParameterName = new JTextField();
+            rslParameterName.setColumns(10);
+
+            rslParameterValue = new JTextField();
+            rslParameterValue.setColumns(10);
+
+            this.jobType = new XBayaComboBox(new DefaultComboBoxModel(new String[]
+                    {JobTypeType.OPEN_MP.toString(),JobTypeType.MPI.toString(),JobTypeType.SERIAL.toString()}));
+            this.jobType.setEditable(false);
+
             JSeparator separator_1 = new JSeparator();
             separator_1.setOrientation(SwingConstants.VERTICAL);