javax_swing_SwingUtilities


pattern_4 (2 partitions, 45 files)


javax.swing.SwingUtilities.isLeftMouseButton


Cluster 0 (25 files, similarity: 0.7080244000000006)

RPTools_____maptool_____FreehandTool
    if (SwingUtilities.isLeftMouseButton(e)) {
      startLine(e);
      setIsEraser(isEraser(e));
    }
            
magarena_____magarena_____GameStateRunner
                if (SwingUtilities.isLeftMouseButton(e) && e.getClickCount() == 2) {
                    loadTestClassAndRun(testClasses.getSelectedValue());
                }
            
RaiMan_____SikuliX-2014_____SwingXUtilities
    public static boolean shouldIgnore(MouseEvent mouseEvent,
            JComponent component) {
        return ((component == null) || (!(component.isEnabled()))
                || (!(SwingUtilities.isLeftMouseButton(mouseEvent)))
                || (mouseEvent.isConsumed()));
    }
            

pattern_2 (3 partitions, 52 files)


javax.swing.SwingUtilities.isEventDispatchThread


Cluster 1 (14 files, similarity: 0.704020989010988)

oracle_____visualvm_____Dialogs
        if (SwingUtilities.isEventDispatchThread()) r.run();
        else SwingUtilities.invokeLater(r);
            
metasfresh_____metasfresh_____Waiting
		if(SwingUtilities.isEventDispatchThread())
		{
			disposeRunnable.run();
		}
		else
		{
			SwingUtilities.invokeLater(disposeRunnable);
		}
            
Nilhcem_____FakeSMTP_____UncaughtExceptionHandler
			if (SwingUtilities.isEventDispatchThread()) {
				showException(t, e);
			} else {
				SwingUtilities.invokeLater(new Runnable() {
					public void run() {
						showException(t, e);
					}
				});
			}