Skip to main content
aboutsummaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
authormvelten2011-05-12 16:24:38 +0000
committermvelten2011-05-12 16:24:38 +0000
commitef1cedb9e95562853ebe1c8ab1730f902296be12 (patch)
treeefce8035e3ae84d483c9f94002b900433c5f9f54
parent2fde462241e2a474269dc40b313a457f67b48bfe (diff)
downloadorg.eclipse.papyrus-ef1cedb9e95562853ebe1c8ab1730f902296be12.tar.gz
org.eclipse.papyrus-ef1cedb9e95562853ebe1c8ab1730f902296be12.tar.xz
org.eclipse.papyrus-ef1cedb9e95562853ebe1c8ab1730f902296be12.zip
EPF Richtext : bugfix
-rw-r--r--extraplugins/epf-richtext/org.eclipse.epf.richtext-feature/feature.xml3
-rw-r--r--extraplugins/epf-richtext/org.eclipse.epf.richtext/messages.properties (renamed from extraplugins/epf-richtext/org.eclipse.epf.richtext/src/org/eclipse/epf/richtext/Resources.properties)0
-rw-r--r--extraplugins/epf-richtext/org.eclipse.epf.richtext/src/org/eclipse/epf/richtext/Messages.java (renamed from extraplugins/epf-richtext/org.eclipse.epf.richtext/src/org/eclipse/epf/richtext/RichTextResources.java)15
-rw-r--r--extraplugins/epf-richtext/org.eclipse.epf.richtext/src/org/eclipse/epf/richtext/RichText.java8
-rw-r--r--extraplugins/epf-richtext/org.eclipse.epf.richtext/src/org/eclipse/epf/richtext/RichTextEditor.java16
-rw-r--r--extraplugins/epf-richtext/org.eclipse.epf.richtext/src/org/eclipse/epf/richtext/actions/AddCodeAction.java4
-rw-r--r--extraplugins/epf-richtext/org.eclipse.epf.richtext/src/org/eclipse/epf/richtext/actions/AddImageAction.java4
-rw-r--r--extraplugins/epf-richtext/org.eclipse.epf.richtext/src/org/eclipse/epf/richtext/actions/AddLineAction.java4
-rw-r--r--extraplugins/epf-richtext/org.eclipse.epf.richtext/src/org/eclipse/epf/richtext/actions/AddLinkAction.java4
-rw-r--r--extraplugins/epf-richtext/org.eclipse.epf.richtext/src/org/eclipse/epf/richtext/actions/AddOrderedListAction.java4
-rw-r--r--extraplugins/epf-richtext/org.eclipse.epf.richtext/src/org/eclipse/epf/richtext/actions/AddTableAction.java4
-rw-r--r--extraplugins/epf-richtext/org.eclipse.epf.richtext/src/org/eclipse/epf/richtext/actions/AddUnorderedListAction.java4
-rw-r--r--extraplugins/epf-richtext/org.eclipse.epf.richtext/src/org/eclipse/epf/richtext/actions/BlockTagAction.java4
-rw-r--r--extraplugins/epf-richtext/org.eclipse.epf.richtext/src/org/eclipse/epf/richtext/actions/BoldAction.java4
-rw-r--r--extraplugins/epf-richtext/org.eclipse.epf.richtext/src/org/eclipse/epf/richtext/actions/ClearContentAction.java8
-rw-r--r--extraplugins/epf-richtext/org.eclipse.epf.richtext/src/org/eclipse/epf/richtext/actions/CopyAction.java4
-rw-r--r--extraplugins/epf-richtext/org.eclipse.epf.richtext/src/org/eclipse/epf/richtext/actions/CutAction.java4
-rw-r--r--extraplugins/epf-richtext/org.eclipse.epf.richtext/src/org/eclipse/epf/richtext/actions/FindReplaceAction.java4
-rw-r--r--extraplugins/epf-richtext/org.eclipse.epf.richtext/src/org/eclipse/epf/richtext/actions/FontNameAction.java14
-rw-r--r--extraplugins/epf-richtext/org.eclipse.epf.richtext/src/org/eclipse/epf/richtext/actions/FontSizeAction.java4
-rw-r--r--extraplugins/epf-richtext/org.eclipse.epf.richtext/src/org/eclipse/epf/richtext/actions/FontStyleAction.java4
-rw-r--r--extraplugins/epf-richtext/org.eclipse.epf.richtext/src/org/eclipse/epf/richtext/actions/IndentAction.java4
-rw-r--r--extraplugins/epf-richtext/org.eclipse.epf.richtext/src/org/eclipse/epf/richtext/actions/ItalicAction.java4
-rw-r--r--extraplugins/epf-richtext/org.eclipse.epf.richtext/src/org/eclipse/epf/richtext/actions/JustifyCenterAction.java4
-rw-r--r--extraplugins/epf-richtext/org.eclipse.epf.richtext/src/org/eclipse/epf/richtext/actions/JustifyFullAction.java4
-rw-r--r--extraplugins/epf-richtext/org.eclipse.epf.richtext/src/org/eclipse/epf/richtext/actions/JustifyLeftAction.java4
-rw-r--r--extraplugins/epf-richtext/org.eclipse.epf.richtext/src/org/eclipse/epf/richtext/actions/JustifyRightAction.java4
-rw-r--r--extraplugins/epf-richtext/org.eclipse.epf.richtext/src/org/eclipse/epf/richtext/actions/OutdentAction.java4
-rw-r--r--extraplugins/epf-richtext/org.eclipse.epf.richtext/src/org/eclipse/epf/richtext/actions/PasteAction.java4
-rw-r--r--extraplugins/epf-richtext/org.eclipse.epf.richtext/src/org/eclipse/epf/richtext/actions/PastePlainTextAction.java4
-rw-r--r--extraplugins/epf-richtext/org.eclipse.epf.richtext/src/org/eclipse/epf/richtext/actions/SubscriptAction.java4
-rw-r--r--extraplugins/epf-richtext/org.eclipse.epf.richtext/src/org/eclipse/epf/richtext/actions/SuperscriptAction.java4
-rw-r--r--extraplugins/epf-richtext/org.eclipse.epf.richtext/src/org/eclipse/epf/richtext/actions/TidyActionGroup.java16
-rw-r--r--extraplugins/epf-richtext/org.eclipse.epf.richtext/src/org/eclipse/epf/richtext/actions/UnderlineAction.java4
-rw-r--r--extraplugins/epf-richtext/org.eclipse.epf.richtext/src/org/eclipse/epf/richtext/dialogs/AddCodeDialog.java6
-rw-r--r--extraplugins/epf-richtext/org.eclipse.epf.richtext/src/org/eclipse/epf/richtext/dialogs/AddImageDialog.java8
-rw-r--r--extraplugins/epf-richtext/org.eclipse.epf.richtext/src/org/eclipse/epf/richtext/dialogs/AddLinkDialog.java8
-rw-r--r--extraplugins/epf-richtext/org.eclipse.epf.richtext/src/org/eclipse/epf/richtext/dialogs/AddTableDialog.java24
-rw-r--r--extraplugins/epf-richtext/org.eclipse.epf.richtext/src/org/eclipse/epf/richtext/dialogs/FindReplaceDialog.java30
-rw-r--r--extraplugins/epf-richtext/org.eclipse.epf.richtext/src/org/eclipse/epf/richtext/html/BlockTag.java20
-rw-r--r--extraplugins/epf-richtext/org.eclipse.epf.richtext/src/org/eclipse/epf/richtext/html/FontName.java12
-rw-r--r--extraplugins/epf-richtext/org.eclipse.epf.richtext/src/org/eclipse/epf/richtext/html/FontStyle.java14
-rw-r--r--extraplugins/epf-richtext/org.eclipse.epf.richtext/src/org/eclipse/epf/richtext/preferences/RichTextPreferencePage.java8
43 files changed, 157 insertions, 157 deletions
diff --git a/extraplugins/epf-richtext/org.eclipse.epf.richtext-feature/feature.xml b/extraplugins/epf-richtext/org.eclipse.epf.richtext-feature/feature.xml
index 64d9df31657..f7961f60265 100644
--- a/extraplugins/epf-richtext/org.eclipse.epf.richtext-feature/feature.xml
+++ b/extraplugins/epf-richtext/org.eclipse.epf.richtext-feature/feature.xml
@@ -77,6 +77,7 @@ http://www.eclipse.org/legal/epl-v10.html
id="org.eclipse.epf.richtext"
download-size="0"
install-size="0"
- version="0.0.0"/>
+ version="0.0.0"
+ unpack="false"/>
</feature>
diff --git a/extraplugins/epf-richtext/org.eclipse.epf.richtext/src/org/eclipse/epf/richtext/Resources.properties b/extraplugins/epf-richtext/org.eclipse.epf.richtext/messages.properties
index 1eeeb7bc043..1eeeb7bc043 100644
--- a/extraplugins/epf-richtext/org.eclipse.epf.richtext/src/org/eclipse/epf/richtext/Resources.properties
+++ b/extraplugins/epf-richtext/org.eclipse.epf.richtext/messages.properties
diff --git a/extraplugins/epf-richtext/org.eclipse.epf.richtext/src/org/eclipse/epf/richtext/RichTextResources.java b/extraplugins/epf-richtext/org.eclipse.epf.richtext/src/org/eclipse/epf/richtext/Messages.java
index bf25e27740d..c3b3dd6d417 100644
--- a/extraplugins/epf-richtext/org.eclipse.epf.richtext/src/org/eclipse/epf/richtext/RichTextResources.java
+++ b/extraplugins/epf-richtext/org.eclipse.epf.richtext/src/org/eclipse/epf/richtext/Messages.java
@@ -29,9 +29,14 @@ import org.eclipse.osgi.util.NLS;
* @author Jeff Hardy
* @since 1.0
*/
-public final class RichTextResources extends NLS {
+public final class Messages extends NLS {
- private static final String BUNDLE_NAME = "org.eclipse.epf.richtext.Resources"; //$NON-NLS-1$
+ static {
+ NLS.initializeMessages("messages", Messages.class); //$NON-NLS-1$
+ }
+
+ private Messages() {
+ }
public static String fontNameAction_CSS_Default;
public static String fontNameAction_CSS_Default_Mozilla;
@@ -137,10 +142,4 @@ public final class RichTextResources extends NLS {
public static String addCodeDialog_title;
public static String addCodeDialog_Msg;
- static {
- NLS.initializeMessages(BUNDLE_NAME, RichTextResources.class);
- }
-
- private RichTextResources() {
- }
} \ No newline at end of file
diff --git a/extraplugins/epf-richtext/org.eclipse.epf.richtext/src/org/eclipse/epf/richtext/RichText.java b/extraplugins/epf-richtext/org.eclipse.epf.richtext/src/org/eclipse/epf/richtext/RichText.java
index 7843a6d70b2..72d3ae464c6 100644
--- a/extraplugins/epf-richtext/org.eclipse.epf.richtext/src/org/eclipse/epf/richtext/RichText.java
+++ b/extraplugins/epf-richtext/org.eclipse.epf.richtext/src/org/eclipse/epf/richtext/RichText.java
@@ -1180,7 +1180,7 @@ public class RichText implements IRichText {
*/
protected void fillContextMenu(Menu contextMenu) {
final MenuItem cutItem = new MenuItem(contextMenu, SWT.PUSH);
- cutItem.setText(RichTextResources.cutAction_text);
+ cutItem.setText(Messages.cutAction_text);
cutItem.addSelectionListener(new SelectionAdapter() {
public void widgetSelected(SelectionEvent event) {
CutAction action = new CutAction(RichText.this);
@@ -1188,7 +1188,7 @@ public class RichText implements IRichText {
}
});
final MenuItem copyItem = new MenuItem(contextMenu, SWT.PUSH);
- copyItem.setText(RichTextResources.copyAction_text);
+ copyItem.setText(Messages.copyAction_text);
copyItem.addSelectionListener(new SelectionAdapter() {
public void widgetSelected(SelectionEvent event) {
CopyAction action = new CopyAction(RichText.this);
@@ -1196,7 +1196,7 @@ public class RichText implements IRichText {
}
});
final MenuItem pasteItem = new MenuItem(contextMenu, SWT.PUSH);
- pasteItem.setText(RichTextResources.pasteAction_text);
+ pasteItem.setText(Messages.pasteAction_text);
pasteItem.addSelectionListener(new SelectionAdapter() {
public void widgetSelected(SelectionEvent event) {
PasteAction action = new PasteAction(RichText.this);
@@ -1205,7 +1205,7 @@ public class RichText implements IRichText {
});
final MenuItem pastePlainTextItem = new MenuItem(contextMenu, SWT.PUSH);
- pastePlainTextItem.setText(RichTextResources.pastePlainTextAction_text);
+ pastePlainTextItem.setText(Messages.pastePlainTextAction_text);
pastePlainTextItem.setImage(RichTextImages.IMG_PASTE_PLAIN_TEXT);
pastePlainTextItem.addSelectionListener(new SelectionAdapter() {
public void widgetSelected(SelectionEvent event) {
diff --git a/extraplugins/epf-richtext/org.eclipse.epf.richtext/src/org/eclipse/epf/richtext/RichTextEditor.java b/extraplugins/epf-richtext/org.eclipse.epf.richtext/src/org/eclipse/epf/richtext/RichTextEditor.java
index 039b2a86c35..d1c4275a041 100644
--- a/extraplugins/epf-richtext/org.eclipse.epf.richtext/src/org/eclipse/epf/richtext/RichTextEditor.java
+++ b/extraplugins/epf-richtext/org.eclipse.epf.richtext/src/org/eclipse/epf/richtext/RichTextEditor.java
@@ -118,7 +118,7 @@ import org.eclipse.ui.texteditor.IWorkbenchActionDefinitionIds;
public class RichTextEditor implements IRichTextEditor {
// The HTML tab name.
- protected static final String HTML_TAB_NAME = RichTextResources.htmlTab_text;
+ protected static final String HTML_TAB_NAME = Messages.htmlTab_text;
// If true, log debugging info.
protected boolean debug;
@@ -927,8 +927,8 @@ public class RichTextEditor implements IRichTextEditor {
richText.getFindReplaceAction().setRichText(this);
richTextTab = new CTabItem(folder, SWT.FLAT);
- richTextTab.setText(RichTextResources.richTextTab_text);
- richTextTab.setToolTipText(RichTextResources.richTextTab_toolTipText);
+ richTextTab.setText(Messages.richTextTab_text);
+ richTextTab.setToolTipText(Messages.richTextTab_toolTipText);
richTextTab.setControl(richTextComposite);
Composite htmlComposite = new Composite(folder, SWT.FLAT);
@@ -951,7 +951,7 @@ public class RichTextEditor implements IRichTextEditor {
htmlTab = new CTabItem(folder, SWT.NONE);
htmlTab.setText(HTML_TAB_NAME);
- htmlTab.setToolTipText(RichTextResources.htmlTab_toolTipText);
+ htmlTab.setToolTipText(Messages.htmlTab_toolTipText);
htmlTab.setControl(htmlComposite);
folder.addSelectionListener(new SelectionAdapter() {
@@ -1101,7 +1101,7 @@ public class RichTextEditor implements IRichTextEditor {
*/
protected void fillContextMenu(Menu contextMenu) {
final MenuItem cutItem = new MenuItem(contextMenu, SWT.PUSH);
- cutItem.setText(RichTextResources.cutAction_text);
+ cutItem.setText(Messages.cutAction_text);
cutItem.addSelectionListener(new SelectionAdapter() {
public void widgetSelected(SelectionEvent event) {
CutAction action = new CutAction(RichTextEditor.this);
@@ -1109,7 +1109,7 @@ public class RichTextEditor implements IRichTextEditor {
}
});
final MenuItem copyItem = new MenuItem(contextMenu, SWT.PUSH);
- copyItem.setText(RichTextResources.copyAction_text);
+ copyItem.setText(Messages.copyAction_text);
copyItem.addSelectionListener(new SelectionAdapter() {
public void widgetSelected(SelectionEvent event) {
CopyAction action = new CopyAction(RichTextEditor.this);
@@ -1117,7 +1117,7 @@ public class RichTextEditor implements IRichTextEditor {
}
});
final MenuItem pasteItem = new MenuItem(contextMenu, SWT.PUSH);
- pasteItem.setText(RichTextResources.pasteAction_text);
+ pasteItem.setText(Messages.pasteAction_text);
pasteItem.addSelectionListener(new SelectionAdapter() {
public void widgetSelected(SelectionEvent event) {
PasteAction action = new PasteAction(RichTextEditor.this);
@@ -1126,7 +1126,7 @@ public class RichTextEditor implements IRichTextEditor {
});
final MenuItem pastePlainTextItem = new MenuItem(contextMenu, SWT.PUSH);
- pastePlainTextItem.setText(RichTextResources.pastePlainTextAction_text);
+ pastePlainTextItem.setText(Messages.pastePlainTextAction_text);
pastePlainTextItem.addSelectionListener(new SelectionAdapter() {
public void widgetSelected(SelectionEvent event) {
PastePlainTextAction action = new PastePlainTextAction(RichTextEditor.this);
diff --git a/extraplugins/epf-richtext/org.eclipse.epf.richtext/src/org/eclipse/epf/richtext/actions/AddCodeAction.java b/extraplugins/epf-richtext/org.eclipse.epf.richtext/src/org/eclipse/epf/richtext/actions/AddCodeAction.java
index 49a63617e24..d6475c9489b 100644
--- a/extraplugins/epf-richtext/org.eclipse.epf.richtext/src/org/eclipse/epf/richtext/actions/AddCodeAction.java
+++ b/extraplugins/epf-richtext/org.eclipse.epf.richtext/src/org/eclipse/epf/richtext/actions/AddCodeAction.java
@@ -13,7 +13,7 @@ import org.eclipse.epf.richtext.IRichText;
import org.eclipse.epf.richtext.RichText;
import org.eclipse.epf.richtext.RichTextCommand;
import org.eclipse.epf.richtext.RichTextImages;
-import org.eclipse.epf.richtext.RichTextResources;
+import org.eclipse.epf.richtext.Messages;
import org.eclipse.epf.richtext.dialogs.AddCodeDialog;
import org.eclipse.jface.action.IAction;
import org.eclipse.jface.window.Window;
@@ -25,7 +25,7 @@ public class AddCodeAction extends RichTextAction {
super(richText, IAction.AS_PUSH_BUTTON);
setImageDescriptor(RichTextImages.IMG_DESC_ADD_CODE);
setDisabledImageDescriptor(RichTextImages.DISABLED_IMG_DESC_ADD_CODE);
- setToolTipText(RichTextResources.addCodeAction_toolTipText);
+ setToolTipText(Messages.addCodeAction_toolTipText);
}
public void execute(IRichText richText) {
diff --git a/extraplugins/epf-richtext/org.eclipse.epf.richtext/src/org/eclipse/epf/richtext/actions/AddImageAction.java b/extraplugins/epf-richtext/org.eclipse.epf.richtext/src/org/eclipse/epf/richtext/actions/AddImageAction.java
index c5b9ece213b..32fcf2a2d7a 100644
--- a/extraplugins/epf-richtext/org.eclipse.epf.richtext/src/org/eclipse/epf/richtext/actions/AddImageAction.java
+++ b/extraplugins/epf-richtext/org.eclipse.epf.richtext/src/org/eclipse/epf/richtext/actions/AddImageAction.java
@@ -23,7 +23,7 @@ package org.eclipse.epf.richtext.actions;
import org.eclipse.epf.richtext.IRichText;
import org.eclipse.epf.richtext.RichTextCommand;
import org.eclipse.epf.richtext.RichTextImages;
-import org.eclipse.epf.richtext.RichTextResources;
+import org.eclipse.epf.richtext.Messages;
import org.eclipse.epf.richtext.dialogs.AddImageDialog;
import org.eclipse.jface.action.IAction;
import org.eclipse.jface.window.Window;
@@ -44,7 +44,7 @@ public class AddImageAction extends RichTextAction {
super(richText, IAction.AS_PUSH_BUTTON);
setImageDescriptor(RichTextImages.IMG_DESC_ADD_IMAGE);
setDisabledImageDescriptor(RichTextImages.DISABLED_IMG_DESC_ADD_IMAGE);
- setToolTipText(RichTextResources.addImageAction_toolTipText);
+ setToolTipText(Messages.addImageAction_toolTipText);
}
/**
diff --git a/extraplugins/epf-richtext/org.eclipse.epf.richtext/src/org/eclipse/epf/richtext/actions/AddLineAction.java b/extraplugins/epf-richtext/org.eclipse.epf.richtext/src/org/eclipse/epf/richtext/actions/AddLineAction.java
index 206e287bc88..7a39fd8b674 100644
--- a/extraplugins/epf-richtext/org.eclipse.epf.richtext/src/org/eclipse/epf/richtext/actions/AddLineAction.java
+++ b/extraplugins/epf-richtext/org.eclipse.epf.richtext/src/org/eclipse/epf/richtext/actions/AddLineAction.java
@@ -23,7 +23,7 @@ package org.eclipse.epf.richtext.actions;
import org.eclipse.epf.richtext.IRichText;
import org.eclipse.epf.richtext.RichTextCommand;
import org.eclipse.epf.richtext.RichTextImages;
-import org.eclipse.epf.richtext.RichTextResources;
+import org.eclipse.epf.richtext.Messages;
import org.eclipse.jface.action.IAction;
/**
@@ -40,7 +40,7 @@ public class AddLineAction extends RichTextAction {
public AddLineAction(IRichText richText) {
super(richText, IAction.AS_PUSH_BUTTON);
setImageDescriptor(RichTextImages.IMG_DESC_ADD_LINE);
- setToolTipText(RichTextResources.addLineAction_toolTipText);
+ setToolTipText(Messages.addLineAction_toolTipText);
}
/**
diff --git a/extraplugins/epf-richtext/org.eclipse.epf.richtext/src/org/eclipse/epf/richtext/actions/AddLinkAction.java b/extraplugins/epf-richtext/org.eclipse.epf.richtext/src/org/eclipse/epf/richtext/actions/AddLinkAction.java
index 91d0ec0fba3..c404b87a223 100644
--- a/extraplugins/epf-richtext/org.eclipse.epf.richtext/src/org/eclipse/epf/richtext/actions/AddLinkAction.java
+++ b/extraplugins/epf-richtext/org.eclipse.epf.richtext/src/org/eclipse/epf/richtext/actions/AddLinkAction.java
@@ -23,7 +23,7 @@ package org.eclipse.epf.richtext.actions;
import org.eclipse.epf.richtext.IRichText;
import org.eclipse.epf.richtext.RichTextCommand;
import org.eclipse.epf.richtext.RichTextImages;
-import org.eclipse.epf.richtext.RichTextResources;
+import org.eclipse.epf.richtext.Messages;
import org.eclipse.epf.richtext.dialogs.AddLinkDialog;
import org.eclipse.jface.action.IAction;
import org.eclipse.jface.window.Window;
@@ -44,7 +44,7 @@ public class AddLinkAction extends RichTextAction {
super(richText, IAction.AS_PUSH_BUTTON);
setImageDescriptor(RichTextImages.IMG_DESC_ADD_LINK);
setDisabledImageDescriptor(RichTextImages.DISABLED_IMG_DESC_ADD_LINK);
- setToolTipText(RichTextResources.addLinkAction_toolTipText);
+ setToolTipText(Messages.addLinkAction_toolTipText);
}
/**
diff --git a/extraplugins/epf-richtext/org.eclipse.epf.richtext/src/org/eclipse/epf/richtext/actions/AddOrderedListAction.java b/extraplugins/epf-richtext/org.eclipse.epf.richtext/src/org/eclipse/epf/richtext/actions/AddOrderedListAction.java
index 60eca82eb26..869ab190002 100644
--- a/extraplugins/epf-richtext/org.eclipse.epf.richtext/src/org/eclipse/epf/richtext/actions/AddOrderedListAction.java
+++ b/extraplugins/epf-richtext/org.eclipse.epf.richtext/src/org/eclipse/epf/richtext/actions/AddOrderedListAction.java
@@ -23,7 +23,7 @@ package org.eclipse.epf.richtext.actions;
import org.eclipse.epf.richtext.IRichText;
import org.eclipse.epf.richtext.RichTextCommand;
import org.eclipse.epf.richtext.RichTextImages;
-import org.eclipse.epf.richtext.RichTextResources;
+import org.eclipse.epf.richtext.Messages;
import org.eclipse.jface.action.IAction;
/**
@@ -41,7 +41,7 @@ public class AddOrderedListAction extends RichTextAction {
super(richText, IAction.AS_PUSH_BUTTON);
setImageDescriptor(RichTextImages.IMG_DESC_ADD_ORDERED_LIST);
setDisabledImageDescriptor(RichTextImages.DISABLED_IMG_DESC_ADD_ORDERED_LIST);
- setToolTipText(RichTextResources.addOrderedListAction_toolTipText);
+ setToolTipText(Messages.addOrderedListAction_toolTipText);
}
/**
diff --git a/extraplugins/epf-richtext/org.eclipse.epf.richtext/src/org/eclipse/epf/richtext/actions/AddTableAction.java b/extraplugins/epf-richtext/org.eclipse.epf.richtext/src/org/eclipse/epf/richtext/actions/AddTableAction.java
index e3d68dab496..828053374fe 100644
--- a/extraplugins/epf-richtext/org.eclipse.epf.richtext/src/org/eclipse/epf/richtext/actions/AddTableAction.java
+++ b/extraplugins/epf-richtext/org.eclipse.epf.richtext/src/org/eclipse/epf/richtext/actions/AddTableAction.java
@@ -23,7 +23,7 @@ package org.eclipse.epf.richtext.actions;
import org.eclipse.epf.richtext.IRichText;
import org.eclipse.epf.richtext.RichTextCommand;
import org.eclipse.epf.richtext.RichTextImages;
-import org.eclipse.epf.richtext.RichTextResources;
+import org.eclipse.epf.richtext.Messages;
import org.eclipse.epf.richtext.dialogs.AddTableDialog;
import org.eclipse.epf.richtext.html.Table;
import org.eclipse.jface.action.IAction;
@@ -45,7 +45,7 @@ public class AddTableAction extends RichTextAction {
super(richText, IAction.AS_PUSH_BUTTON);
setImageDescriptor(RichTextImages.IMG_DESC_ADD_TABLE);
setDisabledImageDescriptor(RichTextImages.DISABLED_IMG_DESC_ADD_TABLE);
- setToolTipText(RichTextResources.addTableAction_toolTipText);
+ setToolTipText(Messages.addTableAction_toolTipText);
}
/**
diff --git a/extraplugins/epf-richtext/org.eclipse.epf.richtext/src/org/eclipse/epf/richtext/actions/AddUnorderedListAction.java b/extraplugins/epf-richtext/org.eclipse.epf.richtext/src/org/eclipse/epf/richtext/actions/AddUnorderedListAction.java
index fa9c0b8fcef..b07b7bc5359 100644
--- a/extraplugins/epf-richtext/org.eclipse.epf.richtext/src/org/eclipse/epf/richtext/actions/AddUnorderedListAction.java
+++ b/extraplugins/epf-richtext/org.eclipse.epf.richtext/src/org/eclipse/epf/richtext/actions/AddUnorderedListAction.java
@@ -23,7 +23,7 @@ package org.eclipse.epf.richtext.actions;
import org.eclipse.epf.richtext.IRichText;
import org.eclipse.epf.richtext.RichTextCommand;
import org.eclipse.epf.richtext.RichTextImages;
-import org.eclipse.epf.richtext.RichTextResources;
+import org.eclipse.epf.richtext.Messages;
import org.eclipse.jface.action.IAction;
/**
@@ -41,7 +41,7 @@ public class AddUnorderedListAction extends RichTextAction {
super(richText, IAction.AS_PUSH_BUTTON);
setImageDescriptor(RichTextImages.IMG_DESC_ADD_UNORDERED_LIST);
setDisabledImageDescriptor(RichTextImages.DISABLED_IMG_DESC_ADD_UNORDERED_LIST);
- setToolTipText(RichTextResources.addUnorderedListAction_toolTipText);
+ setToolTipText(Messages.addUnorderedListAction_toolTipText);
}
/**
diff --git a/extraplugins/epf-richtext/org.eclipse.epf.richtext/src/org/eclipse/epf/richtext/actions/BlockTagAction.java b/extraplugins/epf-richtext/org.eclipse.epf.richtext/src/org/eclipse/epf/richtext/actions/BlockTagAction.java
index 92dd320a3a2..43071359480 100644
--- a/extraplugins/epf-richtext/org.eclipse.epf.richtext/src/org/eclipse/epf/richtext/actions/BlockTagAction.java
+++ b/extraplugins/epf-richtext/org.eclipse.epf.richtext/src/org/eclipse/epf/richtext/actions/BlockTagAction.java
@@ -25,7 +25,7 @@ import java.util.Collection;
import org.eclipse.epf.richtext.IRichText;
import org.eclipse.epf.richtext.RichTextCommand;
-import org.eclipse.epf.richtext.RichTextResources;
+import org.eclipse.epf.richtext.Messages;
import org.eclipse.epf.richtext.html.BlockTag;
/**
@@ -41,7 +41,7 @@ public class BlockTagAction extends RichTextComboAction {
*/
public BlockTagAction(final IRichText richText) {
super(richText);
- setToolTipText(RichTextResources.blockTagAction_toolTipText);
+ setToolTipText(Messages.blockTagAction_toolTipText);
}
@Override
diff --git a/extraplugins/epf-richtext/org.eclipse.epf.richtext/src/org/eclipse/epf/richtext/actions/BoldAction.java b/extraplugins/epf-richtext/org.eclipse.epf.richtext/src/org/eclipse/epf/richtext/actions/BoldAction.java
index be193e621d1..b1a01de5036 100644
--- a/extraplugins/epf-richtext/org.eclipse.epf.richtext/src/org/eclipse/epf/richtext/actions/BoldAction.java
+++ b/extraplugins/epf-richtext/org.eclipse.epf.richtext/src/org/eclipse/epf/richtext/actions/BoldAction.java
@@ -23,7 +23,7 @@ package org.eclipse.epf.richtext.actions;
import org.eclipse.epf.richtext.IRichText;
import org.eclipse.epf.richtext.RichTextCommand;
import org.eclipse.epf.richtext.RichTextImages;
-import org.eclipse.epf.richtext.RichTextResources;
+import org.eclipse.epf.richtext.Messages;
import org.eclipse.jface.action.IAction;
import org.eclipse.swt.SWT;
import org.eclipse.swt.widgets.Event;
@@ -44,7 +44,7 @@ public class BoldAction extends RichTextAction {
super(richText, IAction.AS_CHECK_BOX);
setImageDescriptor(RichTextImages.IMG_DESC_BOLD);
setDisabledImageDescriptor(RichTextImages.DISABLED_IMG_DESC_BOLD);
- setToolTipText(RichTextResources.boldAction_toolTipText);
+ setToolTipText(Messages.boldAction_toolTipText);
// add listener
richText.addListener(SWT.SELECTED, new Listener() {
public void handleEvent(Event event) {
diff --git a/extraplugins/epf-richtext/org.eclipse.epf.richtext/src/org/eclipse/epf/richtext/actions/ClearContentAction.java b/extraplugins/epf-richtext/org.eclipse.epf.richtext/src/org/eclipse/epf/richtext/actions/ClearContentAction.java
index a6a6d0dc676..5c3124397ae 100644
--- a/extraplugins/epf-richtext/org.eclipse.epf.richtext/src/org/eclipse/epf/richtext/actions/ClearContentAction.java
+++ b/extraplugins/epf-richtext/org.eclipse.epf.richtext/src/org/eclipse/epf/richtext/actions/ClearContentAction.java
@@ -24,7 +24,7 @@ import org.eclipse.epf.richtext.IRichText;
import org.eclipse.epf.richtext.RichTextCommand;
import org.eclipse.epf.richtext.RichTextImages;
import org.eclipse.epf.richtext.RichTextPlugin;
-import org.eclipse.epf.richtext.RichTextResources;
+import org.eclipse.epf.richtext.Messages;
import org.eclipse.jface.action.IAction;
/**
@@ -42,7 +42,7 @@ public class ClearContentAction extends RichTextAction {
super(richText, IAction.AS_PUSH_BUTTON);
setImageDescriptor(RichTextImages.IMG_DESC_CLEAR_CONTENT);
setDisabledImageDescriptor(RichTextImages.DISABLED_IMG_DESC_CLEAR_CONTENT);
- setToolTipText(RichTextResources.clearContentAction_toolTipText);
+ setToolTipText(Messages.clearContentAction_toolTipText);
}
/**
@@ -54,8 +54,8 @@ public class ClearContentAction extends RichTextAction {
public void execute(IRichText richText) {
if (richText != null) {
if (RichTextPlugin.getDefault().getMsgDialog().displayPrompt(
- RichTextResources.clearContentDialog_title,
- RichTextResources.clearContentDialog_text)) {
+ Messages.clearContentDialog_title,
+ Messages.clearContentDialog_text)) {
richText.executeCommand(RichTextCommand.CLEAR_CONTENT);
}
}
diff --git a/extraplugins/epf-richtext/org.eclipse.epf.richtext/src/org/eclipse/epf/richtext/actions/CopyAction.java b/extraplugins/epf-richtext/org.eclipse.epf.richtext/src/org/eclipse/epf/richtext/actions/CopyAction.java
index e8796f6e854..47c089873a6 100644
--- a/extraplugins/epf-richtext/org.eclipse.epf.richtext/src/org/eclipse/epf/richtext/actions/CopyAction.java
+++ b/extraplugins/epf-richtext/org.eclipse.epf.richtext/src/org/eclipse/epf/richtext/actions/CopyAction.java
@@ -24,7 +24,7 @@ import org.eclipse.epf.richtext.IRichText;
import org.eclipse.epf.richtext.RichTextCommand;
import org.eclipse.epf.richtext.RichTextEditor;
import org.eclipse.epf.richtext.RichTextImages;
-import org.eclipse.epf.richtext.RichTextResources;
+import org.eclipse.epf.richtext.Messages;
import org.eclipse.jface.action.IAction;
import org.eclipse.swt.custom.StyledText;
@@ -43,7 +43,7 @@ public class CopyAction extends RichTextAction {
super(richText, IAction.AS_PUSH_BUTTON);
setImageDescriptor(RichTextImages.IMG_DESC_COPY);
setDisabledImageDescriptor(RichTextImages.DISABLED_IMG_DESC_COPY);
- setToolTipText(RichTextResources.copyAction_toolTipText);
+ setToolTipText(Messages.copyAction_toolTipText);
}
/**
diff --git a/extraplugins/epf-richtext/org.eclipse.epf.richtext/src/org/eclipse/epf/richtext/actions/CutAction.java b/extraplugins/epf-richtext/org.eclipse.epf.richtext/src/org/eclipse/epf/richtext/actions/CutAction.java
index 4e03e253654..cfabe5b5a86 100644
--- a/extraplugins/epf-richtext/org.eclipse.epf.richtext/src/org/eclipse/epf/richtext/actions/CutAction.java
+++ b/extraplugins/epf-richtext/org.eclipse.epf.richtext/src/org/eclipse/epf/richtext/actions/CutAction.java
@@ -24,7 +24,7 @@ import org.eclipse.epf.richtext.IRichText;
import org.eclipse.epf.richtext.RichTextCommand;
import org.eclipse.epf.richtext.RichTextEditor;
import org.eclipse.epf.richtext.RichTextImages;
-import org.eclipse.epf.richtext.RichTextResources;
+import org.eclipse.epf.richtext.Messages;
import org.eclipse.jface.action.IAction;
import org.eclipse.swt.custom.StyledText;
@@ -43,7 +43,7 @@ public class CutAction extends RichTextAction {
super(richText, IAction.AS_PUSH_BUTTON);
setImageDescriptor(RichTextImages.IMG_DESC_CUT);
setDisabledImageDescriptor(RichTextImages.DISABLED_IMG_DESC_CUT);
- setToolTipText(RichTextResources.cutAction_toolTipText);
+ setToolTipText(Messages.cutAction_toolTipText);
}
/**
diff --git a/extraplugins/epf-richtext/org.eclipse.epf.richtext/src/org/eclipse/epf/richtext/actions/FindReplaceAction.java b/extraplugins/epf-richtext/org.eclipse.epf.richtext/src/org/eclipse/epf/richtext/actions/FindReplaceAction.java
index 267d7b97465..d4c0511b379 100644
--- a/extraplugins/epf-richtext/org.eclipse.epf.richtext/src/org/eclipse/epf/richtext/actions/FindReplaceAction.java
+++ b/extraplugins/epf-richtext/org.eclipse.epf.richtext/src/org/eclipse/epf/richtext/actions/FindReplaceAction.java
@@ -26,7 +26,7 @@ import org.eclipse.epf.richtext.RichTextCommand;
import org.eclipse.epf.richtext.RichTextEditor;
import org.eclipse.epf.richtext.RichTextImages;
import org.eclipse.epf.richtext.RichTextPlugin;
-import org.eclipse.epf.richtext.RichTextResources;
+import org.eclipse.epf.richtext.Messages;
import org.eclipse.epf.richtext.dialogs.FindReplaceDialog;
import org.eclipse.jface.action.IAction;
import org.eclipse.swt.custom.StyledText;
@@ -100,7 +100,7 @@ public class FindReplaceAction extends RichTextAction {
super(richText, IAction.AS_PUSH_BUTTON);
setImageDescriptor(RichTextImages.IMG_DESC_FIND_REPLACE);
setDisabledImageDescriptor(RichTextImages.DISABLED_IMG_DESC_FIND_REPLACE);
- setToolTipText(RichTextResources.findReplaceAction_toolTipText);
+ setToolTipText(Messages.findReplaceAction_toolTipText);
}
/**
diff --git a/extraplugins/epf-richtext/org.eclipse.epf.richtext/src/org/eclipse/epf/richtext/actions/FontNameAction.java b/extraplugins/epf-richtext/org.eclipse.epf.richtext/src/org/eclipse/epf/richtext/actions/FontNameAction.java
index 94de2201f6a..87b7702bc71 100644
--- a/extraplugins/epf-richtext/org.eclipse.epf.richtext/src/org/eclipse/epf/richtext/actions/FontNameAction.java
+++ b/extraplugins/epf-richtext/org.eclipse.epf.richtext/src/org/eclipse/epf/richtext/actions/FontNameAction.java
@@ -28,7 +28,7 @@ import java.util.TreeSet;
import org.eclipse.epf.richtext.IRichText;
import org.eclipse.epf.richtext.RichTextCommand;
-import org.eclipse.epf.richtext.RichTextResources;
+import org.eclipse.epf.richtext.Messages;
import org.eclipse.swt.SWT;
import org.eclipse.swt.graphics.FontData;
import org.eclipse.swt.widgets.Display;
@@ -49,7 +49,7 @@ public class FontNameAction extends RichTextComboAction {
*/
public FontNameAction(final IRichText richText) {
super(richText);
- setToolTipText(RichTextResources.fontNameAction_toolTipText);
+ setToolTipText(Messages.fontNameAction_toolTipText);
// get system fonts
SortedSet<String> fontSet = new TreeSet<String>();
FontData[] fonts = Display.getCurrent().getFontList(null, true);
@@ -57,7 +57,7 @@ public class FontNameAction extends RichTextComboAction {
fontSet.add(((FontData) fonts[i]).getName());
}
input = new ArrayList<String>();
- input.add(RichTextResources.fontNameAction_DefaultFontName);
+ input.add(Messages.fontNameAction_DefaultFontName);
for (Iterator<String> iter = fontSet.iterator(); iter.hasNext();) {
String fontName = iter.next();
input.add(fontName);
@@ -68,11 +68,11 @@ public class FontNameAction extends RichTextComboAction {
public void handleEvent(Event event) {
String fontName = richText.getSelected().getFontName();
if (fontName
- .equals(RichTextResources.fontNameAction_CSS_Default)
+ .equals(Messages.fontNameAction_CSS_Default)
|| fontName
- .equals(RichTextResources.fontNameAction_CSS_Default_Mozilla)
+ .equals(Messages.fontNameAction_CSS_Default_Mozilla)
|| fontName.equals("default")) { //$NON-NLS-1$
- fontName = RichTextResources.fontNameAction_DefaultFontName;
+ fontName = Messages.fontNameAction_DefaultFontName;
}
int index = findFontNameInItems(fontName);
setNotifyListeners(false);
@@ -105,7 +105,7 @@ public class FontNameAction extends RichTextComboAction {
public void execute(IRichText richText) {
if (richText != null) {
String selected = getCComboSelection();
- if (selected.equals(RichTextResources.fontNameAction_DefaultFontName)) {
+ if (selected.equals(Messages.fontNameAction_DefaultFontName)) {
richText.executeCommand(RichTextCommand.SET_FONT_NAME, ""); //$NON-NLS-1$
} else {
richText.executeCommand(RichTextCommand.SET_FONT_NAME, selected);
diff --git a/extraplugins/epf-richtext/org.eclipse.epf.richtext/src/org/eclipse/epf/richtext/actions/FontSizeAction.java b/extraplugins/epf-richtext/org.eclipse.epf.richtext/src/org/eclipse/epf/richtext/actions/FontSizeAction.java
index f0629c017f4..d94b1ac54de 100644
--- a/extraplugins/epf-richtext/org.eclipse.epf.richtext/src/org/eclipse/epf/richtext/actions/FontSizeAction.java
+++ b/extraplugins/epf-richtext/org.eclipse.epf.richtext/src/org/eclipse/epf/richtext/actions/FontSizeAction.java
@@ -25,7 +25,7 @@ import java.util.Collection;
import org.eclipse.epf.richtext.IRichText;
import org.eclipse.epf.richtext.RichTextCommand;
-import org.eclipse.epf.richtext.RichTextResources;
+import org.eclipse.epf.richtext.Messages;
import org.eclipse.swt.SWT;
import org.eclipse.swt.widgets.Event;
import org.eclipse.swt.widgets.Listener;
@@ -44,7 +44,7 @@ public class FontSizeAction extends RichTextComboAction {
*/
public FontSizeAction(final IRichText richText) {
super(richText);
- setToolTipText(RichTextResources.fontSizeAction_toolTipText);
+ setToolTipText(Messages.fontSizeAction_toolTipText);
input = new ArrayList<String>();
input.add("Default"); //$NON-NLS-1$
diff --git a/extraplugins/epf-richtext/org.eclipse.epf.richtext/src/org/eclipse/epf/richtext/actions/FontStyleAction.java b/extraplugins/epf-richtext/org.eclipse.epf.richtext/src/org/eclipse/epf/richtext/actions/FontStyleAction.java
index b0ed90fdc55..c91e98f60c6 100644
--- a/extraplugins/epf-richtext/org.eclipse.epf.richtext/src/org/eclipse/epf/richtext/actions/FontStyleAction.java
+++ b/extraplugins/epf-richtext/org.eclipse.epf.richtext/src/org/eclipse/epf/richtext/actions/FontStyleAction.java
@@ -26,7 +26,7 @@ import java.util.List;
import org.eclipse.epf.richtext.IRichText;
import org.eclipse.epf.richtext.RichTextCommand;
-import org.eclipse.epf.richtext.RichTextResources;
+import org.eclipse.epf.richtext.Messages;
import org.eclipse.epf.richtext.html.FontStyle;
import org.eclipse.swt.SWT;
import org.eclipse.swt.widgets.Event;
@@ -46,7 +46,7 @@ public class FontStyleAction extends RichTextComboAction {
*/
public FontStyleAction(final IRichText richText) {
super(richText);
- setToolTipText(RichTextResources.fontStyleAction_toolTipText);
+ setToolTipText(Messages.fontStyleAction_toolTipText);
input = new ArrayList<String>();
input.add(FontStyle.NORMAL.getName());
diff --git a/extraplugins/epf-richtext/org.eclipse.epf.richtext/src/org/eclipse/epf/richtext/actions/IndentAction.java b/extraplugins/epf-richtext/org.eclipse.epf.richtext/src/org/eclipse/epf/richtext/actions/IndentAction.java
index 7bd985a7b13..471e3cd2981 100644
--- a/extraplugins/epf-richtext/org.eclipse.epf.richtext/src/org/eclipse/epf/richtext/actions/IndentAction.java
+++ b/extraplugins/epf-richtext/org.eclipse.epf.richtext/src/org/eclipse/epf/richtext/actions/IndentAction.java
@@ -23,7 +23,7 @@ package org.eclipse.epf.richtext.actions;
import org.eclipse.epf.richtext.IRichText;
import org.eclipse.epf.richtext.RichTextCommand;
import org.eclipse.epf.richtext.RichTextImages;
-import org.eclipse.epf.richtext.RichTextResources;
+import org.eclipse.epf.richtext.Messages;
import org.eclipse.jface.action.IAction;
/**
@@ -41,7 +41,7 @@ public class IndentAction extends RichTextAction {
super(richText, IAction.AS_PUSH_BUTTON);
setImageDescriptor(RichTextImages.IMG_DESC_INDENT);
setDisabledImageDescriptor(RichTextImages.DISABLED_IMG_DESC_INDENT);
- setToolTipText(RichTextResources.indentAction_toolTipText);
+ setToolTipText(Messages.indentAction_toolTipText);
}
/**
diff --git a/extraplugins/epf-richtext/org.eclipse.epf.richtext/src/org/eclipse/epf/richtext/actions/ItalicAction.java b/extraplugins/epf-richtext/org.eclipse.epf.richtext/src/org/eclipse/epf/richtext/actions/ItalicAction.java
index aae6fc1fe6d..14eb9163047 100644
--- a/extraplugins/epf-richtext/org.eclipse.epf.richtext/src/org/eclipse/epf/richtext/actions/ItalicAction.java
+++ b/extraplugins/epf-richtext/org.eclipse.epf.richtext/src/org/eclipse/epf/richtext/actions/ItalicAction.java
@@ -23,7 +23,7 @@ package org.eclipse.epf.richtext.actions;
import org.eclipse.epf.richtext.IRichText;
import org.eclipse.epf.richtext.RichTextCommand;
import org.eclipse.epf.richtext.RichTextImages;
-import org.eclipse.epf.richtext.RichTextResources;
+import org.eclipse.epf.richtext.Messages;
import org.eclipse.jface.action.IAction;
import org.eclipse.swt.SWT;
import org.eclipse.swt.widgets.Event;
@@ -44,7 +44,7 @@ public class ItalicAction extends RichTextAction {
public ItalicAction(final IRichText richText) {
super(richText, IAction.AS_CHECK_BOX);
setImageDescriptor(RichTextImages.IMG_DESC_ITALIC);
- setToolTipText(RichTextResources.italicAction_toolTipText);
+ setToolTipText(Messages.italicAction_toolTipText);
// add listener
richText.addListener(SWT.SELECTED, new Listener() {
public void handleEvent(Event event) {
diff --git a/extraplugins/epf-richtext/org.eclipse.epf.richtext/src/org/eclipse/epf/richtext/actions/JustifyCenterAction.java b/extraplugins/epf-richtext/org.eclipse.epf.richtext/src/org/eclipse/epf/richtext/actions/JustifyCenterAction.java
index 74b6b86fbe6..463ff46b749 100644
--- a/extraplugins/epf-richtext/org.eclipse.epf.richtext/src/org/eclipse/epf/richtext/actions/JustifyCenterAction.java
+++ b/extraplugins/epf-richtext/org.eclipse.epf.richtext/src/org/eclipse/epf/richtext/actions/JustifyCenterAction.java
@@ -23,7 +23,7 @@ package org.eclipse.epf.richtext.actions;
import org.eclipse.epf.richtext.IRichText;
import org.eclipse.epf.richtext.RichTextCommand;
import org.eclipse.epf.richtext.RichTextImages;
-import org.eclipse.epf.richtext.RichTextResources;
+import org.eclipse.epf.richtext.Messages;
import org.eclipse.jface.action.IAction;
/**
@@ -40,7 +40,7 @@ public class JustifyCenterAction extends RichTextAction {
public JustifyCenterAction(IRichText richText) {
super(richText, IAction.AS_PUSH_BUTTON);
setImageDescriptor(RichTextImages.IMG_DESC_JUSTIFY_CENTER);
- setToolTipText(RichTextResources.justifyCenterAction_toolTipText);
+ setToolTipText(Messages.justifyCenterAction_toolTipText);
}
/**
diff --git a/extraplugins/epf-richtext/org.eclipse.epf.richtext/src/org/eclipse/epf/richtext/actions/JustifyFullAction.java b/extraplugins/epf-richtext/org.eclipse.epf.richtext/src/org/eclipse/epf/richtext/actions/JustifyFullAction.java
index ca1a4e06d4f..dff9556ffcc 100644
--- a/extraplugins/epf-richtext/org.eclipse.epf.richtext/src/org/eclipse/epf/richtext/actions/JustifyFullAction.java
+++ b/extraplugins/epf-richtext/org.eclipse.epf.richtext/src/org/eclipse/epf/richtext/actions/JustifyFullAction.java
@@ -23,7 +23,7 @@ package org.eclipse.epf.richtext.actions;
import org.eclipse.epf.richtext.IRichText;
import org.eclipse.epf.richtext.RichTextCommand;
import org.eclipse.epf.richtext.RichTextImages;
-import org.eclipse.epf.richtext.RichTextResources;
+import org.eclipse.epf.richtext.Messages;
import org.eclipse.jface.action.IAction;
/**
@@ -40,7 +40,7 @@ public class JustifyFullAction extends RichTextAction {
public JustifyFullAction(IRichText richText) {
super(richText, IAction.AS_PUSH_BUTTON);
setImageDescriptor(RichTextImages.IMG_DESC_JUSTIFY_FULL);
- setToolTipText(RichTextResources.justifyFullAction_toolTipText);
+ setToolTipText(Messages.justifyFullAction_toolTipText);
}
/**
diff --git a/extraplugins/epf-richtext/org.eclipse.epf.richtext/src/org/eclipse/epf/richtext/actions/JustifyLeftAction.java b/extraplugins/epf-richtext/org.eclipse.epf.richtext/src/org/eclipse/epf/richtext/actions/JustifyLeftAction.java
index 7da611fa759..13ffa46db29 100644
--- a/extraplugins/epf-richtext/org.eclipse.epf.richtext/src/org/eclipse/epf/richtext/actions/JustifyLeftAction.java
+++ b/extraplugins/epf-richtext/org.eclipse.epf.richtext/src/org/eclipse/epf/richtext/actions/JustifyLeftAction.java
@@ -23,7 +23,7 @@ package org.eclipse.epf.richtext.actions;
import org.eclipse.epf.richtext.IRichText;
import org.eclipse.epf.richtext.RichTextCommand;
import org.eclipse.epf.richtext.RichTextImages;
-import org.eclipse.epf.richtext.RichTextResources;
+import org.eclipse.epf.richtext.Messages;
import org.eclipse.jface.action.IAction;
/**
@@ -40,7 +40,7 @@ public class JustifyLeftAction extends RichTextAction {
public JustifyLeftAction(IRichText richText) {
super(richText, IAction.AS_PUSH_BUTTON);
setImageDescriptor(RichTextImages.IMG_DESC_JUSTIFY_LEFT);
- setToolTipText(RichTextResources.justifyLeftAction_toolTipText);
+ setToolTipText(Messages.justifyLeftAction_toolTipText);
}
/**
diff --git a/extraplugins/epf-richtext/org.eclipse.epf.richtext/src/org/eclipse/epf/richtext/actions/JustifyRightAction.java b/extraplugins/epf-richtext/org.eclipse.epf.richtext/src/org/eclipse/epf/richtext/actions/JustifyRightAction.java
index e53aba5e31e..163c0838cc6 100644
--- a/extraplugins/epf-richtext/org.eclipse.epf.richtext/src/org/eclipse/epf/richtext/actions/JustifyRightAction.java
+++ b/extraplugins/epf-richtext/org.eclipse.epf.richtext/src/org/eclipse/epf/richtext/actions/JustifyRightAction.java
@@ -23,7 +23,7 @@ package org.eclipse.epf.richtext.actions;
import org.eclipse.epf.richtext.IRichText;
import org.eclipse.epf.richtext.RichTextCommand;
import org.eclipse.epf.richtext.RichTextImages;
-import org.eclipse.epf.richtext.RichTextResources;
+import org.eclipse.epf.richtext.Messages;
import org.eclipse.jface.action.IAction;
/**
@@ -40,7 +40,7 @@ public class JustifyRightAction extends RichTextAction {
public JustifyRightAction(IRichText richText) {
super(richText, IAction.AS_PUSH_BUTTON);
setImageDescriptor(RichTextImages.IMG_DESC_JUSTIFY_RIGHT);
- setToolTipText(RichTextResources.justifyRightAction_toolTipText);
+ setToolTipText(Messages.justifyRightAction_toolTipText);
}
/**
diff --git a/extraplugins/epf-richtext/org.eclipse.epf.richtext/src/org/eclipse/epf/richtext/actions/OutdentAction.java b/extraplugins/epf-richtext/org.eclipse.epf.richtext/src/org/eclipse/epf/richtext/actions/OutdentAction.java
index a2c642a06c4..ec745f269f0 100644
--- a/extraplugins/epf-richtext/org.eclipse.epf.richtext/src/org/eclipse/epf/richtext/actions/OutdentAction.java
+++ b/extraplugins/epf-richtext/org.eclipse.epf.richtext/src/org/eclipse/epf/richtext/actions/OutdentAction.java
@@ -23,7 +23,7 @@ package org.eclipse.epf.richtext.actions;
import org.eclipse.epf.richtext.IRichText;
import org.eclipse.epf.richtext.RichTextCommand;
import org.eclipse.epf.richtext.RichTextImages;
-import org.eclipse.epf.richtext.RichTextResources;
+import org.eclipse.epf.richtext.Messages;
import org.eclipse.jface.action.IAction;
/**
@@ -41,7 +41,7 @@ public class OutdentAction extends RichTextAction {
super(richText, IAction.AS_PUSH_BUTTON);
setImageDescriptor(RichTextImages.IMG_DESC_OUTDENT);
setDisabledImageDescriptor(RichTextImages.DISABLED_IMG_DESC_OUTDENT);
- setToolTipText(RichTextResources.outdentAction_toolTipText);
+ setToolTipText(Messages.outdentAction_toolTipText);
}
/**
diff --git a/extraplugins/epf-richtext/org.eclipse.epf.richtext/src/org/eclipse/epf/richtext/actions/PasteAction.java b/extraplugins/epf-richtext/org.eclipse.epf.richtext/src/org/eclipse/epf/richtext/actions/PasteAction.java
index 7affed86025..2591e480702 100644
--- a/extraplugins/epf-richtext/org.eclipse.epf.richtext/src/org/eclipse/epf/richtext/actions/PasteAction.java
+++ b/extraplugins/epf-richtext/org.eclipse.epf.richtext/src/org/eclipse/epf/richtext/actions/PasteAction.java
@@ -35,7 +35,7 @@ import org.eclipse.epf.richtext.RichTextCommand;
import org.eclipse.epf.richtext.RichTextEditor;
import org.eclipse.epf.richtext.RichTextImages;
import org.eclipse.epf.richtext.RichTextPlugin;
-import org.eclipse.epf.richtext.RichTextResources;
+import org.eclipse.epf.richtext.Messages;
import org.eclipse.jface.action.IAction;
import org.eclipse.swt.custom.StyledText;
import org.eclipse.swt.dnd.Clipboard;
@@ -77,7 +77,7 @@ public class PasteAction extends RichTextAction {
super(richText, IAction.AS_PUSH_BUTTON);
setImageDescriptor(RichTextImages.IMG_DESC_PASTE);
setDisabledImageDescriptor(RichTextImages.DISABLED_IMG_DESC_PASTE);
- setToolTipText(RichTextResources.pasteAction_toolTipText);
+ setToolTipText(Messages.pasteAction_toolTipText);
logger = RichTextPlugin.getDefault().getLogger();
}
diff --git a/extraplugins/epf-richtext/org.eclipse.epf.richtext/src/org/eclipse/epf/richtext/actions/PastePlainTextAction.java b/extraplugins/epf-richtext/org.eclipse.epf.richtext/src/org/eclipse/epf/richtext/actions/PastePlainTextAction.java
index 3f797dc66c3..11132b323eb 100644
--- a/extraplugins/epf-richtext/org.eclipse.epf.richtext/src/org/eclipse/epf/richtext/actions/PastePlainTextAction.java
+++ b/extraplugins/epf-richtext/org.eclipse.epf.richtext/src/org/eclipse/epf/richtext/actions/PastePlainTextAction.java
@@ -15,7 +15,7 @@ import org.eclipse.epf.richtext.IRichText;
import org.eclipse.epf.richtext.RichTextCommand;
import org.eclipse.epf.richtext.RichTextEditor;
import org.eclipse.epf.richtext.RichTextImages;
-import org.eclipse.epf.richtext.RichTextResources;
+import org.eclipse.epf.richtext.Messages;
import org.eclipse.jface.action.IAction;
import org.eclipse.swt.dnd.Clipboard;
import org.eclipse.swt.dnd.TextTransfer;
@@ -30,7 +30,7 @@ public class PastePlainTextAction extends RichTextAction {
super(richText, IAction.AS_PUSH_BUTTON);
setImageDescriptor(RichTextImages.IMG_DESC_PASTE_PLAIN_TEXT);
setDisabledImageDescriptor(RichTextImages.DISABLED_IMG_DESC_PASTE_PLAIN_TEXT);
- setToolTipText(RichTextResources.pastePlainTextAction_toolTipText);
+ setToolTipText(Messages.pastePlainTextAction_toolTipText);
setEnabled(true);
}
diff --git a/extraplugins/epf-richtext/org.eclipse.epf.richtext/src/org/eclipse/epf/richtext/actions/SubscriptAction.java b/extraplugins/epf-richtext/org.eclipse.epf.richtext/src/org/eclipse/epf/richtext/actions/SubscriptAction.java
index 4dd42bf05c2..9b875a4aadc 100644
--- a/extraplugins/epf-richtext/org.eclipse.epf.richtext/src/org/eclipse/epf/richtext/actions/SubscriptAction.java
+++ b/extraplugins/epf-richtext/org.eclipse.epf.richtext/src/org/eclipse/epf/richtext/actions/SubscriptAction.java
@@ -23,7 +23,7 @@ package org.eclipse.epf.richtext.actions;
import org.eclipse.epf.richtext.IRichText;
import org.eclipse.epf.richtext.RichTextCommand;
import org.eclipse.epf.richtext.RichTextImages;
-import org.eclipse.epf.richtext.RichTextResources;
+import org.eclipse.epf.richtext.Messages;
import org.eclipse.jface.action.IAction;
import org.eclipse.swt.SWT;
import org.eclipse.swt.widgets.Event;
@@ -45,7 +45,7 @@ public class SubscriptAction extends RichTextAction {
super(richText, IAction.AS_CHECK_BOX);
setImageDescriptor(RichTextImages.IMG_DESC_SUBSCRIPT);
setDisabledImageDescriptor(RichTextImages.DISABLED_IMG_DESC_SUBSCRIPT);
- setToolTipText(RichTextResources.subscriptAction_toolTipText);
+ setToolTipText(Messages.subscriptAction_toolTipText);
// add listener
richText.addListener(SWT.SELECTED, new Listener() {
public void handleEvent(Event event) {
diff --git a/extraplugins/epf-richtext/org.eclipse.epf.richtext/src/org/eclipse/epf/richtext/actions/SuperscriptAction.java b/extraplugins/epf-richtext/org.eclipse.epf.richtext/src/org/eclipse/epf/richtext/actions/SuperscriptAction.java
index d5a1a294c3a..f9a35be451e 100644
--- a/extraplugins/epf-richtext/org.eclipse.epf.richtext/src/org/eclipse/epf/richtext/actions/SuperscriptAction.java
+++ b/extraplugins/epf-richtext/org.eclipse.epf.richtext/src/org/eclipse/epf/richtext/actions/SuperscriptAction.java
@@ -23,7 +23,7 @@ package org.eclipse.epf.richtext.actions;
import org.eclipse.epf.richtext.IRichText;
import org.eclipse.epf.richtext.RichTextCommand;
import org.eclipse.epf.richtext.RichTextImages;
-import org.eclipse.epf.richtext.RichTextResources;
+import org.eclipse.epf.richtext.Messages;
import org.eclipse.jface.action.IAction;
import org.eclipse.swt.SWT;
import org.eclipse.swt.widgets.Event;
@@ -46,7 +46,7 @@ public class SuperscriptAction extends RichTextAction {
super(richText, IAction.AS_CHECK_BOX);
setImageDescriptor(RichTextImages.IMG_DESC_SUPERSCRIPT);
setDisabledImageDescriptor(RichTextImages.DISABLED_IMG_DESC_SUPERSCRIPT);
- setToolTipText(RichTextResources.superscriptAction_toolTipText);
+ setToolTipText(Messages.superscriptAction_toolTipText);
// add listener
richText.addListener(SWT.SELECTED, new Listener() {
public void handleEvent(Event event) {
diff --git a/extraplugins/epf-richtext/org.eclipse.epf.richtext/src/org/eclipse/epf/richtext/actions/TidyActionGroup.java b/extraplugins/epf-richtext/org.eclipse.epf.richtext/src/org/eclipse/epf/richtext/actions/TidyActionGroup.java
index 0624bbdf76f..80e9c6ef15c 100644
--- a/extraplugins/epf-richtext/org.eclipse.epf.richtext/src/org/eclipse/epf/richtext/actions/TidyActionGroup.java
+++ b/extraplugins/epf-richtext/org.eclipse.epf.richtext/src/org/eclipse/epf/richtext/actions/TidyActionGroup.java
@@ -22,7 +22,7 @@ package org.eclipse.epf.richtext.actions;
import org.eclipse.epf.richtext.IRichText;
import org.eclipse.epf.richtext.RichTextImages;
-import org.eclipse.epf.richtext.RichTextResources;
+import org.eclipse.epf.richtext.Messages;
import org.eclipse.jface.action.IAction;
/**
@@ -43,7 +43,7 @@ public class TidyActionGroup extends RichTextAction {
setImageDescriptor(RichTextImages.IMG_DESC_TIDY);
// TODO need image
// setDisabledImageDescriptor(RichTextImages.DISABLED_IMG_DESC_PASTE);
- setToolTipText(RichTextResources.tidy_clean_text);
+ setToolTipText(Messages.tidy_clean_text);
createActions();
setMenuCreator(menuCreator);
@@ -51,14 +51,14 @@ public class TidyActionGroup extends RichTextAction {
private void createActions() {
tidyActionDefault = new TidyAction(richText, true, false, false);
- tidyActionDefault.setText(RichTextResources.tidy_clean_text);
- tidyActionDefault.setToolTipText(RichTextResources.tidy_clean_toolTipText);
+ tidyActionDefault.setText(Messages.tidy_clean_text);
+ tidyActionDefault.setToolTipText(Messages.tidy_clean_toolTipText);
tidyActionCleanMS = new TidyAction(richText, true, true, false);
- tidyActionCleanMS.setText(RichTextResources.tidy_cleaner_text);
- tidyActionCleanMS.setToolTipText(RichTextResources.tidy_cleaner_toolTipText);
+ tidyActionCleanMS.setText(Messages.tidy_cleaner_text);
+ tidyActionCleanMS.setToolTipText(Messages.tidy_cleaner_toolTipText);
tidyActionCleanWord2000 = new TidyAction(richText, true, true, true);
- tidyActionCleanWord2000.setText(RichTextResources.tidy_cleanest_text);
- tidyActionCleanWord2000.setToolTipText(RichTextResources.tidy_cleanest_toolTipText);
+ tidyActionCleanWord2000.setText(Messages.tidy_cleanest_text);
+ tidyActionCleanWord2000.setToolTipText(Messages.tidy_cleanest_toolTipText);
addActionToMenu(tidyActionDefault);
addActionToMenu(tidyActionCleanMS);
addActionToMenu(tidyActionCleanWord2000);
diff --git a/extraplugins/epf-richtext/org.eclipse.epf.richtext/src/org/eclipse/epf/richtext/actions/UnderlineAction.java b/extraplugins/epf-richtext/org.eclipse.epf.richtext/src/org/eclipse/epf/richtext/actions/UnderlineAction.java
index 27825aca080..8be4530a236 100644
--- a/extraplugins/epf-richtext/org.eclipse.epf.richtext/src/org/eclipse/epf/richtext/actions/UnderlineAction.java
+++ b/extraplugins/epf-richtext/org.eclipse.epf.richtext/src/org/eclipse/epf/richtext/actions/UnderlineAction.java
@@ -23,7 +23,7 @@ package org.eclipse.epf.richtext.actions;
import org.eclipse.epf.richtext.IRichText;
import org.eclipse.epf.richtext.RichTextCommand;
import org.eclipse.epf.richtext.RichTextImages;
-import org.eclipse.epf.richtext.RichTextResources;
+import org.eclipse.epf.richtext.Messages;
import org.eclipse.jface.action.IAction;
import org.eclipse.swt.SWT;
import org.eclipse.swt.widgets.Event;
@@ -45,7 +45,7 @@ public class UnderlineAction extends RichTextAction {
super(richText, IAction.AS_CHECK_BOX);
setImageDescriptor(RichTextImages.IMG_DESC_UNDERLINE);
setDisabledImageDescriptor(RichTextImages.DISABLED_IMG_DESC_UNDERLINE);
- setToolTipText(RichTextResources.underlineAction_toolTipText);
+ setToolTipText(Messages.underlineAction_toolTipText);
// add listener
richText.addListener(SWT.SELECTED, new Listener() {
public void handleEvent(Event event) {
diff --git a/extraplugins/epf-richtext/org.eclipse.epf.richtext/src/org/eclipse/epf/richtext/dialogs/AddCodeDialog.java b/extraplugins/epf-richtext/org.eclipse.epf.richtext/src/org/eclipse/epf/richtext/dialogs/AddCodeDialog.java
index 982efb716c3..740dce392c6 100644
--- a/extraplugins/epf-richtext/org.eclipse.epf.richtext/src/org/eclipse/epf/richtext/dialogs/AddCodeDialog.java
+++ b/extraplugins/epf-richtext/org.eclipse.epf.richtext/src/org/eclipse/epf/richtext/dialogs/AddCodeDialog.java
@@ -9,7 +9,7 @@
package org.eclipse.epf.richtext.dialogs;
-import org.eclipse.epf.richtext.RichTextResources;
+import org.eclipse.epf.richtext.Messages;
import org.eclipse.swt.SWT;
import org.eclipse.swt.events.ModifyEvent;
import org.eclipse.swt.events.ModifyListener;
@@ -32,7 +32,7 @@ public class AddCodeDialog extends BaseDialog {
Composite composite = (Composite) super.createDialogArea(parent);
Label label = new Label(composite, SWT.NONE);
- label.setText(RichTextResources.addCodeDialog_Msg);
+ label.setText(Messages.addCodeDialog_Msg);
{
GridData gd = new GridData(GridData.FILL_HORIZONTAL);
gd.horizontalSpan = 2;
@@ -53,7 +53,7 @@ public class AddCodeDialog extends BaseDialog {
}
});
- super.getShell().setText(RichTextResources.addCodeDialog_title);
+ super.getShell().setText(Messages.addCodeDialog_title);
return composite;
}
diff --git a/extraplugins/epf-richtext/org.eclipse.epf.richtext/src/org/eclipse/epf/richtext/dialogs/AddImageDialog.java b/extraplugins/epf-richtext/org.eclipse.epf.richtext/src/org/eclipse/epf/richtext/dialogs/AddImageDialog.java
index 2d2ec28b782..0276b81160b 100644
--- a/extraplugins/epf-richtext/org.eclipse.epf.richtext/src/org/eclipse/epf/richtext/dialogs/AddImageDialog.java
+++ b/extraplugins/epf-richtext/org.eclipse.epf.richtext/src/org/eclipse/epf/richtext/dialogs/AddImageDialog.java
@@ -22,7 +22,7 @@ package org.eclipse.epf.richtext.dialogs;
import java.io.File;
-import org.eclipse.epf.richtext.RichTextResources;
+import org.eclipse.epf.richtext.Messages;
import org.eclipse.epf.richtext.html.Image;
import org.eclipse.swt.SWT;
import org.eclipse.swt.events.ModifyEvent;
@@ -100,7 +100,7 @@ public class AddImageDialog extends BaseDialog {
layout.numColumns = 3;
Label urlLabel = new Label(composite, SWT.NONE);
- urlLabel.setText(RichTextResources.urlLabel_text);
+ urlLabel.setText(Messages.urlLabel_text);
urlText = new Text(composite, SWT.BORDER);
GridData gridData = new GridData(GridData.FILL_HORIZONTAL);
gridData.widthHint = 300;
@@ -108,10 +108,10 @@ public class AddImageDialog extends BaseDialog {
urlText.addModifyListener(urlTextListener);
browseButton = new Button(composite, SWT.NONE);
- browseButton.setText(RichTextResources.browseButton_text);
+ browseButton.setText(Messages.browseButton_text);
browseButton.addSelectionListener(browseSelectionAdapter);
- super.getShell().setText(RichTextResources.addImageDialog_title);
+ super.getShell().setText(Messages.addImageDialog_title);
return composite;
}
diff --git a/extraplugins/epf-richtext/org.eclipse.epf.richtext/src/org/eclipse/epf/richtext/dialogs/AddLinkDialog.java b/extraplugins/epf-richtext/org.eclipse.epf.richtext/src/org/eclipse/epf/richtext/dialogs/AddLinkDialog.java
index 5a78077f933..bde34c6bc66 100644
--- a/extraplugins/epf-richtext/org.eclipse.epf.richtext/src/org/eclipse/epf/richtext/dialogs/AddLinkDialog.java
+++ b/extraplugins/epf-richtext/org.eclipse.epf.richtext/src/org/eclipse/epf/richtext/dialogs/AddLinkDialog.java
@@ -20,7 +20,7 @@
//------------------------------------------------------------------------------
package org.eclipse.epf.richtext.dialogs;
-import org.eclipse.epf.richtext.RichTextResources;
+import org.eclipse.epf.richtext.Messages;
import org.eclipse.epf.richtext.html.Link;
import org.eclipse.swt.SWT;
import org.eclipse.swt.events.ModifyEvent;
@@ -79,7 +79,7 @@ public class AddLinkDialog extends BaseDialog {
composite = (Composite) super.createDialogArea(parent);
urlLabel = new Label(composite, SWT.NONE);
- urlLabel.setText(RichTextResources.urlLabel_text);
+ urlLabel.setText(Messages.urlLabel_text);
urlText = new Text(composite, SWT.BORDER);
GridData gridData = new GridData(GridData.FILL_HORIZONTAL);
gridData.widthHint = 300;
@@ -87,13 +87,13 @@ public class AddLinkDialog extends BaseDialog {
urlText.addModifyListener(urlTextModifyListener);
urlDisplayNameLabel = new Label(composite, SWT.NONE);
- urlDisplayNameLabel.setText(RichTextResources.urlDisplayNameLabel_text);
+ urlDisplayNameLabel.setText(Messages.urlDisplayNameLabel_text);
urlDisplayNameText = new Text(composite, SWT.BORDER);
GridData gridData2 = new GridData(GridData.FILL_HORIZONTAL);
gridData2.widthHint = 300;
urlDisplayNameText.setLayoutData(gridData2);
- super.getShell().setText(RichTextResources.addLinkDialog_title);
+ super.getShell().setText(Messages.addLinkDialog_title);
return composite;
}
diff --git a/extraplugins/epf-richtext/org.eclipse.epf.richtext/src/org/eclipse/epf/richtext/dialogs/AddTableDialog.java b/extraplugins/epf-richtext/org.eclipse.epf.richtext/src/org/eclipse/epf/richtext/dialogs/AddTableDialog.java
index 27832d5527b..68b42c9def7 100644
--- a/extraplugins/epf-richtext/org.eclipse.epf.richtext/src/org/eclipse/epf/richtext/dialogs/AddTableDialog.java
+++ b/extraplugins/epf-richtext/org.eclipse.epf.richtext/src/org/eclipse/epf/richtext/dialogs/AddTableDialog.java
@@ -20,7 +20,7 @@
//------------------------------------------------------------------------------
package org.eclipse.epf.richtext.dialogs;
-import org.eclipse.epf.richtext.RichTextResources;
+import org.eclipse.epf.richtext.Messages;
import org.eclipse.epf.richtext.html.Table;
import org.eclipse.swt.SWT;
import org.eclipse.swt.events.ModifyEvent;
@@ -49,10 +49,10 @@ public class AddTableDialog extends BaseDialog {
private static final String DEFAULT_WIDTH = "85%"; //$NON-NLS-1$
private static final String[] TABLE_STYLE_LABELS = {
- RichTextResources.tableHeaderNone_text,
- RichTextResources.tableHeaderCols_text,
- RichTextResources.tableHeaderRows_text,
- RichTextResources.tableHeaderBoth_text, };
+ Messages.tableHeaderNone_text,
+ Messages.tableHeaderCols_text,
+ Messages.tableHeaderRows_text,
+ Messages.tableHeaderBoth_text, };
private Table table = new Table();
@@ -99,7 +99,7 @@ public class AddTableDialog extends BaseDialog {
Composite composite = (Composite) super.createDialogArea(parent);
Label rowsLabel = new Label(composite, SWT.NONE);
- rowsLabel.setText(RichTextResources.rowsLabel_text);
+ rowsLabel.setText(Messages.rowsLabel_text);
rowsText = new Text(composite, SWT.BORDER);
rowsText.setTextLimit(2);
@@ -112,7 +112,7 @@ public class AddTableDialog extends BaseDialog {
rowsText.addModifyListener(modifyListener);
Label colsLabel = new Label(composite, SWT.NONE);
- colsLabel.setText(RichTextResources.columnsLabel_text);
+ colsLabel.setText(Messages.columnsLabel_text);
colsText = new Text(composite, SWT.BORDER);
colsText.setTextLimit(2);
@@ -125,7 +125,7 @@ public class AddTableDialog extends BaseDialog {
colsText.addModifyListener(modifyListener);
Label widthLabel = new Label(composite, SWT.NONE);
- widthLabel.setText(RichTextResources.widthLabel_text);
+ widthLabel.setText(Messages.widthLabel_text);
widthText = new Text(composite, SWT.BORDER);
widthText.setText("" + DEFAULT_WIDTH); //$NON-NLS-1$
@@ -137,7 +137,7 @@ public class AddTableDialog extends BaseDialog {
widthText.addModifyListener(modifyListener);
Label headerTypeLabel = new Label(composite, SWT.NONE);
- headerTypeLabel.setText(RichTextResources.tableStyleLabel_text);
+ headerTypeLabel.setText(Messages.tableStyleLabel_text);
tableTypeCombo = new Combo(composite, SWT.BORDER | SWT.READ_ONLY);
tableTypeCombo.setLayoutData(new GridData(GridData.FILL_HORIZONTAL));
@@ -145,7 +145,7 @@ public class AddTableDialog extends BaseDialog {
tableTypeCombo.setText(TABLE_STYLE_LABELS[0]);
Label summaryLabel = new Label(composite, SWT.NONE);
- summaryLabel.setText(RichTextResources.summaryLabel_text);
+ summaryLabel.setText(Messages.summaryLabel_text);
summaryText = new Text(composite, SWT.BORDER);
{
GridData gridData = new GridData(GridData.FILL_HORIZONTAL
@@ -154,7 +154,7 @@ public class AddTableDialog extends BaseDialog {
}
Label captionLabel = new Label(composite, SWT.NONE);
- captionLabel.setText(RichTextResources.captionLabel_text);
+ captionLabel.setText(Messages.captionLabel_text);
captionText = new Text(composite, SWT.BORDER);
{
GridData gridData = new GridData(GridData.FILL_HORIZONTAL
@@ -162,7 +162,7 @@ public class AddTableDialog extends BaseDialog {
captionText.setLayoutData(gridData);
}
- super.getShell().setText(RichTextResources.addTableDialog_title);
+ super.getShell().setText(Messages.addTableDialog_title);
return composite;
}
diff --git a/extraplugins/epf-richtext/org.eclipse.epf.richtext/src/org/eclipse/epf/richtext/dialogs/FindReplaceDialog.java b/extraplugins/epf-richtext/org.eclipse.epf.richtext/src/org/eclipse/epf/richtext/dialogs/FindReplaceDialog.java
index c03c6d75e3e..d7249810f3b 100644
--- a/extraplugins/epf-richtext/org.eclipse.epf.richtext/src/org/eclipse/epf/richtext/dialogs/FindReplaceDialog.java
+++ b/extraplugins/epf-richtext/org.eclipse.epf.richtext/src/org/eclipse/epf/richtext/dialogs/FindReplaceDialog.java
@@ -20,7 +20,7 @@
//------------------------------------------------------------------------------
package org.eclipse.epf.richtext.dialogs;
-import org.eclipse.epf.richtext.RichTextResources;
+import org.eclipse.epf.richtext.Messages;
import org.eclipse.epf.richtext.actions.FindReplaceAction;
import org.eclipse.jface.dialogs.IDialogConstants;
import org.eclipse.swt.SWT;
@@ -103,7 +103,7 @@ public class FindReplaceDialog extends BaseDialog {
textComposite.setLayoutData(new GridData(GridData.FILL_HORIZONTAL));
Label findLabel = new Label(textComposite, SWT.NONE);
- findLabel.setText(RichTextResources.findLabel_text);
+ findLabel.setText(Messages.findLabel_text);
findText = new Text(textComposite, SWT.BORDER);
GridData gridData = new GridData(GridData.FILL_HORIZONTAL);
gridData.widthHint = 200;
@@ -122,7 +122,7 @@ public class FindReplaceDialog extends BaseDialog {
});
Label replaceLabel = new Label(textComposite, SWT.NONE);
- replaceLabel.setText(RichTextResources.replaceLabel_text);
+ replaceLabel.setText(Messages.replaceLabel_text);
replaceText = new Text(textComposite, SWT.BORDER);
replaceText.setLayoutData(gridData);
if (findOnly) {
@@ -147,31 +147,31 @@ public class FindReplaceDialog extends BaseDialog {
optionsComposite.setLayoutData(new GridData(GridData.FILL_HORIZONTAL));
Group directionGroup = new Group(optionsComposite, SWT.NONE);
- directionGroup.setText(RichTextResources.directionGroup_text);
+ directionGroup.setText(Messages.directionGroup_text);
directionGroup.setLayout(new GridLayout(1, false));
directionGroup.setLayoutData(new GridData(GridData.FILL_HORIZONTAL));
searchForwardRadioButton = new Button(directionGroup, SWT.RADIO);
searchForwardRadioButton
- .setText(RichTextResources.forwardRadioButton_text);
+ .setText(Messages.forwardRadioButton_text);
searchForwardRadioButton.setSelection(true);
searchBackwardRadioButton = new Button(directionGroup, SWT.RADIO);
searchBackwardRadioButton
- .setText(RichTextResources.backwardRadioButton_text);
+ .setText(Messages.backwardRadioButton_text);
Group optionsGroup = new Group(optionsComposite, SWT.NONE);
- optionsGroup.setText(RichTextResources.optionsGroup_text);
+ optionsGroup.setText(Messages.optionsGroup_text);
optionsGroup.setLayout(new GridLayout(1, false));
optionsGroup.setLayoutData(new GridData(GridData.FILL_HORIZONTAL));
caseSensitiveCheckbox = new Button(optionsGroup, SWT.CHECK);
caseSensitiveCheckbox
- .setText(RichTextResources.caseSensitiveCheckbox_text);
+ .setText(Messages.caseSensitiveCheckbox_text);
wholeWordCheckbox = new Button(optionsGroup, SWT.CHECK);
- wholeWordCheckbox.setText(RichTextResources.wholeWordCheckbox_text);
+ wholeWordCheckbox.setText(Messages.wholeWordCheckbox_text);
statusLabel = new Label(composite, SWT.NONE);
statusLabel.setLayoutData(new GridData(GridData.FILL_HORIZONTAL));
- super.getShell().setText(RichTextResources.findReplaceDialog_title);
+ super.getShell().setText(Messages.findReplaceDialog_title);
return composite;
}
@@ -179,7 +179,7 @@ public class FindReplaceDialog extends BaseDialog {
@Override
protected void createButtonsForButtonBar(Composite parent) {
createButton(parent, IDialogConstants.CLIENT_ID + 1,
- RichTextResources.findButton_text, true);
+ Messages.findButton_text, true);
findButton = super.getButton(IDialogConstants.CLIENT_ID + 1);
findButton.addSelectionListener(new SelectionListener() {
public void widgetSelected(SelectionEvent event) {
@@ -195,7 +195,7 @@ public class FindReplaceDialog extends BaseDialog {
statusLabel.setText(""); //$NON-NLS-1$
} else {
statusLabel
- .setText(RichTextResources.FindReplace_Status_noMatch_label);
+ .setText(Messages.FindReplace_Status_noMatch_label);
}
findButton.setFocus();
}
@@ -205,7 +205,7 @@ public class FindReplaceDialog extends BaseDialog {
});
createButton(parent, IDialogConstants.CLIENT_ID + 2,
- RichTextResources.replaceButton_text, false);
+ Messages.replaceButton_text, false);
replaceButton = super.getButton(IDialogConstants.CLIENT_ID + 2);
if (!findOnly) {
replaceButton.addSelectionListener(new SelectionListener() {
@@ -222,7 +222,7 @@ public class FindReplaceDialog extends BaseDialog {
}
createButton(parent, IDialogConstants.CLIENT_ID + 3,
- RichTextResources.replaceFindButton_text, false);
+ Messages.replaceFindButton_text, false);
replaceFindButton = super.getButton(IDialogConstants.CLIENT_ID + 3);
if (!findOnly) {
replaceFindButton.addSelectionListener(new SelectionListener() {
@@ -242,7 +242,7 @@ public class FindReplaceDialog extends BaseDialog {
}
createButton(parent, IDialogConstants.CLIENT_ID + 4,
- RichTextResources.replaceallButton_text, false);
+ Messages.replaceallButton_text, false);
replaceAllButton = super.getButton(IDialogConstants.CLIENT_ID + 4);
if (!findOnly) {
replaceAllButton.addSelectionListener(new SelectionListener() {
diff --git a/extraplugins/epf-richtext/org.eclipse.epf.richtext/src/org/eclipse/epf/richtext/html/BlockTag.java b/extraplugins/epf-richtext/org.eclipse.epf.richtext/src/org/eclipse/epf/richtext/html/BlockTag.java
index 57c8433a6a6..2b9bd4424ea 100644
--- a/extraplugins/epf-richtext/org.eclipse.epf.richtext/src/org/eclipse/epf/richtext/html/BlockTag.java
+++ b/extraplugins/epf-richtext/org.eclipse.epf.richtext/src/org/eclipse/epf/richtext/html/BlockTag.java
@@ -23,7 +23,7 @@ package org.eclipse.epf.richtext.html;
import java.util.ArrayList;
import java.util.List;
-import org.eclipse.epf.richtext.RichTextResources;
+import org.eclipse.epf.richtext.Messages;
/**
* Models a HTML block tag.
@@ -34,23 +34,23 @@ import org.eclipse.epf.richtext.RichTextResources;
public class BlockTag {
// The user friendly names.
- private static final String NAME_PARAGRAPH = RichTextResources.blockTag_paragraph;
+ private static final String NAME_PARAGRAPH = Messages.blockTag_paragraph;
- private static final String NAME_HEADING_1 = RichTextResources.blockTag_heading1;
+ private static final String NAME_HEADING_1 = Messages.blockTag_heading1;
- private static final String NAME_HEADING_2 = RichTextResources.blockTag_heading2;
+ private static final String NAME_HEADING_2 = Messages.blockTag_heading2;
- private static final String NAME_HEADING_3 = RichTextResources.blockTag_heading3;
+ private static final String NAME_HEADING_3 = Messages.blockTag_heading3;
- private static final String NAME_HEADING_4 = RichTextResources.blockTag_heading4;
+ private static final String NAME_HEADING_4 = Messages.blockTag_heading4;
- private static final String NAME_HEADING_5 = RichTextResources.blockTag_heading5;
+ private static final String NAME_HEADING_5 = Messages.blockTag_heading5;
- private static final String NAME_HEADING_6 = RichTextResources.blockTag_heading6;
+ private static final String NAME_HEADING_6 = Messages.blockTag_heading6;
- private static final String NAME_ADDRESS = RichTextResources.blockTag_address;
+ private static final String NAME_ADDRESS = Messages.blockTag_address;
- private static final String NAME_PREFORMATTED_TEXT = RichTextResources.blockTag_preformattedText;
+ private static final String NAME_PREFORMATTED_TEXT = Messages.blockTag_preformattedText;
// The internal values.
private static final String VALUE_PARAGRAPH = "<p>"; //$NON-NLS-1$
diff --git a/extraplugins/epf-richtext/org.eclipse.epf.richtext/src/org/eclipse/epf/richtext/html/FontName.java b/extraplugins/epf-richtext/org.eclipse.epf.richtext/src/org/eclipse/epf/richtext/html/FontName.java
index 48714736f1e..4519fcac576 100644
--- a/extraplugins/epf-richtext/org.eclipse.epf.richtext/src/org/eclipse/epf/richtext/html/FontName.java
+++ b/extraplugins/epf-richtext/org.eclipse.epf.richtext/src/org/eclipse/epf/richtext/html/FontName.java
@@ -23,7 +23,7 @@ package org.eclipse.epf.richtext.html;
import java.util.ArrayList;
import java.util.List;
-import org.eclipse.epf.richtext.RichTextResources;
+import org.eclipse.epf.richtext.Messages;
/**
* Models a HTML font name.
@@ -34,15 +34,15 @@ import org.eclipse.epf.richtext.RichTextResources;
public class FontName {
// The user friendly names.
- private static final String NAME_DEFAULT = RichTextResources.fontName_default;
+ private static final String NAME_DEFAULT = Messages.fontName_default;
- private static final String NAME_ARIAL = RichTextResources.fontName_arial;
+ private static final String NAME_ARIAL = Messages.fontName_arial;
- private static final String NAME_COURIER_NEW = RichTextResources.fontName_courierNew;
+ private static final String NAME_COURIER_NEW = Messages.fontName_courierNew;
- private static final String NAME_TIMES_NEW_ROMAN = RichTextResources.fontName_timesNewRoman;
+ private static final String NAME_TIMES_NEW_ROMAN = Messages.fontName_timesNewRoman;
- private static final String NAME_VERDANA = RichTextResources.fontName_verdana;
+ private static final String NAME_VERDANA = Messages.fontName_verdana;
// The internal values.
private static final String VALUE_DEFAULT = ""; //$NON-NLS-1$
diff --git a/extraplugins/epf-richtext/org.eclipse.epf.richtext/src/org/eclipse/epf/richtext/html/FontStyle.java b/extraplugins/epf-richtext/org.eclipse.epf.richtext/src/org/eclipse/epf/richtext/html/FontStyle.java
index 55211d74cbd..58a594ad0d3 100644
--- a/extraplugins/epf-richtext/org.eclipse.epf.richtext/src/org/eclipse/epf/richtext/html/FontStyle.java
+++ b/extraplugins/epf-richtext/org.eclipse.epf.richtext/src/org/eclipse/epf/richtext/html/FontStyle.java
@@ -24,7 +24,7 @@ import java.util.ArrayList;
import java.util.Iterator;
import java.util.List;
-import org.eclipse.epf.richtext.RichTextResources;
+import org.eclipse.epf.richtext.Messages;
/**
* Models a HTML font style.
@@ -35,17 +35,17 @@ import org.eclipse.epf.richtext.RichTextResources;
public class FontStyle {
// The user friendly names.
- private static final String NAME_NORMAL = RichTextResources.fontStyle_normal;
+ private static final String NAME_NORMAL = Messages.fontStyle_normal;
- private static final String NAME_SECTION_HEADING = RichTextResources.fontStyle_sectionHeading;
+ private static final String NAME_SECTION_HEADING = Messages.fontStyle_sectionHeading;
- private static final String NAME_SUBSECTION_HEADING = RichTextResources.fontStyle_subsectionHeading;
+ private static final String NAME_SUBSECTION_HEADING = Messages.fontStyle_subsectionHeading;
- private static final String NAME_SUB_SUBSECTION_HEADING = RichTextResources.fontStyle_subSubsectionHeading;
+ private static final String NAME_SUB_SUBSECTION_HEADING = Messages.fontStyle_subSubsectionHeading;
- private static final String NAME_QUOTE = RichTextResources.fontStyle_quote;
+ private static final String NAME_QUOTE = Messages.fontStyle_quote;
- private static final String NAME_CODE_SAMPLE = RichTextResources.fontStyle_codeSample;
+ private static final String NAME_CODE_SAMPLE = Messages.fontStyle_codeSample;
// The internal values.
private static final String VALUE_NORMAL = "<p>"; //$NON-NLS-1$
diff --git a/extraplugins/epf-richtext/org.eclipse.epf.richtext/src/org/eclipse/epf/richtext/preferences/RichTextPreferencePage.java b/extraplugins/epf-richtext/org.eclipse.epf.richtext/src/org/eclipse/epf/richtext/preferences/RichTextPreferencePage.java
index 6d3379fc763..c968cf9a4d0 100644
--- a/extraplugins/epf-richtext/org.eclipse.epf.richtext/src/org/eclipse/epf/richtext/preferences/RichTextPreferencePage.java
+++ b/extraplugins/epf-richtext/org.eclipse.epf.richtext/src/org/eclipse/epf/richtext/preferences/RichTextPreferencePage.java
@@ -21,7 +21,7 @@
package org.eclipse.epf.richtext.preferences;
import org.eclipse.epf.richtext.RichTextPlugin;
-import org.eclipse.epf.richtext.RichTextResources;
+import org.eclipse.epf.richtext.Messages;
import org.eclipse.jface.preference.IPreferenceStore;
import org.eclipse.jface.preference.PreferencePage;
import org.eclipse.swt.SWT;
@@ -76,7 +76,7 @@ public class RichTextPreferencePage extends PreferencePage implements
widthComposite.setLayoutData(new GridData(GridData.FILL_HORIZONTAL));
Label lineWidthLabel = new Label(widthComposite, SWT.NONE);
- lineWidthLabel.setText(RichTextResources.maxCharsPerLineLabel_text);
+ lineWidthLabel.setText(Messages.maxCharsPerLineLabel_text);
lineWidthText = new Text(widthComposite, SWT.BORDER);
lineWidthText.setText(store.getString(RichTextPreferences.LINE_WIDTH));
@@ -94,7 +94,7 @@ public class RichTextPreferencePage extends PreferencePage implements
indentComposite.setLayoutData(new GridData(GridData.FILL_HORIZONTAL));
indentCheckbox = new Button(indentComposite, SWT.CHECK);
- indentCheckbox.setText(RichTextResources.indentHTMLCheckbox_text);
+ indentCheckbox.setText(Messages.indentHTMLCheckbox_text);
indentCheckbox.setSelection(store
.getBoolean(RichTextPreferences.INDENT));
@@ -104,7 +104,7 @@ public class RichTextPreferencePage extends PreferencePage implements
gridData = new GridData();
gridData.horizontalIndent = 20;
indentSizeLabel.setLayoutData(gridData);
- indentSizeLabel.setText(RichTextResources.indentSizeLabel_text);
+ indentSizeLabel.setText(Messages.indentSizeLabel_text);
indentSizeText = new Text(indentComposite, SWT.BORDER);
indentSizeText

Back to the top