Révision 698
tmp/org.txm.cooccurrence.rcp/plugin.xml (revision 698) | ||
---|---|---|
33 | 33 |
point="org.eclipse.ui.menus"> |
34 | 34 |
<menuContribution |
35 | 35 |
allPopups="false" |
36 |
locationURI="popup:org.txm.rcp.views.corpora.CorporaView"> |
|
36 |
locationURI="popup:org.txm.rcp.views.corpora.CorporaView?after=org.txm.concordance.rcp.handlers.ComputeConcordance">
|
|
37 | 37 |
<command |
38 | 38 |
commandId="org.txm.cooccurrence.rcp.handlers.ComputeCooccurrences" |
39 | 39 |
icon="icons/cooccurrences.png" |
... | ... | |
52 | 52 |
</command> |
53 | 53 |
</menuContribution> |
54 | 54 |
<menuContribution |
55 |
locationURI="menu:menu.tools"> |
|
55 |
locationURI="menu:menu.tools?after=org.txm.concordance.rcp.handlers.ComputeConcordance">
|
|
56 | 56 |
<command |
57 | 57 |
commandId="org.txm.cooccurrence.rcp.handlers.ComputeCooccurrences" |
58 | 58 |
icon="icons/cooccurrences.png" |
tmp/org.txm.progression.rcp/plugin.xml (revision 698) | ||
---|---|---|
57 | 57 |
</command> |
58 | 58 |
</menuContribution> |
59 | 59 |
<menuContribution |
60 |
locationURI="menu:menu.tools"> |
|
60 |
locationURI="menu:menu.tools?after=org.txm.cooccurrence.rcp.handlers.ComputeCooccurrences">
|
|
61 | 61 |
<command |
62 | 62 |
commandId="org.txm.progression.rcp.handlers.ComputeProgression" |
63 | 63 |
icon="icons/functions/progression.png" |
... | ... | |
72 | 72 |
</visibleWhen> |
73 | 73 |
</command> |
74 | 74 |
</menuContribution> |
75 |
<menuContribution |
|
76 |
allPopups="false" |
|
77 |
locationURI="popup:org.txm.rcp.views.corpora.CorporaView?after=org.txm.cooccurrence.rcp.handlers.ComputeCooccurrences"> |
|
78 |
<command |
|
79 |
commandId="org.txm.progression.rcp.handlers.ComputeProgression" |
|
80 |
icon="icons/functions/progression.png" |
|
81 |
style="push" |
|
82 |
tooltip="%command.tooltip"> |
|
83 |
<visibleWhen |
|
84 |
checkEnabled="false"> |
|
85 |
<or> |
|
86 |
<reference |
|
87 |
definitionId="OneCorpusSelected"> |
|
88 |
</reference> |
|
89 |
</or> |
|
90 |
</visibleWhen> |
|
91 |
</command> |
|
92 |
</menuContribution> |
|
75 | 93 |
</extension> |
76 | 94 |
<extension |
77 | 95 |
point="org.txm.chartsengine.eventcallback"> |
tmp/org.txm.concordance.rcp/plugin.xml (revision 698) | ||
---|---|---|
34 | 34 |
point="org.eclipse.ui.menus"> |
35 | 35 |
<menuContribution |
36 | 36 |
allPopups="false" |
37 |
locationURI="popup:org.txm.rcp.views.corpora.CorporaView?after=org.txm.rcp.corporaview.tools">
|
|
37 |
locationURI="popup:org.txm.rcp.views.corpora.CorporaView?after=org.txm.index.rcp.handlers.ComputeIndex">
|
|
38 | 38 |
<command |
39 | 39 |
commandId="org.txm.concordance.rcp.handlers.ComputeConcordance" |
40 | 40 |
icon="icons/concordance.png" |
... | ... | |
50 | 50 |
</command> |
51 | 51 |
</menuContribution> |
52 | 52 |
<menuContribution |
53 |
locationURI="menu:menu.tools"> |
|
53 |
locationURI="menu:menu.tools?after=org.txm.index.rcp.handlers.ComputeIndex">
|
|
54 | 54 |
<command |
55 | 55 |
commandId="org.txm.concordance.rcp.handlers.ComputeConcordance" |
56 | 56 |
icon="icons/concordance.png" |
tmp/org.txm.synopticeditor.rcp/plugin.xml (revision 698) | ||
---|---|---|
1 | 1 |
<?xml version="1.0" encoding="UTF-8"?> |
2 | 2 |
<?eclipse version="3.4"?> |
3 | 3 |
<plugin> |
4 |
<extension-point id="org.txm.synopticeditor.toolbarbutton" name="Synoptic Editor toolbar button" schema="schema/org.txm.synopticeditor.toolbarbutton.exsd"/>
|
|
4 |
<extension-point id="org.txm.synopticedition.rcp.editors.ext.ToolbarButton" name="Synoptic Editor toolbar button" schema="schema/org.txm.synopticedition.rcp.editors.ext.ToolbarButton.exsd"/>
|
|
5 | 5 |
<extension |
6 | 6 |
point="org.eclipse.ui.menus"> |
7 | 7 |
<menuContribution |
... | ... | |
44 | 44 |
</command> |
45 | 45 |
</menuContribution> |
46 | 46 |
<menuContribution |
47 |
locationURI="popup:org.txm.rcp.views.corpora.CorporaView?before=corporaview.description">
|
|
47 |
locationURI="popup:org.txm.rcp.views.corpora.CorporaView?after=org.txm.rcp.corporaview.corpus.read">
|
|
48 | 48 |
<command |
49 | 49 |
commandId="org.txm.synopticedition.rcp.handlers.OpenEdition" |
50 | 50 |
icon="icons/objects/edition.png" |
... | ... | |
61 | 61 |
</command> |
62 | 62 |
</menuContribution> |
63 | 63 |
<menuContribution |
64 |
locationURI="menu:menu.corpus?before=menu.corpus.description">
|
|
64 |
locationURI="menu:menu.corpus?after=menu.corpus.read">
|
|
65 | 65 |
<command |
66 | 66 |
commandId="org.txm.synopticedition.rcp.handlers.OpenEdition" |
67 | 67 |
icon="icons/objects/edition.png" |
tmp/org.txm.synopticeditor.rcp/schema/org.txm.synopticeditor.toolbarbutton.exsd (revision 698) | ||
---|---|---|
1 |
<?xml version='1.0' encoding='UTF-8'?> |
|
2 |
<!-- Schema file written by PDE --> |
|
3 |
<schema targetNamespace="SynopticEditorRCP" xmlns="http://www.w3.org/2001/XMLSchema"> |
|
4 |
<annotation> |
|
5 |
<appinfo> |
|
6 |
<meta.schema plugin="SynopticEditorRCP" id="org.txm.synopticeditor.bottombutton" name="Synoptic Editor bottom button"/> |
|
7 |
</appinfo> |
|
8 |
<documentation> |
|
9 |
Add a button in the SynapticEditor bottom toolbar |
|
10 |
</documentation> |
|
11 |
</annotation> |
|
12 |
|
|
13 |
<element name="extension"> |
|
14 |
<annotation> |
|
15 |
<appinfo> |
|
16 |
<meta.element /> |
|
17 |
</appinfo> |
|
18 |
</annotation> |
|
19 |
<complexType> |
|
20 |
<choice minOccurs="1" maxOccurs="unbounded"> |
|
21 |
<element ref="Button"/> |
|
22 |
</choice> |
|
23 |
<attribute name="point" type="string" use="required"> |
|
24 |
<annotation> |
|
25 |
<documentation> |
|
26 |
|
|
27 |
</documentation> |
|
28 |
</annotation> |
|
29 |
</attribute> |
|
30 |
<attribute name="id" type="string"> |
|
31 |
<annotation> |
|
32 |
<documentation> |
|
33 |
|
|
34 |
</documentation> |
|
35 |
</annotation> |
|
36 |
</attribute> |
|
37 |
<attribute name="name" type="string"> |
|
38 |
<annotation> |
|
39 |
<documentation> |
|
40 |
|
|
41 |
</documentation> |
|
42 |
<appinfo> |
|
43 |
<meta.attribute translatable="true"/> |
|
44 |
</appinfo> |
|
45 |
</annotation> |
|
46 |
</attribute> |
|
47 |
</complexType> |
|
48 |
</element> |
|
49 |
|
|
50 |
<element name="Button"> |
|
51 |
<complexType> |
|
52 |
<attribute name="class" type="string" use="required"> |
|
53 |
<annotation> |
|
54 |
<documentation> |
|
55 |
|
|
56 |
</documentation> |
|
57 |
<appinfo> |
|
58 |
<meta.attribute kind="java" basedOn="org.txm.synopticedition.rcp.editors.ext.ToolbarButton:"/> |
|
59 |
</appinfo> |
|
60 |
</annotation> |
|
61 |
</attribute> |
|
62 |
</complexType> |
|
63 |
</element> |
|
64 |
|
|
65 |
<annotation> |
|
66 |
<appinfo> |
|
67 |
<meta.section type="since"/> |
|
68 |
</appinfo> |
|
69 |
<documentation> |
|
70 |
TXM 0.7.8 |
|
71 |
</documentation> |
|
72 |
</annotation> |
|
73 |
|
|
74 |
<annotation> |
|
75 |
<appinfo> |
|
76 |
<meta.section type="examples"/> |
|
77 |
</appinfo> |
|
78 |
<documentation> |
|
79 |
[Enter extension point usage example here.] |
|
80 |
</documentation> |
|
81 |
</annotation> |
|
82 |
|
|
83 |
<annotation> |
|
84 |
<appinfo> |
|
85 |
<meta.section type="apiinfo"/> |
|
86 |
</appinfo> |
|
87 |
<documentation> |
|
88 |
[Enter API information here.] |
|
89 |
</documentation> |
|
90 |
</annotation> |
|
91 |
|
|
92 |
<annotation> |
|
93 |
<appinfo> |
|
94 |
<meta.section type="implementation"/> |
|
95 |
</appinfo> |
|
96 |
<documentation> |
|
97 |
[Enter information about supplied implementation of this extension point.] |
|
98 |
</documentation> |
|
99 |
</annotation> |
|
100 |
|
|
101 |
|
|
102 |
</schema> |
tmp/org.txm.synopticeditor.rcp/schema/org.txm.synopticedition.rcp.editors.ext.ToolbarButton.exsd (revision 698) | ||
---|---|---|
1 |
<?xml version='1.0' encoding='UTF-8'?> |
|
2 |
<!-- Schema file written by PDE --> |
|
3 |
<schema targetNamespace="SynopticEditorRCP" xmlns="http://www.w3.org/2001/XMLSchema"> |
|
4 |
<annotation> |
|
5 |
<appinfo> |
|
6 |
<meta.schema plugin="SynopticEditorRCP" id="org.txm.synopticedition.rcp.editors.ext.ToolbarButton" name="Synoptic Editor bottom button"/> |
|
7 |
</appinfo> |
|
8 |
<documentation> |
|
9 |
Add a button in the SynapticEditor bottom toolbar |
|
10 |
</documentation> |
|
11 |
</annotation> |
|
12 |
|
|
13 |
<element name="extension"> |
|
14 |
<annotation> |
|
15 |
<appinfo> |
|
16 |
<meta.element /> |
|
17 |
</appinfo> |
|
18 |
</annotation> |
|
19 |
<complexType> |
|
20 |
<choice minOccurs="1" maxOccurs="unbounded"> |
|
21 |
<element ref="Button"/> |
|
22 |
</choice> |
|
23 |
<attribute name="point" type="string" use="required"> |
|
24 |
<annotation> |
|
25 |
<documentation> |
|
26 |
|
|
27 |
</documentation> |
|
28 |
</annotation> |
|
29 |
</attribute> |
|
30 |
<attribute name="id" type="string"> |
|
31 |
<annotation> |
|
32 |
<documentation> |
|
33 |
|
|
34 |
</documentation> |
|
35 |
</annotation> |
|
36 |
</attribute> |
|
37 |
<attribute name="name" type="string"> |
|
38 |
<annotation> |
|
39 |
<documentation> |
|
40 |
|
|
41 |
</documentation> |
|
42 |
<appinfo> |
|
43 |
<meta.attribute translatable="true"/> |
|
44 |
</appinfo> |
|
45 |
</annotation> |
|
46 |
</attribute> |
|
47 |
</complexType> |
|
48 |
</element> |
|
49 |
|
|
50 |
<element name="Button"> |
|
51 |
<complexType> |
|
52 |
<attribute name="class" type="string" use="required"> |
|
53 |
<annotation> |
|
54 |
<documentation> |
|
55 |
|
|
56 |
</documentation> |
|
57 |
<appinfo> |
|
58 |
<meta.attribute kind="java" basedOn="org.txm.synopticedition.rcp.editors.ext.ToolbarButton:"/> |
|
59 |
</appinfo> |
|
60 |
</annotation> |
|
61 |
</attribute> |
|
62 |
</complexType> |
|
63 |
</element> |
|
64 |
|
|
65 |
<annotation> |
|
66 |
<appinfo> |
|
67 |
<meta.section type="since"/> |
|
68 |
</appinfo> |
|
69 |
<documentation> |
|
70 |
TXM 0.7.8 |
|
71 |
</documentation> |
|
72 |
</annotation> |
|
73 |
|
|
74 |
<annotation> |
|
75 |
<appinfo> |
|
76 |
<meta.section type="examples"/> |
|
77 |
</appinfo> |
|
78 |
<documentation> |
|
79 |
[Enter extension point usage example here.] |
|
80 |
</documentation> |
|
81 |
</annotation> |
|
82 |
|
|
83 |
<annotation> |
|
84 |
<appinfo> |
|
85 |
<meta.section type="apiinfo"/> |
|
86 |
</appinfo> |
|
87 |
<documentation> |
|
88 |
[Enter API information here.] |
|
89 |
</documentation> |
|
90 |
</annotation> |
|
91 |
|
|
92 |
<annotation> |
|
93 |
<appinfo> |
|
94 |
<meta.section type="implementation"/> |
|
95 |
</appinfo> |
|
96 |
<documentation> |
|
97 |
[Enter information about supplied implementation of this extension point.] |
|
98 |
</documentation> |
|
99 |
</annotation> |
|
100 |
|
|
101 |
|
|
102 |
</schema> |
|
0 | 103 |
tmp/org.txm.specificities.rcp/plugin.xml (revision 698) | ||
---|---|---|
35 | 35 |
<extension |
36 | 36 |
point="org.eclipse.ui.menus"> |
37 | 37 |
<menuContribution |
38 |
locationURI="popup:org.txm.rcp.views.corpora.CorporaView"> |
|
38 |
locationURI="popup:org.txm.rcp.views.corpora.CorporaView?after=org.txm.rcp.corporaview.tools.stat">
|
|
39 | 39 |
<command |
40 | 40 |
commandId="org.txm.specificities.rcp.handlers.ComputeSpecifities" |
41 | 41 |
icon="icons/functions/specificities.png" |
... | ... | |
57 | 57 |
</command> |
58 | 58 |
</menuContribution> |
59 | 59 |
<menuContribution |
60 |
locationURI="menu:menu.tools"> |
|
60 |
locationURI="menu:menu.tools?after=menu.tools.separator.stats">
|
|
61 | 61 |
<command |
62 | 62 |
commandId="org.txm.specificities.rcp.handlers.ComputeSpecifities" |
63 | 63 |
icon="icons/functions/specificities.png" |
tmp/org.txm.para.rcp/src/org/txm/para/rcp/editors/ParaBrowserEditor.java (revision 698) | ||
---|---|---|
135 | 135 |
/** The selected view properties. */ |
136 | 136 |
private List<StructuralUnit> selectedViewProperties; |
137 | 137 |
|
138 |
private ParaBrowser paraBrowser = new ParaBrowser();
|
|
138 |
private ParaBrowser paraBrowser; |
|
139 | 139 |
|
140 | 140 |
/** The next. */ |
141 | 141 |
private Button next; |
... | ... | |
465 | 465 |
structuralUnits = selectedViewCorpus.get(0) |
466 | 466 |
.getOrderedStructuralUnits(); |
467 | 467 |
} catch (CqiClientException e) { |
468 |
System.err
|
|
469 |
.println(TXMUIMessages.ObjectExplorer_9);
|
|
468 |
System.out.println("Error: "+e);
|
|
469 |
e.printStackTrace();
|
|
470 | 470 |
return; |
471 | 471 |
} |
472 | 472 |
} |
... | ... | |
731 | 731 |
*/ |
732 | 732 |
public void setReferencePattern(ReferencePattern referencePattern) { |
733 | 733 |
this.referencePattern = referencePattern; |
734 |
selectedReference = TXMUIMessages.ObjectExplorer_9;
|
|
734 |
selectedReference = ""; ////$NON-NLS-0$
|
|
735 | 735 |
if (referencePattern != null) { |
736 | 736 |
// selectedStructuralUnit.getName() |
737 | 737 |
List<Property> references = referencePattern.getProperties(); |
tmp/org.txm.rcp/plugin.xml (revision 698) | ||
---|---|---|
324 | 324 |
id="menu.file" |
325 | 325 |
label="%menu.label"> |
326 | 326 |
<separator |
327 |
name="org.txm.rcp.separator2"
|
|
327 |
name="menu.file.separator.import"
|
|
328 | 328 |
visible="true"> |
329 | 329 |
</separator> |
330 | 330 |
<menu |
... | ... | |
578 | 578 |
</command> |
579 | 579 |
</menu> |
580 | 580 |
<separator |
581 |
name="fileSeparator1"
|
|
581 |
name="menu.file.separator.file"
|
|
582 | 582 |
visible="true"> |
583 | 583 |
</separator> |
584 | 584 |
<command |
... | ... | |
623 | 623 |
label="%command.label.93"> |
624 | 624 |
</command> |
625 | 625 |
<separator |
626 |
name="org.txm.rcp.separator2"
|
|
626 |
name="menu.file.separator.open"
|
|
627 | 627 |
visible="true"> |
628 | 628 |
</separator> |
629 | 629 |
<command |
... | ... | |
633 | 633 |
tooltip="%command.tooltip"> |
634 | 634 |
</command> |
635 | 635 |
<separator |
636 |
name="fileSeparator2"
|
|
636 |
name="menu.file.separator.lang"
|
|
637 | 637 |
visible="true"> |
638 | 638 |
</separator> |
639 | 639 |
<command |
... | ... | |
643 | 643 |
tooltip="%command.tooltip.42"> |
644 | 644 |
</command> |
645 | 645 |
<separator |
646 |
name="org.txm.rcp.separator3"
|
|
646 |
name="menu.file.separator.update"
|
|
647 | 647 |
visible="true"> |
648 | 648 |
</separator> |
649 | 649 |
<command |
... | ... | |
684 | 684 |
</visibleWhen> |
685 | 685 |
</command> |
686 | 686 |
<separator |
687 |
name="org.txm.rcp.separator1"
|
|
687 |
name="menu.file.separator.close"
|
|
688 | 688 |
visible="true"> |
689 | 689 |
</separator> |
690 | 690 |
<command |
... | ... | |
920 | 920 |
id="menu.corpus" |
921 | 921 |
label="%menu.label.1" |
922 | 922 |
sibling_order="<command
 commandId="org.txm.rcp.commands.function.ComputeConcordance"
 icon="icons/functions/Concordances.png"
 label="%command.label.11"
 style="push"
 tooltip="%command.tooltip.7">
 <visibleWhen
 checkEnabled="false">
 <reference
 definitionId="OneCorpusSelected">
 </reference>
 </visibleWhen>
 </command>"> |
923 |
<separator |
|
924 |
name="menu.corpus.read" |
|
925 |
visible="true"> |
|
926 |
</separator> |
|
927 |
<separator |
|
928 |
name="menu.corpus.manage" |
|
929 |
visible="true"> |
|
930 |
</separator> |
|
923 | 931 |
|
924 | 932 |
<command |
925 | 933 |
commandId="org.txm.rcp.commands.base.DeleteObject" |
... | ... | |
984 | 992 |
<menu |
985 | 993 |
id="menu.tools" |
986 | 994 |
label="%menu.label.6"> |
995 |
<separator |
|
996 |
name="menu.tools.separator.doc" |
|
997 |
visible="true"> |
|
998 |
</separator> |
|
987 | 999 |
|
988 | 1000 |
<separator |
989 |
name="menu.tools.stats" |
|
1001 |
name="menu.tools.separator.stats"
|
|
990 | 1002 |
visible="true"> |
991 | 1003 |
</separator> |
992 | 1004 |
<separator |
993 |
name="menu.tools.misc" |
|
1005 |
name="menu.tools.separator.misc"
|
|
994 | 1006 |
visible="true"> |
995 | 1007 |
</separator> |
1008 |
<separator |
|
1009 |
name="menu.tools.separator.end" |
|
1010 |
visible="true"> |
|
1011 |
</separator> |
|
996 | 1012 |
<command |
997 | 1013 |
commandId="org.eclipse.ui.window.preferences" |
998 | 1014 |
icon="icons/functions/prefs.png" |
... | ... | |
1897 | 1913 |
<menuContribution |
1898 | 1914 |
locationURI="popup:org.txm.rcp.views.corpora.CorporaView"> |
1899 | 1915 |
<separator |
1900 |
id="org.txm.rcp.corporaview.begin" |
|
1901 | 1916 |
name="org.txm.rcp.corporaview.begin" |
1902 | 1917 |
visible="true"/> |
1903 |
<separator
|
|
1904 |
id="org.txm.rcp.corporaview.export"
|
|
1905 |
name="org.txm.rcp.corporaview.export"
|
|
1906 |
visible="true"/>
|
|
1907 |
<command |
|
1918 |
<menu
|
|
1919 |
icon="icons/functions/export.png"
|
|
1920 |
id="org.txm.rcp.corporaview.export"
|
|
1921 |
label="Exporter">
|
|
1922 |
<command
|
|
1908 | 1923 |
commandId="org.txm.rcp.commands.function.ExportResult" |
1909 | 1924 |
icon="icons/functions/export_data.png" |
1910 | 1925 |
label="%command.label.51" |
... | ... | |
1972 | 1987 |
</or> |
1973 | 1988 |
</visibleWhen> |
1974 | 1989 |
</command> |
1990 |
</menu> |
|
1991 |
|
|
1975 | 1992 |
<separator |
1976 | 1993 |
name="org.txm.rcp.corporaview.corpus" |
1977 |
id="org.txm.rcp.corporaview.corpus" |
|
1978 | 1994 |
visible="true"> |
1979 | 1995 |
</separator> |
1996 |
<separator |
|
1997 |
name="org.txm.rcp.corporaview.corpus.read" |
|
1998 |
visible="true"> |
|
1999 |
</separator> |
|
2000 |
<separator |
|
2001 |
name="org.txm.rcp.corporaview.corpus.manage" |
|
2002 |
visible="true"> |
|
2003 |
</separator> |
|
1980 | 2004 |
|
1981 | 2005 |
<command |
1982 | 2006 |
commandId="org.txm.rcp.commands.base.DeleteObject" |
... | ... | |
2014 | 2038 |
</command> |
2015 | 2039 |
<separator |
2016 | 2040 |
name="org.txm.rcp.corporaview.annotation" |
2017 |
id="org.txm.rcp.corporaview.annotation" |
|
2018 | 2041 |
visible="true"> |
2019 | 2042 |
</separator> |
2020 | 2043 |
<separator |
2021 | 2044 |
name="org.txm.rcp.corporaview.tools" |
2022 |
id="org.txm.rcp.corporaview.tools" |
|
2023 | 2045 |
visible="true"> |
2024 | 2046 |
</separator> |
2025 |
<command |
|
2026 |
commandId="org.eclipse.ui.window.preferences" |
|
2027 |
icon="icons/functions/prefs.png" |
|
2028 |
label="%command.label.4" |
|
2029 |
style="push" |
|
2030 |
tooltip="%command.tooltip.0"> |
|
2031 |
</command> |
|
2047 |
<separator |
|
2048 |
name="org.txm.rcp.corporaview.tools.doc" |
|
2049 |
visible="true"> |
|
2050 |
</separator> |
|
2051 |
<separator |
|
2052 |
name="org.txm.rcp.corporaview.tools.stat" |
|
2053 |
visible="true"> |
|
2054 |
</separator> |
|
2055 |
<separator |
|
2056 |
name="org.txm.rcp.corporaview.tools.misc" |
|
2057 |
visible="true"> |
|
2058 |
</separator> |
|
2032 | 2059 |
<separator |
2033 | 2060 |
name="org.txm.rcp.corporaview.text" |
2034 |
id="org.txm.rcp.corporaview.text" |
|
2035 | 2061 |
visible="true"> |
2036 | 2062 |
</separator> |
2037 | 2063 |
<separator |
2038 | 2064 |
name="org.txm.rcp.corporaview.file" |
2039 |
id="org.txm.rcp.corporaview.file" |
|
2040 | 2065 |
visible="true"> |
2041 | 2066 |
</separator> |
2067 |
<command |
|
2068 |
commandId="org.eclipse.ui.window.preferences" |
|
2069 |
icon="icons/functions/prefs.png" |
|
2070 |
label="%command.label.4" |
|
2071 |
style="push" |
|
2072 |
tooltip="%command.tooltip.0"> |
|
2073 |
</command> |
|
2042 | 2074 |
|
2043 | 2075 |
</menuContribution> |
2044 | 2076 |
<menuContribution |
tmp/org.txm.wordcloud.rcp/plugin.xml (revision 698) | ||
---|---|---|
38 | 38 |
</menuContribution> |
39 | 39 |
<menuContribution |
40 | 40 |
allPopups="false" |
41 |
locationURI="popup:org.txm.rcp.views.corpora.CorporaView"> |
|
41 |
locationURI="popup:org.txm.rcp.views.corpora.CorporaView?before=org.txm.rcp.corporaview.text">
|
|
42 | 42 |
<command |
43 | 43 |
commandId="org.txm.wordcloud.rcp.handlers.ComputeWordCloud" |
44 | 44 |
icon="icons/functions/wordcloud.png" |
... | ... | |
60 | 60 |
</command> |
61 | 61 |
</menuContribution> |
62 | 62 |
<menuContribution |
63 |
locationURI="menu:menu.tools"> |
|
63 |
locationURI="menu:menu.tools?after=menu.tools.separator.misc">
|
|
64 | 64 |
<command |
65 | 65 |
commandId="org.txm.wordcloud.rcp.handlers.ComputeWordCloud" |
66 | 66 |
icon="icons/functions/wordcloud.png" |
tmp/org.txm.backtomedia.rcp/plugin.xml (revision 698) | ||
---|---|---|
14 | 14 |
<extension |
15 | 15 |
point="org.eclipse.ui.menus"> |
16 | 16 |
<menuContribution |
17 |
locationURI="menu:menu.file?after=file.open">
|
|
17 |
locationURI="menu:menu.file?after=menu.file.separator.open">
|
|
18 | 18 |
<command |
19 | 19 |
commandId="org.txm.backtomedia.commands.function.OpenVLCPlayer" |
20 | 20 |
style="push"> |
tmp/org.txm.partition.rcp/plugin.xml (revision 698) | ||
---|---|---|
14 | 14 |
<extension |
15 | 15 |
point="org.eclipse.ui.menus"> |
16 | 16 |
<menuContribution |
17 |
locationURI="menu:menu.tools">
|
|
17 |
locationURI="menu:menu.corpus">
|
|
18 | 18 |
<command |
19 | 19 |
commandId="org.txm.partition.rcp.handlers.ComputePartitionDimensionsBarChart" |
20 | 20 |
icon="icons/silk_dimensions.png" |
... | ... | |
49 | 49 |
</menuContribution> |
50 | 50 |
<menuContribution |
51 | 51 |
allPopups="false" |
52 |
locationURI="popup:org.txm.rcp.views.corpora.CorporaView"> |
|
52 |
locationURI="popup:org.txm.rcp.views.corpora.CorporaView?after=org.txm.rcp.corporaview.corpus.read">
|
|
53 | 53 |
<command |
54 | 54 |
commandId="org.txm.partition.rcp.handlers.ComputePartitionDimensionsBarChart" |
55 | 55 |
icon="icons/silk_dimensions.png" |
tmp/org.txm.textsbalance.rcp/plugin.xml (revision 698) | ||
---|---|---|
43 | 43 |
</menuContribution> |
44 | 44 |
<menuContribution |
45 | 45 |
allPopups="false" |
46 |
locationURI="popup:org.txm.rcp.views.corpora.CorporaView"> |
|
46 |
locationURI="popup:org.txm.rcp.views.corpora.CorporaView?before=org.txm.rcp.corporaview.text">
|
|
47 | 47 |
<command |
48 | 48 |
commandId="org.txm.textsbalance.rcp.handlers.ComputeTextsBalance" |
49 | 49 |
icon="icons/balance.png" |
... | ... | |
57 | 57 |
</command> |
58 | 58 |
</menuContribution> |
59 | 59 |
<menuContribution |
60 |
locationURI="menu:menu.tools"> |
|
60 |
locationURI="menu:menu.tools?after=menu.tools.separator.misc">
|
|
61 | 61 |
<command |
62 | 62 |
commandId="org.txm.textsbalance.rcp.handlers.ComputeTextsBalance" |
63 | 63 |
icon="icons/balance.png" |
tmp/org.txm.analec.rcp/plugin.xml (revision 698) | ||
---|---|---|
56 | 56 |
</menu> |
57 | 57 |
</menuContribution> |
58 | 58 |
<menuContribution |
59 |
locationURI="popup:org.txm.rcp.views.corpora.CorporaView"> |
|
59 |
locationURI="popup:org.txm.rcp.views.corpora.CorporaView?after=org.txm.rcp.corporaview.annotation">
|
|
60 | 60 |
<menu |
61 | 61 |
id="corpora.menu.analec" |
62 | 62 |
label="%menu.label.0" |
... | ... | |
124 | 124 |
</menu> |
125 | 125 |
</menuContribution> |
126 | 126 |
<menuContribution |
127 |
locationURI="menu:menu.file.export?after=menu.file.export.exporttei">
|
|
127 |
locationURI="menu:menu.file.export"> |
|
128 | 128 |
<command |
129 | 129 |
commandId="org.txm.analec.commands.ExportTEICorpus" |
130 | 130 |
label="%command.label.0" |
... | ... | |
248 | 248 |
</command> |
249 | 249 |
</extension> |
250 | 250 |
<extension |
251 |
point="org.txm.synopticeditor.toolbarbutton">
|
|
251 |
point="org.txm.synopticedition.rcp.editors.ext.ToolbarButton">
|
|
252 | 252 |
<Button |
253 | 253 |
class="org.txm.analec.toolbarbutton.StartButton"></Button> |
254 | 254 |
</extension> |
tmp/org.txm.tigersearch.rcp/plugin.xml (revision 698) | ||
---|---|---|
37 | 37 |
<extension |
38 | 38 |
point="org.eclipse.ui.menus"> |
39 | 39 |
<menuContribution |
40 |
locationURI="menu:menu.tools"> |
|
40 |
locationURI="menu:menu.tools?after=menu.tools.separator.misc">
|
|
41 | 41 |
<command |
42 | 42 |
commandId="org.txm.tigersearch.commands.ComputeTIGERSearch" |
43 | 43 |
icon="icons/functions/TS.png" |
tmp/org.txm.cql2lsa.rcp/src/org/txm/functions/cql2lsa/ExpII.java (revision 698) | ||
---|---|---|
29 | 29 |
import org.txm.index.core.messages.IndexCoreMessages; |
30 | 30 |
import org.txm.lexicaltable.core.functions.LexicalTable; |
31 | 31 |
import org.txm.lexicaltable.core.statsengine.r.data.LexicalTableImpl; |
32 |
import org.txm.rcp.RCPMessages; |
|
33 | 32 |
import org.txm.searchengine.cqp.clientExceptions.CqiClientException; |
34 | 33 |
import org.txm.searchengine.cqp.clientExceptions.InvalidCqpIdException; |
35 | 34 |
import org.txm.searchengine.cqp.corpus.Corpus; |
tmp/org.txm.index.rcp/plugin.xml (revision 698) | ||
---|---|---|
5 | 5 |
point="org.eclipse.ui.menus"> |
6 | 6 |
|
7 | 7 |
<menuContribution |
8 |
locationURI="popup:org.txm.rcp.views.corpora.CorporaView"> |
|
8 |
locationURI="popup:org.txm.rcp.views.corpora.CorporaView?after=org.txm.rcp.corporaview.tools.doc">
|
|
9 | 9 |
<command |
10 | 10 |
commandId="org.txm.index.rcp.handlers.ComputeLexicon" |
11 | 11 |
icon="icons/lexicon.png" |
... | ... | |
35 | 35 |
</command> |
36 | 36 |
</menuContribution> |
37 | 37 |
<menuContribution |
38 |
locationURI="menu:menu.tools"> |
|
38 |
locationURI="menu:menu.tools?after=menu.tools.separator.doc">
|
|
39 | 39 |
<command |
40 | 40 |
commandId="org.txm.index.rcp.handlers.ComputeLexicon" |
41 | 41 |
icon="icons/lexicon.png" |
... | ... | |
176 | 176 |
categoryId="org.txm.rcp.category.txm" |
177 | 177 |
defaultHandler="org.txm.index.rcp.handlers.ComputeLexicon" |
178 | 178 |
id="org.txm.index.rcp.handlers.ComputeLexicon" |
179 |
name="ComputeLexicon">
|
|
179 |
name="Lexicon"> |
|
180 | 180 |
</command> |
181 | 181 |
</extension> |
182 | 182 |
<extension |
tmp/org.txm.searchengine.cqp.rcp/plugin.xml (revision 698) | ||
---|---|---|
128 | 128 |
</command> |
129 | 129 |
</menuContribution> |
130 | 130 |
<menuContribution |
131 |
locationURI="popup:org.txm.rcp.views.corpora.CorporaView?after=org.txm.rcp.corporaview.export">
|
|
131 |
locationURI="popup:org.txm.rcp.corporaview.export"> |
|
132 | 132 |
<command |
133 | 133 |
commandId="org.txm.searchengine.cqp.rcp.handlers.base.ExportCorpus" |
134 | 134 |
icon="icons/functions/compress.png" |
... | ... | |
230 | 230 |
</command> |
231 | 231 |
</menuContribution> |
232 | 232 |
<menuContribution |
233 |
locationURI="popup:org.txm.rcp.views.corpora.CorporaView"> |
|
233 |
locationURI="popup:org.txm.rcp.views.corpora.CorporaView?after=org.txm.rcp.corporaview.corpus.read">
|
|
234 | 234 |
<command |
235 | 235 |
commandId="org.txm.searchengine.cqp.rcp.handlers.ComputeInformation" |
236 | 236 |
icon="icons/functions/information.png" |
... | ... | |
242 | 242 |
</reference> |
243 | 243 |
</visibleWhen> |
244 | 244 |
</command> |
245 |
</menuContribution> |
|
246 |
<menuContribution |
|
247 |
locationURI="popup:org.txm.rcp.views.corpora.CorporaView?after=org.txm.rcp.corporaview.corpus.manage"> |
|
245 | 248 |
<command |
246 | 249 |
commandId="org.txm.searchengine.cqp.rcp.handlers.base.CreateSubCorpus" |
247 | 250 |
icon="icons/functions/subcorpus.png" |
... | ... | |
266 | 269 |
</command> |
267 | 270 |
</menuContribution> |
268 | 271 |
<menuContribution |
269 |
locationURI="menu:menu.corpus"> |
|
270 |
<command |
|
271 |
commandId="org.txm.searchengine.cqp.rcp.handlers.ComputeInformation" |
|
272 |
icon="icons/functions/information.png" |
|
273 |
style="push"> |
|
274 |
<visibleWhen |
|
275 |
checkEnabled="false"> |
|
276 |
<reference |
|
277 |
definitionId="OneCorpusSelected"> |
|
278 |
</reference> |
|
279 |
</visibleWhen> |
|
280 |
</command> |
|
272 |
locationURI="menu:menu.corpus?after=menu.corpus.build"> |
|
281 | 273 |
<command |
282 | 274 |
commandId="org.txm.searchengine.cqp.rcp.handlers.base.CreateSubCorpus" |
283 | 275 |
icon="icons/functions/subcorpus.png" |
... | ... | |
301 | 293 |
</visibleWhen> |
302 | 294 |
</command> |
303 | 295 |
</menuContribution> |
296 |
<menuContribution |
|
297 |
locationURI="menu:menu.corpus?after=menu.corpus.read"> |
|
298 |
<command |
|
299 |
commandId="org.txm.searchengine.cqp.rcp.handlers.ComputeInformation" |
|
300 |
icon="icons/functions/information.png" |
|
301 |
style="push"> |
|
302 |
<visibleWhen |
|
303 |
checkEnabled="false"> |
|
304 |
<reference |
|
305 |
definitionId="OneCorpusSelected"> |
|
306 |
</reference> |
|
307 |
</visibleWhen> |
|
308 |
</command> |
|
309 |
</menuContribution> |
|
304 | 310 |
</extension> |
305 | 311 |
<extension |
306 | 312 |
point="org.eclipse.ui.preferencePages"> |
tmp/org.txm.annotation.core/src/org/txm/annotation/core/AnnotationEngines.java (revision 698) | ||
---|---|---|
1 | 1 |
package org.txm.annotation.core; |
2 | 2 |
|
3 |
import org.eclipse.core.runtime.IConfigurationElement; |
|
4 | 3 |
import org.eclipse.core.runtime.IProgressMonitor; |
5 |
import org.eclipse.core.runtime.Platform; |
|
6 | 4 |
import org.txm.Engine; |
7 | 5 |
import org.txm.EngineType; |
8 | 6 |
import org.txm.EnginesManager; |
tmp/org.txm.annotation.core/build.properties (revision 698) | ||
---|---|---|
4 | 4 |
libs/postgresql-9.4.1207.jre6.jar,\ |
5 | 5 |
libs/sqlite-jdbc-3.8.11.2.jar,\ |
6 | 6 |
.,\ |
7 |
source.. = src/ |
|
7 |
source.. = src/,\ |
|
8 |
bin/ |
tmp/org.txm.annotation.core/plugin.xml (revision 698) | ||
---|---|---|
1 | 1 |
<?xml version="1.0" encoding="UTF-8"?> |
2 | 2 |
<?eclipse version="3.4"?> |
3 | 3 |
<plugin> |
4 |
<extension-point id="org.txm.annotation.AnnotationEngine" name="org.txm.annotation.AnnotationEngine" schema="schema/org.txm.annotation.AnnotationEngine.exsd"/>
|
|
4 |
<extension-point id="org.txm.annotation.core.AnnotationEngine" name="org.txm.annotation.core.AnnotationEngine" schema="schema/org.txm.annotation.core.AnnotationEngine.exsd"/>
|
|
5 | 5 |
<extension |
6 | 6 |
point="org.txm.EnginesManager"> |
7 | 7 |
</extension> |
tmp/org.txm.annotation.core/META-INF/MANIFEST.MF (revision 698) | ||
---|---|---|
5 | 5 |
Bundle-Version: 1.0.0.qualifier |
6 | 6 |
Bundle-Activator: org.txm.annotation.core.Activator |
7 | 7 |
Meta-Persistence: META-INF/persistence.xml |
8 |
Require-Bundle: javax.persistence;bundle-version="2.1.0";visibility:=reexport,
|
|
8 |
Require-Bundle: org.txm.core;bundle-version="0.7.0";visibility:=reexport,
|
|
9 | 9 |
org.txm.searchengine.cqp.core;visibility:=reexport, |
10 |
org.txm.utils;bundle-version="1.0.0";visibility:=reexport, |
|
11 |
javax.persistence;bundle-version="2.1.0";visibility:=reexport, |
|
10 | 12 |
org.eclipse.persistence.asm;bundle-version="3.3.1";visibility:=reexport, |
11 | 13 |
org.eclipse.persistence.jpa;bundle-version="2.6.0";visibility:=reexport, |
12 | 14 |
org.eclipse.persistence.jpa.jpql;bundle-version="2.6.0";visibility:=reexport, |
13 | 15 |
org.eclipse.persistence.antlr;bundle-version="3.2.0";visibility:=reexport, |
14 |
org.txm.utils;bundle-version="1.0.0";visibility:=reexport, |
|
15 | 16 |
org.eclipse.osgi;bundle-version="3.10.2";visibility:=reexport, |
16 |
org.txm.core;bundle-version="0.7.0";visibility:=reexport, |
|
17 | 17 |
org.txm.searchengine.core;bundle-version="1.0.0";visibility:=reexport, |
18 | 18 |
org.eclipse.ui.workbench;visibility:=reexport, |
19 | 19 |
osgi.enterprise;bundle-version="4.2.0";visibility:=reexport, |
... | ... | |
77 | 77 |
org.txm.annotation.core.repository, |
78 | 78 |
org.txm.annotation.core.storage.temporary, |
79 | 79 |
org.txm.annotation.core.temporary |
80 |
Bundle-ClassPath: ., |
|
81 |
libs/hsqldb.jar, |
|
80 |
Bundle-ClassPath: libs/hsqldb.jar, |
|
82 | 81 |
libs/postgresql-9.4.1207.jre6.jar, |
83 |
libs/sqlite-jdbc-3.8.11.2.jar |
|
82 |
libs/sqlite-jdbc-3.8.11.2.jar, |
|
83 |
. |
tmp/org.txm.annotation.core/schema/org.txm.annotation.AnnotationEngine.exsd (revision 698) | ||
---|---|---|
1 |
<?xml version='1.0' encoding='UTF-8'?> |
|
2 |
<!-- Schema file written by PDE --> |
|
3 |
<schema targetNamespace="org.txm.annotation.core" xmlns="http://www.w3.org/2001/XMLSchema"> |
|
4 |
<annotation> |
|
5 |
<appinfo> |
|
6 |
<meta.schema plugin="org.txm.annotation.core" id="org.txm.annotation.AnnotationEngine" name="org.txm.annotation.AnnotationEngine"/> |
|
7 |
</appinfo> |
|
8 |
<documentation> |
|
9 |
Annotation engine |
|
10 |
</documentation> |
|
11 |
</annotation> |
|
12 |
|
|
13 |
<element name="extension"> |
|
14 |
<annotation> |
|
15 |
<appinfo> |
|
16 |
<meta.element /> |
|
17 |
</appinfo> |
|
18 |
</annotation> |
|
19 |
<complexType> |
|
20 |
<choice minOccurs="1" maxOccurs="unbounded"> |
|
21 |
<element ref="AnnotationEngine"/> |
|
22 |
</choice> |
|
23 |
<attribute name="point" type="string" use="required"> |
|
24 |
<annotation> |
|
25 |
<documentation> |
|
26 |
|
|
27 |
</documentation> |
|
28 |
</annotation> |
|
29 |
</attribute> |
|
30 |
<attribute name="id" type="string"> |
|
31 |
<annotation> |
|
32 |
<documentation> |
|
33 |
|
|
34 |
</documentation> |
|
35 |
</annotation> |
|
36 |
</attribute> |
|
37 |
<attribute name="name" type="string"> |
|
38 |
<annotation> |
|
39 |
<documentation> |
|
40 |
|
|
41 |
</documentation> |
|
42 |
<appinfo> |
|
43 |
<meta.attribute translatable="true"/> |
|
44 |
</appinfo> |
|
45 |
</annotation> |
|
46 |
</attribute> |
|
47 |
</complexType> |
|
48 |
</element> |
|
49 |
|
|
50 |
<element name="AnnotationEngine"> |
|
51 |
<complexType> |
|
52 |
<attribute name="class" type="string"> |
|
53 |
<annotation> |
|
54 |
<documentation> |
|
55 |
|
|
56 |
</documentation> |
|
57 |
<appinfo> |
|
58 |
<meta.attribute kind="java" basedOn="org.txm.annotation.AnnotationEngine:"/> |
|
59 |
</appinfo> |
|
60 |
</annotation> |
|
61 |
</attribute> |
|
62 |
</complexType> |
|
63 |
</element> |
|
64 |
|
|
65 |
<annotation> |
|
66 |
<appinfo> |
|
67 |
<meta.section type="since"/> |
|
68 |
</appinfo> |
|
69 |
<documentation> |
|
70 |
[Enter the first release in which this extension point appears.] |
|
71 |
</documentation> |
|
72 |
</annotation> |
|
73 |
|
|
74 |
<annotation> |
|
75 |
<appinfo> |
|
76 |
<meta.section type="examples"/> |
|
77 |
</appinfo> |
|
78 |
<documentation> |
|
79 |
[Enter extension point usage example here.] |
|
80 |
</documentation> |
|
81 |
</annotation> |
|
82 |
|
|
83 |
<annotation> |
|
84 |
<appinfo> |
|
85 |
<meta.section type="apiinfo"/> |
|
86 |
</appinfo> |
|
87 |
<documentation> |
|
88 |
[Enter API information here.] |
|
89 |
</documentation> |
|
90 |
</annotation> |
|
91 |
|
|
92 |
<annotation> |
|
93 |
<appinfo> |
|
94 |
<meta.section type="implementation"/> |
|
95 |
</appinfo> |
|
96 |
<documentation> |
|
97 |
[Enter information about supplied implementation of this extension point.] |
|
98 |
</documentation> |
|
99 |
</annotation> |
|
100 |
|
|
101 |
|
|
102 |
</schema> |
tmp/org.txm.annotation.core/schema/org.txm.annotation.core.AnnotationEngine.exsd (revision 698) | ||
---|---|---|
1 |
<?xml version='1.0' encoding='UTF-8'?> |
|
2 |
<!-- Schema file written by PDE --> |
|
3 |
<schema targetNamespace="org.txm.annotation.core" xmlns="http://www.w3.org/2001/XMLSchema"> |
|
4 |
<annotation> |
|
5 |
<appinfo> |
|
6 |
<meta.schema plugin="org.txm.annotation.core" id="org.txm.annotation.core.AnnotationEngine" name="org.txm.annotation.core.AnnotationEngine"/> |
|
7 |
</appinfo> |
|
8 |
<documentation> |
|
9 |
Annotation engine |
|
10 |
</documentation> |
|
11 |
</annotation> |
|
12 |
|
|
13 |
<element name="extension"> |
|
14 |
<annotation> |
|
15 |
<appinfo> |
|
16 |
<meta.element /> |
|
17 |
</appinfo> |
|
18 |
</annotation> |
|
19 |
<complexType> |
|
20 |
<choice minOccurs="1" maxOccurs="unbounded"> |
|
21 |
<element ref="AnnotationEngine"/> |
|
22 |
</choice> |
|
23 |
<attribute name="point" type="string" use="required"> |
|
24 |
<annotation> |
|
25 |
<documentation> |
|
26 |
|
|
27 |
</documentation> |
|
28 |
</annotation> |
|
29 |
</attribute> |
|
30 |
<attribute name="id" type="string"> |
|
31 |
<annotation> |
|
32 |
<documentation> |
|
33 |
|
|
34 |
</documentation> |
|
35 |
</annotation> |
|
36 |
</attribute> |
|
37 |
<attribute name="name" type="string"> |
|
38 |
<annotation> |
|
39 |
<documentation> |
|
40 |
|
|
41 |
</documentation> |
|
42 |
<appinfo> |
|
43 |
<meta.attribute translatable="true"/> |
|
44 |
</appinfo> |
|
45 |
</annotation> |
|
46 |
</attribute> |
|
47 |
</complexType> |
|
48 |
</element> |
|
49 |
|
|
50 |
<element name="AnnotationEngine"> |
|
51 |
<complexType> |
|
52 |
<attribute name="class" type="string"> |
|
53 |
<annotation> |
|
54 |
<documentation> |
|
55 |
|
|
56 |
</documentation> |
|
57 |
<appinfo> |
|
58 |
<meta.attribute kind="java" basedOn="org.txm.annotation.core.AnnotationEngine:"/> |
|
59 |
</appinfo> |
|
60 |
</annotation> |
|
61 |
</attribute> |
|
62 |
</complexType> |
|
63 |
</element> |
|
64 |
|
|
65 |
<annotation> |
|
66 |
<appinfo> |
|
67 |
<meta.section type="since"/> |
|
68 |
</appinfo> |
|
69 |
<documentation> |
|
70 |
[Enter the first release in which this extension point appears.] |
|
71 |
</documentation> |
|
72 |
</annotation> |
|
73 |
|
|
74 |
<annotation> |
|
75 |
<appinfo> |
|
76 |
<meta.section type="examples"/> |
|
77 |
</appinfo> |
|
78 |
<documentation> |
|
79 |
[Enter extension point usage example here.] |
|
80 |
</documentation> |
|
81 |
</annotation> |
|
82 |
|
|
83 |
<annotation> |
|
84 |
<appinfo> |
|
85 |
<meta.section type="apiinfo"/> |
|
86 |
</appinfo> |
|
87 |
<documentation> |
|
88 |
[Enter API information here.] |
|
89 |
</documentation> |
|
90 |
</annotation> |
|
91 |
|
|
92 |
<annotation> |
|
93 |
<appinfo> |
|
94 |
<meta.section type="implementation"/> |
|
95 |
</appinfo> |
|
96 |
<documentation> |
|
97 |
[Enter information about supplied implementation of this extension point.] |
|
98 |
</documentation> |
|
99 |
</annotation> |
|
100 |
|
|
101 |
|
|
102 |
</schema> |
|
0 | 103 |
tmp/org.txm.ca.rcp/plugin.xml (revision 698) | ||
---|---|---|
35 | 35 |
</menuContribution> |
36 | 36 |
<menuContribution |
37 | 37 |
allPopups="false" |
38 |
locationURI="popup:org.txm.rcp.views.corpora.CorporaView"> |
|
38 |
locationURI="popup:org.txm.rcp.views.corpora.CorporaView?after=org.txm.rcp.corporaview.tools.stat">
|
|
39 | 39 |
<command |
40 | 40 |
commandId="org.txm.ca.rcp.handlers.ComputeCA" |
41 | 41 |
icon="icons/ca.png" |
... | ... | |
57 | 57 |
</command> |
58 | 58 |
</menuContribution> |
59 | 59 |
<menuContribution |
60 |
locationURI="menu:menu.tools"> |
|
60 |
locationURI="menu:menu.tools?after=org.txm.specificities.rcp.handlers.ComputeSpecifities">
|
|
61 | 61 |
<command |
62 | 62 |
commandId="org.txm.ca.rcp.handlers.ComputeCA" |
63 | 63 |
icon="icons/ca.png" |
tmp/org.txm.statsengine.r.rcp/plugin.xml (revision 698) | ||
---|---|---|
59 | 59 |
point="org.eclipse.ui.menus"> |
60 | 60 |
<menuContribution |
61 | 61 |
allPopups="false" |
62 |
locationURI="menu:menu.file"> |
|
62 |
locationURI="menu:menu.file?before=menu.file.separator.close">
|
|
63 | 63 |
<command |
64 | 64 |
commandId="CheckRPackages" |
65 | 65 |
style="push"> |
... | ... | |
115 | 115 |
</menuContribution> |
116 | 116 |
<menuContribution |
117 | 117 |
allPopups="false" |
118 |
locationURI="menu:menu.tools"> |
|
118 |
locationURI="menu:menu.tools?before=menu.tools.separator.misc">
|
|
119 | 119 |
<command |
120 | 120 |
commandId="SendToR" |
121 | 121 |
icon="icons/SendToR.png" |
... | ... | |
179 | 179 |
</menuContribution> |
180 | 180 |
<menuContribution |
181 | 181 |
allPopups="false" |
182 |
locationURI="popup:org.txm.rcp.views.corpora.CorporaView"> |
|
182 |
locationURI="popup:org.txm.rcp.views.corpora.CorporaView?after=org.txm.rcp.corporaview.tools.misc">
|
|
183 | 183 |
<command |
184 | 184 |
commandId="SendToR" |
185 | 185 |
icon="icons/SendToR.png" |
tmp/org.txm.groovy.core/src/groovy/org/txm/importer/xtz/XTZPager.groovy (revision 698) | ||
---|---|---|
197 | 197 |
continue; |
198 | 198 |
} |
199 | 199 |
|
200 |
|
|
200 | 201 |
def pages = ed.getPageFiles() |
201 | 202 |
for (i = 0 ; i < pages.size();) { |
202 | 203 |
File f = pages[i][0]; |
203 | 204 |
String wordid = pages[i][1] |
205 |
//TODO replace '""+(++i)' with something that fetch/findout the page 'name' |
|
206 |
// TODO or move the Edition and Page corpus declaration in the XTZDefaultPagerStep |
|
204 | 207 |
params.addPage(edition, ""+(++i), wordid); |
205 | 208 |
//println "add facs page: $f $wordid" |
206 | 209 |
} |
tmp/org.txm.groovy.core/src/groovy/org/txm/importer/xtz/XTZDefaultPagerStep.groovy (revision 698) | ||
---|---|---|
79 | 79 |
File outfile; |
80 | 80 |
|
81 | 81 |
/** The pages. */ |
82 |
//TODO enhance this to store the page name/id as well |
|
82 | 83 |
ArrayList<File> pages = new ArrayList<File>(); |
83 | 84 |
|
84 | 85 |
/** The idxstart. */ |
tmp/org.txm.groovy.core/src/groovy/org/txm/macro/nlp/TT2XMLInDirectoryMacro.groovy (revision 698) | ||
---|---|---|
1 |
package org.txm.macro.nlp; |
|
2 |
|
|
3 |
import org.kohsuke.args4j.* |
|
4 |
import groovy.transform.Field |
|
5 |
import java.nio.charset.Charset |
|
6 |
import org.txm.rcpapplication.swt.widget.parameters.* |
|
7 |
import org.txm.utils.* |
|
8 |
import javax.xml.stream.* |
|
9 |
|
|
10 |
@Field @Option(name="inputDirectory", usage="TXT directory", widget="Folder", required=true, def="dir") |
|
11 |
File inputDirectory |
|
12 |
|
|
13 |
@Field @Option(name="encoding", usage="File encoding", widget="String", required=false, def="UTF-8") |
|
14 |
String encoding |
|
15 |
|
|
16 |
@Field @Option(name="debug", usage="Debug mode", widget="Boolean", required=false, def="false") |
|
17 |
Boolean debug |
|
18 |
|
|
19 |
if (!ParametersDialog.open(this)) return |
|
20 |
|
|
21 |
encoding = encoding.trim() |
|
22 |
outputDirectory = new File(inputDirectory, "xml") |
|
23 |
outputDirectory.mkdir() |
|
24 |
|
|
25 |
println "Processing: "+inputDirectory |
|
26 |
|
|
27 |
XMLOutputFactory factory = XMLOutputFactory.newInstance() |
|
28 |
|
|
29 |
for (File inputfile : inputDirectory.listFiles().sort()) { |
|
30 |
if (inputfile.isDirectory() || inputfile.isHidden() || !inputfile.getName().endsWith(".tt")) continue // ignore |
|
31 |
println " file: "+inputfile |
|
32 |
|
|
33 |
name = inputfile.getName() |
|
34 |
idx = name.lastIndexOf(".") |
|
35 |
if (idx > 0) name = name.substring(0, idx) |
|
36 |
outputfile = new File(outputDirectory, name+".xml") |
|
37 |
|
|
38 |
Writer output = new OutputStreamWriter(new FileOutputStream(outputfile) , "UTF-8") |
|
39 |
XMLStreamWriter writer = factory.createXMLStreamWriter(output) |
|
40 |
|
|
41 |
writer.writeStartDocument("UTF-8","1.0") |
|
42 |
writer.writeCharacters("\n") |
|
43 |
writer.writeStartElement("text") |
|
44 |
writer.writeCharacters("\n") |
|
45 |
|
|
46 |
inSent = 0 |
|
47 |
nLine = 0 |
|
48 |
inputfile.eachLine(encoding) { line -> |
|
49 |
|
|
50 |
nLine++ |
|
51 |
|
|
52 |
if (debug) { |
|
53 |
println nLine+": "+line |
|
54 |
} |
|
55 |
|
|
56 |
def sent = false |
|
57 |
def sent_pattern = ~/^([^\t]+)\t(SENT)\t([^\t]+)$/ |
|
58 |
def sent_m = (line =~ sent_pattern) |
|
59 |
if (sent_m) sent = true |
|
60 |
|
|
61 |
if (sent && inSent) { |
|
62 |
writer.writeStartElement("w") |
|
63 |
writer.writeAttribute("frpos", sent_m[0][2]) |
|
64 |
writer.writeAttribute("frlemma", sent_m[0][3]) |
|
65 |
writer.writeCharacters(sent_m[0][3]) |
|
66 |
writer.writeEndElement() // close w |
|
67 |
writer.writeCharacters("\n") |
|
68 |
writer.writeEndElement() // close s |
|
69 |
writer.writeEndElement() // close p (sent) |
|
70 |
writer.writeCharacters("\n") |
|
71 |
inSent=0 |
|
72 |
} else { |
|
73 |
if (!inSent) { |
|
74 |
writer.writeStartElement("p") |
|
75 |
writer.writeStartElement("s") |
|
76 |
inSent=1 |
|
77 |
} |
|
78 |
def w_pattern = ~/^([^\t]+)\t([^\t]+)\t([^\t]+)$/ |
|
79 |
def w_m = (line =~ w_pattern) |
|
80 |
|
|
81 |
if (w_m.size() > 0) { |
|
82 |
writer.writeStartElement("w") |
|
83 |
writer.writeAttribute("frpos", w_m[0][2]) |
|
84 |
writer.writeAttribute("frlemma", w_m[0][3]) |
|
85 |
writer.writeCharacters(w_m[0][1]) |
|
86 |
writer.writeEndElement() // close w |
|
87 |
writer.writeCharacters("\n") |
|
88 |
} else { |
|
89 |
writer.writeStartElement("w") |
|
90 |
writer.writeAttribute("frpos", "NAM") |
|
91 |
writer.writeAttribute("frlemma", "<unknown>") |
|
92 |
writer.writeCharacters(line) |
|
93 |
writer.writeEndElement() // close w |
|
94 |
writer.writeCharacters("\n") |
|
95 |
println "** TT2XMLInDirectory: unknown [word] line pattern, "+nLine+": <"+line+">." |
|
96 |
} |
|
97 |
} |
|
98 |
} |
|
99 |
|
|
100 |
if (inSent) { |
|
101 |
writer.writeEndElement() // s |
|
102 |
writer.writeEndElement() // p |
|
103 |
writer.writeCharacters("\n") |
|
104 |
|
|
105 |
} |
|
106 |
writer.writeEndElement() |
|
107 |
writer.writeCharacters("\n") |
|
108 |
writer.close() |
|
109 |
output.close() |
|
110 |
} |
|
111 |
|
|
112 |
|
tmp/org.txm.lexicaltable.rcp/plugin.xml (revision 698) | ||
---|---|---|
13 | 13 |
<extension |
14 | 14 |
point="org.eclipse.ui.menus"> |
15 | 15 |
<menuContribution |
16 |
locationURI="popup:org.txm.rcp.views.corpora.CorporaView"> |
|
16 |
locationURI="popup:org.txm.rcp.views.corpora.CorporaView?after=org.txm.rcp.corporaview.corpus.manage">
|
|
17 | 17 |
<command |
18 | 18 |
commandId="org.txm.lexicaltable.rcp.handlers.ComputeLexicalTable" |
19 | 19 |
icon="icons/lexicaltable.png" |
... | ... | |
35 | 35 |
</command> |
36 | 36 |
</menuContribution> |
37 | 37 |
<menuContribution |
38 |
locationURI="menu:menu.tools">
|
|
38 |
locationURI="menu:menu.corpus">
|
|
39 | 39 |
<command |
40 | 40 |
commandId="org.txm.lexicaltable.rcp.handlers.ComputeLexicalTable" |
41 | 41 |
icon="icons/lexicaltable.png" |
tmp/org.txm.core.tests/src/org/txm/core/tests/junit/PluginMenuContributions.java (revision 698) | ||
---|---|---|
54 | 54 |
type= "popup"; |
55 | 55 |
target = location.substring(6); |
56 | 56 |
} else { |
57 |
error("wrong contribution type: "+location); |
|
57 |
error("wrong contribution type ("+type+"): "+location);
|
|
58 | 58 |
} |
59 |
|
|
59 |
|
|
60 | 60 |
String position = ""; |
61 | 61 |
if (target.contains("?")) { |
62 | 62 |
position = target.substring(target.indexOf("?")+1); |
63 |
if (position.startsWith("after=")) { |
|
64 |
position = position.substring(6); |
|
65 |
} else if (position.startsWith("before=")) { |
|
66 |
position = position.substring(7); |
|
67 |
} |
|
68 |
|
|
63 | 69 |
target = target.substring(0, target.indexOf("?")); |
64 | 70 |
} |
65 | 71 |
//System.out.println(type+" -> "+target+" : "+position); |
66 | 72 |
if (!allMenus.contains(target)) { |
67 |
error("wrong contribution target: "+location); |
|
73 |
error("wrong contribution target ("+target+"): "+location);
|
|
68 | 74 |
} |
75 |
|
|
76 |
if (position.length() > 0) { |
|
77 |
if (!allSeparators.contains(position)) { |
|
78 |
//System.out.println("ERROR '"+position+"' not in "+allSeparators); |
|
79 |
error("wrong contribution position ("+position+"): "+location); |
|
80 |
} |
|
81 |
} |
|
69 | 82 |
} |
70 |
|
|
83 |
|
|
71 | 84 |
} |
72 | 85 |
} |
73 | 86 |
|
... | ... | |
77 | 90 |
allMenus.add("org.eclipse.ui.main.menu"); // eclipse main menu |
78 | 91 |
allMenus.add("#TextEditorContext"); // text editor context |
79 | 92 |
for (File projectDirectory : projects) { |
80 |
|
|
93 |
|
|
81 | 94 |
File pluginXML = new File(projectDirectory, "plugin.xml"); |
82 | 95 |
if (pluginXML.exists()) { |
83 | 96 |
ArrayList<String> ids = IOUtils.findWithGroup(pluginXML, "menu id=\"([^\"]+)\"", true); |
84 | 97 |
allMenus.addAll(ids); |
98 |
allSeparators.addAll(ids); |
|
85 | 99 |
|
86 | 100 |
ids = IOUtils.findWithGroup(pluginXML, "menu icon=\"[^\"]+\" id=\"([^\"]+)\"", true); |
87 | 101 |
allMenus.addAll(ids); |
102 |
allSeparators.addAll(ids); |
|
103 |
|
|
88 | 104 |
//allowMultiple="false" |
89 | 105 |
ArrayList<String> views = IOUtils.findWithGroup(pluginXML, "<view category=\"[^\"]+\" class=\"([^\"]+)\"", true); |
90 | 106 |
for (String view : views) { |
91 | 107 |
allMenus.add(view); |
92 | 108 |
} |
93 |
|
|
109 |
|
|
94 | 110 |
views = IOUtils.findWithGroup(pluginXML, "<view allowMultiple=\"[^\"]+\" category=\"[^\"]+\" class=\"([^\"]+)\"", true); |
95 | 111 |
for (String view : views) { |
96 | 112 |
allMenus.add(view); |
97 | 113 |
} |
98 |
|
|
114 |
|
|
99 | 115 |
views = IOUtils.findWithGroup(pluginXML, "<view class=\"([^\"]+)\"", true); |
100 | 116 |
for (String view : views) { |
101 | 117 |
allMenus.add(view); |
102 | 118 |
} |
103 |
|
|
119 |
|
|
104 | 120 |
ArrayList<String> editors = IOUtils.findWithGroup(pluginXML, "<editor class=\"([^\"]+)\"", true); |
105 | 121 |
for (String editor : editors) { |
106 | 122 |
allMenus.add(editor); |
107 | 123 |
} |
108 |
|
|
124 |
|
|
109 | 125 |
ArrayList<String> toolbars = IOUtils.findWithGroup(pluginXML, "<toolbar id=\"([^\"]+)\"", true); |
110 | 126 |
for (String toolbar : toolbars) { |
111 | 127 |
allMenus.add(toolbar); |
112 | 128 |
} |
113 |
|
|
114 |
ArrayList<String> separators = IOUtils.findWithGroup(pluginXML, "<separator id=\"([^\"]+)\"", true);
|
|
129 |
|
|
130 |
ArrayList<String> separators = IOUtils.findWithGroup(pluginXML, "<separator name=\"([^\"]+)\"", true);
|
|
115 | 131 |
for (String separator : separators) { |
116 | 132 |
allSeparators.add(separator); |
117 | 133 |
} |
118 |
|
|
134 |
|
|
135 |
ArrayList<String> commands = IOUtils.findWithGroup(pluginXML, "<command commandId=\"([^\"]+)\"", true); |
|
136 |
for (String command : commands) { |
|
137 |
allSeparators.add(command); |
|
138 |
} |
|
139 |
|
|
119 | 140 |
} |
120 | 141 |
} |
142 |
|
|
121 | 143 |
System.out.println("all menus: "+allMenus); |
144 |
|
|
145 |
System.out.println("all separators: "+allSeparators); |
|
122 | 146 |
} catch (IOException e) { |
123 | 147 |
// TODO Auto-generated catch block |
124 | 148 |
e.printStackTrace(); |
tmp/org.txm.core.tests/src/org/txm/core/tests/junit/PluginExtPoints.java (revision 698) | ||
---|---|---|
41 | 41 |
ArrayList<String> ids = IOUtils.findWithGroup(schemaXML, "<meta.schema plugin=\"[^\"]+\" id=\"([^\"]+)\" name=\"[^\"]+\"/>", true); |
42 | 42 |
ArrayList<String> classes = IOUtils.findWithGroup(schemaXML, "<meta.attribute kind=\"java\" basedOn=\"([^:]+):\"/>", true); |
43 | 43 |
if (ids.size() != classes.size()) { |
44 |
System.out.println("Error: found different number of ids than classes in "+schemaXML); |
|
45 |
System.out.println("ids\t"+ids); |
|
46 |
System.out.println("classes\t"+classes); |
|
44 |
continue; // not a Java based extension |
|
47 | 45 |
} |
48 | 46 |
for (int i = 0 ; i < ids.size() ; i++) { |
49 | 47 |
String id = ids.get(i); |
... | ... | |
91 | 89 |
File schemaDirectory = new File(projectDirectory, "schema"); |
92 | 90 |
if (schemaDirectory.exists()) { |
93 | 91 |
for (File schemaXML : schemaDirectory.listFiles()) { |
92 |
if (!schemaXML.isFile()) continue; |
|
93 |
if (!schemaXML.getName().endsWith(".exsd")) continue; |
|
94 | 94 |
ArrayList<String> ids = IOUtils.findWithGroup(schemaXML, "<meta.schema plugin=\"[^\"]+\" id=\"([^\"]+)\" name=\"[^\"]+\"/>", true); |
95 | 95 |
ArrayList<String> classes = IOUtils.findWithGroup(schemaXML, "<meta.attribute kind=\"java\" basedOn=\"([^:]+):\"/>", true); |
96 |
|
|
97 |
if (ids.size() != classes.size()) { |
|
98 |
continue; // not a Java based schema |
|
99 |
} |
|
100 |
|
|
96 | 101 |
for (int i = 0 ; i < ids.size() ; i++) { |
97 | 102 |
String id = ids.get(i); |
98 | 103 |
String clazz = classes.get(i); |
tmp/org.txm.xmleditor.rcp/plugin.xml (revision 698) | ||
---|---|---|
13 | 13 |
<extension |
14 | 14 |
point="org.eclipse.ui.menus"> |
15 | 15 |
<menuContribution |
16 |
locationURI="menu:menu.file?after=file.open">
|
|
16 |
locationURI="menu:menu.file?after=menu.file.separator.open">
|
|
17 | 17 |
<command |
18 | 18 |
commandId="org.txm.xmleditor.OpenXMLEditor" |
19 | 19 |
style="push"> |
tmp/org.txm.internalview.rcp/plugin.xml (revision 698) | ||
---|---|---|
27 | 27 |
</menuContribution> |
28 | 28 |
<menuContribution |
29 | 29 |
allPopups="false" |
30 |
locationURI="popup:org.txm.rcp.views.corpora.CorporaView"> |
|
30 |
locationURI="popup:org.txm.rcp.views.corpora.CorporaView?after=org.txm.rcp.corporaview.corpus.read">
|
|
31 | 31 |
<command |
32 | 32 |
commandId="org.txm.internalview.rcp.handlers.ComputeInternalView" |
33 | 33 |
icon="icons/internal_view.png" |
... | ... | |
41 | 41 |
</command> |
Formats disponibles : Unified diff