Пример #1
0
 @Override
 public void operationCompleted(BasePanel panel) {
   if (couldNotConnect) {
     JOptionPane.showMessageDialog(
         panel.frame(),
         "<HTML>"
             + Localization.lang(
                 "Could not connect to a running gnuserv process. Make sure that "
                     + "Emacs or XEmacs is running,<BR>and that the server has been started "
                     + "(by running the command 'server-start'/'gnuserv-start').")
             + "</HTML>",
         Localization.lang("Error"),
         JOptionPane.ERROR_MESSAGE);
   } else if (couldNotCall) {
     JOptionPane.showMessageDialog(
         panel.frame(),
         Localization.lang(
             "Could not run the gnuclient/emacsclient program. Make sure you have "
                 + "the emacsclient/gnuclient program installed and available in the PATH."),
         Localization.lang("Error"),
         JOptionPane.ERROR_MESSAGE);
   } else {
     super.operationCompleted(panel);
   }
 }
Пример #2
0
 @Override
 protected void initSettingsPanel() {
   super.initSettingsPanel();
   builder.appendRows("2dlu, p, 2dlu, p");
   builder.add(Localization.lang("Additional parameters") + ":").xy(1, 3);
   builder.add(additionalParams).xy(3, 3);
   builder.add(Localization.lang("Use EMACS 23 insertion string") + ":").xy(1, 5);
   builder.add(useEmacs23).xy(3, 5);
   settings = builder.build();
 }
Пример #3
0
 @Override
 public void storeSettings() {
   super.storeSettings();
   Globals.prefs.put(JabRefPreferences.EMACS_ADDITIONAL_PARAMETERS, additionalParams.getText());
   Globals.prefs.putBoolean(JabRefPreferences.EMACS_23, useEmacs23.isSelected());
 }