Révision 2979
| tmp/org.txm.rcp/src/main/java/org/txm/rcp/messages/messages.properties (revision 2979) | ||
|---|---|---|
| 3 | 3 |
#Tue Dec 18 10:24:08 CET 2018 |
| 4 | 4 |
|
| 5 | 5 |
pattern=pattern |
| 6 |
sprintf_pattern_tooltip=sprintf pattern |
|
| 6 | 7 |
|
| 7 | 8 |
EMPTY = \ \n |
| 8 | 9 |
|
| tmp/org.txm.rcp/src/main/java/org/txm/rcp/messages/messages_fr.properties (revision 2979) | ||
|---|---|---|
| 2 | 2 |
#TXM messages generated by the PluginMessagesManager class |
| 3 | 3 |
#Tue Dec 18 10:24:08 CET 2018 |
| 4 | 4 |
|
| 5 |
pattern=motif |
|
| 5 |
pattern=format |
|
| 6 |
sprintf_pattern_tooltip=au format sprintf |
|
| 6 | 7 |
|
| 7 | 8 |
EMPTY = \ \n |
| 8 | 9 |
|
| tmp/org.txm.rcp/src/main/java/org/txm/rcp/messages/TXMUIMessages.java (revision 2979) | ||
|---|---|---|
| 8 | 8 |
|
| 9 | 9 |
private static final String BUNDLE_NAME = "org.txm.rcp.messages.messages"; //$NON-NLS-1$ |
| 10 | 10 |
|
| 11 |
public static String sprintf_pattern_tooltip; |
|
| 12 |
|
|
| 11 | 13 |
public static String theP0FileAlreadyExistsWouldYouLikeToReplaceIt; |
| 12 | 14 |
|
| 13 | 15 |
public static String theP0directoryNotABinaryCorpus; |
| tmp/org.txm.rcp/src/main/java/org/txm/rcp/swt/dialog/ReferencePatternSelectionDialog.java (revision 2979) | ||
|---|---|---|
| 87 | 87 |
if (pattern != null) {
|
| 88 | 88 |
patternText.setText(pattern); |
| 89 | 89 |
} |
| 90 |
patternText.setToolTipText("sprintf pattern");
|
|
| 90 |
patternText.setToolTipText(TXMUIMessages.sprintf_pattern_tooltip);
|
|
| 91 | 91 |
GridData gdata = new GridData(SWT.WRAP, SWT.WRAP, true, true); |
| 92 | 92 |
gdata.widthHint = 200; |
| 93 | 93 |
gdata.minimumWidth = 50; |
| tmp/org.txm.concordance.rcp/src/org/txm/concordance/rcp/actions/DefineViewReferencePattern.java (revision 2979) | ||
|---|---|---|
| 31 | 31 |
import java.util.List; |
| 32 | 32 |
|
| 33 | 33 |
import org.eclipse.jface.action.Action; |
| 34 |
import org.eclipse.jface.dialogs.Dialog; |
|
| 35 | 34 |
import org.eclipse.jface.window.Window; |
| 36 |
import org.eclipse.swt.SWT; |
|
| 37 |
import org.eclipse.swt.events.MouseEvent; |
|
| 38 |
import org.eclipse.swt.events.MouseListener; |
|
| 39 |
import org.eclipse.swt.events.SelectionAdapter; |
|
| 40 |
import org.eclipse.swt.events.SelectionEvent; |
|
| 41 |
import org.eclipse.swt.layout.GridData; |
|
| 42 |
import org.eclipse.swt.layout.GridLayout; |
|
| 43 |
import org.eclipse.swt.widgets.Button; |
|
| 44 |
import org.eclipse.swt.widgets.Composite; |
|
| 45 |
import org.eclipse.swt.widgets.Control; |
|
| 46 |
import org.eclipse.swt.widgets.Shell; |
|
| 47 | 35 |
import org.eclipse.ui.IWorkbenchWindow; |
| 48 | 36 |
import org.eclipse.ui.actions.ActionFactory.IWorkbenchAction; |
| 49 | 37 |
import org.txm.concordance.rcp.editors.ConcordanceEditor; |
| ... | ... | |
| 52 | 40 |
import org.txm.searchengine.cqp.ReferencePattern; |
| 53 | 41 |
import org.txm.searchengine.cqp.corpus.Property; |
| 54 | 42 |
import org.txm.searchengine.cqp.corpus.StructuralUnit; |
| 55 |
import org.txm.searchengine.cqp.corpus.StructuralUnitProperty; |
|
| 56 |
import org.txm.searchengine.cqp.corpus.VirtualProperty; |
|
| 57 | 43 |
|
| 58 | 44 |
/** |
| 59 | 45 |
* Action to build the reference pattern. |
| tmp/org.txm.properties.rcp/src/org/txm/properties/rcp/editors/DocumentationTab.java (revision 2979) | ||
|---|---|---|
| 50 | 50 |
public void updateEditorFromResult() {
|
| 51 | 51 |
TXMResult r = this.editor.getResult().getParent(); |
| 52 | 52 |
Project p = r.getFirstParent(Project.class); |
| 53 |
File file = new File(p.getProjectDirectory(), "doc/index.html"); |
|
| 54 |
if (file != null && file.exists()) {
|
|
| 55 |
try {
|
|
| 56 |
this.browser.setUrl(file.toURI().toURL().toString()); |
|
| 57 |
} |
|
| 58 |
catch (MalformedURLException e) {
|
|
| 59 |
// TODO Auto-generated catch block |
|
| 60 |
e.printStackTrace(); |
|
| 61 |
} |
|
| 53 |
|
|
| 54 |
String documentationPath = p.getDocumentationURL(); |
|
| 55 |
if (documentationPath.length() > 0) {
|
|
| 56 |
this.browser.setUrl(documentationPath); |
|
| 62 | 57 |
} |
| 63 | 58 |
else {
|
| 64 | 59 |
Log.severe("Information HTML file doesn't exist."); //$NON-NLS-1$
|
| tmp/org.txm.properties.rcp/src/org/txm/properties/rcp/editors/PropertiesPagedEditor.java (revision 2979) | ||
|---|---|---|
| 52 | 52 |
tabs.add(resultTab); |
| 53 | 53 |
|
| 54 | 54 |
Project p = this.getResult().getFirstParent(Project.class); |
| 55 |
File file = new File(p.getProjectDirectory(), "doc/index.html"); |
|
| 56 |
if (file.exists()) {
|
|
| 55 |
if (!p.getDocumentationURL().isEmpty()) {
|
|
| 57 | 56 |
DocumentationTab docTab = new DocumentationTab(tabFolder, this); |
| 58 | 57 |
tabs.add(docTab); |
| 59 | 58 |
} |
| ... | ... | |
| 75 | 74 |
tab.updateEditorFromResult(); |
| 76 | 75 |
} |
| 77 | 76 |
} |
| 78 |
|
|
| 79 |
|
|
| 80 | 77 |
} |
| tmp/org.txm.groovy.core/src/groovy/org/txm/macro/projects/antract/PrepareAFVOIXOFFCorpusMacro.groovy (revision 2979) | ||
|---|---|---|
| 57 | 57 |
backtomedia/media_extension=mp4 |
| 58 | 58 |
backtomedia/media_path_prefix=https\\://{0}\\:{1}@okapi.ina.fr/antract/Media/AF/
|
| 59 | 59 |
backtomedia/name=backtomedia |
| 60 |
backtomedia/secured_media_login=okapi_reader |
|
| 61 |
backtomedia/secured_media_path_prefix=https\\://{0}\\:{1}@okapi.ina.fr/antract/Media/AF/
|
|
| 62 | 60 |
backtomedia/sync_mode=Structure |
| 63 | 61 |
concordance/context_limits=text |
| 64 | 62 |
concordance/context_limits_type=list |
| 65 |
concordance/view_reference_pattern={"format"\\:"","properties"\\:["text_date-de-diffusion","u_time","div_identifiant-de-la-notice"]}
|
|
| 66 |
concordance/sort_reference_pattern={"format"\\:"","properties"\\:["text_date-de-diffusion","u_time","div_identifiant-de-la-notice"]}
|
|
| 63 |
concordance/view_reference_pattern={"format"\\:"%s, %s, %s","properties"\\:["text_date-de-diffusion","u_time","div_identifiant-de-la-notice"]}
|
|
| 64 |
concordance/sort_reference_pattern={"format"\\:"","properties"\\:["text_date-de-diffusion-tri","u_time","div_identifiant-de-la-notice"]}
|
|
| 67 | 65 |
concordance/name=concordance |
| 68 | 66 |
eclipse.preferences.version=1""" |
| 69 | 67 |
|
| tmp/org.txm.groovy.core/src/groovy/org/txm/macro/projects/antract/FixINATRSMacro.groovy (revision 2979) | ||
|---|---|---|
| 15 | 15 |
|
| 16 | 16 |
println "Fixing $trsDirectory" |
| 17 | 17 |
def files = trsDirectory.listFiles() |
| 18 |
if (files == null) {
|
|
| 19 |
println "No files found in $trsDirectory" |
|
| 20 |
return 0; |
|
| 21 |
} |
|
| 22 |
|
|
| 18 | 23 |
ConsoleProgressBar cpb = new ConsoleProgressBar(files.size()) |
| 19 | 24 |
for (File trsFile : files) {
|
| 20 | 25 |
//File trsFile = new File(directory, "AFE86004868.trs") |
| tmp/org.txm.core/src/java/org/txm/objects/Project.java (revision 2979) | ||
|---|---|---|
| 31 | 31 |
import java.io.File; |
| 32 | 32 |
import java.io.IOException; |
| 33 | 33 |
import java.lang.reflect.Constructor; |
| 34 |
import java.net.MalformedURLException; |
|
| 34 | 35 |
import java.util.ArrayList; |
| 35 | 36 |
import java.util.Arrays; |
| 36 | 37 |
import java.util.HashMap; |
| ... | ... | |
| 304 | 305 |
} |
| 305 | 306 |
|
| 306 | 307 |
/** |
| 308 |
* The documentation URL is stored in the "documentation" node and the "url" property. |
|
| 307 | 309 |
* |
| 310 |
* If it is not set (empty value) the methods returns a local path to the doc/index.html file |
|
| 311 |
* |
|
| 312 |
* if the "doc/index.html" file does not exists the returned path is empty as well |
|
| 313 |
* |
|
| 314 |
* @return an URL to the corpus project documentation. empty if not available |
|
| 315 |
*/ |
|
| 316 |
public String getDocumentationURL() {
|
|
| 317 |
String documentationPath = this.getPreferencesScope().getNode("documentation").get("url", "");
|
|
| 318 |
if (documentationPath.length() == 0) {
|
|
| 319 |
File file = new File(this.getProjectDirectory(), "doc/index.html"); |
|
| 320 |
if (file != null && file.exists()) {
|
|
| 321 |
try {
|
|
| 322 |
documentationPath = file.toURI().toURL().toString(); |
|
| 323 |
} |
|
| 324 |
catch (MalformedURLException e) {
|
|
| 325 |
e.printStackTrace(); |
|
| 326 |
} |
|
| 327 |
|
|
| 328 |
} |
|
| 329 |
} |
|
| 330 |
return documentationPath; |
|
| 331 |
} |
|
| 332 |
|
|
| 333 |
/** |
|
| 334 |
* |
|
| 308 | 335 |
* @return the corpus architecture version (currently 0.8.0) |
| 309 | 336 |
*/ |
| 310 | 337 |
public String getCorpusVersion() {
|
Formats disponibles : Unified diff