by Konstantin.Scheglov » Wed May 11, 2011 6:25 am
WindowBuilder does not support directly external DND.
But you can try to find active org.eclipse.wb.internal.core.editor.multi.DesignerEditor, get (in hackish way) EditEditDomain and set CreationTool which you want.
To install externally LayoutEditPolicy, which will accept your Tool, you can use org.eclipse.wb.core.gef.IEditPartConfigurator via org.eclipse.wb.core.editPartConfigurators extension point. See org.eclipse.wb.internal.swing.gef.policy.action.ActionDropPolicyConfigurator as example.
Actual adding of Label and TextField depends on target Panel you want to add them to. In general you should use org.eclipse.wb.internal.core.model.JavaInfoUtils.createJavaInfo(AstEditor, String, CreationSupport) to create model and then use FlowContainer or generic org.eclipse.wb.internal.core.model.JavaInfoUtils.add(JavaInfo, AssociationObject, JavaInfo, JavaInfo) to add new children to parent.