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/11/23 16:04:05 UTC
svn commit: r1205427 -
/incubator/airavata/trunk/modules/xbaya-gui/src/main/java/org/apache/airavata/xbaya/graph/impl/GraphImpl.java
Author: lahiru
Date: Wed Nov 23 15:04:04 2011
New Revision: 1205427
URL: http://svn.apache.org/viewvc?rev=1205427&view=rev
Log:
fixing build error.
Modified:
incubator/airavata/trunk/modules/xbaya-gui/src/main/java/org/apache/airavata/xbaya/graph/impl/GraphImpl.java
Modified: incubator/airavata/trunk/modules/xbaya-gui/src/main/java/org/apache/airavata/xbaya/graph/impl/GraphImpl.java
URL: http://svn.apache.org/viewvc/incubator/airavata/trunk/modules/xbaya-gui/src/main/java/org/apache/airavata/xbaya/graph/impl/GraphImpl.java?rev=1205427&r1=1205426&r2=1205427&view=diff
==============================================================================
--- incubator/airavata/trunk/modules/xbaya-gui/src/main/java/org/apache/airavata/xbaya/graph/impl/GraphImpl.java (original)
+++ incubator/airavata/trunk/modules/xbaya-gui/src/main/java/org/apache/airavata/xbaya/graph/impl/GraphImpl.java Wed Nov 23 15:04:04 2011
@@ -106,17 +106,24 @@ public abstract class GraphImpl implemen
/**
* @see org.apache.airavata.xbaya.graph.Graph#getID()
- */
- public String gtID() throws XBayaException{
- if (this.id == null) {
- this.id = this.name;
- // If its still null
- if (null == this.id) {
- throw new XBayaException("The workflow ID is null");
- }
+ */
+ public String getID() {
+ if (this.id == null) {
+ // No other choice but to prompt
+ // the user to pick an id
+ final XBayaEngine engine = XBayaEngine.getInstance();
+ // JOptionPane.showMessageDialog(engine.getGUI().getFrame(), "Provide a relatively unique workflow name",
+ // "Workflow Name", JOptionPane.OK_OPTION);
+ engine.getWorkflowPropertyWindow().show();
+ this.id = this.name;
+ // If its still null
+ if (null == this.id) {
+ throw new XBayaRuntimeException("The workflow ID is null");
+ }
+ }
+ return this.id;
}
- return this.id;
- }
+
/**
* This will only be done for the ODE