- Timestamp:
- 2014-04-30T20:03:13+12:00 (10 years ago)
- Location:
- main/trunk/gli/src/org/greenstone/gatherer/gui
- Files:
-
- 2 edited
Legend:
- Unmodified
- Added
- Removed
-
main/trunk/gli/src/org/greenstone/gatherer/gui/FormatConversionDialog.java
r29011 r29012 75 75 private static final Border EMPTYBORDER = new EmptyBorder(5, 5, 5, 5); 76 76 private JLabel section_label = null; 77 private JButton cancel_button = null;78 private JButton next_button = null;79 private JButton accept_all_button = null;80 private JButton undo_button = null;81 private JButton redo_button = null;82 private JButton htmltidy_button = null;83 private JButton xmltidy_button = null;77 private GLIButton cancel_button = null; 78 private GLIButton next_button = null; 79 private GLIButton accept_all_button = null; 80 private GLIButton undo_button = null; 81 private GLIButton redo_button = null; 82 private GLIButton htmltidy_button = null; 83 private GLIButton xmltidy_button = null; 84 84 private NumberedJTextArea gs2_textarea = null; 85 85 private NumberedJTextArea gs3_textarea = null; … … 104 104 JPanel midbutton_panel = new JPanel(); // FlowLayout by default in a JPanel 105 105 midbutton_panel.setComponentOrientation(Dictionary.getOrientation()); 106 JButton reconvert_button = new JButton(Dictionary.get("FormatConversionDialog.Reconvert")); 107 reconvert_button.setToolTipText(Dictionary.get("FormatConversionDialog.Reconvert_Tooltip")); 106 JButton reconvert_button = new GLIButton(Dictionary.get("FormatConversionDialog.Reconvert"), Dictionary.get("FormatConversionDialog.Reconvert_Tooltip")); 108 107 midbutton_panel.add(reconvert_button); 109 108 reconvert_button.addActionListener(new ReconvertListener()); … … 116 115 JPanel button1_panel = new JPanel(); 117 116 button1_panel.setComponentOrientation(Dictionary.getOrientation()); 118 undo_button = new JButton(Dictionary.get("General.Undo"));117 undo_button = new GLIButton(Dictionary.get("General.Undo"), Dictionary.get("General.Undo_Tooltip")); 119 118 undo_button.addActionListener(new UndoListener()); 120 119 undo_button.setEnabled(false); 121 120 122 redo_button = new JButton(Dictionary.get("General.Redo"));121 redo_button = new GLIButton(Dictionary.get("General.Redo"), Dictionary.get("General.Redo_Tooltip")); 123 122 redo_button.addActionListener(new RedoListener()); 124 123 redo_button.setEnabled(false); 125 124 126 xmltidy_button = new JButton(Dictionary.get("FormatConversionDialog.XHTML_Tidy")); 127 xmltidy_button.setToolTipText(Dictionary.get("FormatConversionDialog.XHTML_Tidy_Tooltip")); 125 xmltidy_button = new GLIButton(Dictionary.get("FormatConversionDialog.XHTML_Tidy"), Dictionary.get("FormatConversionDialog.XHTML_Tidy_Tooltip")); 128 126 xmltidy_button.addActionListener(new XMLTidyButtonListener()); 129 127 … … 135 133 button_panel.setComponentOrientation(Dictionary.getOrientation()); 136 134 count_label = new JLabel("<count>"); // placeholder text for numbers, no need to translate 137 cancel_button = new JButton(Dictionary.get("General.Cancel")); 138 next_button = new JButton(Dictionary.get("FormatConversionDialog.Next")); 139 accept_all_button = new JButton(Dictionary.get("FormatConversionDialog.Accept_All")); 140 accept_all_button.setToolTipText(Dictionary.get("FormatConversionDialog.Accept_All_Tooltip")); 135 cancel_button = new GLIButton(Dictionary.get("General.Cancel"), Dictionary.get("FormatConversionDialog.Cancel_Tooltip")); 136 next_button = new GLIButton(Dictionary.get("FormatConversionDialog.Next"), Dictionary.get("FormatConversionDialog.Next_Tooltip")); 137 accept_all_button = new GLIButton(Dictionary.get("FormatConversionDialog.Accept_All"), Dictionary.get("FormatConversionDialog.Accept_All_Tooltip")); 141 138 cancel_button.addActionListener(new CancelButtonListener()); 142 cancel_button.setToolTipText(Dictionary.get("FormatConversionDialog.Cancel_Tooltip"));143 139 next_button.addActionListener(new NextButtonListener()); 144 next_button.setToolTipText(Dictionary.get("FormatConversionDialog.Next_Tooltip"));145 140 accept_all_button.addActionListener(new AcceptAllButtonListener()); 146 141 button_panel.add(cancel_button); -
main/trunk/gli/src/org/greenstone/gatherer/gui/OpenCollectionDialog.java
r29001 r29012 443 443 // will tell the server that the collect directory has changed and that 444 444 // the workspace needs to be refreshed (Documents in Greenstone Collections) 445 446 System.err.print("@@@ User chose to press: "); 447 if(result == CANCEL_OPTION) { 448 System.err.println("cancel"); 449 } else { 450 System.err.println("ok"); 451 } 445 452 } 446 453 }
Note:
See TracChangeset
for help on using the changeset viewer.