summaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
authorszarnekow2009-03-23 03:25:40 (EDT)
committer sefftinge2009-03-23 03:25:40 (EDT)
commita34f82b9b2b7ec562f3eb3745097316c70a2d589 (patch)
tree9e39523714f4f7c75521651a6b36c37252781a4d
parent36304e6c3b12b877d8dd2ba1e51c46c29b52af0d (diff)
downloadorg.eclipse.xtext-a34f82b9b2b7ec562f3eb3745097316c70a2d589.zip
org.eclipse.xtext-a34f82b9b2b7ec562f3eb3745097316c70a2d589.tar.gz
org.eclipse.xtext-a34f82b9b2b7ec562f3eb3745097316c70a2d589.tar.bz2
Reformat code in DefaultLabelProvider
-rw-r--r--plugins/org.eclipse.xtext.ui.core/src/org/eclipse/xtext/ui/core/DefaultLabelProvider.java32
1 files changed, 16 insertions, 16 deletions
diff --git a/plugins/org.eclipse.xtext.ui.core/src/org/eclipse/xtext/ui/core/DefaultLabelProvider.java b/plugins/org.eclipse.xtext.ui.core/src/org/eclipse/xtext/ui/core/DefaultLabelProvider.java
index 2595ef4..3992352 100644
--- a/plugins/org.eclipse.xtext.ui.core/src/org/eclipse/xtext/ui/core/DefaultLabelProvider.java
+++ b/plugins/org.eclipse.xtext.ui.core/src/org/eclipse/xtext/ui/core/DefaultLabelProvider.java
@@ -18,23 +18,23 @@ import org.eclipse.xtext.util.PolymorphicDispatcher;
*/
public class DefaultLabelProvider extends LabelProvider {
- private PolymorphicDispatcher<String> getText = new PolymorphicDispatcher<String>("text",1,1,Collections.singletonList(this),
- new PolymorphicDispatcher.ErrorHandler<String>(){
-
- private PolymorphicDispatcher<String> recoverText = new PolymorphicDispatcher<String>("error_text",2,2,Collections.singletonList(DefaultLabelProvider.this));
- public String handle(Object[] params, Throwable e) {
- return recoverText.invoke(params[0],e);
- }
- });
+ private final PolymorphicDispatcher<String> getText = new PolymorphicDispatcher<String>("text",1,1,Collections.singletonList(this),
+ new PolymorphicDispatcher.ErrorHandler<String>(){
- private PolymorphicDispatcher<Image> getImage = new PolymorphicDispatcher<Image>("image",1,1,Collections.singletonList(this),
- new PolymorphicDispatcher.ErrorHandler<Image>(){
-
- private PolymorphicDispatcher<Image> recoverImage = new PolymorphicDispatcher<Image>("error_image",2,2,Collections.singletonList(DefaultLabelProvider.this));
- public Image handle(Object[] params, Throwable e) {
- return recoverImage.invoke(params[0],e);
- }
- });
+ private final PolymorphicDispatcher<String> recoverText = new PolymorphicDispatcher<String>("error_text",2,2,Collections.singletonList(DefaultLabelProvider.this));
+ public String handle(Object[] params, Throwable e) {
+ return recoverText.invoke(params[0],e);
+ }
+ });
+
+ private final PolymorphicDispatcher<Image> getImage = new PolymorphicDispatcher<Image>("image",1,1,Collections.singletonList(this),
+ new PolymorphicDispatcher.ErrorHandler<Image>(){
+
+ private final PolymorphicDispatcher<Image> recoverImage = new PolymorphicDispatcher<Image>("error_image",2,2,Collections.singletonList(DefaultLabelProvider.this));
+ public Image handle(Object[] params, Throwable e) {
+ return recoverImage.invoke(params[0],e);
+ }
+ });
@Override
public final String getText(Object element) {