Skip to main content
aboutsummaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
authorDennis Huebner2014-02-03 13:10:05 +0000
committerDennis Huebner2014-02-03 13:10:05 +0000
commit3d2c899ae4b1edac12bf85a8a9deff7cb2974937 (patch)
tree052d5bcdb80ff0a7790ac630c7ad9a4742b8277c
parent711f66695ec3094c43e275aaa1247e28544df520 (diff)
downloadorg.eclipse.emf-R2_9_maintenance.tar.gz
org.eclipse.emf-R2_9_maintenance.tar.xz
org.eclipse.emf-R2_9_maintenance.zip
[gwt] fixed depricated APIR2_9_2R2_9_maintenance
-rw-r--r--plugins/org.eclipse.emf.gwt.edit.ui/src/org/eclipse/emf/edit/ui/EditorEntryPoint.java9
1 files changed, 5 insertions, 4 deletions
diff --git a/plugins/org.eclipse.emf.gwt.edit.ui/src/org/eclipse/emf/edit/ui/EditorEntryPoint.java b/plugins/org.eclipse.emf.gwt.edit.ui/src/org/eclipse/emf/edit/ui/EditorEntryPoint.java
index f420f7f13..08fd71223 100644
--- a/plugins/org.eclipse.emf.gwt.edit.ui/src/org/eclipse/emf/edit/ui/EditorEntryPoint.java
+++ b/plugins/org.eclipse.emf.gwt.edit.ui/src/org/eclipse/emf/edit/ui/EditorEntryPoint.java
@@ -100,6 +100,7 @@ import com.google.gwt.event.logical.shared.ValueChangeHandler;
import com.google.gwt.event.shared.HandlerRegistration;
import com.google.gwt.resources.client.ImageResource;
import com.google.gwt.safehtml.shared.SafeHtmlBuilder;
+import com.google.gwt.safehtml.shared.SafeHtmlUtils;
import com.google.gwt.user.cellview.client.CellTree;
import com.google.gwt.user.cellview.client.TreeNode;
import com.google.gwt.user.client.ui.Button;
@@ -1381,7 +1382,7 @@ public abstract class EditorEntryPoint implements EntryPoint
dialogBox.setText("Save conflict");
final Button okButton = new Button("OK");
final Tree tree = new Tree();
- tree.addItem(caught.getLocalizedMessage());
+ tree.addItem(SafeHtmlUtils.fromString(caught.getLocalizedMessage()));
Grid grid = new Grid();
grid.setWidth("150em");
grid.resize(2, 1);
@@ -1432,7 +1433,7 @@ public abstract class EditorEntryPoint implements EntryPoint
dialogBox.setText("Delete conflict");
final Button okButton = new Button("OK");
final Tree tree = new Tree();
- tree.addItem(caught.getLocalizedMessage());
+ tree.addItem(SafeHtmlUtils.fromString(caught.getLocalizedMessage()));
Grid grid = new Grid();
grid.setWidth("150em");
grid.resize(2, 1);
@@ -1469,7 +1470,7 @@ public abstract class EditorEntryPoint implements EntryPoint
{
protected TreeItem createTreeItems(Diagnostic diagnostic)
{
- TreeItem treeItem = new TreeItem(diagnostic.getMessage());
+ TreeItem treeItem = new TreeItem(SafeHtmlUtils.fromString(diagnostic.getMessage()));
List<?> data = diagnostic.getData();
if (!data.isEmpty())
{
@@ -1512,7 +1513,7 @@ public abstract class EditorEntryPoint implements EntryPoint
final Tree tree = new Tree();
if (diagnostics.getSeverity() == Diagnostic.OK)
{
- tree.addItem("No problems detected");
+ tree.addItem(SafeHtmlUtils.fromString("No problems detected"));
}
else
{

Back to the top