27 |
27 |
//
|
28 |
28 |
package org.txm.rcp.commands;
|
29 |
29 |
|
30 |
|
import java.io.IOException;
|
31 |
|
import java.net.MalformedURLException;
|
32 |
30 |
import java.net.URL;
|
33 |
31 |
import java.util.Locale;
|
34 |
32 |
|
... | ... | |
37 |
35 |
import org.eclipse.core.commands.ExecutionException;
|
38 |
36 |
import org.eclipse.core.runtime.Platform;
|
39 |
37 |
import org.txm.rcp.Activator;
|
40 |
|
import org.txm.rcp.TxmPreferences;
|
41 |
|
import org.txm.rcp.preferences.LocalePreferencePage;
|
42 |
38 |
import org.txm.utils.logger.Log;
|
43 |
39 |
|
44 |
40 |
// TODO: Auto-generated Javadoc
|
... | ... | |
52 |
48 |
/** The Constant ID. */
|
53 |
49 |
public final static String ID = "org.txm.rcp.commands.OpenLocalizedWebPage"; //$NON-NLS-1$
|
54 |
50 |
|
55 |
|
public static final String GITLAB = "https://txm.gitpages.huma-num.fr/";
|
56 |
|
public static final String URL_TEXTOMETRIE = GITLAB+"textometrie/";
|
57 |
|
public static final String URL_TXMMANUAL = GITLAB+"txm-manual/";
|
58 |
|
public static final String URL_TXMDEPOT = GITLAB+"txm-software/";
|
|
51 |
public static final String GITPAGES = "https://pages.textometrie.org/";
|
|
52 |
public static final String URL_TEXTOMETRIE = "https://textometrie.org/"; // = GITPAGES+textometrie
|
|
53 |
public static final String URL_TXMMANUAL = GITPAGES+"txm-manual/";
|
|
54 |
public static final String URL_TXMDEPOT = GITPAGES+"txm-software/";
|
59 |
55 |
public static final String HTMLPAGES = URL_TEXTOMETRIE + "html/";
|
60 |
56 |
public static final String FILESPAGES = URL_TEXTOMETRIE + "files/";
|
61 |
57 |
|
... | ... | |
135 |
131 |
} else if (TREETAGGER.equals(key)) {
|
136 |
132 |
return OpenBrowser.openfile(getValidURL(URL_TEXTOMETRIE+locale+"/InstallTreeTagger/", URL_TEXTOMETRIE+"InstallTreeTagger")); //$NON-NLS-1$ //$NON-NLS-2$
|
137 |
133 |
} else if (REFMAN.equals(key)) {
|
138 |
|
return OpenBrowser.openfile(getValidURL(URL_TXMMANUAL+locale+"/"+version,
|
139 |
|
URL_TXMMANUAL+version)); //$NON-NLS-1$
|
|
134 |
return OpenBrowser.openfile(getValidURL(URL_TXMMANUAL+locale, URL_TXMMANUAL)); //$NON-NLS-1$
|
140 |
135 |
} else if (PDFREFMAN.equals(key)) {
|
141 |
136 |
return OpenBrowser.openfile(FILESPAGES+"documentation/Manuel%20de%20TXM%200.8%20FR.pdf"); //$NON-NLS-1$
|
142 |
137 |
} else if (BUG.equals(key)) {
|