window builder & rap platform [message #716283] |
Tue, 16 August 2011 17:48  |
Eclipse User |
|
|
|
Hello all,
I am using the latest window builder. When building the GUI i have activated a RAP target platform(version 1.4).
I have a composite which i want to be reused.
Another composite is using it.
public UsingExposedForExtending(Composite parent, int style)
{
super(parent, style);
setLayout(new GridLayout(1, false));
exposedForExtending = new ExposedForExtending(this, SWT.NONE);
public class ExposedForExtending extends Composite {
private DataBindingContext m_bindingContext;
private Binding mBinding;
private Text text;
private Composite composite;
...
public ExposedForExtending(Composite parent, int style) {
super(parent, style);
setLayout(new GridLayout(1, false));
...
protected DataBindingContext initDataBindings() {
DataBindingContext bindingContext = new DataBindingContext();
...
When i preview the UsingExposedForExtending i get an exception:
org.eclipse.core.runtime.AssertionFailedException: null argument:Validation realm cannot be null
at org.eclipse.core.runtime.Assert.isNotNull(Assert.java:85)
at org.eclipse.core.databinding.DataBindingContext.<init>(DataBindingContext.java:95)
at org.eclipse.core.databinding.DataBindingContext.<init>(DataBindingContext.java:82)
at de.softcon.wb.other.ExposedForExtending.initDataBindings(ExposedForExtending.java:140)
at de.softcon.wb.other.ExposedForExtending.<init>(ExposedForExtending.java:105)
When using a RCP target platform everything works well.
Maybe there is an idea (besides changing target) how to avoid this exception.
Thank you.
|
|
|
|
|
|
|
|
|
|
|
Powered by
FUDForum. Page generated in 0.28804 seconds