diff options
Diffstat (limited to 'plugins/xwt/org.eclipse.papyrus.xwt/src/org/eclipse/papyrus/xwt/javabean/StaticResourceBinding.java')
-rw-r--r-- | plugins/xwt/org.eclipse.papyrus.xwt/src/org/eclipse/papyrus/xwt/javabean/StaticResourceBinding.java | 12 |
1 files changed, 6 insertions, 6 deletions
diff --git a/plugins/xwt/org.eclipse.papyrus.xwt/src/org/eclipse/papyrus/xwt/javabean/StaticResourceBinding.java b/plugins/xwt/org.eclipse.papyrus.xwt/src/org/eclipse/papyrus/xwt/javabean/StaticResourceBinding.java index 91b9aa9100a..e04b7a443fd 100644 --- a/plugins/xwt/org.eclipse.papyrus.xwt/src/org/eclipse/papyrus/xwt/javabean/StaticResourceBinding.java +++ b/plugins/xwt/org.eclipse.papyrus.xwt/src/org/eclipse/papyrus/xwt/javabean/StaticResourceBinding.java @@ -4,7 +4,7 @@ * are made available under the terms of the Eclipse Public License v1.0
* which accompanies this distribution, and is available at
* http://www.eclipse.org/legal/epl-v10.html
- *
+ *
* Contributors:
* Soyatec - initial API and implementation
*******************************************************************************/
@@ -30,16 +30,16 @@ public class StaticResourceBinding implements IBinding { public Object getValue(Class<?> targetType) {
Widget parent = UserData.getWidget(widget);
- while(parent != null) {
+ while (parent != null) {
Map<String, Object> dico = UserData.getLocalResources(parent);
- if(dico != null && dico.containsKey(key)) {
+ if (dico != null && dico.containsKey(key)) {
Object data = dico.get(key);
- if(data instanceof IBinding) {
- return ((IBinding)data).getValue(targetType);
+ if (data instanceof IBinding) {
+ return ((IBinding) data).getValue(targetType);
}
return data;
}
- parent = (Widget)UserData.getParent(parent);
+ parent = UserData.getParent(parent);
}
throw new XWTException("Key " + key + " is not found.");
}
|