Révision 3861
| TXM/trunk/bundles/org.txm.specificities.rcp/src/org/txm/specificities/rcp/handlers/ComputeSpecifictiesSelectionChart.java (revision 3861) | ||
|---|---|---|
| 16 | 16 |
import org.txm.specificities.core.functions.SpecificitiesSelection; |
| 17 | 17 |
import org.txm.specificities.rcp.editors.SpecifLine; |
| 18 | 18 |
import org.txm.specificities.rcp.editors.SpecificitiesEditor; |
| 19 |
import org.txm.specificities.rcp.messages.SpecificitiesUIMessages; |
|
| 19 | 20 |
import org.txm.utils.logger.Log; |
| 20 | 21 |
|
| 21 | 22 |
|
| ... | ... | |
| 50 | 51 |
IWorkbenchPage iwp = iww.getActivePage(); |
| 51 | 52 |
IEditorPart editor = iwp.getActiveEditor(); |
| 52 | 53 |
if (!(editor instanceof SpecificitiesEditor)) {
|
| 53 |
Log.warning("Editor is not a SpecificitiesEditor: " + editor.getClass());
|
|
| 54 |
Log.warning(SpecificitiesUIMessages.EditorIsNotASpecificitiesEditorP0 + editor.getClass());
|
|
| 54 | 55 |
return null; |
| 55 | 56 |
} |
| 56 | 57 |
|
| 57 | 58 |
open((SpecificitiesEditor) editor); |
| 58 | 59 |
} |
| 59 | 60 |
catch (Exception e) {
|
| 60 |
System.out.println("Error while computing specificities bar chart: " + e.getLocalizedMessage());
|
|
| 61 |
System.out.println(SpecificitiesUIMessages.ErrorWhileComputingSpecificitiesBarChartP0 + e.getLocalizedMessage());
|
|
| 61 | 62 |
org.txm.utils.logger.Log.printStackTrace(e); |
| 62 | 63 |
} |
| 63 | 64 |
} |
| ... | ... | |
| 97 | 98 |
open(specificitiesSelection); |
| 98 | 99 |
} |
| 99 | 100 |
catch (Exception e) {
|
| 100 |
System.out.println("Error while computing specificities bar chart: " + e.getLocalizedMessage());
|
|
| 101 |
System.out.println(SpecificitiesUIMessages.ErrorWhileComputingSpecificitiesBarChartP0 + e.getLocalizedMessage());
|
|
| 101 | 102 |
org.txm.utils.logger.Log.printStackTrace(e); |
| 102 | 103 |
} |
| 103 | 104 |
|
| TXM/trunk/bundles/org.txm.specificities.rcp/src/org/txm/specificities/rcp/messages/messages.properties (revision 3861) | ||
|---|---|---|
| 4 | 4 |
banalityThreshold=Banality threshold |
| 5 | 5 |
drawBars=Show bars |
| 6 | 6 |
drawLines=Show lines |
| 7 |
EditorIsNotASpecificitiesEditorP0=Editor is not a SpecificitiesEditor: |
|
| 8 |
ErrorWhileComputingSpecificitiesBarChartP0=Error while computing specificities bar chart: |
|
| 7 | 9 |
failedToComputeSpecificities=** Failed to compute specificities\: {0}.
|
| 8 | 10 |
groupBarsByLines=Group the bars by the rows of the table |
| 9 | 11 |
index=index |
| TXM/trunk/bundles/org.txm.specificities.rcp/src/org/txm/specificities/rcp/messages/SpecificitiesUIMessages.java (revision 3861) | ||
|---|---|---|
| 21 | 21 |
public static String banality; |
| 22 | 22 |
public static String banalityThreshold; |
| 23 | 23 |
|
| 24 |
public static String EditorIsNotASpecificitiesEditorP0; |
|
| 25 |
|
|
| 26 |
public static String ErrorWhileComputingSpecificitiesBarChartP0; |
|
| 27 |
|
|
| 24 | 28 |
public static String maximumScore; |
| 25 | 29 |
public static String failedToComputeSpecificities; |
| 26 | 30 |
public static String t; |
Formats disponibles : Unified diff