Package org.wikipediacleaner.gui.swing.action

Examples of org.wikipediacleaner.gui.swing.action.ActionFullAnalysis


    // Update actions
    ActionUtilities.removeActionListeners(buttonDisambiguation);
    ActionUtilities.removeActionListeners(buttonFullAnalysis);
    buttonDisambiguation.addActionListener(new ActionDisambiguationAnalysis(
        getParentComponent(), getWikipedia(), comboPagename));
    buttonFullAnalysis.addActionListener(new ActionFullAnalysis(
        getParentComponent(), getWikipedia(), comboPagename));

    // Login
    LoginWorker loginWorker = new LoginWorker(
        getWikipedia(), this, comboPagename,
View Full Code Here


      Iterator<Page> iter = page.getRedirectIteratorWithPage();
      while (iter.hasNext()) {
        Page pageTmp = iter.next();
        menuItem = new JMenuItem(pageTmp.getTitle());
        updateFont(menuItem, pageTmp);
        action = new ActionFullAnalysis(wiki, pageTmp.getTitle());
        menuItem.addActionListener(action);
        submenuAnalyze.add(menuItem);
        fixedBegin++;
      }
      if ((links != null) && (links.size() > 0)) {
        fixedBegin += addSeparator(submenuAnalyze);
 
        for (Page p : links) {
          menuItem = new JMenuItem(p.getTitle());
          updateFont(menuItem, p);
          action = new ActionFullAnalysis(wiki, p.getTitle());
          menuItem.addActionListener(action);
          submenuAnalyze.add(menuItem);
        }

        fixedEnd += addSeparator(submenuAnalyze);

        iter = page.getRedirectIteratorWithPage();
        while (iter.hasNext()) {
          Page pageTmp = iter.next();
          menuItem = new JMenuItem(pageTmp.getTitle());
          updateFont(menuItem, pageTmp);
          action = new ActionFullAnalysis(wiki, pageTmp.getTitle());
          menuItem.addActionListener(action);
          submenuAnalyze.add(menuItem);
          fixedEnd++;
        }
      }
      addSubmenu(popup, submenuAnalyze, fixedBegin, fixedEnd);
    } else {
      if ((page.getNamespace() != null) &&
          (page.getNamespace().intValue() == Namespace.TEMPLATE)) {
        menuItem = new JMenuItem(GT._("Analyze template"));
      } else {
        menuItem = new JMenuItem(GT._("Analyze page"));
      }
      action = new ActionFullAnalysis(wiki, page.getTitle());
      menuItem.addActionListener(action);
      popup.add(menuItem);
    }
  }
View Full Code Here

TOP

Related Classes of org.wikipediacleaner.gui.swing.action.ActionFullAnalysis

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.