Package org.apache.airavata.xbaya.ui.dialogs

Examples of org.apache.airavata.xbaya.ui.dialogs.TextWindow.show()


    }
   
  public boolean triggerAction(JTree tree,String action) throws Exception{
    if (action.equals(ViewAction.ID)) {
      TextWindow textWindow = new TextWindow(getXBayaEngine(), getParameter().getName(), getParameter().getValue().toString(),"Parameter Content");
      textWindow.show();
    } else if (action.equals(CopyAction.ID)) {
          Toolkit.getDefaultToolkit().getSystemClipboard().setContents(new StringSelection(getParameter().getValue().toString()), null);
        }
    return super.triggerAction(tree, action);
  }
View Full Code Here


    }
   
  public boolean triggerAction(JTree tree,String action) throws Exception{
    if (action.equals(ViewAction.ID)) {
      TextWindow textWindow = new TextWindow(getXBayaEngine(), getParameter().getName(), getParameter().getValue().toString(),"Parameter Content");
      textWindow.show();
    } else if (action.equals(CopyAction.ID)) {
          Toolkit.getDefaultToolkit().getSystemClipboard().setContents(new StringSelection(getParameter().getValue().toString()), null);
        }
    return super.triggerAction(tree, action);
  }
View Full Code Here

   
  public boolean triggerAction(JTree tree,String action) throws Exception{
    String value = getParameter().getValue().toString();
    if (action.equals(ViewAction.ID)) {
      TextWindow textWindow = new TextWindow(getXBayaEngine(), getParameter().getName(), value,"Parameter Content");
      textWindow.show();
    } else if (action.equals(CopyAction.ID)) {
          Toolkit.getDefaultToolkit().getSystemClipboard().setContents(new StringSelection(value), null);
    } else if (action.equals(BrowserAction.ID)) {
      BrowserLauncher.openURL(getParameter().getValue().toString());
        }
View Full Code Here

TOP
Copyright © 2018 www.massapi.com. All rights reserved.
All source code are property of their respective owners. Java is a trademark of Sun Microsystems, Inc and owned by ORACLE Inc. Contact coftware#gmail.com.