Révision 3399
TXM/trunk/org.txm.annotation.rcp/src/org/txm/annotation/rcp/editors/imports/sections/AnnotationSection.java (revision 3399) | ||
---|---|---|
13 | 13 |
import org.eclipse.ui.forms.widgets.TableWrapData; |
14 | 14 |
import org.eclipse.ui.forms.widgets.TableWrapLayout; |
15 | 15 |
import org.txm.objects.Project; |
16 |
import org.txm.rcp.editors.imports.ImportFormEditor; |
|
16 | 17 |
import org.txm.rcp.editors.imports.sections.ImportEditorSection; |
17 | 18 |
|
18 | 19 |
public class AnnotationSection extends ImportEditorSection { |
... | ... | |
23 | 24 |
|
24 | 25 |
Text nameText; |
25 | 26 |
|
26 |
public AnnotationSection(FormToolkit toolkit2, ScrolledForm form2, Composite parent, int style) { |
|
27 |
super(toolkit2, form2, parent, style, "annotation"); |
|
27 |
public AnnotationSection(ImportFormEditor editor, FormToolkit toolkit2, ScrolledForm form2, Composite parent, int style) {
|
|
28 |
super(editor, toolkit2, form2, parent, style, "annotation");
|
|
28 | 29 |
|
29 | 30 |
this.section.setText("Annotation"); |
30 | 31 |
TableWrapLayout layout = new TableWrapLayout(); |
TXM/trunk/org.txm.annotation.kr.rcp/src/org/txm/annotation/kr/rcp/editors/imports/sections/AnnotationSection.java (revision 3399) | ||
---|---|---|
14 | 14 |
import org.eclipse.ui.forms.widgets.TableWrapLayout; |
15 | 15 |
import org.txm.annotation.kr.core.KRAnnotationEngine; |
16 | 16 |
import org.txm.objects.Project; |
17 |
import org.txm.rcp.editors.imports.ImportFormEditor; |
|
17 | 18 |
import org.txm.rcp.editors.imports.sections.ImportEditorSection; |
18 | 19 |
|
19 | 20 |
public class AnnotationSection extends ImportEditorSection { |
... | ... | |
24 | 25 |
|
25 | 26 |
Text nameText; |
26 | 27 |
|
27 |
public AnnotationSection(FormToolkit toolkit2, ScrolledForm form2, Composite parent, int style) { |
|
28 |
super(toolkit2, form2, parent, style, "annotation"); |
|
28 |
public AnnotationSection(ImportFormEditor editor, FormToolkit toolkit2, ScrolledForm form2, Composite parent, int style) {
|
|
29 |
super(editor, toolkit2, form2, parent, style, "annotation");
|
|
29 | 30 |
|
30 | 31 |
this.section.setText("Annotation"); |
31 | 32 |
TableWrapLayout layout = new TableWrapLayout(); |
TXM/trunk/org.txm.rcp/src/main/java/org/txm/rcp/commands/ImportSelectedText.java (revision 3399) | ||
---|---|---|
32 | 32 |
import java.io.FileOutputStream; |
33 | 33 |
import java.io.OutputStreamWriter; |
34 | 34 |
import java.io.Writer; |
35 |
import java.util.Arrays; |
|
35 | 36 |
import java.util.Locale; |
36 | 37 |
|
37 | 38 |
import org.eclipse.core.commands.AbstractHandler; |
... | ... | |
47 | 48 |
import org.txm.objects.Workspace; |
48 | 49 |
import org.txm.rcp.handlers.scripts.ExecuteImportScript; |
49 | 50 |
import org.txm.rcp.messages.TXMUIMessages; |
51 |
import org.txm.searchengine.cqp.ReferencePattern; |
|
50 | 52 |
import org.txm.searchengine.cqp.corpus.CorpusManager; |
51 | 53 |
import org.txm.treetagger.core.preferences.TreeTaggerPreferences; |
52 | 54 |
import org.txm.utils.LangDetector; |
... | ... | |
145 | 147 |
project.setImportModuleName("txt"); //$NON-NLS-1$ |
146 | 148 |
project.setEncoding("UTF-8"); //$NON-NLS-1$ |
147 | 149 |
project.getEditionDefinition("default").setBuildEdition(true); //$NON-NLS-1$ |
150 |
project.getCommandPreferences("concordance").set("view_reference_pattern", |
|
151 |
ReferencePattern.referenceToString(Arrays.asList("lbn"), null)); |
|
148 | 152 |
|
149 | 153 |
String lang = TBXPreferences.getInstance().getString(TBXPreferences.IMPORT_DEFAULT_LANG); |
150 | 154 |
if (lang.length() == 0) lang = Locale.getDefault().getLanguage(); |
TXM/trunk/org.txm.rcp/src/main/java/org/txm/rcp/editors/imports/sections/FrontXSLSection.java (revision 3399) | ||
---|---|---|
27 | 27 |
import org.txm.Toolbox; |
28 | 28 |
import org.txm.objects.Project; |
29 | 29 |
import org.txm.rcp.editors.TableKeyListener; |
30 |
import org.txm.rcp.editors.imports.ImportFormEditor; |
|
30 | 31 |
import org.txm.rcp.handlers.files.EditFile; |
31 | 32 |
import org.txm.rcp.messages.TXMUIMessages; |
32 | 33 |
import org.txm.rcp.swt.dialog.LastOpened; |
... | ... | |
48 | 49 |
|
49 | 50 |
TableViewer xsltParamsViewer; |
50 | 51 |
|
51 |
public FrontXSLSection(FormToolkit toolkit2, ScrolledForm form2, Composite parent, int style) { |
|
52 |
super(toolkit2, form2, parent, style, "xslt"); |
|
52 |
public FrontXSLSection(ImportFormEditor editor, FormToolkit toolkit2, ScrolledForm form2, Composite parent, int style) {
|
|
53 |
super(editor, toolkit2, form2, parent, style, "xslt");
|
|
53 | 54 |
|
54 | 55 |
this.section.setText(TXMUIMessages.frontXSL); |
55 | 56 |
TableWrapLayout layout = new TableWrapLayout(); |
TXM/trunk/org.txm.rcp/src/main/java/org/txm/rcp/editors/imports/sections/CommandsSection.java (revision 3399) | ||
---|---|---|
5 | 5 |
import org.apache.commons.lang.StringUtils; |
6 | 6 |
import org.eclipse.jface.resource.FontDescriptor; |
7 | 7 |
import org.eclipse.swt.SWT; |
8 |
import org.eclipse.swt.graphics.Font; |
|
9 |
import org.eclipse.swt.graphics.FontData; |
|
10 | 8 |
import org.eclipse.swt.widgets.Composite; |
11 | 9 |
import org.eclipse.swt.widgets.Label; |
12 | 10 |
import org.eclipse.swt.widgets.Text; |
... | ... | |
18 | 16 |
import org.eclipse.ui.forms.widgets.TableWrapLayout; |
19 | 17 |
import org.txm.objects.CorpusCommandPreferences; |
20 | 18 |
import org.txm.objects.Project; |
19 |
import org.txm.rcp.editors.imports.ImportFormEditor; |
|
21 | 20 |
import org.txm.rcp.messages.TXMUIMessages; |
22 | 21 |
import org.txm.searchengine.cqp.ReferencePattern; |
23 | 22 |
|
... | ... | |
38 | 37 |
|
39 | 38 |
private Text referencePatternProperties; |
40 | 39 |
|
41 |
public CommandsSection(FormToolkit toolkit2, ScrolledForm form2, Composite parent, int style) { |
|
42 |
super(toolkit2, form2, parent, style, "commands"); |
|
40 |
public CommandsSection(ImportFormEditor editor, FormToolkit toolkit2, ScrolledForm form2, Composite parent, int style) {
|
|
41 |
super(editor, toolkit2, form2, parent, style, "commands");
|
|
43 | 42 |
|
44 | 43 |
this.section.setText(TXMUIMessages.commands); |
45 | 44 |
TableWrapLayout layout = new TableWrapLayout(); |
... | ... | |
102 | 101 |
@Override |
103 | 102 |
public void updateFields(Project project) { |
104 | 103 |
CorpusCommandPreferences concPrefs = project.getCommandPreferences("concordance"); |
104 |
|
|
105 | 105 |
if (concPrefs.get("context_limits") != null) { |
106 | 106 |
structLimitsText.setText(concPrefs.get("context_limits")); |
107 | 107 |
} |
108 | 108 |
else { |
109 |
structLimitsText.setText("text"); // TODO use the concordance preferences instead ofhardcoding 'text' |
|
109 |
structLimitsText.setText("text"); // TODO use the concordance preferences instead of hardcoding 'text'
|
|
110 | 110 |
} |
111 |
|
|
111 | 112 |
if (concPrefs.get("view_reference_pattern") != null) { |
112 | 113 |
String gsonString = concPrefs.get("view_reference_pattern"); |
113 | 114 |
if (ReferencePattern.isGsonString(gsonString)) { |
... | ... | |
121 | 122 |
} |
122 | 123 |
} |
123 | 124 |
else { |
124 |
referencePatternText.setText(""); |
|
125 |
referencePatternProperties.setText(""); |
|
125 |
if ("txtLoader.groovy".equals(editor.getGroovyscript().getName())) { |
|
126 |
referencePatternText.setText("text_id,l_n"); |
|
127 |
referencePatternProperties.setText("%s, %s"); |
|
128 |
} else { |
|
129 |
referencePatternText.setText(""); |
|
130 |
referencePatternProperties.setText(""); |
|
131 |
} |
|
126 | 132 |
} |
127 | 133 |
} |
128 | 134 |
|
TXM/trunk/org.txm.rcp/src/main/java/org/txm/rcp/editors/imports/sections/ImportEditorSection.java (revision 3399) | ||
---|---|---|
11 | 11 |
import org.txm.core.results.BeanParameters; |
12 | 12 |
import org.txm.core.results.Parameter; |
13 | 13 |
import org.txm.objects.Project; |
14 |
import org.txm.rcp.editors.imports.ImportFormEditor; |
|
14 | 15 |
import org.w3c.dom.Document; |
15 | 16 |
import org.w3c.dom.Element; |
16 | 17 |
import org.w3c.dom.NodeList; |
17 | 18 |
|
18 | 19 |
public abstract class ImportEditorSection { |
19 | 20 |
|
21 |
ImportFormEditor editor; |
|
20 | 22 |
ArrayList<ImportSubSection> subsections = new ArrayList<ImportSubSection>(); |
21 | 23 |
|
22 | 24 |
public static TableWrapData getButtonLayoutData() { |
... | ... | |
76 | 78 |
* @param style |
77 | 79 |
* @param name the section name must not be nulled and will be used to read the import.xml file |
78 | 80 |
*/ |
79 |
public ImportEditorSection(FormToolkit toolkit, ScrolledForm form, Composite parent, int style, String name) { |
|
81 |
public ImportEditorSection(ImportFormEditor editor, FormToolkit toolkit, ScrolledForm form, Composite parent, int style, String name) {
|
|
80 | 82 |
|
81 | 83 |
if (name == null) throw new IllegalArgumentException("Section name must not be null or empty."); |
82 | 84 |
|
83 | 85 |
section = toolkit.createSection(parent, style); |
86 |
this.editor = editor; |
|
84 | 87 |
this.section.setText(name); |
85 | 88 |
this.toolkit = toolkit; |
86 | 89 |
this.form = form; |
TXM/trunk/org.txm.rcp/src/main/java/org/txm/rcp/editors/imports/sections/LangSection.java (revision 3399) | ||
---|---|---|
24 | 24 |
import org.txm.core.engines.EngineType; |
25 | 25 |
import org.txm.core.engines.EnginesManager; |
26 | 26 |
import org.txm.objects.Project; |
27 |
import org.txm.rcp.editors.imports.ImportFormEditor; |
|
27 | 28 |
import org.txm.rcp.messages.TXMUIMessages; |
28 | 29 |
import org.txm.treetagger.core.preferences.TreeTaggerPreferences; |
29 | 30 |
import org.txm.utils.FileUtils; |
... | ... | |
45 | 46 |
|
46 | 47 |
Combo langcombo; |
47 | 48 |
|
48 |
public LangSection(FormToolkit toolkit2, ScrolledForm form2, Composite parent, int style) { |
|
49 |
super(toolkit2, form2, parent, style, "lang"); |
|
49 |
public LangSection(ImportFormEditor editor, FormToolkit toolkit2, ScrolledForm form2, Composite parent, int style) {
|
|
50 |
super(editor, toolkit2, form2, parent, style, "lang");
|
|
50 | 51 |
|
51 | 52 |
this.section.setText(TXMUIMessages.mainLanguage); |
52 | 53 |
TableWrapLayout layout = new TableWrapLayout(); |
TXM/trunk/org.txm.rcp/src/main/java/org/txm/rcp/editors/imports/sections/TextualPlansSection.java (revision 3399) | ||
---|---|---|
11 | 11 |
import org.eclipse.ui.forms.widgets.TableWrapData; |
12 | 12 |
import org.eclipse.ui.forms.widgets.TableWrapLayout; |
13 | 13 |
import org.txm.objects.Project; |
14 |
import org.txm.rcp.editors.imports.ImportFormEditor; |
|
14 | 15 |
import org.txm.rcp.messages.TXMUIMessages; |
15 | 16 |
import org.w3c.dom.Element; |
16 | 17 |
|
... | ... | |
26 | 27 |
|
27 | 28 |
private Text milestoneElementsText; |
28 | 29 |
|
29 |
public TextualPlansSection(FormToolkit toolkit2, ScrolledForm form2, Composite parent, int style) { |
|
30 |
super(toolkit2, form2, parent, style, "textualplans"); |
|
30 |
public TextualPlansSection(ImportFormEditor editor, FormToolkit toolkit2, ScrolledForm form2, Composite parent, int style) {
|
|
31 |
super(editor, toolkit2, form2, parent, style, "textualplans");
|
|
31 | 32 |
|
32 | 33 |
this.section.setText(TXMUIMessages.textualPlanes); |
33 | 34 |
TableWrapLayout layout = new TableWrapLayout(); |
TXM/trunk/org.txm.rcp/src/main/java/org/txm/rcp/editors/imports/sections/EncodingSection.java (revision 3399) | ||
---|---|---|
17 | 17 |
import org.eclipse.ui.forms.widgets.TableWrapData; |
18 | 18 |
import org.eclipse.ui.forms.widgets.TableWrapLayout; |
19 | 19 |
import org.txm.objects.Project; |
20 |
import org.txm.rcp.editors.imports.ImportFormEditor; |
|
20 | 21 |
import org.txm.rcp.messages.TXMUIMessages; |
21 | 22 |
|
22 | 23 |
public class EncodingSection extends ImportEditorSection { |
... | ... | |
31 | 32 |
|
32 | 33 |
Combo encodingCombo; |
33 | 34 |
|
34 |
public EncodingSection(FormToolkit toolkit2, ScrolledForm form2, Composite parent, int style) { |
|
35 |
super(toolkit2, form2, parent, style, "encoding"); |
|
35 |
public EncodingSection(ImportFormEditor editor, FormToolkit toolkit2, ScrolledForm form2, Composite parent, int style) {
|
|
36 |
super(editor, toolkit2, form2, parent, style, "encoding");
|
|
36 | 37 |
|
37 | 38 |
this.section.setText(TXMUIMessages.sourceCharactersEncoding); |
38 | 39 |
TableWrapLayout layout = new TableWrapLayout(); |
TXM/trunk/org.txm.rcp/src/main/java/org/txm/rcp/editors/imports/sections/FontSection.java (revision 3399) | ||
---|---|---|
13 | 13 |
import org.eclipse.ui.forms.widgets.TableWrapData; |
14 | 14 |
import org.eclipse.ui.forms.widgets.TableWrapLayout; |
15 | 15 |
import org.txm.objects.Project; |
16 |
import org.txm.rcp.editors.imports.ImportFormEditor; |
|
16 | 17 |
import org.txm.rcp.messages.TXMUIMessages; |
17 | 18 |
|
18 | 19 |
public class FontSection extends ImportEditorSection { |
... | ... | |
23 | 24 |
|
24 | 25 |
Combo fontCombo; |
25 | 26 |
|
26 |
public FontSection(FormToolkit toolkit2, ScrolledForm form2, Composite parent, int style) { |
|
27 |
super(toolkit2, form2, parent, style, "font"); |
|
27 |
public FontSection(ImportFormEditor editor, FormToolkit toolkit2, ScrolledForm form2, Composite parent, int style) {
|
|
28 |
super(editor, toolkit2, form2, parent, style, "font");
|
|
28 | 29 |
|
29 | 30 |
this.section.setText(TXMUIMessages.displayFont); |
30 | 31 |
TableWrapLayout layout = new TableWrapLayout(); |
TXM/trunk/org.txm.rcp/src/main/java/org/txm/rcp/editors/imports/sections/TRSSection.java (revision 3399) | ||
---|---|---|
11 | 11 |
import org.eclipse.ui.forms.widgets.TableWrapData; |
12 | 12 |
import org.eclipse.ui.forms.widgets.TableWrapLayout; |
13 | 13 |
import org.txm.objects.Project; |
14 |
import org.txm.rcp.editors.imports.ImportFormEditor; |
|
14 | 15 |
import org.txm.rcp.messages.TXMUIMessages; |
15 | 16 |
|
16 | 17 |
public class TRSSection extends ImportEditorSection { |
... | ... | |
37 | 38 |
* @param moduleParams |
38 | 39 |
* @param scriptName temporary parameter to detect if import module is xtzLoader.groovy |
39 | 40 |
*/ |
40 |
public TRSSection(FormToolkit toolkit2, ScrolledForm form2, Composite parent, int style) { |
|
41 |
public TRSSection(ImportFormEditor editor, FormToolkit toolkit2, ScrolledForm form2, Composite parent, int style) {
|
|
41 | 42 |
|
42 |
super(toolkit2, form2, parent, style, "Transcriptions"); |
|
43 |
super(editor, toolkit2, form2, parent, style, "Transcriptions");
|
|
43 | 44 |
|
44 | 45 |
TableWrapLayout layout = new TableWrapLayout(); |
45 | 46 |
layout.makeColumnsEqualWidth = true; |
TXM/trunk/org.txm.rcp/src/main/java/org/txm/rcp/editors/imports/sections/TokenizerSection.java (revision 3399) | ||
---|---|---|
17 | 17 |
import org.eclipse.ui.forms.widgets.TableWrapData; |
18 | 18 |
import org.eclipse.ui.forms.widgets.TableWrapLayout; |
19 | 19 |
import org.txm.objects.Project; |
20 |
import org.txm.rcp.editors.imports.ImportFormEditor; |
|
20 | 21 |
import org.txm.rcp.editors.imports.ImportModuleCustomization; |
21 | 22 |
import org.txm.rcp.messages.TXMUIMessages; |
22 | 23 |
import org.txm.tokenizer.TTest; |
... | ... | |
52 | 53 |
|
53 | 54 |
private HashMap<String, Boolean> moduleParams; |
54 | 55 |
|
55 |
public TokenizerSection(FormToolkit toolkit2, ScrolledForm form2, Composite parent, int style, HashMap<String, Boolean> moduleParams) { |
|
56 |
super(toolkit2, form2, parent, style, "tokenizer"); |
|
56 |
public TokenizerSection(ImportFormEditor editor, FormToolkit toolkit2, ScrolledForm form2, Composite parent, int style, HashMap<String, Boolean> moduleParams) {
|
|
57 |
super(editor, toolkit2, form2, parent, style, "tokenizer");
|
|
57 | 58 |
this.moduleParams = moduleParams; |
58 | 59 |
this.section.setText(TXMUIMessages.lexicalSegmentation); |
59 | 60 |
TableWrapLayout layout = new TableWrapLayout(); |
TXM/trunk/org.txm.rcp/src/main/java/org/txm/rcp/editors/imports/sections/EditionSection.java (revision 3399) | ||
---|---|---|
20 | 20 |
import org.txm.Toolbox; |
21 | 21 |
import org.txm.objects.EditionDefinition; |
22 | 22 |
import org.txm.objects.Project; |
23 |
import org.txm.rcp.editors.imports.ImportFormEditor; |
|
23 | 24 |
import org.txm.rcp.editors.imports.ImportModuleCustomization; |
24 | 25 |
import org.txm.rcp.messages.TXMUIMessages; |
25 | 26 |
import org.txm.rcp.swt.dialog.LastOpened; |
... | ... | |
56 | 57 |
* @param moduleParams |
57 | 58 |
* @param scriptName temporary parameter to detect if import module is xtzLoader.groovy |
58 | 59 |
*/ |
59 |
public EditionSection(FormToolkit toolkit2, ScrolledForm form2, Composite parent, int style, HashMap<String, Boolean> moduleParams, String scriptName) { |
|
60 |
super(toolkit2, form2, parent, style, "edition"); |
|
60 |
public EditionSection(ImportFormEditor editor, FormToolkit toolkit2, ScrolledForm form2, Composite parent, int style, HashMap<String, Boolean> moduleParams, String scriptName) {
|
|
61 |
super(editor, toolkit2, form2, parent, style, "edition");
|
|
61 | 62 |
|
62 | 63 |
this.section.setText(TXMUIMessages.editions); |
63 | 64 |
TableWrapLayout layout = new TableWrapLayout(); |
TXM/trunk/org.txm.rcp/src/main/java/org/txm/rcp/editors/imports/sections/OptionsSection.java (revision 3399) | ||
---|---|---|
10 | 10 |
import org.eclipse.ui.forms.widgets.TableWrapData; |
11 | 11 |
import org.eclipse.ui.forms.widgets.TableWrapLayout; |
12 | 12 |
import org.txm.objects.Project; |
13 |
import org.txm.rcp.editors.imports.ImportFormEditor; |
|
13 | 14 |
|
14 | 15 |
public class OptionsSection extends ImportEditorSection { |
15 | 16 |
|
... | ... | |
18 | 19 |
private Button cleanButton; |
19 | 20 |
// private Button multithreadButton; |
20 | 21 |
|
21 |
public OptionsSection(FormToolkit toolkit2, ScrolledForm form2, Composite parent, int style) { |
|
22 |
super(toolkit2, form2, parent, style, "misc"); |
|
22 |
public OptionsSection(ImportFormEditor editor, FormToolkit toolkit2, ScrolledForm form2, Composite parent, int style) {
|
|
23 |
super(editor, toolkit2, form2, parent, style, "misc");
|
|
23 | 24 |
|
24 | 25 |
this.section.setText("Options"); |
25 | 26 |
TableWrapLayout layout = new TableWrapLayout(); |
TXM/trunk/org.txm.rcp/src/main/java/org/txm/rcp/editors/imports/sections/InfosSection.java (revision 3399) | ||
---|---|---|
16 | 16 |
import org.eclipse.ui.forms.widgets.TableWrapLayout; |
17 | 17 |
import org.txm.objects.CorpusBuild; |
18 | 18 |
import org.txm.objects.Project; |
19 |
import org.txm.rcp.editors.imports.ImportFormEditor; |
|
19 | 20 |
import org.txm.rcp.messages.TXMUIMessages; |
20 | 21 |
import org.txm.utils.logger.Log; |
21 | 22 |
import org.w3c.dom.Element; |
... | ... | |
27 | 28 |
// Label corpusNameLabel; // color change if the corpus name is malformed |
28 | 29 |
private Text descText; |
29 | 30 |
|
30 |
public InfosSection(FormToolkit toolkit2, ScrolledForm form2, Composite parent, int style) { |
|
31 |
super(toolkit2, form2, parent, style, "infos"); |
|
31 |
public InfosSection(ImportFormEditor editor, FormToolkit toolkit2, ScrolledForm form2, Composite parent, int style) {
|
|
32 |
super(editor, toolkit2, form2, parent, style, "infos");
|
|
32 | 33 |
|
33 | 34 |
// this = toolkit.createSection(form.getBody(), ExpandableComposite.TITLE_BAR|ExpandableComposite.TWISTIE); |
34 | 35 |
this.section.setText(TXMUIMessages.description); |
TXM/trunk/org.txm.rcp/src/main/java/org/txm/rcp/editors/imports/CorpusPage.java (revision 3399) | ||
---|---|---|
157 | 157 |
} |
158 | 158 |
|
159 | 159 |
private int createEditionsSection() { |
160 |
editionSection = new EditionSection(toolkit, form, form.getBody(), ExpandableComposite.TITLE_BAR | ExpandableComposite.TWISTIE, moduleParams, editor.getGroovyScript().getName()); |
|
160 |
editionSection = new EditionSection(editor, toolkit, form, form.getBody(), ExpandableComposite.TITLE_BAR | ExpandableComposite.TWISTIE, moduleParams, editor.getGroovyScript().getName());
|
|
161 | 161 |
return editionSection.getSectionSize(); |
162 | 162 |
} |
163 | 163 |
|
... | ... | |
171 | 171 |
} |
172 | 172 |
|
173 | 173 |
private int createEncodingSection() { |
174 |
encodingSection = new EncodingSection(toolkit, form, form.getBody(), ExpandableComposite.TITLE_BAR | ExpandableComposite.TWISTIE); |
|
174 |
encodingSection = new EncodingSection(editor, toolkit, form, form.getBody(), ExpandableComposite.TITLE_BAR | ExpandableComposite.TWISTIE);
|
|
175 | 175 |
return encodingSection.getSectionSize(); |
176 | 176 |
} |
177 | 177 |
|
178 | 178 |
private int createFontSection() { |
179 |
fontSection = new FontSection(toolkit, form, form.getBody(), ExpandableComposite.TITLE_BAR | ExpandableComposite.TWISTIE); |
|
179 |
fontSection = new FontSection(editor, toolkit, form, form.getBody(), ExpandableComposite.TITLE_BAR | ExpandableComposite.TWISTIE);
|
|
180 | 180 |
return fontSection.getSectionSize(); |
181 | 181 |
} |
182 | 182 |
|
... | ... | |
260 | 260 |
} |
261 | 261 |
|
262 | 262 |
private int createTextualPlansSection() { |
263 |
textualPlansSection = new TextualPlansSection(toolkit, form, form.getBody(), ExpandableComposite.TITLE_BAR | ExpandableComposite.TWISTIE); |
|
263 |
textualPlansSection = new TextualPlansSection(editor, toolkit, form, form.getBody(), ExpandableComposite.TITLE_BAR | ExpandableComposite.TWISTIE);
|
|
264 | 264 |
return textualPlansSection.getSectionSize(); |
265 | 265 |
} |
266 | 266 |
|
267 | 267 |
private int createOptionsSection() { |
268 |
optionsSection = new OptionsSection(toolkit, form, form.getBody(), ExpandableComposite.TITLE_BAR | ExpandableComposite.TWISTIE); |
|
268 |
optionsSection = new OptionsSection(editor, toolkit, form, form.getBody(), ExpandableComposite.TITLE_BAR | ExpandableComposite.TWISTIE);
|
|
269 | 269 |
return optionsSection.getSectionSize(); |
270 | 270 |
} |
271 | 271 |
|
... | ... | |
287 | 287 |
} |
288 | 288 |
|
289 | 289 |
private int createInfosSection() { |
290 |
infosSection = new InfosSection(toolkit, form, form.getBody(), ExpandableComposite.TITLE_BAR | ExpandableComposite.TWISTIE); |
|
290 |
infosSection = new InfosSection(editor, toolkit, form, form.getBody(), ExpandableComposite.TITLE_BAR | ExpandableComposite.TWISTIE);
|
|
291 | 291 |
return infosSection.getSectionSize(); |
292 | 292 |
} |
293 | 293 |
|
... | ... | |
295 | 295 |
* Creates the front xslt section. |
296 | 296 |
*/ |
297 | 297 |
private int createFrontXSLTSection() { |
298 |
xsltSection = new FrontXSLSection(toolkit, form, form.getBody(), ExpandableComposite.TITLE_BAR | ExpandableComposite.TWISTIE); |
|
298 |
xsltSection = new FrontXSLSection(editor, toolkit, form, form.getBody(), ExpandableComposite.TITLE_BAR | ExpandableComposite.TWISTIE);
|
|
299 | 299 |
return xsltSection.getSectionSize(); |
300 | 300 |
} |
301 | 301 |
|
... | ... | |
303 | 303 |
* Creates the lang section. |
304 | 304 |
*/ |
305 | 305 |
private int createLangSection() { |
306 |
langSection = new LangSection(toolkit, form, form.getBody(), ExpandableComposite.TITLE_BAR | ExpandableComposite.TWISTIE); |
|
306 |
langSection = new LangSection(editor, toolkit, form, form.getBody(), ExpandableComposite.TITLE_BAR | ExpandableComposite.TWISTIE);
|
|
307 | 307 |
return langSection.getSectionSize(); |
308 | 308 |
} |
309 | 309 |
|
... | ... | |
705 | 705 |
* Creates the tokenizer section. |
706 | 706 |
*/ |
707 | 707 |
private int createTokenizerSection() { |
708 |
tokenizerSection = new TokenizerSection(toolkit, form, form.getBody(), ExpandableComposite.TITLE_BAR | ExpandableComposite.TWISTIE, moduleParams); |
|
708 |
tokenizerSection = new TokenizerSection(editor, toolkit, form, form.getBody(), ExpandableComposite.TITLE_BAR | ExpandableComposite.TWISTIE, moduleParams);
|
|
709 | 709 |
return tokenizerSection.getSectionSize(); |
710 | 710 |
} |
711 | 711 |
|
... | ... | |
825 | 825 |
} |
826 | 826 |
|
827 | 827 |
private int createUIsSection() { |
828 |
uiSection = new CommandsSection(toolkit, form, form.getBody(), ExpandableComposite.TITLE_BAR | ExpandableComposite.TWISTIE); |
|
828 |
uiSection = new CommandsSection(editor, toolkit, form, form.getBody(), ExpandableComposite.TITLE_BAR | ExpandableComposite.TWISTIE);
|
|
829 | 829 |
return uiSection.getSectionSize(); |
830 | 830 |
} |
831 | 831 |
|
TXM/trunk/org.txm.rcp/src/main/java/org/txm/rcp/editors/imports/ImportModuleCustomization.java (revision 3399) | ||
---|---|---|
110 | 110 |
params.put(SATTRIBUTES, false); |
111 | 111 |
params.put(PREBUILD, true); |
112 | 112 |
params.put(QUERIES, true); |
113 |
params.put(UI, false);
|
|
113 |
params.put(UI, true);
|
|
114 | 114 |
params.put(TEXTUALPLANS, false); |
115 | 115 |
params.put(OPTIONS, true); |
116 | 116 |
sectionsPerImportModule.put("hyperbaseLoader.groovy", params); //$NON-NLS-1$ |
... | ... | |
129 | 129 |
params.put(SATTRIBUTES, false); |
130 | 130 |
params.put(PREBUILD, true); |
131 | 131 |
params.put(QUERIES, true); |
132 |
params.put(UI, false);
|
|
132 |
params.put(UI, true);
|
|
133 | 133 |
params.put(TEXTUALPLANS, false); |
134 | 134 |
params.put(OPTIONS, true); |
135 | 135 |
sectionsPerImportModule.put("alcesteLoader.groovy", params); //$NON-NLS-1$ |
... | ... | |
148 | 148 |
params.put(SATTRIBUTES, false); |
149 | 149 |
params.put(PREBUILD, true); |
150 | 150 |
params.put(QUERIES, true); |
151 |
params.put(UI, false);
|
|
151 |
params.put(UI, true);
|
|
152 | 152 |
params.put(TEXTUALPLANS, false); |
153 | 153 |
params.put(OPTIONS, true); |
154 | 154 |
sectionsPerImportModule.put("txtLoader.groovy", params); //$NON-NLS-1$ |
TXM/trunk/org.txm.conllu.rcp/src/org/txm/conllu/rcp/importsection/CoNLLUSection.java (revision 3399) | ||
---|---|---|
14 | 14 |
import org.osgi.service.prefs.Preferences; |
15 | 15 |
import org.txm.conllu.core.preferences.UDPreferences; |
16 | 16 |
import org.txm.objects.Project; |
17 |
import org.txm.rcp.editors.imports.ImportFormEditor; |
|
17 | 18 |
import org.txm.rcp.editors.imports.sections.ImportEditorSection; |
18 | 19 |
|
19 | 20 |
public class CoNLLUSection extends ImportEditorSection { |
... | ... | |
38 | 39 |
* @param moduleParams |
39 | 40 |
* @param scriptName temporary parameter to detect if import module is xtzLoader.groovy |
40 | 41 |
*/ |
41 |
public CoNLLUSection(FormToolkit toolkit2, ScrolledForm form2, Composite parent, int style) { |
|
42 |
public CoNLLUSection(ImportFormEditor editor, FormToolkit toolkit2, ScrolledForm form2, Composite parent, int style) {
|
|
42 | 43 |
|
43 |
super(toolkit2, form2, parent, style, "CoNLL-U"); |
|
44 |
super(editor, toolkit2, form2, parent, style, "CoNLL-U");
|
|
44 | 45 |
|
45 | 46 |
TableWrapLayout layout = new TableWrapLayout(); |
46 | 47 |
layout.makeColumnsEqualWidth = true; |
TXM/trunk/org.txm.tigersearch.rcp/src/org/txm/tigersearch/imports/TIGERSection.java (revision 3399) | ||
---|---|---|
10 | 10 |
import org.eclipse.ui.forms.widgets.TableWrapLayout; |
11 | 11 |
import org.osgi.service.prefs.Preferences; |
12 | 12 |
import org.txm.objects.Project; |
13 |
import org.txm.rcp.editors.imports.ImportFormEditor; |
|
13 | 14 |
import org.txm.rcp.editors.imports.sections.ImportEditorSection; |
14 | 15 |
|
15 | 16 |
public class TIGERSection extends ImportEditorSection { |
... | ... | |
28 | 29 |
* @param moduleParams |
29 | 30 |
* @param scriptName temporary parameter to detect if import module is xtzLoader.groovy |
30 | 31 |
*/ |
31 |
public TIGERSection(FormToolkit toolkit2, ScrolledForm form2, Composite parent, int style) { |
|
32 |
public TIGERSection(ImportFormEditor editor, FormToolkit toolkit2, ScrolledForm form2, Composite parent, int style) {
|
|
32 | 33 |
|
33 |
super(toolkit2, form2, parent, style, "TIGERSearch"); |
|
34 |
super(editor, toolkit2, form2, parent, style, "TIGERSearch");
|
|
34 | 35 |
|
35 | 36 |
TableWrapLayout layout = new TableWrapLayout(); |
36 | 37 |
layout.makeColumnsEqualWidth = true; |
Formats disponibles : Unified diff