use of org.whole.lang.ui.dialogs.IImportAsModelDialogFactory in project whole by wholeplatform.
the class ChangeValueDialogFactory method createDialog.
public Dialog createDialog(Shell shell, String title, String message, Assignments assignments, IBindingManager bindings) {
Assign assign = (Assign) assignments.wGet(0);
Expression expression = assign.getExpression();
IEntity entity = BehaviorUtils.evaluate(expression, 0, bindings);
assign.wSet(expression, entity);
IEclipseContext params = EclipseContextFactory.create();
params.set("dialogTitle", title);
params.set("dialogMessage", message);
params.set("dialogEntity", entity);
IEclipseContext context = (IEclipseContext) bindings.wGetValue("eclipse#eclipseContext");
IImportAsModelDialogFactory factory = ContextInjectionFactory.make(DisabledImportAsModelDialogFactory.class, context);
params.set(IImportAsModelDialogFactory.class, factory);
return ContextInjectionFactory.make(ChangeValueDialog.class, context, params);
}
use of org.whole.lang.ui.dialogs.IImportAsModelDialogFactory in project whole by wholeplatform.
the class ImportAsModelDialogFactoryAddon method initialize.
@PostConstruct
protected void initialize() throws CoreException {
IImportAsModelDialogFactory factory = ContextInjectionFactory.make(DisabledImportAsModelDialogFactory.class, context);
context.set(IImportAsModelDialogFactory.class, factory);
}
Aggregations