Examples of SearchPlugin


Examples of com.subhajit.gui.classbench.search.SearchPlugin

    selectedClass = null;
  }

  public void run() {
    try {
      SearchPlugin panel = searchPanelClass.getConstructor(
          ClassbenchContext.class, DefaultMutableTreeNode.class)
          .newInstance(ctx, rootNode);
      JDialog dialog = Dialog.newDialog(panel);
      dialog.setModal(true);
      dialog.setVisible(true);
      selectedClass = panel.getSelectedClass();
    } catch (Exception exc) {
      exc.printStackTrace();
    }
  }
View Full Code Here

Examples of edu.uga.galileo.voci.plugins.search.SearchPlugin

    if (request.getParameterValues("useSearchPlugin") != null) {
      ArrayList<Integer> results = null;
      ArrayList<Integer> preProcessResults = null;

      String[] usePlugins = request.getParameterValues("useSearchPlugin");
      SearchPlugin plugin;
      for (String usePlugin : usePlugins) {
        try {
          Class c = Class
              .forName("edu.uga.galileo.voci.plugins.search."
                  + usePlugin);
          Constructor constructor = c.getConstructor((Class[]) null);
          plugin = (SearchPlugin) constructor
              .newInstance((Object[]) null);

          Logger.debug("Pre-processing search using " + usePlugin
              + ".");

          preProcessResults = plugin.processRequest(request);
          if (preProcessResults == null) {
            // if a plugin responds with null, we skip it, b/c
            // it's not behaving properly
            Logger.warn(usePlugin + " returned a null value "
                + "in search pre-processing");
View Full Code Here

Examples of vg.modules.search.SearchPlugin

            new SimpleTabCloser(view);
            new DesktopPlugin().install(param);
            new mxLayoutsRegister(view.getGraphLayoutManager());
            new vg.modules.filter.FilterPlugin().install(param);
            new UndoAndRedo().install(param);
            new SearchPlugin().install(param);
            new GUIOpener().install(param);
            new JGraphSettings().install(param);
            new LookAndFeelChanger().install(param);
            new NotepadPlugin().install(param);
            new PathSelectingPlugin().install(param);
View Full Code Here

Examples of vg.modules.search.SearchPlugin

        new SimpleTabCloser(view);
        new DesktopPlugin().install(param);
        new mxLayoutsRegister(view.getGraphLayoutManager());
        new FilterPlugin().install(param);
        new UndoAndRedo().install(param);
        new SearchPlugin().install(param);
        new GUIOpener().install(param);
        new JGraphSettings().install(param);
        new LookAndFeelChanger().install(param);
        new NotepadPlugin().install(param);
        new PathSelectingPlugin().install(param);
        new AttributePlugin().install(param);
        new StorablePlugin().install(param);
        new ZoomPlugin().install(param);
        view.quit();
      }
      System.out.println("Stady state: It may take several minutes");
      float best = -1;
      for(i = 0; i < 5; i++) {
        SQLite4JavaModel model = new SQLite4JavaModel();
        GraphLayoutManager layoutManager = new GraphLayoutManager();
        SwingUserInterface view = new SwingUserInterface(model, "Welcome to Visual Graph", layoutManager);
        PluginParameter param = new PluginParameter(model, view);
        // adding system functions--------
        long start = new Date().getTime();
        new SimpleTabCloser(view);
        new DesktopPlugin().install(param);
        new mxLayoutsRegister(view.getGraphLayoutManager());
        new FilterPlugin().install(param);
        new UndoAndRedo().install(param);
        new SearchPlugin().install(param);
        new GUIOpener().install(param);
        new JGraphSettings().install(param);
        new LookAndFeelChanger().install(param);
        new NotepadPlugin().install(param);
        new PathSelectingPlugin().install(param);
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.