aboutsummaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
authorIngo Weigelt2012-03-26 09:49:47 (EDT)
committerMichael Jastram2012-04-05 06:21:56 (EDT)
commit7e57db969d0d6cfc7f5d4b93ec5b3987f0f02772 (patch)
treed3f27c6f8298a2a0ba833748de9b4a0edb35238b
parent0bdc5a6cc2291ea39c8ef47972c81743785bd5b6 (diff)
downloadorg.eclipse.rmf-7e57db969d0d6cfc7f5d4b93ec5b3987f0f02772.zip
org.eclipse.rmf-7e57db969d0d6cfc7f5d4b93ec5b3987f0f02772.tar.gz
org.eclipse.rmf-7e57db969d0d6cfc7f5d4b93ec5b3987f0f02772.tar.bz2
Fixes #376163: externalized strings in ReqifMainForm
-rw-r--r--org.eclipse.rmf.pror.reqif10.editor/plugin.properties14
-rw-r--r--org.eclipse.rmf.pror.reqif10.editor/src/org/eclipse/rmf/pror/reqif10/editor/presentation/ReqifMainForm.java24
2 files changed, 26 insertions, 12 deletions
diff --git a/org.eclipse.rmf.pror.reqif10.editor/plugin.properties b/org.eclipse.rmf.pror.reqif10.editor/plugin.properties
index b80451f..0d5beb5 100644
--- a/org.eclipse.rmf.pror.reqif10.editor/plugin.properties
+++ b/org.eclipse.rmf.pror.reqif10.editor/plugin.properties
@@ -64,6 +64,20 @@ _UI_ConfigEditorFilenameExtensions = reqif-config
_UI_Wizard_label = New
+_UI_ReqifForm_ReqIfFile = ReqIf-File
+_UI_ReqifForm_Specifications = Specifications
+_UI_ReqifForm_DblClickSpecifications = Doubleclick to open specification
+_UI_ReqifForm_DocumentProperties = Document Properties
+_UI_ReqifForm_Title = Title
+_UI_ReqifForm_Comment = Comment
+_UI_ReqifForm_CreateTime = Creation Time
+_UI_ReqifForm_SourceToolId = Source Tool Id
+_UI_ReqifForm_ReqIfToolId = ReqIf Tool Id
+_UI_ReqifForm_ReqIfVersion = ReqIf Version
+_UI_ReqifForm_Identifier = Identifier
+_UI_ReqifForm_RepositoryId = Repository Id
+
+
_WARN_FilenameExtension = The file name must end in ''.{0}''
_WARN_FilenameExtensions = The file name must have one of the following extensions: {0}
diff --git a/org.eclipse.rmf.pror.reqif10.editor/src/org/eclipse/rmf/pror/reqif10/editor/presentation/ReqifMainForm.java b/org.eclipse.rmf.pror.reqif10.editor/src/org/eclipse/rmf/pror/reqif10/editor/presentation/ReqifMainForm.java
index b97830e..ef12f64 100644
--- a/org.eclipse.rmf.pror.reqif10.editor/src/org/eclipse/rmf/pror/reqif10/editor/presentation/ReqifMainForm.java
+++ b/org.eclipse.rmf.pror.reqif10.editor/src/org/eclipse/rmf/pror/reqif10/editor/presentation/ReqifMainForm.java
@@ -79,7 +79,7 @@ public class ReqifMainForm {
toolkit = new FormToolkit(parent.getDisplay());
form = toolkit.createScrolledForm(parent);
- form.setText("ReqIf-File: " + URI.decode(reqif.eResource().getURI().lastSegment()));
+ form.setText(getString("_UI_ReqifForm_ReqIfFile") + ": " + URI.decode(reqif.eResource().getURI().lastSegment()));
TableWrapLayout layout = new TableWrapLayout();
form.getBody().setLayout(layout);
@@ -101,8 +101,8 @@ public class ReqifMainForm {
Section specSection = createSection(Section.EXPANDED
| Section.DESCRIPTION);
- specSection.setText("Specifications");
- specSection.setDescription("Doubleclick to open Specification");
+ specSection.setText(getString("_UI_ReqifForm_Specifications"));
+ specSection.setDescription(getString("_UI_ReqifForm_DblClickSpecifications"));
Composite client = toolkit.createComposite(specSection);
final ListViewer list = new ListViewer(client, SWT.SINGLE | SWT.BORDER);
@@ -179,7 +179,7 @@ public class ReqifMainForm {
}
final Section docSection = createSection(0);
- docSection.setText("Document Properties");
+ docSection.setText(getString("_UI_ReqifForm_DocumentProperties"));
docSection.setLayoutData(new TableWrapData(TableWrapData.FILL_GRAB));
Composite client = toolkit.createComposite(docSection);
@@ -187,13 +187,13 @@ public class ReqifMainForm {
TableWrapLayout layout = new TableWrapLayout();
client.setLayout(layout);
- toolkit.createLabel(client, "Title: ");
+ toolkit.createLabel(client, getString("_UI_ReqifForm_Title")+": ");
Text text = toolkit.createText(client, header.getTitle(), SWT.BORDER);
text.setLayoutData(new TableWrapData(TableWrapData.FILL_GRAB));
addModifyListener(text, header,
Reqif10Package.Literals.REQ_IF_HEADER__TITLE);
- toolkit.createLabel(client, "Comment: ");
+ toolkit.createLabel(client, getString("_UI_ReqifForm_Comment") + ": ");
text = toolkit.createText(client, header.getComment(), SWT.BORDER
| SWT.MULTI | SWT.WRAP);
text.setLayoutData(new TableWrapData(TableWrapData.FILL_GRAB));
@@ -206,33 +206,33 @@ public class ReqifMainForm {
addModifyListener(text, header,
Reqif10Package.Literals.REQ_IF_HEADER__COMMENT);
- toolkit.createLabel(client, "Creation Time: ");
+ toolkit.createLabel(client, getString("_UI_ReqifForm_CreateTime")+": ");
text = toolkit.createText(client, header.getCreationTime() + "",
SWT.BORDER);
text.setEnabled(false);
text.setLayoutData(new TableWrapData(TableWrapData.FILL_GRAB));
- toolkit.createLabel(client, "Source Tool Id: ");
+ toolkit.createLabel(client, getString("_UI_ReqifForm_SourceToolId") + ": ");
text = toolkit.createText(client, header.getSourceToolId(), SWT.BORDER);
text.setEnabled(false);
text.setLayoutData(new TableWrapData(TableWrapData.FILL_GRAB));
- toolkit.createLabel(client, "ReqIf Tool Id: ");
+ toolkit.createLabel(client, getString("_UI_ReqifForm_ReqIfToolId") + ": ");
text = toolkit.createText(client, header.getReqIfToolId(), SWT.BORDER);
text.setEnabled(false);
text.setLayoutData(new TableWrapData(TableWrapData.FILL_GRAB));
- toolkit.createLabel(client, "ReqIf Version: ");
+ toolkit.createLabel(client, getString("_UI_ReqifForm_ReqIfVersion") + ": ");
text = toolkit.createText(client, header.getReqIfVersion(), SWT.BORDER);
text.setEnabled(false);
text.setLayoutData(new TableWrapData(TableWrapData.FILL_GRAB));
- toolkit.createLabel(client, "Identifier: ");
+ toolkit.createLabel(client, getString("_UI_ReqifForm_Identifier") + ": ");
text = toolkit.createText(client, header.getIdentifier(), SWT.BORDER);
text.setEnabled(false);
text.setLayoutData(new TableWrapData(TableWrapData.FILL_GRAB));
- toolkit.createLabel(client, "Replository Id: ");
+ toolkit.createLabel(client, getString("_UI_ReqifForm_RepositoryId") + ": ");
text = toolkit.createText(client, header.getRepositoryId(), SWT.BORDER);
text.setEnabled(false);
text.setLayoutData(new TableWrapData(TableWrapData.FILL_GRAB));