Révision 3584
TXM/trunk/org.txm.rcp/src/main/java/org/txm/rcp/ApplicationWorkbenchAdvisor.java (revision 3584) | ||
---|---|---|
752 | 752 |
|
753 | 753 |
final IWorkbench w = PlatformUI.getWorkbench(); |
754 | 754 |
if (w == null) { |
755 |
System.out.println("no workbench"); //$NON-NLS-1$ |
|
755 |
//System.out.println("no workbench"); //$NON-NLS-1$
|
|
756 | 756 |
return; |
757 | 757 |
} |
758 | 758 |
|
... | ... | |
760 | 760 |
|
761 | 761 |
@Override |
762 | 762 |
public void run() { |
763 |
try { |
|
764 |
IWorkbenchWindow aww = w.getActiveWorkbenchWindow(); |
|
765 |
if (aww == null) { |
|
766 |
System.out.println(TXMUIMessages.noActiveWorkbenchWindow); |
|
767 |
return; |
|
768 |
} |
|
769 |
IWorkbenchPage page = aww.getActivePage(); |
|
770 |
if (page == null) { |
|
771 |
System.out.println(TXMUIMessages.noActivePage); |
|
772 |
return; |
|
773 |
} |
|
774 |
IViewPart view = page.findView("org.eclipse.pde.runtime.LogView"); //$NON-NLS-1$ |
|
775 |
if (view == null) { |
|
776 |
view = page.showView("org.eclipse.pde.runtime.LogView"); //$NON-NLS-1$ |
|
777 |
} |
|
778 |
} |
|
779 |
catch (Exception e1) { |
|
780 |
System.out.println(TXMUIMessages.partInitializationErrorColon + e1); |
|
781 |
e1.printStackTrace(); |
|
782 |
return; |
|
783 |
} |
|
763 |
// try { |
|
764 |
// IWorkbenchWindow aww = w.getActiveWorkbenchWindow(); |
|
765 |
// if (aww == null) { |
|
766 |
// System.out.println(TXMUIMessages.noActiveWorkbenchWindow); |
|
767 |
// return; |
|
768 |
// } |
|
769 |
// IWorkbenchPage page = aww.getActivePage(); |
|
770 |
// if (page == null) { |
|
771 |
// System.out.println(TXMUIMessages.noActivePage); |
|
772 |
// return; |
|
773 |
// } |
|
774 |
// IViewPart view = page.findView("org.eclipse.pde.runtime.LogView"); //$NON-NLS-1$ |
|
775 |
// if (view == null) { |
|
776 |
// view = page.showView("org.eclipse.pde.runtime.LogView"); //$NON-NLS-1$ |
|
777 |
// } |
|
778 |
// } |
|
779 |
// catch (Exception e1) { |
|
780 |
// System.out.println(TXMUIMessages.partInitializationErrorColon + e1); |
|
781 |
// e1.printStackTrace(); |
|
782 |
// return; |
|
783 |
// } |
|
784 |
MessageDialog.openError(w.getDisplay().getActiveShell(), "Error", record.getMessage()); |
|
784 | 785 |
} |
785 | 786 |
}); |
786 | 787 |
|
787 |
IStatus s = new Status(Status.ERROR, Application.PLUGIN_ID, Status.OK, record.getMessage(), null); |
|
788 |
StatusManager.getManager().handle(s, StatusManager.LOG); |
|
788 |
// IStatus s = new Status(Status.ERROR, Application.PLUGIN_ID, Status.OK, record.getMessage(), null);
|
|
789 |
// StatusManager.getManager().handle(s, StatusManager.LOG);
|
|
789 | 790 |
} |
790 | 791 |
} |
791 | 792 |
|
TXM/trunk/org.txm.core/src/java/org/txm/objects/Project.java (revision 3584) | ||
---|---|---|
409 | 409 |
// Log.severe("Project._compute(): Import engine not found."); |
410 | 410 |
|
411 | 411 |
// no import set |
412 |
Log.severe("Error: no improt module set. Aborting import.");
|
|
412 |
Log.severe("Error: no import module set. Aborting import.");
|
|
413 | 413 |
return false; |
414 | 414 |
} |
415 | 415 |
|
416 | 416 |
Log.finest("RUNNING IMPORT MODULE WITH NAME = " + getImportModuleName()); |
417 | 417 |
|
418 | 418 |
boolean state = engine.build(this, monitor.internalGetSubMonitor()) == Status.OK_STATUS; |
419 |
|
|
419 | 420 |
if (state == true) { |
420 | 421 |
this.needToBuild = false; |
421 | 422 |
// This step could be done only if the compiler step if done and only if it modifying/deleting the corpus builds |
TXM/trunk/org.txm.ahc.core/src/org/txm/ahc/core/messages/messages.properties (revision 3584) | ||
---|---|---|
10 | 10 |
error_canNotComputeAHCWithLessThan4RowsInTheTable=** Can not compute clustering with less than 4 rows in the table |
11 | 11 |
error_error2= |
12 | 12 |
error_errorWhileExportingCAHToTXT=** Error while exporting clustering result. |
13 |
failToBuildTheAHCForSelectionP1DbldotP1=Failed to build the clustering of the selection
|
|
13 |
failToBuildTheAHCForSelectionP0DbldotP1=Failed to build the clustering of the selection {0}: {1}
|
|
14 | 14 |
info_ahcOfTheP0ca=Clustering based on the {0} Correspondence analysis… |
15 | 15 |
info_ahcOfTheP0LexcialTable=Clustering of the {0} lexical table... |
16 | 16 |
info_ahcOfTheP0PartitionCommaP1Property=Clustering of partition {0} on property {1}... |
TXM/trunk/org.txm.ahc.core/src/org/txm/ahc/core/messages/messages_fr.properties (revision 3584) | ||
---|---|---|
10 | 10 |
error_canNotComputeAHCWithLessThan4RowsInTheTable=** Impossible de calculer une classification avec moins de 4 lignes dans la table |
11 | 11 |
error_error2=null |
12 | 12 |
error_errorWhileExportingCAHToTXT=** Erreur durant l'exportation du résultat de la classification. |
13 |
failToBuildTheAHCForSelectionP1DbldotP1=Échec de la construction de la classification de la sélection
|
|
13 |
failToBuildTheAHCForSelectionP0DbldotP1=Échec de la construction de la classification de la sélection {0} : {1}
|
|
14 | 14 |
info_ahcOfTheP0ca=Classification basée sur l'Analyse des correspondances {0}... |
15 | 15 |
info_ahcOfTheP0LexcialTable=Classification de la table lexicale {0}... |
16 | 16 |
info_ahcOfTheP0PartitionCommaP1Property=Classification de la partition {0} selon la propriété {1}... |
TXM/trunk/org.txm.ahc.core/src/org/txm/ahc/core/messages/AHCCoreMessages.java (revision 3584) | ||
---|---|---|
46 | 46 |
|
47 | 47 |
public static String error_canNotComputeAHCWithLessThan4RowsInTheTable; |
48 | 48 |
|
49 |
public static String failToBuildTheAHCForSelectionP1DbldotP1;
|
|
49 |
public static String failToBuildTheAHCForSelectionP0DbldotP1;
|
|
50 | 50 |
|
51 | 51 |
|
52 | 52 |
|
TXM/trunk/org.txm.groovy.core/src/java/org/txm/groovy/core/GroovyScriptedImportEngine.java (revision 3584) | ||
---|---|---|
1 | 1 |
package org.txm.groovy.core; |
2 | 2 |
|
3 | 3 |
import java.io.File; |
4 |
import java.util.ArrayList; |
|
5 |
import java.util.Arrays; |
|
6 |
import java.util.Collection; |
|
7 |
import java.util.List; |
|
8 | 4 |
import java.util.logging.Level; |
9 | 5 |
|
10 | 6 |
import org.eclipse.core.runtime.IProgressMonitor; |
... | ... | |
19 | 15 |
import org.txm.core.messages.TXMCoreMessages; |
20 | 16 |
import org.txm.core.results.TXMResult; |
21 | 17 |
import org.txm.groovy.core.messages.GroovyMessages; |
22 |
import org.txm.objects.CorpusBuild; |
|
23 |
import org.txm.objects.Edition; |
|
24 | 18 |
import org.txm.objects.Project; |
25 |
import org.txm.objects.Text; |
|
26 | 19 |
import org.txm.objects.Workspace; |
27 |
import org.txm.searchengine.cqp.CQPSearchEngine; |
|
28 | 20 |
import org.txm.tokenizer.TokenizerClasses; |
29 | 21 |
import org.txm.utils.DeleteDir; |
30 | 22 |
import org.txm.utils.ExecTimer; |
... | ... | |
183 | 175 |
// System.out.println(NLS.bind(TXMUIMessages.errorWhileRunningScriptColonP0, e)); |
184 | 176 |
Log.printStackTrace(e); |
185 | 177 |
Log.warning("Import failed: "+e); |
186 |
return new Status(Status.ERROR, "org.txm.groovy.core", e.getMessage()); |
|
178 |
|
|
179 |
return new Status(Status.ERROR, e.getClass().getCanonicalName(), e.getMessage()); |
|
187 | 180 |
} |
188 | 181 |
finally { |
189 | 182 |
// if (!CQPSearchEngine.isInitialized()) { // the import failed |
TXM/trunk/org.txm.ahc.rcp/src/org/txm/ahc/rcp/handlers/ComputeAHC.java (revision 3584) | ||
---|---|---|
131 | 131 |
CA ca = new CA(lexicalTable); |
132 | 132 |
ca.setVisible(false); |
133 | 133 |
ahc = new AHC(ca); |
134 |
|
|
135 | 134 |
} |
136 | 135 |
|
137 | 136 |
ChartEditor.openEditor(ahc); |
138 | 137 |
} |
139 | 138 |
catch (Exception e) { |
140 |
Log.severe(AHCCoreMessages.failToBuildTheAHCForSelectionP1DbldotP1 + selection + ": " + e); //$NON-NLS-2$ |
|
141 | 139 |
Log.printStackTrace(e); |
140 |
Log.severe(AHCCoreMessages.bind(AHCCoreMessages.failToBuildTheAHCForSelectionP0DbldotP1, selection, e.getMessage())); |
|
142 | 141 |
return null; |
143 | 142 |
} |
144 | 143 |
return ahc; |
Formats disponibles : Unified diff