//MockView.java
I want to config the btn Button as below:Code:public class MockView extends ViewPart { public void createPartControl(Composite parent) { Button btn = new Button(parent, SWT.PUSH); } }
//beans.xml
How to config the parent object which not exists in beans.xml and the static vairable of SWT.PUSH ?Code:<bean id="btn" class="org.eclipse.swt.widgets.Button"> <constructor-arg> <!-- How to config the parent object created out of this file --> </constructor-arg> <constructor-arg> <!-- How to config the static variable of org.eclipse.swt.SWT.PUSH --> </constructor-arg> </bean>
Thanks in advance!


Reply With Quote