Révision 3820
TXM/trunk/bundles/org.txm.annotation.rcp/src/org/txm/annotation/rcp/messages/AnnotationUIMessages.java (revision 3820) | ||
---|---|---|
15 | 15 |
|
16 | 16 |
private static final String BUNDLE_NAME = "org.txm.annotation.rcp.messages.messages"; //$NON-NLS-1$ |
17 | 17 |
public static String annotateWordProperty; |
18 |
public static String Annotation; |
|
19 |
public static String KnowledgeRepositoryName; |
|
18 | 20 |
|
19 | 21 |
static { |
20 | 22 |
// initialize resource bundle |
TXM/trunk/bundles/org.txm.annotation.rcp/src/org/txm/annotation/rcp/messages/messages.properties (revision 3820) | ||
---|---|---|
1 | 1 |
#TXM messages generated by the PluginMessagesManager class |
2 | 2 |
#Fri Jun 10 16:36:03 CEST 2022 |
3 | 3 |
annotateWordProperty=Annotate the "word" property |
4 |
Annotation=Annotation |
|
5 |
KnowledgeRepositoryName=Knowledge repository name |
TXM/trunk/bundles/org.txm.annotation.rcp/src/org/txm/annotation/rcp/editors/imports/sections/AnnotationSection.java (revision 3820) | ||
---|---|---|
12 | 12 |
import org.eclipse.ui.forms.widgets.ScrolledForm; |
13 | 13 |
import org.eclipse.ui.forms.widgets.TableWrapData; |
14 | 14 |
import org.eclipse.ui.forms.widgets.TableWrapLayout; |
15 |
import org.txm.annotation.rcp.messages.AnnotationUIMessages; |
|
15 | 16 |
import org.txm.objects.Project; |
16 | 17 |
import org.txm.rcp.editors.imports.ImportFormEditor; |
17 | 18 |
import org.txm.rcp.editors.imports.sections.ImportEditorSection; |
... | ... | |
20 | 21 |
|
21 | 22 |
private static final int SECTION_SIZE = 1; |
22 | 23 |
|
23 |
public static final String DEFAULTNAMESUFFIX = "KR"; |
|
24 |
public static final String DEFAULTNAMESUFFIX = "KR"; //$NON-NLS-1$
|
|
24 | 25 |
|
25 | 26 |
Text nameText; |
26 | 27 |
|
27 | 28 |
public AnnotationSection(ImportFormEditor editor, FormToolkit toolkit2, ScrolledForm form2, Composite parent, int style) { |
28 |
super(editor, toolkit2, form2, parent, style, "annotation"); |
|
29 |
super(editor, toolkit2, form2, parent, style, "annotation"); //$NON-NLS-1$
|
|
29 | 30 |
|
30 |
this.section.setText("Annotation");
|
|
31 |
this.section.setText(AnnotationUIMessages.Annotation);
|
|
31 | 32 |
TableWrapLayout layout = new TableWrapLayout(); |
32 | 33 |
layout.makeColumnsEqualWidth = true; |
33 | 34 |
this.section.setLayout(layout); |
... | ... | |
50 | 51 |
sectionClient.setLayout(slayout); |
51 | 52 |
this.section.setClient(sectionClient); |
52 | 53 |
|
53 |
Label l = toolkit.createLabel(sectionClient, "Knowledge repository name", SWT.WRAP);
|
|
54 |
Label l = toolkit.createLabel(sectionClient, AnnotationUIMessages.KnowledgeRepositoryName, SWT.WRAP);
|
|
54 | 55 |
l.setLayoutData(new TableWrapData(TableWrapData.LEFT, TableWrapData.MIDDLE)); |
55 | 56 |
|
56 | 57 |
nameText = new Text(sectionClient, SWT.BORDER); |
TXM/trunk/bundles/org.txm.annotation.rcp/src/org/txm/annotation/rcp/view/AnnotationsView.java (revision 3820) | ||
---|---|---|
15 | 15 |
|
16 | 16 |
parent.setLayout(new GridLayout(1, true)); |
17 | 17 |
|
18 |
GLComposite toolbar = new GLComposite(parent, SWT.NONE, "toolbar"); |
|
18 |
GLComposite toolbar = new GLComposite(parent, SWT.NONE, "toolbar"); //$NON-NLS-1$
|
|
19 | 19 |
|
20 | 20 |
TableViewer table = new TableViewer(parent); |
21 | 21 |
TableViewerColumn column = new TableViewerColumn(table, SWT.NONE); |
TXM/trunk/bundles/org.txm.annotation.rcp/src/org/txm/annotation/rcp/editor/AnnotationExtension.java (revision 3820) | ||
---|---|---|
41 | 41 |
|
42 | 42 |
//private ToolItem saveButton; |
43 | 43 |
|
44 |
public static final String GROUP_NAME = "Annotation";
|
|
44 |
public static final String GROUP_NAME = AnnotationUIMessages.Annotation;
|
|
45 | 45 |
|
46 | 46 |
@Override |
47 | 47 |
public String getName() { |
... | ... | |
68 | 68 |
|
69 | 69 |
@Override |
70 | 70 |
public int compare(IConfigurationElement o1, IConfigurationElement o2) { |
71 |
return o1.getAttribute("position").compareTo(o2.getAttribute("position")); |
|
71 |
return o1.getAttribute("position").compareTo(o2.getAttribute("position")); //$NON-NLS-1$ //$NON-NLS-2$
|
|
72 | 72 |
} |
73 | 73 |
}); |
74 | 74 |
|
... | ... | |
84 | 84 |
if (!cc.equals(r.getClass())) { |
85 | 85 |
continue; |
86 | 86 |
} |
87 |
Log.finer("Installing AnnotationExtension: " + aa.getName()); |
|
87 |
Log.finer("Installing AnnotationExtension: " + aa.getName()); //$NON-NLS-1$
|
|
88 | 88 |
modes.add(aa.getName()); // get the annotation name |
89 | 89 |
|
90 | 90 |
listeners.add(new SelectionListener() { // create alistener to instantiate a new AnnotationArea |
... | ... | |
139 | 139 |
defaultListener = listeners.get(0); |
140 | 140 |
String defaultMode = modes.get(0); |
141 | 141 |
controlArea = editor.getTopToolbar().installAlternativesGroup(GROUP_NAME, AnnotationUIMessages.annotateWordProperty, |
142 |
"platform:/plugin/org.txm.rcp/icons/functions/pencil_open.png", |
|
143 |
"platform:/plugin/org.txm.rcp/icons/functions/pencil_close.png", false, |
|
142 |
"platform:/plugin/org.txm.rcp/icons/functions/pencil_open.png", //$NON-NLS-1$
|
|
143 |
"platform:/plugin/org.txm.rcp/icons/functions/pencil_close.png", false, //$NON-NLS-1$
|
|
144 | 144 |
openCloseSelectionListener, modes, listeners); |
145 | 145 |
controlArea.setLayout(new GridLayout(1, true)); |
146 | 146 |
|
Formats disponibles : Unified diff