Package org.eobjects.datacleaner.widgets.tree

Examples of org.eobjects.datacleaner.widgets.tree.SchemaTree


    // metadata about the datastore (might take several seconds)
    new SwingWorker<SchemaTree, Void>() {
      @Override
      protected SchemaTree doInBackground() throws Exception {
        Injector injector = _injectorBuilder.with(Datastore.class, datastore).createInjector();
        SchemaTree tree = injector.getInstance(SchemaTree.class);
        return tree;
      }

      protected void done() {
        try {
          SchemaTree schemaTree = get();
          final JScrollPane schemaTreeScroll = WidgetUtils.scrolleable(schemaTree);
          schemaTreeScroll.setHorizontalScrollBarPolicy(JScrollPane.HORIZONTAL_SCROLLBAR_NEVER);
          schemaTree.addComponentListener(new ComponentAdapter() {
            @Override
            public void componentResized(ComponentEvent e) {
              updateParentPanel();
            }

          });
          removeAll();
          add(schemaTreeScroll, BorderLayout.CENTER);
          updateParentPanel();
          if (expandTree) {
            schemaTree.expandAll();
          }
        } catch (Exception e) {
          throw new RuntimeException(e);
        }
      };
View Full Code Here


          if (_datastore != null) {
            _treePanel.removeAll();
            Injector injectorWithDatastore = _injectorBuilder.with(Datastore.class, _datastore)
                .with(AnalysisJobBuilder.class, null).createInjector();

            final SchemaTree schemaTree = injectorWithDatastore.getInstance(SchemaTree.class);
            schemaTree.addMouseListener(new MouseAdapter() {
              @Override
              public void mouseClicked(MouseEvent e) {
                TreePath path = schemaTree.getSelectionPath();
                if (path == null) {
                  return;
                }
                DefaultMutableTreeNode node = (DefaultMutableTreeNode) path.getLastPathComponent();
                if (node.getUserObject() instanceof Column) {
View Full Code Here

            _treePanel.removeAll();

            Injector injectorWithDatastore = _injectorBuilder.with(Datastore.class, datastore)
                .with(AnalyzerJobBuilder.class, null).createInjector();

            final SchemaTree schemaTree = injectorWithDatastore.getInstance(SchemaTree.class);
            schemaTree.addMouseListener(new MouseAdapter() {
              public void mouseClicked(MouseEvent e) {
                TreePath path = schemaTree.getSelectionPath();
                if (path == null) {
                  return;
                }
                DefaultMutableTreeNode node = (DefaultMutableTreeNode) path.getLastPathComponent();
                if (node.getUserObject() instanceof Column) {
View Full Code Here

TOP

Related Classes of org.eobjects.datacleaner.widgets.tree.SchemaTree

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.