protected static URL websiteURL; static { try { websiteURL = new URL("http://aspell.sourceforge.net/"); } catch (MalformedURLException mue) { } //does not happen } /** * Construct the default ASpell plugin. */ public ASpellPlugin() { super(); } public String getDescription() { // TODO (@author fdietz): i18n return "<html><body><p>GNU Aspell is a Free and Open Source spell checker designed to eventually replace Ispell.</p><p>It can either be used as a library or as an independent spell checker. Its main feature is that it does a much better job of coming up with possible suggestions than just about any other spell checker out there for the English language, including Ispell and Microsoft Word.</p></p>It also has many other technical enhancements over Ispell such as using shared memory for dictionaries and intelligently handling personal dictionaries when more than one Aspell process is open at once.</p></body></html>"; } public URL getWebsite() { return websiteURL; } public File locate() { /* If this is a unix-based system, check the 2 best-known areas for the * aspell binary. */ if (OSInfo.isLinux() || OSInfo.isSolaris()) { if (defaultLinux.exists()) { return defaultLinux; } else if (defaultLocalLinux.exists()) { return defaultLocalLinux; } } /* RIYAD: The Prefs API cannot be used to read the Window's registry, * it is coded to use the registry (if available) as a backing store * on in the SOFTWARE/JavaSoft/Prefs registry keys for HKEY_CURRENT_USER * and HKEY_LOCAL_MACHINE paths. I have seen a few java apps that use * the Windows registry and they all required a native lib to do it. */ /* If this is windows, check the default installation location for the * aspell.exe binary. */ if (OSInfo.isWin32Platform() && defaultWin.exists()) { return defaultWin; } /* Couldn't find anything, so return null and let the wizard ask the * user. */ return null
protected static URL websiteURL; static { try { websiteURL = new URL("http://www.gnupg.org/"); } catch (MalformedURLException mue) { } //does not happen } /** * Construct the default GPG plugin. */ public GPGPlugin() { super(); } public String getDescription() { return "<html><body><p>GnuPG is a complete and free replacement for PGP.</p><p>Because it does not use the patented IDEA algorithm, it can be used without any restrictions. GnuPG is a RFC2440 (OpenPGP) compliant application.</p><p>GnuPG itself is a commandline tool without any graphical stuff. It is the real crypto engine which can be used directly from a command prompt, from shell scripts or by other programs. Therefore it can be considered as a backend for other applications.</p></body></html>"; } public URL getWebsite() { return websiteURL; } public File locate() { /* If this is a unix-based system, check the 2 best-known areas for the * gpg binary. */ if (OSInfo.isLinux() || OSInfo.isSolaris()) { if (defaultLinux.exists()) { return defaultLinux; } else if (defaultLocalLinux.exists()) { return defaultLocalLinux; } } /* RIYAD: The Prefs API cannot be used to read the Window's registry, * it is coded to use the registry (if available) as a backing store * on in the SOFTWARE/JavaSoft/Prefs registry keys for HKEY_CURRENT_USER * and HKEY_LOCAL_MACHINE paths. I have seen a few java apps that use * the Windows registry and they all required a native lib to do it. */ /* If this is windows, check the default installation location for the * gpg.exe binary. */ if (OSInfo.isWin32Platform() && defaultWin.exists()) { return defaultWin; } /* Couldn't find anything, so return null and let the wizard ask the * user. */ return null
Clone fragments detected by clone detection tool
File path: /columba-1.4-src/core/src/main/java/org/columba/core/gui/externaltools/ASpellPlugin.java File path: /columba-1.4-src/core/src/main/java/org/columba/core/gui/externaltools/GPGPlugin.java
Method name: Method name:
Number of AST nodes: 0 Number of AST nodes: 0
1
protected static URL websiteURL;
1
protected static URL websiteURL;
2
    static {
2
    static {
3
        try {
3
        try {
4
            websiteURL = new URL("http://aspell.sourceforge.net/");
4
            websiteURL = new URL("http://www.gnupg.org/");
5
        } catch (MalformedURLException mue) {
5
        } catch (MalformedURLException mue) {
6
        }
6
        }
7
        //does not happen
7
        //does not happen
8
    }
8
    }
9
    /**
9
    /**
10
 * Construct the default ASpell plugin.
10
 * Construct the default GPG plugin.
11
 */
11
 */
12
    public ASpellPlugin() {
12
    public GPGPlugin() {
13
        super();
13
        super();
14
    }
14
    }
15
    public String getDescription() {
15
    public String getDescription() {
16
        // TODO (@author fdietz): i18n
17
        return "<html><body><p>GNU Aspell is a Free and Open Source spell checker designed to eventually replace Ispell.</p><p>It can either be used as a library or as an independent spell checker. Its main feature is that it does a much better job of coming up with possible suggestions than just about any other spell checker out there for the English language, including Ispell and Microsoft Word.</p></p>It also has many other technical enhancements over Ispell such as using shared memory for dictionaries and intelligently handling personal dictionaries when more than one Aspell process is open at once.</p></body></html>";
16
        return "<html><body><p>GnuPG is a complete and free replacement for PGP.</p><p>Because it does not use the patented IDEA algorithm, it can be used without any restrictions. GnuPG is a RFC2440 (OpenPGP) compliant application.</p><p>GnuPG itself is a commandline tool without any graphical stuff. It is the real crypto engine which can be used directly from a command prompt, from shell scripts or by other programs. Therefore it can be considered as a backend for other applications.</p></body></html>";
18
    }
17
    }
19
    public URL getWebsite() {
18
    public URL getWebsite() {
20
        return websiteURL;
19
        return websiteURL;
21
    }
20
    }
22
    public File locate() {
21
    public File locate() {
23
        /* If this is a unix-based system, check the 2 best-known areas for the
22
        /* If this is a unix-based system, check the 2 best-known areas for the
24
 * aspell binary.
23
 * gpg binary.
25
 */
24
 */
26
        if (OSInfo.isLinux() || OSInfo.isSolaris()) {
25
        if (OSInfo.isLinux() || OSInfo.isSolaris()) {
27
            if (defaultLinux.exists()) {
26
            if (defaultLinux.exists()) {
28
                return defaultLinux;
27
                return defaultLinux;
29
            } else if (defaultLocalLinux.exists()) {
28
            } else if (defaultLocalLinux.exists()) {
30
                return defaultLocalLinux;
29
                return defaultLocalLinux;
31
            }
30
            }
32
        }
31
        }
33
        /* RIYAD: The Prefs API cannot be used to read the Window's registry,
32
        /* RIYAD: The Prefs API cannot be used to read the Window's registry,
34
 * it is coded to use the registry (if available) as a backing store
33
 * it is coded to use the registry (if available) as a backing store
35
 * on in the SOFTWARE/JavaSoft/Prefs registry keys for HKEY_CURRENT_USER
34
 * on in the SOFTWARE/JavaSoft/Prefs registry keys for HKEY_CURRENT_USER
36
 * and HKEY_LOCAL_MACHINE paths. I have seen a few java apps that use
35
 * and HKEY_LOCAL_MACHINE paths. I have seen a few java apps that use
37
 * the Windows registry and they all required a native lib to do it.
36
 * the Windows registry and they all required a native lib to do it.
38
 */
37
 */
39
        /* If this is windows, check the default installation location for the
38
        /* If this is windows, check the default installation location for the
40
 * aspell.exe binary.
39
 * gpg.exe binary.
41
 */
40
 */
42
        if (OSInfo.isWin32Platform() && defaultWin.exists()) {
41
        if (OSInfo.isWin32Platform() && defaultWin.exists()) {
43
            return defaultWin;
42
            return defaultWin;
44
        }
43
        }
45
        /* Couldn't find anything, so return null and let the wizard ask the
44
        /* Couldn't find anything, so return null and let the wizard ask the
46
 * user.
45
 * user.
47
 */
46
 */
48
        return null
47
        return null
Summary
Number of common nesting structure subtrees0
Number of refactorable cases0
Number of non-refactorable cases0
Time elapsed for finding largest common nesting structure subtrees (ms)0.0
Clones location
Number of node comparisons0