Révision 865
tmp/org.txm.ca.rcp/src/org/txm/ca/rcp/messages/CAUIMessages.java (revision 865) | ||
---|---|---|
11 | 11 |
*/ |
12 | 12 |
public class CAUIMessages extends Utf8NLS { |
13 | 13 |
|
14 |
private static final String BUNDLE_NAME = "org.txm.ca.rcp.messages.messages"; //$NON-NLS-1$ |
|
15 |
|
|
14 | 16 |
public static String PreferencePage_0; |
15 | 17 |
public static String PreferencePage_1; |
16 | 18 |
public static String PreferencePage_2; |
... | ... | |
61 | 63 |
|
62 | 64 |
|
63 | 65 |
static { |
64 |
Utf8NLS.initializeMessages(CAUIMessages.class); |
|
66 |
Utf8NLS.initializeMessages(BUNDLE_NAME, CAUIMessages.class);
|
|
65 | 67 |
} |
66 | 68 |
|
67 | 69 |
} |
tmp/org.txm.ca.rcp/src/org/txm/ca/rcp/handlers/ComputeCA.java (revision 865) | ||
---|---|---|
130 | 130 |
ca = (CA) selection; |
131 | 131 |
} |
132 | 132 |
else { |
133 |
Log.severe("Error: cannot compute a CA with current selection: " + selection); |
|
134 |
return null; |
|
133 |
throw new Throwable(); |
|
135 | 134 |
} |
136 | 135 |
// compute the CA |
137 | 136 |
ca.compute(); |
138 | 137 |
|
139 |
try {
|
|
138 |
System.out.println(CAUIMessages.ComputeCorrespondanceAnalysis_8);
|
|
140 | 139 |
|
141 |
System.out.println(CAUIMessages.ComputeCorrespondanceAnalysis_8); |
|
140 |
TXMResultEditorInput editorInput = new TXMResultEditorInput(ca); |
|
141 |
IWorkbenchPage page = TXMWindows.getActivePage(); |
|
142 |
StatusLine.setMessage(CAUIMessages.ComputeCorrespondanceAnalysis_14); |
|
143 |
IEditorPart editor = page.openEditor(editorInput, CAEditor.class.getName()); |
|
142 | 144 |
|
143 |
TXMResultEditorInput editorInput = new TXMResultEditorInput(ca); |
|
144 |
IWorkbenchPage page = TXMWindows.getActivePage(); |
|
145 |
StatusLine.setMessage(CAUIMessages.ComputeCorrespondanceAnalysis_14); |
|
146 |
IEditorPart editor = page.openEditor(editorInput, CAEditor.class.getName()); |
|
147 |
|
|
148 |
|
|
149 |
|
|
150 |
} |
|
151 |
catch (Throwable e) { |
|
152 |
System.out.println("Error while opening CAEditor with " + ca); |
|
153 |
Log.printStackTrace(e); |
|
154 |
} |
|
155 |
|
|
156 | 145 |
} |
157 | 146 |
catch (Throwable e) { |
158 |
Log.severe("Error while computing CA with " + selection); |
|
159 | 147 |
Log.printStackTrace(e); |
148 |
return super.logCanNotCompute(selection); |
|
160 | 149 |
} |
161 | 150 |
return null; |
162 | 151 |
} |
Formats disponibles : Unified diff