コード例 #1
0
ファイル: PushToEmacs.java プロジェクト: Rabbisaur/jabref
 @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
ファイル: PushToEmacs.java プロジェクト: Rabbisaur/jabref
 @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
ファイル: PushToEmacs.java プロジェクト: Rabbisaur/jabref
 @Override
 public void storeSettings() {
   super.storeSettings();
   Globals.prefs.put(JabRefPreferences.EMACS_ADDITIONAL_PARAMETERS, additionalParams.getText());
   Globals.prefs.putBoolean(JabRefPreferences.EMACS_23, useEmacs23.isSelected());
 }