Examples of okPressed()


Examples of cx.fbn.nevernote.dialog.TagEdit.okPressed()

    currentSelection = selections.get(0);
    edit.setTag(currentSelection.text(0));
    edit.setTagList(listManager.getTagIndex());
    edit.exec();
 
    if (!edit.okPressed())
      return;
       
    String guid = currentSelection.text(2);
    currentSelection.setText(0,edit.getTag());
   
View Full Code Here

Examples of net.sf.jabref.external.ExternalFileTypeEntryEditor.okPressed()

    else if (answer == JOptionPane.YES_OPTION) {
        // User wants to define the new file type. Show the dialog:
        ExternalFileType newType = new ExternalFileType(fileType.getName(), "", "", "", "new");
        ExternalFileTypeEntryEditor editor = new ExternalFileTypeEntryEditor(frame, newType);
        editor.setVisible(true);
        if (editor.okPressed()) {
            // Get the old list of types, add this one, and update the list in prefs:
            List<ExternalFileType> fileTypes = new ArrayList<ExternalFileType>();
            ExternalFileType[] oldTypes = Globals.prefs.getExternalFileTypeSelection();
            for (int i = 0; i < oldTypes.length; i++) {
                fileTypes.add(oldTypes[i]);
View Full Code Here

Examples of net.sf.jabref.external.ExternalFileTypeEntryEditor.okPressed()

            throw new RuntimeException("Could not find the file list entry "+link+" in "+entry.toString());
        }

        FileListEntryEditor editor = new FileListEntryEditor(frame, flEntry, false, true, metaData);
        editor.setVisible(true, false);
        if (editor.okPressed()) {
            // Store the changes and add an undo edit:
            String newValue = tModel.getStringRepresentation();
            UndoableFieldChange ce = new UndoableFieldChange(entry, GUIGlobals.FILE_FIELD,
                    oldValue, newValue);
            entry.setField(GUIGlobals.FILE_FIELD, newValue);
View Full Code Here

Examples of net.sf.jabref.gui.FileListEntryEditor.okPressed()

            throw new RuntimeException("Could not find the file list entry "+link+" in "+entry.toString());
        }

        FileListEntryEditor editor = new FileListEntryEditor(frame, flEntry, false, true, metaData);
        editor.setVisible(true, false);
        if (editor.okPressed()) {
            // Store the changes and add an undo edit:
            String newValue = tModel.getStringRepresentation();
            UndoableFieldChange ce = new UndoableFieldChange(entry, GUIGlobals.FILE_FIELD,
                    oldValue, newValue);
            entry.setField(GUIGlobals.FILE_FIELD, newValue);
View Full Code Here

Examples of net.sf.jabref.wizard.auximport.gui.FromAuxDialog.okPressed()

        FromAuxDialog dialog = new FromAuxDialog(JabRefFrame.this, "", true, JabRefFrame.this.tabbedPane) ;

        Util.placeDialog(dialog, JabRefFrame.this);
        dialog.setVisible(true) ;

        if (dialog.okPressed())
        {
          BasePanel bp = new BasePanel( JabRefFrame.this,
                                        dialog.getGenerateDB(),   // database
                                        null,                     // file
                                        (HashMap<String,String>)null, Globals.prefs.get("defaultEncoding"));                     // meta data
View Full Code Here

Examples of net.sf.jabref.wizard.text.gui.TextInputDialog.okPressed()

                                                                 "import", true,
                                                                 bibEntry) ;
                  Util.placeDialog(tidialog, BasePanel.this);
                  tidialog.setVisible(true);

                  if (tidialog.okPressed())
                  {
                      Util.setAutomaticFields(Arrays.asList(new BibtexEntry[] {bibEntry}),
                              false, false, false);
                    insertEntry(bibEntry) ;
                  }
View Full Code Here

Examples of org.pentaho.gwt.widgets.client.dialogs.IDialogCallback.okPressed()

    IDialogValidatorCallback validatorCallback = this.getValidatorCallback();
    if ( validatorCallback == null || ( validatorCallback != null && validatorCallback.validate() ) ) {
      try {
        if ( callback != null ) {
          setFormAction();
          callback.okPressed();
        }
      } catch ( Throwable dontCare ) {
        // ignored
      }
    }
View Full Code Here

Examples of org.pentaho.gwt.widgets.client.dialogs.IDialogCallback.okPressed()

          EventBusUtil.EVENT_BUS.fireEvent( event );
        }
      }
    };
    if ( !feedback ) {
      callback.okPressed();
    } else {
      deleteConfirmDialog.setCallback( callback );
      deleteConfirmDialog.center();
    }
  }
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.