Author: adietish
Date: 2011-10-20 09:40:01 -0400 (Thu, 20 Oct 2011)
New Revision: 35843
Modified:
trunk/common/plugins/org.jboss.tools.common.ui/src/org/jboss/tools/common/ui/databinding/ValueBindingBuilder.java
Log:
[JBIDE-9947] added binding builder to have nicer binding semantics
Modified:
trunk/common/plugins/org.jboss.tools.common.ui/src/org/jboss/tools/common/ui/databinding/ValueBindingBuilder.java
===================================================================
---
trunk/common/plugins/org.jboss.tools.common.ui/src/org/jboss/tools/common/ui/databinding/ValueBindingBuilder.java 2011-10-20
13:38:27 UTC (rev 35842)
+++
trunk/common/plugins/org.jboss.tools.common.ui/src/org/jboss/tools/common/ui/databinding/ValueBindingBuilder.java 2011-10-20
13:40:01 UTC (rev 35843)
@@ -58,10 +58,6 @@
return (PARTICIPANT) this;
}
- protected void assertObservable(String message) {
- Assert.isLegal(this.observable != null, message);
- }
-
public IObservableValue getObservable() {
return observable;
}
@@ -78,10 +74,8 @@
}
public ModelDefinition to(IObservableValue model) {
- assertObservable("You have to set the target first. call #bind(target).");
return new ModelDefinition(model, this);
}
-
}
public static class ModelDefinition extends
BindingParticipantDefinition<ModelDefinition> {
Show replies by date