Révision 2829

tmp/org.txm.core/src/java/org/txm/core/preferences/TBXPreferences.java (revision 2829)
2 2

  
3 3
import java.util.Locale;
4 4

  
5
import org.eclipse.core.runtime.Status;
6 5
import org.osgi.service.prefs.Preferences;
7 6
import org.txm.Toolbox;
8
import org.txm.core.engines.Engine;
9
import org.txm.core.engines.EngineType;
10
import org.txm.utils.logger.Log;
11 7

  
12 8
public class TBXPreferences extends TXMPreferences {
13 9
	
......
215 211
			preferences.put(UPDATESITE, "file://" + System.getProperty("user.home") + "/workspace047/TXMReleasePlugins.site");
216 212
		}
217 213
		else {
218
			preferences.put(UPDATESITE, "http://textometrie.ens-lyon.fr/dist");
214
			preferences.put(UPDATESITE, "http://gitlab.textometrie.org/txm/txm-software/-/raw/master/dist/");
219 215
		}
220 216
	}
221 217
}
tmp/org.txm.rcp/src/main/java/org/txm/rcp/commands/OpenWelcomePage.java (revision 2829)
49 49
	/** The Constant ID. */
50 50
	public final static String ID = "org.txm.rcp.commands.OpenWelcomePage"; //$NON-NLS-1$
51 51
	
52
	public static String WELCOME = "http://textometrie.ens-lyon.fr/html/welcome/";
52
	public static String WELCOME = "https://txm.gitpages.huma-num.fr/textometrie/html/welcome/";
53 53
	
54 54
	/*
55 55
	 * (non-Javadoc)
tmp/org.txm.rcp/src/main/java/org/txm/rcp/commands/OpenLocalizedWebPage.java (revision 2829)
52 52
	/** The Constant ID. */
53 53
	public final static String ID = "org.txm.rcp.commands.OpenLocalizedWebPage"; //$NON-NLS-1$
54 54

  
55
	public static final String URL_TEXTOMETRIE = "https://txm.gitpages.huma-num.fr/textometrie/";
56
	public static final String URL_SFWEB = URL_TEXTOMETRIE + "html/";
57
	public static final String URL_SFFILES = URL_TEXTOMETRIE + "files/";
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/";
59
	public static final String HTMLPAGES = URL_TEXTOMETRIE + "html/";
60
	public static final String FILESPAGES = URL_TEXTOMETRIE + "files/";
58 61
	
59 62
	public static final String TEXTOMETRIE = "textometrie"; //$NON-NLS-1$
60 63
	public static final String TEXTOMETRIE_DOCS = "textometrie_docs"; //$NON-NLS-1$
......
118 121
		String locale = Locale.getDefault().getLanguage();
119 122
		
