Package org.wikipediacleaner.gui.swing.component

Examples of org.wikipediacleaner.gui.swing.component.MWPanePopupListener


          }
        } else {
          formatter = new MWPaneDisambiguationFormatter(getWikipedia(), pages);
          getTextContents().setFormatter(formatter);
        }
        MWPanePopupListener listener = new MWPaneDisambiguationPopupListener(
            getWikipedia(), OnePageAnalysisWindow.this);
        getTextContents().setPopupListener(listener);
      }
    } else if (list == listErrors) {
      // List of errors
      Object selection = listErrors.getSelectedValue();
      if ((selection != null) && (selection instanceof CheckErrorPage)) {
        listLinks.clearSelection();
        CheckErrorPage errorSelected = (CheckErrorPage) selection;
        MWPaneFormatter formatter = getTextContents().getFormatter();
        if (formatter instanceof MWPaneCheckWikiFormatter) {
          MWPaneCheckWikiFormatter cwFormatter =
            (MWPaneCheckWikiFormatter) formatter;
          if (!cwFormatter.isSameAlgorithm(errorSelected.getAlgorithm())) {
            formatter = new MWPaneCheckWikiFormatter(errorSelected.getAlgorithm());
            getTextContents().setFormatter(formatter);
          }
        } else {
          formatter = new MWPaneCheckWikiFormatter(errorSelected.getAlgorithm());
          getTextContents().setFormatter(formatter);
        }
        MWPanePopupListener listener = new MWPaneCheckWikiPopupListener(
            getWikipedia(), OnePageAnalysisWindow.this);
        getTextContents().setPopupListener(listener);
      }
    }
    if (list != null) {
View Full Code Here

TOP

Related Classes of org.wikipediacleaner.gui.swing.component.MWPanePopupListener

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.