Package org.jbpm.ui.dialog

Examples of org.jbpm.ui.dialog.ExternalEditorDialog.open()


    Boolean enabled = action.isChecked();
    IPreferenceStore preferenceStore = PlatformUI.getPreferenceStore();
    if (enabled) {
      String htmlEditorPath = preferenceStore.getString(PluginConstants.EXTERNAL_EDITOR_PREFERENCE_ID);
      ExternalEditorDialog editorDialog = new ExternalEditorDialog(window.getShell(), htmlEditorPath);
      if (editorDialog.open() == Dialog.OK) {
        htmlEditorPath = editorDialog.getPath();
        if (htmlEditorPath == null) {
          htmlEditorPath = "";
        }
        preferenceStore.putValue(PluginConstants.EXTERNAL_EDITOR_PREFERENCE_ID, htmlEditorPath);
View Full Code Here


    @Override
    public IEditorPart openForm(IFile formFile, FormNode formNode) throws CoreException {
        String infopathEditor = PlatformUI.getPreferenceStore().getString(ChooseFormTypeDialog.INFOPATH_EDITOR_PREFERENCE_ID);
        if (infopathEditor.length() == 0) {
            ExternalEditorDialog dialog = new ExternalEditorDialog(PlatformUI.getWorkbench().getDisplay().getActiveShell(), infopathEditor);
            if (dialog.open() != Dialog.OK) {
                return null;
            }
            infopathEditor = dialog.getPath();
            PlatformUI.getPreferenceStore().setValue(ChooseFormTypeDialog.INFOPATH_EDITOR_PREFERENCE_ID, infopathEditor);
        }
View Full Code Here

TOP
Copyright © 2018 www.massapi.com. All rights reserved.
All source code are property of their respective owners. Java is a trademark of Sun Microsystems, Inc and owned by ORACLE Inc. Contact coftware#gmail.com.