Révision 3940
TXM/trunk/pom.xml (revision 3940) | ||
---|---|---|
73 | 73 |
<artifactId>tycho-p2-director-plugin</artifactId> |
74 | 74 |
<version>${tycho.version}</version> |
75 | 75 |
</plugin> |
76 |
<plugin> |
|
77 |
<groupId>org.eclipse.tycho.extras</groupId> |
|
78 |
<artifactId>tycho-document-bundle-plugin</artifactId> |
|
79 |
<version>2.7.1</version> |
|
80 |
|
|
81 |
</plugin> |
|
76 | 82 |
</plugins> |
77 | 83 |
</pluginManagement> |
78 | 84 |
<plugins> |
... | ... | |
178 | 184 |
<svn.ignore>pom.xml</svn.ignore> |
179 | 185 |
</configuration> |
180 | 186 |
</plugin> --> |
187 |
|
|
188 |
<plugin> |
|
189 |
<groupId>org.eclipse.tycho.extras</groupId> |
|
190 |
<artifactId>tycho-document-bundle-plugin</artifactId> |
|
191 |
<configuration> |
|
192 |
<outputDirectory>/home/mdecorde/javadoctxm</outputDirectory> |
|
193 |
</configuration> |
|
194 |
</plugin> |
|
195 |
|
|
181 | 196 |
</plugins> |
182 | 197 |
</build> |
183 | 198 |
|
TXM/trunk/bundles/org.txm.queryindex.rcp/src/org/txm/queryindex/rcp/editors/QueryIndexEditor.java (revision 3940) | ||
---|---|---|
200 | 200 |
/** |
201 | 201 |
* Do save as. |
202 | 202 |
* |
203 |
* @see org.eclipse.lyon gournd zeroui.part.EditorPart#doSaveAs()
|
|
203 |
* @see "org.eclipse.lyon gournd zeroui.part.EditorPart#doSaveAs()"
|
|
204 | 204 |
*/ |
205 | 205 |
@Override |
206 | 206 |
public void doSaveAs() { |
... | ... | |
410 | 410 |
/** |
411 | 411 |
* Creates the part control. |
412 | 412 |
* |
413 |
* @param parent |
|
414 |
* the parent |
|
415 | 413 |
* @see org.eclipse.ui.part.WorkbenchPart#createPartControl(org.eclipse.swt.widgets.Composite) |
416 | 414 |
*/ |
417 | 415 |
@Override |
TXM/trunk/bundles/org.txm.libs.msoffice/src/org/txm/libs/msoffice/ReadExcel.java (revision 3940) | ||
---|---|---|
146 | 146 |
* |
147 | 147 |
* don't forget to save the ReadeExcel object |
148 | 148 |
* |
149 |
* @param excel2 |
|
150 |
* @param lineRules |
|
151 |
* @param columnsSelection |
|
149 |
* @param columnsToCopy |
|
152 | 150 |
* @return |
153 | 151 |
* @throws EncryptedDocumentException |
154 | 152 |
* @throws InvalidFormatException |
... | ... | |
308 | 306 |
* |
309 | 307 |
* don't forget to save the ReadeExcel object |
310 | 308 |
* |
311 |
* @param excel2 |
|
312 |
* @param lineRules |
|
313 |
* @param columnsSelection |
|
309 |
* @param searchAndReplaceRules |
|
314 | 310 |
* @return |
315 | 311 |
* @throws EncryptedDocumentException |
316 | 312 |
* @throws InvalidFormatException |
... | ... | |
648 | 644 |
|
649 | 645 |
/** |
650 | 646 |
* |
651 |
* @param cell. If null returns ""
|
|
647 |
* @param cell If null returns "" |
|
652 | 648 |
* @return always a String starting with '#' if an error occurs |
653 | 649 |
*/ |
654 | 650 |
public static String cellToString(Cell cell) { |
TXM/trunk/bundles/org.txm.libs.msoffice/src/org/txm/libs/msoffice/SheetUtility.java (revision 3940) | ||
---|---|---|
19 | 19 |
* Note, this method will not update any formula references. |
20 | 20 |
* |
21 | 21 |
* @param sheet |
22 |
* @param column |
|
22 |
* @param columnToDelete
|
|
23 | 23 |
*/ |
24 | 24 |
public static void deleteColumn(Sheet sheet, int columnToDelete) { |
25 | 25 |
int maxColumn = 0; |
TXM/trunk/bundles/org.txm.libs.msoffice/META-INF/MANIFEST.MF (revision 3940) | ||
---|---|---|
137 | 137 |
Bundle-ManifestVersion: 2 |
138 | 138 |
Bundle-RequiredExecutionEnvironment: JavaSE-16 |
139 | 139 |
Bundle-Vendor: Textometrie.org |
140 |
Import-Package: net.sf.saxon.functions |
|
141 | 140 |
|
TXM/trunk/bundles/org.txm.cooccurrence.rcp/src/org/txm/cooccurrence/rcp/editors/EmpantWidget.java (revision 3940) | ||
---|---|---|
526 | 526 |
/** |
527 | 527 |
* Gets the x pivot. |
528 | 528 |
* |
529 |
* @return the x pivot |
|
530 | 529 |
*/ |
531 | 530 |
public void setXPivot(boolean sel) { |
532 | 531 |
this.checkXword.setSelection(sel); |
TXM/trunk/bundles/org.txm.cooccurrence.rcp/src/org/txm/cooccurrence/rcp/editors/LineContentProvider.java (revision 3940) | ||
---|---|---|
37 | 37 |
/** |
38 | 38 |
* The Class LineContentProvider. |
39 | 39 |
* |
40 |
* @ author mdecorde
|
|
40 |
* @author mdecorde |
|
41 | 41 |
*/ |
42 | 42 |
public class LineContentProvider implements IStructuredContentProvider { |
43 | 43 |
|
TXM/trunk/bundles/org.txm.cooccurrence.rcp/src/org/txm/cooccurrence/rcp/editors/CooccurrencesEditor.java (revision 3940) | ||
---|---|---|
184 | 184 |
/** |
185 | 185 |
* Creates the part control. |
186 | 186 |
* |
187 |
* @param parent |
|
188 |
* the parent |
|
189 |
* @see org.eclipse.ui.part.WorkbenchPart#createPartControl(org.eclipse.swt.widgets.Composite) |
|
187 |
* @see "org.eclipse.ui.part.WorkbenchPart#createPartControl(org.eclipse.swt.widgets.Composite)" |
|
190 | 188 |
*/ |
191 | 189 |
@Override |
192 | 190 |
public void _createPartControl() { |
TXM/trunk/bundles/org.txm.progression.rcp/src/org/txm/progression/rcp/chartsengine/events/ProgressionEventCallBack.java (revision 3940) | ||
---|---|---|
393 | 393 |
* Updates the linked edition editor. |
394 | 394 |
* If the editor doesn't exist it will be created. |
395 | 395 |
* |
396 |
* @param editor
|
|
396 |
* @param linkedEditor
|
|
397 | 397 |
*/ |
398 | 398 |
public void updateLinkedEditionEditor(SynopticEditionEditor linkedEditor, ArrayList<Integer> selectedPointPositions) { |
399 | 399 |
|
TXM/trunk/bundles/org.txm.index.core/src/org/txm/index/core/functions/Index.java (revision 3940) | ||
---|---|---|
1045 | 1045 |
* Write the lines between from and to on a writer. |
1046 | 1046 |
* |
1047 | 1047 |
* @param outfile the outfile |
1048 |
* @param from The first line to be written |
|
1049 |
* @param to The last line to be writen |
|
1050 | 1048 |
* @param encoding the encoding |
1051 | 1049 |
* @param colseparator the colseparator |
1052 |
* @param txtseparator the txtseparator |
|
1053 | 1050 |
* @throws CqiClientException the cqi client exception |
1054 | 1051 |
* @throws IOException Signals that an I/O exception has occurred. |
1055 | 1052 |
*/ |
TXM/trunk/bundles/org.txm.index.core/src/org/txm/index/core/functions/___Lexicon2.java (revision 3940) | ||
---|---|---|
60 | 60 |
|
61 | 61 |
// TODO should be put into stat.data package ? |
62 | 62 |
/** |
63 |
* Represent a frequency list according to a {@link Corpus} (or a. |
|
63 |
* Represent a frequency list according to a {@link CQPCorpus} (or a.
|
|
64 | 64 |
* |
65 | 65 |
* {@link Subcorpus}) and a {@link Property}. |
66 | 66 |
* |
... | ... | |
489 | 489 |
/** |
490 | 490 |
* Hack frequencies using a map to set forms and frequencies |
491 | 491 |
* |
492 |
* @param corpus the corpus |
|
493 |
* @param pProperty the property |
|
494 | 492 |
* @param map the map |
495 |
* {@link Corpus#getLexicon(Property)} or |
|
496 |
* {@link Subcorpus#getLexicon(Property)}. |
|
493 |
* |
|
497 | 494 |
*/ |
498 | 495 |
public boolean hack(Map<String, Integer> map) { |
499 | 496 |
if (map.size() != forms.length) { |
TXM/trunk/bundles/org.txm.index.core/src/org/txm/index/core/functions/Lexicon.java (revision 3940) | ||
---|---|---|
43 | 43 |
import org.txm.utils.logger.Log; |
44 | 44 |
|
45 | 45 |
/** |
46 |
* Represent a frequency list according to a {@link Corpus} (or a {@link Subcorpus}) and a {@link Property}. |
|
46 |
* Represent a frequency list according to a {@link CQPCorpus} (or a {@link Subcorpus}) and a {@link Property}.
|
|
47 | 47 |
* |
48 | 48 |
* @author sjacquot |
49 | 49 |
* @author mdecorde |
TXM/trunk/bundles/org.txm.concordance.rcp/src/org/txm/concordance/rcp/editors/ConcordanceEditor.java (revision 3940) | ||
---|---|---|
944 | 944 |
/** |
945 | 945 |
* Lazy loads the concordance lines range and fills the display area. |
946 | 946 |
* |
947 |
* @param from the from |
|
948 |
* @param to the to |
|
949 | 947 |
*/ |
950 | 948 |
public void fillDisplayArea(boolean update) { |
951 | 949 |
|
... | ... | |
1478 | 1476 |
/** |
1479 | 1477 |
* refresh |
1480 | 1478 |
* |
1481 |
* @param top |
|
1482 |
* @param bottom |
|
1479 |
* @param update |
|
1483 | 1480 |
*/ |
1484 | 1481 |
@Override |
1485 | 1482 |
public void updateEditorFromResult(boolean update) { |
TXM/trunk/bundles/org.txm.concordance.rcp/src/org/txm/concordance/rcp/editors/ViewAnnotationSelectionDialog.java (revision 3940) | ||
---|---|---|
46 | 46 |
* Instantiates a new view property selection dialog. |
47 | 47 |
* |
48 | 48 |
* @param parentShell the parent shell |
49 |
* @param availableProperties the available properties |
|
50 |
* @param selectedProperties the selected properties |
|
51 | 49 |
*/ |
52 | 50 |
public ViewAnnotationSelectionDialog(IShellProvider parentShell) { |
53 | 51 |
super(parentShell); |
... | ... | |
59 | 57 |
* Instantiates a new view property selection dialog. |
60 | 58 |
* |
61 | 59 |
* @param shell the shell |
62 |
* @param availableProperties the available properties |
|
63 |
* @param selectedProperties the selected properties |
|
64 | 60 |
*/ |
65 | 61 |
public ViewAnnotationSelectionDialog(Shell shell) { |
66 | 62 |
super(shell); |
TXM/trunk/bundles/org.txm.specificities.rcp/src/org/txm/specificities/rcp/editors/SpecificitiesTableLabelProvider.java (revision 3940) | ||
---|---|---|
53 | 53 |
/** |
54 | 54 |
* Instantiates a new specificites table label provider. |
55 | 55 |
* |
56 |
* @param partindexes the partindexes
|
|
56 |
* @param editor the specif editor
|
|
57 | 57 |
*/ |
58 | 58 |
public SpecificitiesTableLabelProvider(SpecificitiesEditor editor) { |
59 | 59 |
// this.partindexes = partindexes; |
TXM/trunk/bundles/org.txm.ca.core/src/org/txm/ca/core/statsengine/r/functions/FactoMineRCA.java (revision 3940) | ||
---|---|---|
488 | 488 |
* |
489 | 489 |
* @return the singular values pow 2 |
490 | 490 |
* @throws RWorkspaceException |
491 |
* @throws StatException the stat exception |
|
492 | 491 |
* @throws REXPMismatchException |
493 | 492 |
*/ |
494 | 493 |
@Override |
TXM/trunk/bundles/org.txm.ca.core/src/org/txm/ca/core/functions/CA.java (revision 3940) | ||
---|---|---|
145 | 145 |
* Creates a new empty CA. |
146 | 146 |
* |
147 | 147 |
* @param lexicalTable the lexical table |
148 |
* @throws StatException stat exception if the structure can not be created in R statistics engine. |
|
149 | 148 |
*/ |
150 | 149 |
public CA(LexicalTable lexicalTable) { |
151 | 150 |
|
... | ... | |
155 | 154 |
/** |
156 | 155 |
* Creates a new empty CA. |
157 | 156 |
* |
158 |
* @param lexicalTable the lexical table |
|
159 |
* @throws StatException stat exception if the structure can not be created in R statistics engine. |
|
160 | 157 |
*/ |
161 | 158 |
public CA(String parametersNodePath) { |
162 | 159 |
|
... | ... | |
167 | 164 |
* Creates a new empty CA. |
168 | 165 |
* |
169 | 166 |
* @param lexicalTable the lexical table |
170 |
* @throws StatException stat exception if the structure can not be created in R statistics engine. |
|
171 | 167 |
*/ |
172 | 168 |
public CA(String parametersNodePath, LexicalTable lexicalTable) { |
173 | 169 |
|
TXM/trunk/bundles/org.txm.ca.core/src/org/txm/ca/core/functions/Eigenvalues.java (revision 3940) | ||
---|---|---|
28 | 28 |
this(null, parent); |
29 | 29 |
} |
30 | 30 |
|
31 |
/** |
|
32 |
* @param parent |
|
33 |
*/ |
|
34 | 31 |
public Eigenvalues(String parametersNodePath) { |
35 | 32 |
this(parametersNodePath, null); |
36 | 33 |
} |
TXM/trunk/bundles/org.txm.ca.core/src/org/txm/ca/core/chartsengine/jfreechart/themes/highcharts/chartcreators/JFCCAChartCreator.java (revision 3940) | ||
---|---|---|
141 | 141 |
/** |
142 | 142 |
* Add some borders to the limits of the specified XY plot. |
143 | 143 |
* |
144 |
* @param plot
|
|
144 |
* @param chart
|
|
145 | 145 |
*/ |
146 | 146 |
public void createCAFactorialMapChartLimitsBorder(JFreeChart chart) { |
147 | 147 |
|
TXM/trunk/bundles/org.txm.ca.core/src/org/txm/ca/core/chartsengine/jfreechart/datasets/CAXYDataset.java (revision 3940) | ||
---|---|---|
268 | 268 |
/** |
269 | 269 |
* Gets the indices of point from their labels. |
270 | 270 |
* @param series |
271 |
* @param label |
|
271 |
* @param labels
|
|
272 | 272 |
* @return |
273 | 273 |
*/ |
274 | 274 |
public int[] getLabelIndices(int series, String[] labels) { |
TXM/trunk/bundles/org.txm.ca.core/src/org/txm/ca/core/chartsengine/r/REigenvaluesChartCreator.java (revision 3940) | ||
---|---|---|
43 | 43 |
* @param ca |
44 | 44 |
* @param file |
45 | 45 |
* @return the singular values bar plot object |
46 |
* @throws RWorkspaceException |
|
47 |
* @throws REXPMismatchException |
|
48 | 46 |
*/ |
49 | 47 |
public File createSingularValuesBarPlot(FactoMineRCA ca, File file) { |
50 | 48 |
|
TXM/trunk/bundles/org.txm.ca.core/src/org/txm/ca/core/chartsengine/base/CAChartCreator.java (revision 3940) | ||
---|---|---|
35 | 35 |
/** |
36 | 36 |
* Sets the items selection order on label. |
37 | 37 |
* @param chart |
38 |
* @param itemsSelectionOrder |
|
39 | 38 |
*/ |
40 | 39 |
public abstract void updateChartCAFactorialMapSetLabelItemsSelectionOrder(Object chart, String[] rowLabels, String[] colLabels); |
41 | 40 |
|
42 | 41 |
|
43 | 42 |
/** |
44 | 43 |
* Sets the CA factorial map dimensions. |
45 |
* @param editorPart |
|
46 |
* @param dimension1 |
|
47 |
* @param dimension2 |
|
48 | 44 |
*/ |
49 | 45 |
public abstract void updateChartCAFactorialMapSetDimensions(CA ca); |
50 | 46 |
|
TXM/trunk/bundles/org.txm.libs.cqp/src/org/txm/libs/cqp/Utils.java (revision 3940) | ||
---|---|---|
44 | 44 |
* Extract GZ files stored in a directory |
45 | 45 |
* |
46 | 46 |
* @param inputDir |
47 |
* @return |
|
48 | 47 |
* @throws FileNotFoundException |
49 | 48 |
* @throws IOException |
50 | 49 |
* @return the number of extracted files |
TXM/trunk/bundles/org.txm.translate.rcp/src/org/txm/rcp/translate/i18n/PluginMessagesManager.java (revision 3940) | ||
---|---|---|
135 | 135 |
/** |
136 | 136 |
* |
137 | 137 |
* @param projectDirectory |
138 |
* @param javaPreferenceFile |
|
139 | 138 |
* @throws UnsupportedEncodingException |
140 | 139 |
* @throws FileNotFoundException |
141 | 140 |
* @throws IOException |
... | ... | |
537 | 536 |
} |
538 | 537 |
|
539 | 538 |
/** |
540 |
* @param lang |
|
539 |
* @param langFile
|
|
541 | 540 |
* @return the map of the messages keys and values for the specified language. |
542 | 541 |
*/ |
543 | 542 |
public HashMap<String, String> getMessagesForLang(File langFile) { |
TXM/trunk/bundles/org.txm.translate.rcp/src/org/txm/rcp/translate/preferences/PluginPreferencesManager.java (revision 3940) | ||
---|---|---|
104 | 104 |
/** |
105 | 105 |
* |
106 | 106 |
* @param projectDirectory |
107 |
* @param javaPreferenceFile |
|
108 | 107 |
* @throws UnsupportedEncodingException |
109 | 108 |
* @throws FileNotFoundException |
110 | 109 |
* @throws IOException |
TXM/trunk/bundles/org.txm.rcp/src/main/java/org/txm/rcp/utils/IOClipboard.java (revision 3940) | ||
---|---|---|
74 | 74 |
} |
75 | 75 |
|
76 | 76 |
/** |
77 |
* Read.
|
|
77 |
* Write file paths.
|
|
78 | 78 |
* |
79 |
* @return the string |
|
80 | 79 |
*/ |
81 | 80 |
public static void writeFiles(Object[] files) { |
82 | 81 |
Shell sh = new Shell(); |
TXM/trunk/bundles/org.txm.rcp/src/main/java/org/txm/rcp/utils/JobHandler.java (revision 3940) | ||
---|---|---|
277 | 277 |
/** |
278 | 278 |
* can be used to store the job result after join() has been called |
279 | 279 |
* |
280 |
* @return |
|
281 | 280 |
*/ |
282 | 281 |
public void setResultObject(Object result) { |
283 | 282 |
this.result = result; |
TXM/trunk/bundles/org.txm.rcp/src/main/java/org/txm/rcp/utils/SWTEditorsUtils.java (revision 3940) | ||
---|---|---|
156 | 156 |
* Closes all opened editors which use some results of the specified list of results. |
157 | 157 |
* |
158 | 158 |
* @param results |
159 |
* @return |
|
160 | 159 |
*/ |
161 | 160 |
public static void closeEditors(List<TXMResult> results) { |
162 | 161 |
Set<ITXMResultEditor<TXMResult>> editors = getEditors(results); |
TXM/trunk/bundles/org.txm.rcp/src/main/java/org/txm/rcp/commands/workspace/Load080BinaryCorpus.java (revision 3940) | ||
---|---|---|
60 | 60 |
* |
61 | 61 |
* @param replace |
62 | 62 |
* |
63 |
* @param binCorpusDirectory the zipFile
|
|
63 |
* @param zipFile the zipFile to load
|
|
64 | 64 |
* @return the base |
65 | 65 |
* @throws Exception the exception |
66 | 66 |
*/ |
TXM/trunk/bundles/org.txm.rcp/src/main/java/org/txm/rcp/commands/workspace/LoadBinaryCorpus.java (revision 3940) | ||
---|---|---|
299 | 299 |
* |
300 | 300 |
* @param replace |
301 | 301 |
* |
302 |
* @param binCorpusDirectory the basedir
|
|
302 |
* @param corpusDirectory the corpusDirectory
|
|
303 | 303 |
* @return the base |
304 | 304 |
* @throws Exception the exception |
305 | 305 |
*/ |
TXM/trunk/bundles/org.txm.rcp/src/main/java/org/txm/rcp/commands/queryview/Paste.java (revision 3940) | ||
---|---|---|
64 | 64 |
/** |
65 | 65 |
* Paste. |
66 | 66 |
* |
67 |
* @param base the base
|
|
67 |
* @param corpus the corpus
|
|
68 | 68 |
* @param newquery the newquery |
69 | 69 |
*/ |
70 | 70 |
public static void paste(CQPCorpus corpus, String newquery) { |
... | ... | |
75 | 75 |
/** |
76 | 76 |
* Paste. |
77 | 77 |
* |
78 |
* @param base the base
|
|
78 |
* @param corpus the corpus
|
|
79 | 79 |
*/ |
80 | 80 |
public static void paste(CQPCorpus corpus) { |
81 | 81 |
String newquery = IOClipboard.read(); |
TXM/trunk/bundles/org.txm.rcp/src/main/java/org/txm/rcp/commands/OpenImportForm.java (revision 3940) | ||
---|---|---|
68 | 68 |
/** |
69 | 69 |
* Openfile. |
70 | 70 |
* |
71 |
* @param filepath the filepath
|
|
71 |
* @param scriptname the filepath
|
|
72 | 72 |
*/ |
73 | 73 |
public static void open(File scriptname, boolean updateMode) { |
74 | 74 |
try { |
TXM/trunk/bundles/org.txm.rcp/src/main/java/org/txm/rcp/commands/OpenLocalizedWebPage.java (revision 3940) | ||
---|---|---|
180 | 180 |
/** |
181 | 181 |
* Openfile. |
182 | 182 |
* |
183 |
* @param filepath the filepath |
|
184 | 183 |
* @return the txm browser |
185 | 184 |
*/ |
186 | 185 |
static public Object openfile(String key) { |
TXM/trunk/bundles/org.txm.rcp/src/main/java/org/txm/rcp/commands/OpenBrowser.java (revision 3940) | ||
---|---|---|
138 | 138 |
/** |
139 | 139 |
* Openfile. |
140 | 140 |
* |
141 |
* @param filepath the filepath |
|
142 | 141 |
* @return the txm browser |
143 | 142 |
*/ |
144 | 143 |
static public TXMBrowserEditor open() { |
TXM/trunk/bundles/org.txm.rcp/src/main/java/org/txm/rcp/IImageKeys.java (revision 3940) | ||
---|---|---|
306 | 306 |
|
307 | 307 |
/** |
308 | 308 |
* |
309 |
* @param class of plugin to find |
|
309 |
* @param classOfPlugin of plugin to find
|
|
310 | 310 |
* @param imageFilePath |
311 | 311 |
* @return |
312 | 312 |
*/ |
... | ... | |
315 | 315 |
} |
316 | 316 |
|
317 | 317 |
/** |
318 |
* @param objectOfPlugin
|
|
318 |
* @param classOfPlugin
|
|
319 | 319 |
* @param imageFilePath |
320 | 320 |
* @return |
321 | 321 |
*/ |
TXM/trunk/bundles/org.txm.rcp/src/main/java/org/txm/rcp/editors/ITablableEditorInput.java (revision 3940) | ||
---|---|---|
29 | 29 |
|
30 | 30 |
import org.eclipse.jface.viewers.IStructuredContentProvider; |
31 | 31 |
import org.eclipse.jface.viewers.LabelProvider; |
32 |
import org.eclipse.swt.custom.TableEditor; |
|
32 | 33 |
import org.eclipse.ui.IEditorInput; |
33 | 34 |
|
34 | 35 |
// TODO: Auto-generated Javadoc |
TXM/trunk/bundles/org.txm.rcp/src/main/java/org/txm/rcp/editors/TXMEditorExtension.java (revision 3940) | ||
---|---|---|
39 | 39 |
|
40 | 40 |
/** |
41 | 41 |
* implement this command to do something before TXMEditor._createPartControl() is called |
42 |
* @return |
|
43 | 42 |
*/ |
44 | 43 |
public abstract void notifyStartOfCreatePartControl() throws Exception; |
45 | 44 |
|
46 | 45 |
/** |
47 | 46 |
* implement this command to do something after TXMEditor._createPartControl() is called |
48 |
* @return |
|
49 | 47 |
*/ |
50 | 48 |
public abstract void notifyEndOfCreatePartControl() throws Exception; |
51 | 49 |
|
52 | 50 |
/** |
53 | 51 |
* implement this command to do something before TXMEditor._compute() is called |
54 |
* @return |
|
55 | 52 |
*/ |
56 | 53 |
public abstract void notifyStartOfCompute() throws Exception; |
57 | 54 |
|
58 | 55 |
/** |
59 | 56 |
* implement this command to do something after TXMEditor._compute() is called |
60 |
* @return |
|
61 | 57 |
*/ |
62 | 58 |
public abstract void notifyEndOfCompute() throws Exception; |
63 | 59 |
|
TXM/trunk/bundles/org.txm.rcp/src/main/java/org/txm/rcp/editors/imports/ImportFormEditor.java (revision 3940) | ||
---|---|---|
109 | 109 |
/** |
110 | 110 |
* Do save as. |
111 | 111 |
* |
112 |
* @see org.eclipse.part.EditorPart#doSaveAs()
|
|
112 |
* @see "org.eclipse.part.EditorPart#doSaveAs()"
|
|
113 | 113 |
*/ |
114 | 114 |
@Override |
115 | 115 |
public void doSaveAs() { |
TXM/trunk/bundles/org.txm.rcp/src/main/java/org/txm/rcp/editors/imports/sections/EditionSection.java (revision 3940) | ||
---|---|---|
61 | 61 |
* @param toolkit2 |
62 | 62 |
* @param form2 |
63 | 63 |
* @param parent |
64 |
* @param stylesave |
|
65 | 64 |
* |
66 | 65 |
* @param moduleParams |
67 | 66 |
* @param importName temporary parameter to detect if import module is xtzLoader.groovy |
TXM/trunk/bundles/org.txm.rcp/src/main/java/org/txm/rcp/editors/imports/sections/ImportEditorSection.java (revision 3940) | ||
---|---|---|
93 | 93 |
/** |
94 | 94 |
* Check if all necessary parameters are set |
95 | 95 |
* |
96 |
* @param project |
|
97 | 96 |
* @return true if all necessary parameters are set |
98 | 97 |
*/ |
99 | 98 |
public final boolean check() { |
... | ... | |
112 | 111 |
/** |
113 | 112 |
* Check if all necessary parameters are set |
114 | 113 |
* |
115 |
* @param project |
|
116 | 114 |
* @return true if all necessary parameters are set |
117 | 115 |
*/ |
118 | 116 |
public abstract boolean checkFields(); |
... | ... | |
154 | 152 |
* |
155 | 153 |
* NOT USED YET |
156 | 154 |
* |
157 |
* @param xmlFile
|
|
155 |
* @param document
|
|
158 | 156 |
*/ |
159 | 157 |
public boolean save(Document document) { |
160 | 158 |
|
TXM/trunk/bundles/org.txm.rcp/src/main/java/org/txm/rcp/editors/imports/sections/TRSSection.java (revision 3940) | ||
---|---|---|
33 | 33 |
* @param toolkit2 |
34 | 34 |
* @param form2 |
35 | 35 |
* @param parent |
36 |
* @param stylesave |
|
37 |
* |
|
38 |
* @param moduleParams |
|
39 |
* @param scriptName temporary parameter to detect if import module is xtzLoader.groovy |
|
40 | 36 |
*/ |
41 | 37 |
public TRSSection(ImportFormEditor editor, FormToolkit toolkit2, ScrolledForm form2, Composite parent, int style) { |
42 | 38 |
|
TXM/trunk/bundles/org.txm.rcp/src/main/java/org/txm/rcp/editors/imports/CorpusPage.java (revision 3940) | ||
---|---|---|
159 | 159 |
* Instantiates a new main page. |
160 | 160 |
* |
161 | 161 |
* @param editor the editor |
162 |
* @param corpusname |
|
163 | 162 |
*/ |
164 | 163 |
public CorpusPage(ImportFormEditor editor) { |
165 | 164 |
super(editor, TXMUIMessages.parameters, TXMUIMessages.parameters); |
TXM/trunk/bundles/org.txm.rcp/src/main/java/org/txm/rcp/editors/input/IProvidingMultiPageEditorInput.java (revision 3940) | ||
---|---|---|
55 | 55 |
* Get the data source ({@link IEditorInput} for each editor given by. |
56 | 56 |
* |
57 | 57 |
* @return a list of IEditorInput instances. |
58 |
* {@link #getEditor()}. |
|
59 | 58 |
*/ |
60 | 59 |
public List<IEditorInput> getEditorInputs(); |
61 | 60 |
|
TXM/trunk/bundles/org.txm.rcp/src/main/java/org/txm/rcp/editors/TXMEditor.java (revision 3940) | ||
---|---|---|
911 | 911 |
* Computes the TXMResult if all required parameters are set then refreshes the editor UI. |
912 | 912 |
* Also loads and saves some parameters from result to Widgets fields and from Widgets fields to result. |
913 | 913 |
* |
914 |
* @param result |
|
915 | 914 |
* @param update force the editor to update its result parameters |
916 | 915 |
*/ |
917 | 916 |
@Override |
... | ... | |
1906 | 1905 |
/** |
1907 | 1906 |
* Adds a mouse adapter to the specified composite that executes a command link specified by its id on double click event. |
1908 | 1907 |
* |
1909 |
* @param table |
|
1910 | 1908 |
* @param commandId |
1911 | 1909 |
*/ |
1912 | 1910 |
public static void addDoubleClickCommandListener(Composite composite, final String commandId) { |
TXM/trunk/bundles/org.txm.rcp/src/main/java/org/txm/rcp/editors/SVGGraphicable.java (revision 3940) | ||
---|---|---|
28 | 28 |
package org.txm.rcp.editors; |
29 | 29 |
|
30 | 30 |
import org.eclipse.core.runtime.IPath; |
31 |
import org.eclipse.swt.custom.TableEditor; |
|
31 | 32 |
import org.eclipse.ui.IEditorInput; |
32 | 33 |
|
33 |
// TODO: Auto-generated Javadoc |
|
34 | 34 |
/** |
35 | 35 |
* An {@link IEditorInput} implementing this interface may be displayed as a |
36 | 36 |
* table by the {@link TableEditor}. |
TXM/trunk/bundles/org.txm.rcp/src/main/java/org/txm/rcp/editors/TXMBrowserEditor.java (revision 3940) | ||
---|---|---|
104 | 104 |
|
105 | 105 |
/** |
106 | 106 |
* |
107 |
* @param wordids2 all the words to highlight |
|
108 |
* @param lineids2 the words to highlight better and to scroll to |
|
109 | 107 |
*/ |
110 | 108 |
public void initializeProgressListener() { |
111 | 109 |
|
TXM/trunk/bundles/org.txm.rcp/src/main/java/org/txm/rcp/editors/TxtEditor.java (revision 3940) | ||
---|---|---|
45 | 45 |
/** |
46 | 46 |
* The Class TxtEditor. |
47 | 47 |
* |
48 |
* @ author mdecorde
|
|
48 |
* @author mdecorde |
|
49 | 49 |
*/ |
50 | 50 |
public class TxtEditor extends TextEditor { |
51 | 51 |
|
TXM/trunk/bundles/org.txm.rcp/src/main/java/org/txm/rcp/editors/ITXMResultEditor.java (revision 3940) | ||
---|---|---|
4 | 4 |
|
5 | 5 |
import org.eclipse.swt.widgets.Composite; |
6 | 6 |
import org.eclipse.ui.IEditorPart; |
7 |
import org.eclipse.ui.part.EditorPart; |
|
8 | 7 |
import org.txm.core.results.TXMResult; |
9 | 8 |
import org.txm.rcp.utils.JobHandler; |
10 | 9 |
|
... | ... | |
16 | 15 |
* Computes the TXMResult if all required parameters are set then refreshes the editor UI. |
17 | 16 |
* Also loads and saves some parameters from result to Widgets fields and from Widgets fields to result. |
18 | 17 |
* |
19 |
* @param result |
|
20 | 18 |
* @param update force the editor to update its result parameters |
21 | 19 |
*/ |
22 | 20 |
public JobHandler compute(boolean update); |
TXM/trunk/bundles/org.txm.rcp/src/main/java/org/txm/rcp/editors/CommandLink.java (revision 3940) | ||
---|---|---|
66 | 66 |
} |
67 | 67 |
/** |
68 | 68 |
* |
69 |
* @param editor may be null, will be used by the command to display its result |
|
70 | 69 |
* @param arguments array of command id + (parameters+values). |
71 | 70 |
* |
72 | 71 |
* <pre> |
TXM/trunk/bundles/org.txm.rcp/src/main/java/org/txm/rcp/editors/TableLinesViewerComparator.java (revision 3940) | ||
---|---|---|
152 | 152 |
* @param viewer |
153 | 153 |
* @param column |
154 | 154 |
* @param index |
155 |
* @return |
|
156 | 155 |
*/ |
157 | 156 |
public void addSelectionAdapter(final TableViewer viewer, final TableColumn column, final int index) { |
158 | 157 |
column.addSelectionListener(new SelectionAdapter() { |
TXM/trunk/bundles/org.txm.rcp/src/main/java/org/txm/rcp/editors/TXMResultEditorInput.java (revision 3940) | ||
---|---|---|
25 | 25 |
|
26 | 26 |
/** |
27 | 27 |
* Creates an editor input and stores the specified TXM result as source object for further result computing. |
28 |
* @param sourceResult |
|
29 |
* @param preferencesNodeQualifier |
|
30 | 28 |
*/ |
31 | 29 |
public TXMResultEditorInput(T result) { |
32 | 30 |
this.result = result; |
... | ... | |
43 | 41 |
|
44 | 42 |
/** |
45 | 43 |
* Sets the result data associated with the editor input. |
46 |
* @param result the result to set |
|
44 |
* @param resultData the result to set
|
|
47 | 45 |
*/ |
48 | 46 |
public void setResult(T resultData) { |
49 | 47 |
this.result = resultData; |
TXM/trunk/bundles/org.txm.rcp/src/main/java/org/txm/rcp/editors/TXMEditorToolBar.java (revision 3940) | ||
---|---|---|
111 | 111 |
* Sets the visibility state of the specified composite. |
112 | 112 |
* The mechanism is based on GridData.exclude to hide the composite therefore the composite must have a GridData as layout data. |
113 | 113 |
* |
114 |
* @param composite |
|
115 |
* |
|
116 | 114 |
*/ |
117 | 115 |
public void setVisible(String id, boolean visible) { |
118 | 116 |
if (groups.containsKey(id) && !groups.get(id).isDisposed()) { |
... | ... | |
209 | 207 |
* @param showGroup |
210 | 208 |
* @param selectionListener |
211 | 209 |
* @param modes The modes names |
212 |
* @param choicesSelectionListeners the corresponding mode selectionListener
|
|
210 |
* @param modeSelectionListeners the corresponding mode selectionListener
|
|
213 | 211 |
*/ |
214 | 212 |
public Group installAlternativesGroup(final String groupTitle, String buttonToolTip, String openIconFilePath, String closeIconFilePath, boolean showGroup, |
215 | 213 |
SelectionListener selectionListener, List<String> modes, List<SelectionListener> modeSelectionListeners) { |
... | ... | |
254 | 252 |
/** |
255 | 253 |
* Creates a <code>Group</code> with some configuration to make it visible/invisible and a <code>ToolItem</code> attached to the specified tool bar to show/hide this group. |
256 | 254 |
* |
257 |
* @param composite |
|
258 |
* @param colSpan |
|
259 |
* @param toolBar |
|
260 | 255 |
* @param groupTitle |
261 | 256 |
* @param buttonToolTip |
262 | 257 |
* @param openIconFilePath |
TXM/trunk/bundles/org.txm.rcp/src/main/java/org/txm/rcp/StatusLine.java (revision 3940) | ||
---|---|---|
113 | 113 |
/** |
114 | 114 |
* Shows an error message in the status line. |
115 | 115 |
* |
116 |
* @param string the string
|
|
116 |
* @param message the error message string
|
|
117 | 117 |
*/ |
118 | 118 |
public static void error(final String message) { |
119 | 119 |
//return; |
... | ... | |
131 | 131 |
/** |
132 | 132 |
* Shows an error message in the status line and keeps it. |
133 | 133 |
* |
134 |
* @param string the string
|
|
134 |
* @param message the message string
|
|
135 | 135 |
*/ |
136 | 136 |
public static void error(final String message, boolean keep) { |
137 | 137 |
//return; |
TXM/trunk/bundles/org.txm.rcp/src/main/java/org/txm/rcp/swt/dialog/MultipleValueDialog.java (revision 3940) | ||
---|---|---|
67 | 67 |
* @param parentShell the parent shell |
68 | 68 |
* @param title the title |
69 | 69 |
* @param values the values |
70 |
* @param defaultValue the default value |
|
71 | 70 |
*/ |
72 | 71 |
public MultipleValueDialog(Shell parentShell, String title, LinkedHashMap<String, String> values) { |
73 | 72 |
super(parentShell); |
TXM/trunk/bundles/org.txm.rcp/src/main/java/org/txm/rcp/swt/dialog/SinglePropertySelectionDialog.java (revision 3940) | ||
---|---|---|
48 | 48 |
/** |
49 | 49 |
* The dialog box called to select the view properties. |
50 | 50 |
* |
51 |
* @ author mdecorde
|
|
51 |
* @author mdecorde |
|
52 | 52 |
*/ |
53 | 53 |
public class SinglePropertySelectionDialog<P extends Property> extends Dialog { |
54 | 54 |
|
TXM/trunk/bundles/org.txm.rcp/src/main/java/org/txm/rcp/swt/dialog/ComboDialog.java (revision 3940) | ||
---|---|---|
83 | 83 |
* @param title the title |
84 | 84 |
* @param values the values |
85 | 85 |
* @param defaultValue the default value (may be null) |
86 |
* @param comboStyle if null combo is SINGLE and READONLY |
|
87 | 86 |
*/ |
88 |
public ComboDialog(Shell parentShell, String title, List<String> values, |
|
89 |
String defaultValue) { |
|
87 |
public ComboDialog(Shell parentShell, String title, List<String> values, String defaultValue) { |
|
90 | 88 |
this(parentShell, title, values, defaultValue, null); |
91 | 89 |
|
92 | 90 |
} |
TXM/trunk/bundles/org.txm.rcp/src/main/java/org/txm/rcp/swt/dialog/UsernamePasswordDialog.java (revision 3940) | ||
---|---|---|
163 | 163 |
/** |
164 | 164 |
* must be called before opening the dialog |
165 | 165 |
* |
166 |
* @param user
|
|
166 |
* @param details
|
|
167 | 167 |
*/ |
168 |
public void setDetails(String defails) {
|
|
169 |
this.details = defails;
|
|
168 |
public void setDetails(String details) {
|
|
169 |
this.details = details;
|
|
170 | 170 |
} |
171 | 171 |
|
172 | 172 |
/** |
173 | 173 |
* must be called before opening the dialog |
174 | 174 |
* |
175 |
* @param user
|
|
175 |
* @param title
|
|
176 | 176 |
*/ |
177 | 177 |
public void setTitle(String title) { |
178 | 178 |
this.title = title; |
TXM/trunk/bundles/org.txm.rcp/src/main/java/org/txm/rcp/swt/dialog/ReferencePatternSelectionDialog.java (revision 3940) | ||
---|---|---|
48 | 48 |
/** |
49 | 49 |
* The dialog box called to select the reference pattern properties and sprintf pattern. |
50 | 50 |
* |
51 |
* @ author mdecorde
|
|
51 |
* @author mdecorde |
|
52 | 52 |
*/ |
53 | 53 |
public class ReferencePatternSelectionDialog extends MultiplePropertySelectionDialog<Property> { |
54 | 54 |
|
TXM/trunk/bundles/org.txm.rcp/src/main/java/org/txm/rcp/swt/dialog/MultipleChoiceDialog.java (revision 3940) | ||
---|---|---|
69 | 69 |
* @param title |
70 | 70 |
* @param message displayed before he buttons |
71 | 71 |
* @param values in the shown order, not null, not empty |
72 |
* @param defaultAnswer, default value. If null the first value is the default value |
|
72 |
* @param defaultAnswer , default value. If null the first value is the default value
|
|
73 | 73 |
*/ |
74 | 74 |
public MultipleChoiceDialog(Shell parentShell, String title, String message, String[] values, String defaultAnswer) { |
75 | 75 |
super(parentShell); |
TXM/trunk/bundles/org.txm.rcp/src/main/java/org/txm/rcp/swt/dialog/MultiplePropertySelectionDialog.java (revision 3940) | ||
---|---|---|
52 | 52 |
/** |
53 | 53 |
* The dialog box called to select the view properties. |
54 | 54 |
* |
55 |
* @ author mdecorde
|
|
55 |
* @author mdecorde |
|
56 | 56 |
*/ |
57 | 57 |
public class MultiplePropertySelectionDialog<P extends Property> extends Dialog { |
58 | 58 |
|
TXM/trunk/bundles/org.txm.rcp/src/main/java/org/txm/rcp/swt/dialog/MultipleValueTreeDialog.java (revision 3940) | ||
---|---|---|
80 | 80 |
* @param parentShell the parent shell |
81 | 81 |
* @param title the title |
82 | 82 |
* @param values the values |
83 |
* @param defaultValue the default value |
|
84 | 83 |
*/ |
85 | 84 |
public MultipleValueTreeDialog(Shell parentShell, String title, LinkedHashMap<String, String> values, |
86 | 85 |
ArrayList<LinkedHashMap<String, String>> subvalues, String itemSubName) { |
TXM/trunk/bundles/org.txm.rcp/src/main/java/org/txm/rcp/swt/dialog/UpdateCorpusDialog.java (revision 3940) | ||
---|---|---|
204 | 204 |
return doForceUpdate; |
205 | 205 |
} |
206 | 206 |
|
207 |
/** |
|
208 |
* |
|
209 |
* @return the update edition button value AFTER this dialog is closed |
|
210 |
*/ |
|
211 | 207 |
public void setDoUpdateEdition(boolean doUpdateEditions) { |
212 | 208 |
|
213 | 209 |
this.doUpdateEditions = doUpdateEditions; |
... | ... | |
222 | 218 |
return this.corpusToUpdate; |
223 | 219 |
} |
224 | 220 |
|
225 |
/** |
|
226 |
* |
|
227 |
* @return the selected corpus to update |
|
228 |
*/ |
|
229 | 221 |
public void setCorpusToUpdate(MainCorpus corpus) { |
230 | 222 |
|
231 | 223 |
this.corpusToUpdate = corpus; |
232 | 224 |
} |
233 |
|
|
234 |
/** |
|
235 |
* |
|
236 |
* @return set the corpora to save |
|
237 |
*/ |
|
225 |
|
|
238 | 226 |
public void setCorporaToUpdate(java.util.List<MainCorpus> corpora) { |
239 | 227 |
|
240 | 228 |
this.corpora = corpora; |
241 | 229 |
} |
242 | 230 |
|
243 |
/** |
|
244 |
* |
|
245 |
* @return the force update button value AFTER this dialog is closed |
|
246 |
*/ |
|
247 | 231 |
public void setDoForceUpdate(boolean doForceUpdate) { |
248 | 232 |
|
249 | 233 |
this.doForceUpdate = doForceUpdate; |
TXM/trunk/bundles/org.txm.rcp/src/main/java/org/txm/rcp/swt/widget/QueryOptionsDialog.java (revision 3940) | ||
---|---|---|
284 | 284 |
return selectedEngine; |
285 | 285 |
} |
286 | 286 |
|
287 |
/** |
|
288 |
* Select value. |
|
289 |
* |
|
290 |
* @param string the string |
|
291 |
*/ |
|
292 | 287 |
public void selectValue(SearchEngine e) { |
293 | 288 |
|
294 | 289 |
if (values.contains(e)) { |
TXM/trunk/bundles/org.txm.rcp/src/main/java/org/txm/rcp/swt/widget/structures/StructuralUnitsComboViewer.java (revision 3940) | ||
---|---|---|
24 | 24 |
/** |
25 | 25 |
* |
26 | 26 |
* @param parent |
27 |
* @param style |
|
28 | 27 |
* @param editor |
29 | 28 |
* @param autoCompute |
30 | 29 |
* @param selectedSU |
TXM/trunk/bundles/org.txm.rcp/src/main/java/org/txm/rcp/swt/widget/structures/___StructuralUnitsListViewer.java (revision 3940) | ||
---|---|---|
23 | 23 |
/** |
24 | 24 |
* |
25 | 25 |
* @param parent |
26 |
* @param style |
|
27 | 26 |
* @param editor |
28 | 27 |
* @param autoCompute |
29 | 28 |
* @param selectedSU |
TXM/trunk/bundles/org.txm.rcp/src/main/java/org/txm/rcp/swt/widget/TXMParameterSpinner.java (revision 3940) | ||
---|---|---|
87 | 87 |
* @param parent |
88 | 88 |
* @param editor |
89 | 89 |
* @param labelText |
90 |
* @param items |
|
91 | 90 |
*/ |
92 | 91 |
public TXMParameterSpinner(Composite parent, TXMEditor<?> editor, String labelText) { |
93 | 92 |
this(parent, editor, labelText, null, false); |
... | ... | |
97 | 96 |
* |
98 | 97 |
* @param parent |
99 | 98 |
* @param editor |
100 |
* @param items |
|
101 | 99 |
* @param controlTooltip |
102 | 100 |
* @param autoCompute |
103 | 101 |
*/ |
... | ... | |
109 | 107 |
* |
110 | 108 |
* @param parent |
111 | 109 |
* @param editor |
112 |
* @param items |
|
113 | 110 |
*/ |
114 | 111 |
public TXMParameterSpinner(Composite parent, TXMEditor<?> editor) { |
115 | 112 |
this(parent, editor, null, false); |
TXM/trunk/bundles/org.txm.rcp/src/main/java/org/txm/rcp/swt/widget/NewNavigationWidget.java (revision 3940) | ||
---|---|---|
363 | 363 |
} |
364 | 364 |
|
365 | 365 |
/** |
366 |
* @param maxPosition the maxPosition to set
|
|
366 |
* @param minPosition the minPosition to set
|
|
367 | 367 |
*/ |
368 | 368 |
public void setMinimum(int minPosition) { |
369 | 369 |
this.minPosition = minPosition; |
... | ... | |
426 | 426 |
} |
427 | 427 |
|
428 | 428 |
/** |
429 |
* @param currentPosition the currentPosition to set
|
|
429 |
* @param newPosition the currentPosition to set
|
|
430 | 430 |
*/ |
431 | 431 |
public void setCurrentPosition(int newPosition) { |
432 | 432 |
if (newPosition < 0) newPosition = 0; |
... | ... | |
437 | 437 |
|
438 | 438 |
/** |
439 | 439 |
* To be compatible with the swtCombo.getSelection() method |
440 |
* @return |
|
441 | 440 |
*/ |
442 | 441 |
public void setSelection(int newPosition) { |
443 | 442 |
setCurrentPosition(newPosition); |
TXM/trunk/bundles/org.txm.rcp/src/main/java/org/txm/rcp/swt/widget/parameters/ParametersDialog2.java (revision 3940) | ||
---|---|---|
63 | 63 |
/** |
64 | 64 |
* |
65 | 65 |
* @param parentShell |
66 |
* @param bean |
|
67 | 66 |
* @param allParameters all the scripts annotations |
68 |
* @param args pre-filled fields |
|
69 | 67 |
*/ |
70 | 68 |
public ParametersDialog2(Shell parentShell, List<OptionHandler> allParameters, Map<String, Object> defaultParameters) { |
71 | 69 |
super(parentShell); |
TXM/trunk/bundles/org.txm.rcp/src/main/java/org/txm/rcp/swt/widget/parameters/MacroParametersDialog.java (revision 3940) | ||
---|---|---|
32 | 32 |
* |
33 | 33 |
* @param parentShell |
34 | 34 |
* @param bean |
35 |
* @param allParameters all the scripts annotations |
|
36 |
* @param args pre-filled fields |
|
37 | 35 |
*/ |
38 | 36 |
public MacroParametersDialog(Shell parentShell, Object bean) { |
39 | 37 |
super(parentShell); |
TXM/trunk/bundles/org.txm.rcp/src/main/java/org/txm/rcp/swt/widget/parameters/ParametersGLComposite.java (revision 3940) | ||
---|---|---|
89 | 89 |
/** |
90 | 90 |
* Build the fields depending on the values parameters and default values |
91 | 91 |
* |
92 |
* @param parent |
|
93 | 92 |
*/ |
94 | 93 |
public void buildFields() { |
95 | 94 |
|
TXM/trunk/bundles/org.txm.rcp/src/main/java/org/txm/rcp/swt/widget/parameters/ParametersManager.java (revision 3940) | ||
---|---|---|
409 | 409 |
/** |
410 | 410 |
* compile and export values to a Properties object |
411 | 411 |
* |
412 |
* @return |
|
413 | 412 |
* @throws IOException |
414 | 413 |
*/ |
415 | 414 |
public void finalToFile(File propFile) throws IOException { |
TXM/trunk/bundles/org.txm.rcp/src/main/java/org/txm/rcp/handlers/export/ExportCommandDialog.java (revision 3940) | ||
---|---|---|
50 | 50 |
/** |
51 | 51 |
* |
52 | 52 |
* @param parentShell |
53 |
* @param title |
|
54 |
* @param question |
|
55 |
* @param text |
|
56 | 53 |
*/ |
57 | 54 |
public ExportCommandDialog(Shell parentShell, TXMResult result) { |
58 | 55 |
super(parentShell); |
TXM/trunk/bundles/org.txm.rcp/src/main/java/org/txm/rcp/handlers/files/EditFile.java (revision 3940) | ||
---|---|---|
85 | 85 |
/** |
86 | 86 |
* Open a file in TXM TxtEditor. |
87 | 87 |
* |
88 |
* @param filepath the filepath
|
|
88 |
* @param file the filepath |
|
89 | 89 |
*/ |
90 | 90 |
static public boolean openfile(File file) { |
91 | 91 |
if (file.isDirectory()) |
TXM/trunk/bundles/org.txm.rcp/src/main/java/org/txm/rcp/handlers/files/EditSelectedFile.java (revision 3940) | ||
---|---|---|
97 | 97 |
/** |
98 | 98 |
* Open a file in TXM TxtEditor. |
99 | 99 |
* |
100 |
* @param filepath the filepath
|
|
100 |
* @param file the filepath |
|
101 | 101 |
*/ |
102 | 102 |
static public void openfile(File file) { |
103 | 103 |
if (file.isDirectory()) |
TXM/trunk/bundles/org.txm.rcp/src/main/java/org/txm/rcp/handlers/scripts/ExecuteImportScript.java (revision 3940) | ||
---|---|---|
134 | 134 |
|
135 | 135 |
/** |
136 | 136 |
* |
137 |
* @param scriptFilePath |
|
138 |
* @param params |
|
139 | 137 |
* @return |
140 | 138 |
*/ |
141 | 139 |
public static JobHandler executeScript(final Project project) { |
TXM/trunk/bundles/org.txm.rcp/src/main/java/org/txm/rcp/handlers/scripts/ExecuteGroovyScript.java (revision 3940) | ||
---|---|---|
150 | 150 |
|
151 | 151 |
/** |
152 | 152 |
* |
153 |
* @param currentRootDir |
|
154 | 153 |
* @param scriptpath |
155 | 154 |
* @param page current active page, might be null |
156 |
* @param sel current selection, might be null |
|
157 | 155 |
* @return |
158 | 156 |
*/ |
159 | 157 |
public static JobHandler executeScript(String scriptpath, final IWorkbenchPart page, final ISelection selection, boolean modal, String stringArgs) { |
... | ... | |
170 | 168 |
|
171 | 169 |
/** |
172 | 170 |
* |
173 |
* @param currentRootDir |
|
174 | 171 |
* @param scriptpath |
175 | 172 |
* @param page current active page, might be null |
176 |
* @param sel current selection, might be null |
|
177 | 173 |
*/ |
178 | 174 |
public static void executeScript(String scriptpath, final IWorkbenchPart page, final ISelection selection, String stringArgs) { |
179 | 175 |
executeScript(scriptpath, page, selection, false, stringArgs); |
... | ... | |
181 | 177 |
|
182 | 178 |
/** |
183 | 179 |
* |
184 |
* @param currentRootDir |
|
185 | 180 |
* @param scriptpath |
186 | 181 |
* @param page current active page, might be null |
187 |
* @param sel current selection, might be null |
|
188 | 182 |
*/ |
189 | 183 |
public static JobHandler executeScript(String scriptpath, final IWorkbenchPart page, final ISelection selection) { |
190 | 184 |
return executeScript(scriptpath, page, selection, false, null); |
TXM/trunk/bundles/org.txm.utils.core/src/org/txm/utils/BiHashMap.java (revision 3940) | ||
---|---|---|
6 | 6 |
import java.util.concurrent.ConcurrentHashMap; |
7 | 7 |
|
8 | 8 |
/** |
9 |
* Bi directionnal hashmap : keys <-> values
|
|
9 |
* Bi directionnal hashmap |
|
10 | 10 |
* |
11 | 11 |
* @author mdecorde |
12 |
* |
|
13 |
* @param <KeyType> |
|
14 |
* @param <ValueType> |
|
15 | 12 |
*/ |
16 | 13 |
public class BiHashMap<KeyType, ValueType> { |
17 | 14 |
|
TXM/trunk/bundles/org.txm.utils.core/src/org/txm/utils/i18n/DetectBOM.java (revision 3940) | ||
---|---|---|
9 | 9 |
/** |
10 | 10 |
* Simple class to detect BOM in a file |
11 | 11 |
* |
12 |
* @see http://blog.ymango.com/2010/09/16/29
|
|
12 |
* @see "http://blog.ymango.com/2010/09/16/29"
|
|
13 | 13 |
* |
14 | 14 |
* @author mdecorde |
15 | 15 |
* |
TXM/trunk/bundles/org.txm.utils.core/src/org/txm/utils/Diff.java (revision 3940) | ||
---|---|---|
627 | 627 |
* Mark to be discarded each line that matches no line of another file. If a |
628 | 628 |
* line matches many lines, mark it as provisionally discardable. |
629 | 629 |
* |
630 |
* @see equivCount()
|
|
630 |
* @see "equivCount()"
|
|
631 | 631 |
* @param counts |
632 | 632 |
* The count of each equivalence number for the other file. |
633 | 633 |
* @return 0=nondiscardable, 1=discardable or 2=provisionally discardable for |
TXM/trunk/bundles/org.txm.utils.core/src/org/txm/utils/AsciiUtils.java (revision 3940) | ||
---|---|---|
42 | 42 |
* |
43 | 43 |
* AsciiUtils.buildId(str) créé un identifiant compatible corpus CQP |
44 | 44 |
* |
45 |
* @see : http://www.rgagnon.com/javadetails/java-0456.html
|
|
45 |
* @see "http://www.rgagnon.com/javadetails/java-0456.html"
|
|
46 | 46 |
*/ |
47 | 47 |
public class AsciiUtils { |
48 | 48 |
|
TXM/trunk/bundles/org.txm.utils.core/src/org/txm/utils/xml/DomUtils.java (revision 3940) | ||
---|---|---|
86 | 86 |
} |
87 | 87 |
|
88 | 88 |
/** |
89 |
* Save.
|
|
89 |
* Save the doc Element to file
|
|
90 | 90 |
* |
91 |
* @param element |
|
92 |
* the doc |
|
93 |
* @param writer |
|
94 |
* the writer |
|
91 |
* @param writer the writer |
|
95 | 92 |
* @return true if successful |
96 | 93 |
*/ |
97 | 94 |
public static boolean save(Document doc, Writer writer) { |
... | ... | |
147 | 144 |
* @return true, if successful |
148 | 145 |
* @throws FileNotFoundException |
149 | 146 |
* @throws UnsupportedEncodingException |
150 |
* @return true if successful |
|
151 | 147 |
*/ |
152 | 148 |
public static boolean save(Document doc, File outfile) throws UnsupportedEncodingException, FileNotFoundException { |
153 | 149 |
Writer writer = new BufferedWriter(new OutputStreamWriter(new BufferedOutputStream(new FileOutputStream(outfile)), "UTF-8")); //$NON-NLS-1$ |
... | ... | |
157 | 153 |
/** |
158 | 154 |
* Save. |
159 | 155 |
* |
160 |
* @param doc |
|
161 |
* the doc |
|
162 |
* @param outfile |
|
163 |
* the outfile |
|
156 |
* @param doc the doc |
|
164 | 157 |
* @return true, if successful |
165 | 158 |
* @throws FileNotFoundException |
166 | 159 |
* @throws UnsupportedEncodingException |
TXM/trunk/bundles/org.txm.utils.core/src/org/txm/utils/zip/Zip.java (revision 3940) | ||
---|---|---|
121 | 121 |
* Compresse un fichier à l'adresse pointée par le fichier cible. Remplace le |
122 | 122 |
* fichier cible s'il existe déjà.. |
123 | 123 |
* |
124 |
* @param file |
|
125 |
* the file |
|
126 |
* @param targetZipFile |
|
127 |
* the target |
|
128 |
* @param compressionLevel |
|
129 |
* the compression level |
|
130 |
* @throws IOException |
|
131 |
* Signals that an I/O exception has occurred. |
|
124 |
* @param files the files to process |
|
125 |
* @param targetZipFile the target |
|
126 |
* @param compressionLevel the compression level |
|
127 |
* @throws IOException Signals that an I/O exception has occurred. |
|
132 | 128 |
*/ |
133 | 129 |
public static void compress(final File[] files, final File targetZipFile, final int compressionLevel, IProgressMonitor monitor, HashSet<String> ignore) throws IOException { |
134 | 130 |
|
135 |
|
|
136 | 131 |
// Création du fichier zip |
137 | 132 |
final ZipOutputStream out = new ZipOutputStream(new FileOutputStream(targetZipFile)); |
138 | 133 |
out.setMethod(ZipOutputStream.DEFLATED); |
TXM/trunk/bundles/org.txm.utils.core/src/org/txm/utils/DiffPrint.java (revision 3940) | ||
---|---|---|
42 | 42 |
/** |
43 | 43 |
* A simple framework for printing change lists produced by <code>Diff</code>. |
44 | 44 |
* |
45 |
* @see bmsi.util.Diff |
|
46 | 45 |
* @author Stuart D. Gathman Copyright (C) 2000 Business Management Systems, |
47 | 46 |
* Inc. |
48 | 47 |
* <p> |
TXM/trunk/bundles/org.txm.utils.core/src/org/txm/utils/io/IOUtils.java (revision 3940) | ||
---|---|---|
271 | 271 |
|
272 | 272 |
/** |
273 | 273 |
* |
274 |
* @param manifest |
|
275 | 274 |
* @return an InputStream, dont forget to close it |
276 | 275 |
* @throws MalformedURLException |
277 | 276 |
* @throws IOException |
TXM/trunk/bundles/org.txm.utils.core/src/org/txm/utils/ProcessBuilderBuilder.java (revision 3940) | ||
---|---|---|
43 | 43 |
import org.w3c.dom.NodeList; |
44 | 44 |
import org.xml.sax.SAXException; |
45 | 45 |
|
46 |
// TODO: Auto-generated Javadoc |
|
47 | 46 |
/** |
48 | 47 |
* The Class ProcessBuilderBuilder. |
49 | 48 |
* |
TXM/trunk/bundles/org.txm.utils.core/src/org/txm/utils/logger/Log.java (revision 3940) | ||
---|---|---|
203 | 203 |
/** |
204 | 204 |
* Sets the prints the in console. |
205 | 205 |
* |
206 |
* @param b |
|
207 |
* the new prints the in console |
|
208 | 206 |
*/ |
209 | 207 |
public static boolean getPrintInConsole() { |
210 | 208 |
return txm.getUseParentHandlers(); |
... | ... | |
283 | 281 |
/** |
284 | 282 |
* Log a warning message using the default flag |
285 | 283 |
* |
286 |
* @param t |
|
287 |
* the error to print |
|
284 |
* @param e the error to print |
|
288 | 285 |
*/ |
289 | 286 |
public static void warning(Throwable e) { |
290 | 287 |
warning(e.getLocalizedMessage()); |
... | ... | |
334 | 331 |
* Log an info message |
335 | 332 |
* |
336 | 333 |
* @param message |
337 |
* @param flag |
|
338 |
* where to print the message |
|
339 | 334 |
*/ |
340 | 335 |
public static void info(String message) { |
341 | 336 |
info(message, true); |
... | ... | |
345 | 340 |
* Log an info message |
346 | 341 |
* |
347 | 342 |
* @param message |
348 |
* @param flag |
|
349 |
* where to print the message |
|
350 | 343 |
*/ |
351 | 344 |
public static void info(String message, boolean newline) { |
Formats disponibles : Unified diff