airavata-commits mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From samin...@apache.org
Subject svn commit: r1513997 - /airavata/trunk/modules/xbaya-gui/src/main/java/org/apache/airavata/xbaya/ui/views/JCRBrowserPanel.java
Date Wed, 14 Aug 2013 18:12:45 GMT
Author: samindaw
Date: Wed Aug 14 18:12:44 2013
New Revision: 1513997

URL: http://svn.apache.org/r1513997
Log:
adding browser open to context menu etc.

Modified:
    airavata/trunk/modules/xbaya-gui/src/main/java/org/apache/airavata/xbaya/ui/views/JCRBrowserPanel.java

Modified: airavata/trunk/modules/xbaya-gui/src/main/java/org/apache/airavata/xbaya/ui/views/JCRBrowserPanel.java
URL: http://svn.apache.org/viewvc/airavata/trunk/modules/xbaya-gui/src/main/java/org/apache/airavata/xbaya/ui/views/JCRBrowserPanel.java?rev=1513997&r1=1513996&r2=1513997&view=diff
==============================================================================
--- airavata/trunk/modules/xbaya-gui/src/main/java/org/apache/airavata/xbaya/ui/views/JCRBrowserPanel.java
(original)
+++ airavata/trunk/modules/xbaya-gui/src/main/java/org/apache/airavata/xbaya/ui/views/JCRBrowserPanel.java
Wed Aug 14 18:12:44 2013
@@ -42,7 +42,6 @@ import javax.swing.KeyStroke;
 import javax.swing.border.EmptyBorder;
 import javax.swing.tree.DefaultTreeModel;
 
-//import org.apache.airavata.registry.api.AiravataRegistry2;
 import org.apache.airavata.client.api.AiravataAPI;
 import org.apache.airavata.workflow.model.component.registry.JCRComponentRegistry;
 import org.apache.airavata.xbaya.XBayaEngine;
@@ -51,12 +50,14 @@ import org.apache.airavata.xbaya.registr
 import org.apache.airavata.xbaya.registrybrowser.nodes.RegistryTreeCellRenderer;
 import org.apache.airavata.xbaya.ui.actions.AbstractBrowserActionItem;
 import org.apache.airavata.xbaya.ui.actions.registry.browser.AddAction;
+import org.apache.airavata.xbaya.ui.actions.registry.browser.BrowserAction;
 import org.apache.airavata.xbaya.ui.actions.registry.browser.CopyAction;
 import org.apache.airavata.xbaya.ui.actions.registry.browser.DeleteAction;
 import org.apache.airavata.xbaya.ui.actions.registry.browser.EditAction;
 import org.apache.airavata.xbaya.ui.actions.registry.browser.ImportAction;
 import org.apache.airavata.xbaya.ui.actions.registry.browser.RefreshAction;
 import org.apache.airavata.xbaya.ui.actions.registry.browser.ViewAction;
+//import org.apache.airavata.registry.api.AiravataRegistry2;
 
 public class JCRBrowserPanel extends JPanel implements Observer {
     private List<AbstractBrowserActionItem> browserActions = new ArrayList<AbstractBrowserActionItem>();
@@ -147,6 +148,12 @@ public class JCRBrowserPanel extends JPa
                         triggerNodeAction(ViewAction.ID);
                     }
                 });
+                BrowserAction actionBrowser = new BrowserAction();
+                actionBrowser.addActionListener(new ActionListener() {
+                    public void actionPerformed(ActionEvent arg0) {
+                        triggerNodeAction(BrowserAction.ID);
+                    }
+                });
                 
                 tree.addMouseListener(new MouseAdapter(){
 					@Override
@@ -163,6 +170,7 @@ public class JCRBrowserPanel extends JPa
                 browserActions.add(actionRefresh);
                 browserActions.add(actionDelete);
                 browserActions.add(actionCopy);
+                browserActions.add(actionBrowser);
 
 //                popupMenu.add(actionAdd.getMenuItem());
 //                popupMenu.add(actionDelete.getMenuItem());



Mime
View raw message