Package org.apache.oodt.cas.workflow.gui.perspective.view

Examples of org.apache.oodt.cas.workflow.gui.perspective.view.View


          int value = chooser.showOpenDialog(WorkflowGUI.this);
          if (value == JFileChooser.APPROVE_OPTION) {
            File file = chooser.getSelectedFile();
            XmlWorkflowModelRepositoryFactory factory = new XmlWorkflowModelRepositoryFactory();
            factory.setWorkspace(workspace.getAbsolutePath());
            View activeView = perspective.getActiveView();

            if (activeView != null) {
              // TODO: add code for import
            }
          }
View Full Code Here


    }
  }

  private View createProjectView() {
    try {
      View view = this.projectViewClass.getConstructor(String.class)
          .newInstance(this.projectViewClass.getSimpleName());
      view.registerListener(this);
      return view;
    } catch (Exception e) {
      e.printStackTrace();
      return null;
    }
View Full Code Here

      closeTabPopup = new JPopupMenu();
      JMenuItem closeItem = new JMenuItem("Close");
      closeItem.addActionListener(new ActionListener() {

        public void actionPerformed(ActionEvent e) {
          View mainView = (View) BuildPanel.this.tabbedPane
              .getSelectedComponent();
          BuildPanel.this.removeMainView(mainView);
        }

      });
      closeTabPopup.add(closeItem);

      this.tabbedPane.addMouseListener(new MouseListener() {

        public void mouseClicked(MouseEvent e) {
          if (e.getButton() == MouseEvent.BUTTON3
              && !BuildPanel.this.tabbedPane.getSelectedComponent().equals(
                  BuildPanel.this.primaryMainView)) {
            closeTabPopup.show(BuildPanel.this.tabbedPane, e.getX(), e.getY());
          }
        }

        public void mouseEntered(MouseEvent e) {
        }

        public void mouseExited(MouseEvent e) {
        }

        public void mousePressed(MouseEvent e) {
        }

        public void mouseReleased(MouseEvent e) {
        }

      });

      this.tabbedPane.addChangeListener(new ChangeListener() {

        public void stateChanged(ChangeEvent e) {
          View activeView = (View) BuildPanel.this.tabbedPane
              .getSelectedComponent();
          activeView.notifyListeners();
        }

      });

      treeView.setPreferredSize(new Dimension(WIDTH / 10, HEIGHT / 2));
View Full Code Here

TOP

Related Classes of org.apache.oodt.cas.workflow.gui.perspective.view.View

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.