120 123
		if (TEXTOMETRIE.equals(key)) {
121
			if (locale.equals("fr"))
122
				return OpenBrowser.openfile(getValidURL("http://textometrie.ens-lyon.fr/?lang="+locale, "http://textometrie.ens-lyon.fr/?lang=en")); //$NON-NLS-1$
123
			else 
124
				return OpenBrowser.openfile(getValidURL("http://textometrie.ens-lyon.fr/?lang=en", "http://textometrie.ens-lyon.fr/?lang=en")); //$NON-NLS-1$
124
			return OpenBrowser.openfile(getValidURL(URL_TEXTOMETRIE+locale, URL_TEXTOMETRIE)); //$NON-NLS-1$
125 125
		} else if (FAQ.equals(key)) {
126 126
			return OpenBrowser.openfile("https://groupes.renater.fr/wiki/txm-users/public/faq"); //$NON-NLS-1$
127 127
		} else if (CONTRIB.equals(key)) {
128 128
			return OpenBrowser.openfile("https://groupes.renater.fr/wiki/txm-users/public/contribuer"); //$NON-NLS-1$
129 129
		} else if (SF_DOCS.equals(key)) {
130
			return OpenBrowser.openfile(URL_SFFILES+"documentation"); //$NON-NLS-1$
130
			return OpenBrowser.openfile(FILESPAGES+"documentation"); //$NON-NLS-1$
131 131
		} else if (SF.equals(key)) {
132
			return OpenBrowser.openfile(URL_SFFILES); //$NON-NLS-1$
132
			return OpenBrowser.openfile(FILESPAGES); //$NON-NLS-1$
133 133
		} else if (TEXTOMETRIE_DOCS.equals(key)) {
134
			return OpenBrowser.openfile(getValidURL("http://textometrie.ens-lyon.fr/spip.php?rubrique85&lang="+locale, "http://textometrie.ens-lyon.fr/spip.php?rubrique85&lang=en")); //$NON-NLS-1$
134
			return OpenBrowser.openfile(getValidURL(URL_TEXTOMETRIE+locale+"/Documents-référence", URL_TEXTOMETRIE+"/Documents-référence")); //$NON-NLS-1$
135 135
		} else if (TREETAGGER.equals(key)) {
136
			return OpenBrowser.openfile(getValidURL(URL_SFWEB+"doc/treetagger/"+locale+"/install.html", URL_SFWEB+"doc/treetagger/en/install.html")); //$NON-NLS-1$ //$NON-NLS-2$
136
			return OpenBrowser.openfile(getValidURL(URL_TEXTOMETRIE+locale+"/InstallTreeTagger/", URL_TEXTOMETRIE+"InstallTreeTagger")); //$NON-NLS-1$ //$NON-NLS-2$
137 137
		} else if (REFMAN.equals(key)) {
138
			return OpenBrowser.openfile(getValidURL(URL_TEXTOMETRIE+"html/doc/manual/"+version+"/"+locale+"/manual1.xhtml", 
139
					URL_TEXTOMETRIE+"html/doc/manual/"+version+"/en/manual1.xhtml")); //$NON-NLS-1$
138
			return OpenBrowser.openfile(getValidURL(URL_TXMMANUAL+locale+"/"+version, 
139
					URL_TXMMANUAL+version)); //$NON-NLS-1$
140 140
		} else if (PDFREFMAN.equals(key)) {
141
			return OpenBrowser.openfile(URL_TEXTOMETRIE+"files/documentation/Manuel%20de%20TXM%200.8%20FR.pdf"); //$NON-NLS-1$ 
141
			return OpenBrowser.openfile(FILESPAGES+"documentation/Manuel%20de%20TXM%200.8%20FR.pdf"); //$NON-NLS-1$ 
142 142
		} else if (BUG.equals(key)) {
143 143
			if (locale.equals("fr")) { //$NON-NLS-1$
144 144
				return OpenBrowser.openfile("https://groupes.renater.fr/wiki/txm-users/public/retours_de_bugs_logiciel"); //$NON-NLS-1$
145 145
			} else {
146
				return OpenBrowser.openfile("https://sourceforge.net/p/txm/feature-requests/?source=navbar"); //$NON-NLS-1$
146
				return OpenBrowser.openfile(URL_TXMDEPOT+"-/issues"); //$NON-NLS-1$
147 147
			}
148 148
		} else if (FEATURE.equals(key)) {
149 149
			if (locale.equals("fr")) { //$NON-NLS-1$
150 150
				return OpenBrowser.openfile("https://groupes.renater.fr/wiki/txm-users/public/demande_de_fonctionnalites"); //$NON-NLS-1$
151 151
			} else {
152
				return OpenBrowser.openfile("http://sourceforge.net/tracker/?group_id=247041&atid=1190851"); //$NON-NLS-1$
152
				return OpenBrowser.openfile(URL_TXMDEPOT+"-/issues"); //$NON-NLS-1$
153 153
			}
154 154
		} else if (MAILINGLIST.equals(key)) {
155 155
			return OpenBrowser.openfile("https://groupes.renater.fr/sympa/subscribe/txm-users"); //$NON-NLS-1$

Formats disponibles : Unified diff