Package org.apache.airavata.xbaya.registrybrowser.nodes

Examples of org.apache.airavata.xbaya.registrybrowser.nodes.AbstractAiravataTreeNode


                if (selRow != -1 && e.isPopupTrigger()) {
                    tree.setSelectionRow(selRow);
                    Object o = tree.getLastSelectedPathComponent();
                    popup.removeAll();
                    if (o instanceof AbstractAiravataTreeNode) {
                        AbstractAiravataTreeNode node = ((AbstractAiravataTreeNode) o);
                        for (AbstractBrowserActionItem action : browserActions) {
                            boolean actionSupported = node.isActionSupported(action);
                            action.setVisible(actionSupported);
                            if (actionSupported) {
                                action.setCaption(node.getActionCaption(action));
                                action.setIcon(node.getActionIcon(action));
                                action.setDescription(node.getActionDescription(action));
                                popup.add(action.getMenuItem());
                            }
                        }
                    }
                   
View Full Code Here


    }

    private void triggerNodeAction(String action) {
        Object o = tree.getLastSelectedPathComponent();
        if (o instanceof AbstractAiravataTreeNode) {
            AbstractAiravataTreeNode node = ((AbstractAiravataTreeNode) o);
            try {
              if (action==null){
                action=node.getDefaultAction();
              }
                if (action!=null) {
          node.triggerAction(tree, action);
        }
            } catch (Exception e) {
                e.printStackTrace();
                getEngine().getGUI().getErrorWindow().error(e);
            }
View Full Code Here

                if (selRow != -1 && e.isPopupTrigger()) {
                    tree.setSelectionRow(selRow);
                    Object o = tree.getLastSelectedPathComponent();
                    popup.removeAll();
                    if (o instanceof AbstractAiravataTreeNode) {
                        AbstractAiravataTreeNode node = ((AbstractAiravataTreeNode) o);
                        for (AbstractBrowserActionItem action : browserActions) {
                            boolean actionSupported = node.isActionSupported(action);
                            action.setVisible(actionSupported);
                            if (actionSupported) {
                                action.setCaption(node.getActionCaption(action));
                                action.setIcon(node.getActionIcon(action));
                                action.setDescription(node.getActionDescription(action));
                                popup.add(action.getMenuItem());
                            }
                        }
                    }
                   
View Full Code Here

    }

    private void triggerNodeAction(String action) {
        Object o = tree.getLastSelectedPathComponent();
        if (o instanceof AbstractAiravataTreeNode) {
            AbstractAiravataTreeNode node = ((AbstractAiravataTreeNode) o);
            try {
              if (action==null){
                action=node.getDefaultAction();
              }
                if (action!=null) {
          node.triggerAction(tree, action);
        }
            } catch (Exception e) {
                e.printStackTrace();
                getEngine().getGUI().getErrorWindow().error(e);
            }
View Full Code Here

                if (selRow != -1 && e.isPopupTrigger()) {
                    tree.setSelectionRow(selRow);
                    Object o = tree.getLastSelectedPathComponent();
                    popup.removeAll();
                    if (o instanceof AbstractAiravataTreeNode) {
                        AbstractAiravataTreeNode node = ((AbstractAiravataTreeNode) o);
                        for (AbstractBrowserActionItem action : browserActions) {
                            boolean actionSupported = node.isActionSupported(action);
                            action.setVisible(actionSupported);
                            if (actionSupported) {
                                action.setCaption(node.getActionCaption(action));
                                action.setIcon(node.getActionIcon(action));
                                action.setDescription(node.getActionDescription(action));
                                popup.add(action.getMenuItem());
                            }
                        }
                    }
                   
View Full Code Here

    }

    private void triggerNodeAction(String action) {
        Object o = tree.getLastSelectedPathComponent();
        if (o instanceof AbstractAiravataTreeNode) {
            AbstractAiravataTreeNode node = ((AbstractAiravataTreeNode) o);
            try {
              if (action==null){
                action=node.getDefaultAction();
              }
                if (action!=null) {
          node.triggerAction(tree, action);
        }
            } catch (Exception e) {
                e.printStackTrace();
                getEngine().getGUI().getErrorWindow().error(e);
            }
View Full Code Here

                if (selRow != -1 && e.isPopupTrigger()) {
                    tree.setSelectionRow(selRow);
                    Object o = tree.getLastSelectedPathComponent();
                    popup.removeAll();
                    if (o instanceof AbstractAiravataTreeNode) {
                        AbstractAiravataTreeNode node = ((AbstractAiravataTreeNode) o);
                        for (AbstractBrowserActionItem action : browserActions) {
                            boolean actionSupported = node.isActionSupported(action);
                            action.setVisible(actionSupported);
                            if (actionSupported) {
                                action.setCaption(node.getActionCaption(action));
                                action.setIcon(node.getActionIcon(action));
                                action.setDescription(node.getActionDescription(action));
                                popup.add(action.getMenuItem());
                            }
                        }
                    }
                   
View Full Code Here

    }

    private void triggerNodeAction(String action) {
        Object o = tree.getLastSelectedPathComponent();
        if (o instanceof AbstractAiravataTreeNode) {
            AbstractAiravataTreeNode node = ((AbstractAiravataTreeNode) o);
            try {
              if (action==null){
                action=node.getDefaultAction();
              }
                if (action!=null) {
          node.triggerAction(tree, action);
        }
            } catch (Exception e) {
                e.printStackTrace();
                getEngine().getGUI().getErrorWindow().error(e);
            }
View Full Code Here

                if (selRow != -1 && e.isPopupTrigger()) {
                    tree.setSelectionRow(selRow);
                    Object o = tree.getLastSelectedPathComponent();
                    popup.removeAll();
                    if (o instanceof AbstractAiravataTreeNode) {
                        AbstractAiravataTreeNode node = ((AbstractAiravataTreeNode) o);
                        for (AbstractBrowserActionItem action : browserActions) {
                            boolean actionSupported = node.isActionSupported(action);
                            action.setVisible(actionSupported);
                            if (actionSupported) {
                                action.setCaption(node.getActionCaption(action));
                                action.setIcon(node.getActionIcon(action));
                                action.setDescription(node.getActionDescription(action));
                                popup.add(action.getMenuItem());
                            }
                        }
                    }
                   
View Full Code Here

    }

    private void triggerNodeAction(String action) {
        Object o = tree.getLastSelectedPathComponent();
        if (o instanceof AbstractAiravataTreeNode) {
            AbstractAiravataTreeNode node = ((AbstractAiravataTreeNode) o);
            try {
              if (action==null){
                action=node.getDefaultAction();
              }
                if (action!=null) {
          node.triggerAction(tree, action);
        }
            } catch (Exception e) {
                e.printStackTrace();
                getEngine().getErrorWindow().error(e);
            }
View Full Code Here

TOP

Related Classes of org.apache.airavata.xbaya.registrybrowser.nodes.AbstractAiravataTreeNode

Copyright © 2018 www.massapicom. 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.