Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
Change-Id: I5bef4bbba962e8dfb3ff17dbe7d765900bccdda2
- Loading branch information
1 parent
4b5b58b
commit 4105d5e
Showing
3 changed files
with
33 additions
and
30 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
28 changes: 28 additions & 0 deletions
28
...clipse/emf/parsley/tests/util/CustomDialogControlFactoryForTestsWithCallToBindValude.java
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,28 @@ | ||
/** | ||
* | ||
*/ | ||
package org.eclipse.emf.parsley.tests.util; | ||
|
||
import org.eclipse.core.databinding.observable.value.IObservableValue; | ||
import org.eclipse.emf.ecore.EStructuralFeature; | ||
import org.eclipse.emf.parsley.composite.DialogControlFactory; | ||
import org.eclipse.emf.parsley.util.DatabindingUtil; | ||
import org.eclipse.swt.widgets.Text; | ||
|
||
/** | ||
* Used for testing. | ||
* | ||
* @author Lorenzo Bettini | ||
* | ||
*/ | ||
public class CustomDialogControlFactoryForTestsWithCallToBindValude extends DialogControlFactory { | ||
@SuppressWarnings("rawtypes") | ||
public Text control_BaseClass_baseClassFeature(IObservableValue observableValue, EStructuralFeature f) { | ||
final Text text = this.createText(""); | ||
// by default the editable is true, thus setting it to false | ||
// gives us evidence that this method was called | ||
text.setEditable(false); | ||
bindValue(f, DatabindingUtil.observeText(text), observableValue); | ||
return text; | ||
} | ||
} |