Previous CloneSet | Next CloneSet | Back to Main Report |
Clone Mass | Clones in CloneSet | Parameter Count | Clone Similarity | Syntax Category [Sequence Length] |
---|---|---|---|---|
7 | 2 | 2 | 0.970 | method_declaration |
Clone Abstraction | Parameter Bindings |
Clone Instance (Click to see clone) | Line Count | Source Line | Source File |
---|---|---|---|
1 | 7 | 145 | E:/TSE/Projects-CloneDR/jEdit-4.2/src/org/gjt/sp/jedit/Macros.java |
2 | 7 | 162 | E:/TSE/Projects-CloneDR/jEdit-4.2/src/org/gjt/sp/jedit/Macros.java |
| |||||
//{{{ message() method /** * Utility method that can be used to display a message dialog in a macro. * @param comp The component to show the dialog on behalf of, this * will usually be a view instance * @param message The message * @since jEdit 2.7pre2 */ public static void message(Component comp, String message) { GUIUtilities.hideSplashScreen(); JOptionPane.showMessageDialog(comp, message, jEdit.getProperty("macro-message.title"), JOptionPane.INFORMATION_MESSAGE); } //}}} |
| |||||
//{{{ error() method /** * Utility method that can be used to display an error dialog in a macro. * @param comp The component to show the dialog on behalf of, this * will usually be a view instance * @param message The message * @since jEdit 2.7pre2 */ public static void error(Component comp, String message) { GUIUtilities.hideSplashScreen(); JOptionPane.showMessageDialog(comp, message, jEdit.getProperty("macro-message.title"), JOptionPane.ERROR_MESSAGE); } //}}} |
| |||
//{{{ error() method /** * Utility method that can be used to display an error dialog in a macro. * @param comp The component to show the dialog on behalf of, this * will usually be a view instance * @param message The message * @since jEdit 2.7pre2 */ //{{{ message() method /** * Utility method that can be used to display a message dialog in a macro. * @param comp The component to show the dialog on behalf of, this * will usually be a view instance * @param message The message * @since jEdit 2.7pre2 */ public static void [[#variableaead100]](Component comp, String message) { GUIUtilities.hideSplashScreen(); JOptionPane.showMessageDialog(comp, message, jEdit.getProperty("macro-message.title"), JOptionPane. [[#variableaeacf60]]); } //}}} |
CloneAbstraction |
Parameter Index | Clone Instance | Parameter Name | Value |
---|---|---|---|
1 | 1 | [[#aead100]] | message |
1 | 2 | [[#aead100]] | error |
2 | 1 | [[#aeacf60]] | INFORMATION_MESSAGE |
2 | 2 | [[#aeacf60]] | ERROR_MESSAGE |