@Override
  protected Object run(final Presentation context) {
    final Element element = context.part().getLocalModelElement();

    final SapphireDialog dialog =
        new SapphireDialog(
            ((FormComponentPresentation) context).shell(),
            element,
            DefinitionLoader.context(IGallery.class)
                .sdef("GalleryEditor")
                .dialog("SplitFormDialog"));

    dialog.open();

    return null;
  }
  /** @see org.eclipse.jface.window.Window#create() */
  public void create() {
    super.create();

    for (int i = 0; i < disposeListeners.size(); i++) {
      getShell().addDisposeListener(disposeListeners.get(i));
    }

    getShell().setActive();
  }
  protected void configureShell(Shell shell) {
    super.configureShell(shell);

    shell.setSize(600, 730);
  }
 protected void createButtonsForButtonBar(Composite parent) {
   super.createButtonsForButtonBar(parent);
   getButton(IDialogConstants.OK_ID).setText("Insert"); // $NON-NLS-1$
 }