Skip to main content
aboutsummaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
authorIvan Furnadjiev2012-10-09 12:17:26 +0000
committerIvan Furnadjiev2012-10-09 12:17:26 +0000
commit864b9f2557ecd666ea7fd9ee7cf59929c5b90362 (patch)
tree4ae1fd56eeaf90b14a13994d50b3df4559d0f488 /bundles/org.eclipse.rap.ui.views
parent1a85c5c3653f2670dca4966cb9896fad87537b33 (diff)
downloadorg.eclipse.rap-864b9f2557ecd666ea7fd9ee7cf59929c5b90362.tar.gz
org.eclipse.rap-864b9f2557ecd666ea7fd9ee7cf59929c5b90362.tar.xz
org.eclipse.rap-864b9f2557ecd666ea7fd9ee7cf59929c5b90362.zip
Make NLS methods generic
391431: Make NLS generic https://bugs.eclipse.org/bugs/show_bug.cgi?id=391431
Diffstat (limited to 'bundles/org.eclipse.rap.ui.views')
-rw-r--r--bundles/org.eclipse.rap.ui.views/src/org/eclipse/ui/internal/views/contentoutline/ContentOutlineMessages.java6
-rw-r--r--bundles/org.eclipse.rap.ui.views/src/org/eclipse/ui/internal/views/properties/PropertiesMessages.java4
2 files changed, 3 insertions, 7 deletions
diff --git a/bundles/org.eclipse.rap.ui.views/src/org/eclipse/ui/internal/views/contentoutline/ContentOutlineMessages.java b/bundles/org.eclipse.rap.ui.views/src/org/eclipse/ui/internal/views/contentoutline/ContentOutlineMessages.java
index 4715971177..a3f253eb62 100644
--- a/bundles/org.eclipse.rap.ui.views/src/org/eclipse/ui/internal/views/contentoutline/ContentOutlineMessages.java
+++ b/bundles/org.eclipse.rap.ui.views/src/org/eclipse/ui/internal/views/contentoutline/ContentOutlineMessages.java
@@ -24,7 +24,7 @@ public class ContentOutlineMessages{
// ==============================================================================
// Outline View
// ==============================================================================
-
+
/**
* The localized message that no outline is available
*/
@@ -34,8 +34,6 @@ public class ContentOutlineMessages{
* @return the session/request specific localized messages object
*/
public static ContentOutlineMessages get() {
- Class clazz = ContentOutlineMessages.class;
- Object result = RWT.NLS.getISO8859_1Encoded( BUNDLE_NAME, clazz );
- return ( ContentOutlineMessages )result;
+ return RWT.NLS.getISO8859_1Encoded( BUNDLE_NAME, ContentOutlineMessages.class );
}
} \ No newline at end of file
diff --git a/bundles/org.eclipse.rap.ui.views/src/org/eclipse/ui/internal/views/properties/PropertiesMessages.java b/bundles/org.eclipse.rap.ui.views/src/org/eclipse/ui/internal/views/properties/PropertiesMessages.java
index dde20606b6..5917fdd1be 100644
--- a/bundles/org.eclipse.rap.ui.views/src/org/eclipse/ui/internal/views/properties/PropertiesMessages.java
+++ b/bundles/org.eclipse.rap.ui.views/src/org/eclipse/ui/internal/views/properties/PropertiesMessages.java
@@ -61,8 +61,6 @@ public class PropertiesMessages {
* @return the session/request specific localized messages object
*/
public static PropertiesMessages get() {
- Class clazz = PropertiesMessages.class;
- Object result = RWT.NLS.getISO8859_1Encoded( BUNDLE_NAME, clazz );
- return ( PropertiesMessages )result;
+ return RWT.NLS.getISO8859_1Encoded( BUNDLE_NAME, PropertiesMessages.class );
}
} \ No newline at end of file

Back to the top