- Timestamp:
- 2008-12-26T14:35:15+13:00 (15 years ago)
- File:
-
- 1 edited
Legend:
- Unmodified
- Added
- Removed
-
gli/branches/rtl-gli/src/org/greenstone/gatherer/gui/MenuBar.java
r14681 r18297 87 87 public MenuBar(MenuListener menu_listener) 88 88 { 89 this.setComponentOrientation(Dictionary.getOrientation()); 90 89 91 file = new JMenu(); 90 92 file.setEnabled(false); 91 93 file.setText(Dictionary.get("Menu.File")); 92 94 file.setComponentOrientation(Dictionary.getOrientation()); 95 93 96 file_associations = new JMenuItem(Dictionary.get("Menu.File_Associations")); 94 97 file_associations.addActionListener(Gatherer.g_man); 95 98 file_associations.setComponentOrientation(Dictionary.getOrientation()); 99 96 100 file_cdimage = new JMenuItem(Dictionary.get("Menu.File_CDimage")); 97 101 file_cdimage.addActionListener(Gatherer.g_man); 98 102 file_cdimage.setEnabled(!Gatherer.isGsdlRemote); 99 103 file_cdimage.setComponentOrientation(Dictionary.getOrientation()); 104 100 105 file_close = new JMenuItem(Dictionary.get("Menu.File_Close")); 101 106 file_close.addActionListener(Gatherer.g_man); 102 107 file_close.setEnabled(false); 103 108 file_close.setComponentOrientation(Dictionary.getOrientation()); 109 104 110 file_delete = new JMenuItem(Dictionary.get("Menu.File_Delete")); 105 111 file_delete.addActionListener(Gatherer.g_man); 106 112 file_delete.setComponentOrientation(Dictionary.getOrientation()); 113 107 114 file_exit = new JMenuItem(Dictionary.get("Menu.File_Exit")); 108 115 file_exit.addActionListener(Gatherer.g_man); 109 116 file_exit.setComponentOrientation(Dictionary.getOrientation()); 117 110 118 file_exportas = new JMenuItem(Dictionary.get("Menu.File_ExportAs")); 111 119 file_exportas.addActionListener(Gatherer.g_man); 112 120 file_exportas.setEnabled((!Gatherer.isGsdlRemote && !Gatherer.GS3)); 121 file_exportas.setComponentOrientation(Dictionary.getOrientation()); 113 122 114 123 file_new = new JMenuItem(Dictionary.get("Menu.File_New")); 115 124 file_new.addActionListener(Gatherer.g_man); 116 125 file_new.setComponentOrientation(Dictionary.getOrientation()); 126 117 127 file_open = new JMenuItem(Dictionary.get("Menu.File_Open")); 118 128 file_open.addActionListener(Gatherer.g_man); 119 129 file_open.setComponentOrientation(Dictionary.getOrientation()); 130 120 131 file_options = new JMenuItem(Dictionary.get("Menu.File_Options")); 121 132 file_options.addActionListener(Gatherer.g_man); 133 file_options.setComponentOrientation(Dictionary.getOrientation()); 122 134 123 135 file_save = new JMenuItem(Dictionary.get("Menu.File_Save")); 124 136 file_save.addActionListener(Gatherer.g_man); 125 137 file_save.setEnabled(false); 126 138 file_save.setComponentOrientation(Dictionary.getOrientation()); 139 127 140 // Layout (file menu) 128 141 file.add(file_new); … … 144 157 edit.setEnabled(false); 145 158 edit.setText(Dictionary.get("Menu.Edit")); 146 159 edit.setComponentOrientation(Dictionary.getOrientation()); 160 147 161 edit_cut = new JMenuItem(Dictionary.get("Menu.Edit_Cut")); 148 162 edit_cut.addActionListener(Gatherer.g_man); 149 163 edit_cut.setComponentOrientation(Dictionary.getOrientation()); 164 150 165 edit_copy = new JMenuItem(Dictionary.get("Menu.Edit_Copy")); 151 166 edit_copy.addActionListener(Gatherer.g_man); 167 edit_copy.setComponentOrientation(Dictionary.getOrientation()); 152 168 153 169 edit_paste = new JMenuItem(Dictionary.get("Menu.Edit_Paste")); 154 170 edit_paste.addActionListener(Gatherer.g_man); 155 171 edit_paste.setComponentOrientation(Dictionary.getOrientation()); 156 172 // Layout (edit menu) 157 173 edit.add(edit_cut); … … 163 179 help.setIcon(HELP_ICON); 164 180 help.setText(Dictionary.get("Menu.Help")); 165 181 help.setComponentOrientation(Dictionary.getOrientation()); 182 166 183 help_general = new JMenuItem(Dictionary.get("Source.General")); 167 184 help_general.addActionListener(Gatherer.g_man); 168 185 help_general.setComponentOrientation(Dictionary.getOrientation()); 186 169 187 help_download = new JMenuItem(Dictionary.get("GUI.Download"), BLANK_ICON); 170 188 help_download.addActionListener(Gatherer.g_man); 171 189 help_download.setComponentOrientation(Dictionary.getOrientation()); 190 172 191 help_gather = new JMenuItem(Dictionary.get("GUI.Gather"), BLANK_ICON); 173 192 help_gather.addActionListener(Gatherer.g_man); 174 193 help_gather.setComponentOrientation(Dictionary.getOrientation()); 194 175 195 help_enrich = new JMenuItem(Dictionary.get("GUI.Enrich"), BLANK_ICON); 176 196 help_enrich.addActionListener(Gatherer.g_man); 177 197 help_enrich.setComponentOrientation(Dictionary.getOrientation()); 198 178 199 help_design = new JMenuItem(Dictionary.get("GUI.Design"), BLANK_ICON); 179 200 help_design.addActionListener(Gatherer.g_man); 180 201 help_design.setComponentOrientation(Dictionary.getOrientation()); 202 181 203 help_create = new JMenuItem(Dictionary.get("GUI.Create"), BLANK_ICON); 182 204 help_create.addActionListener(Gatherer.g_man); 183 205 help_create.setComponentOrientation(Dictionary.getOrientation()); 206 184 207 help_format = new JMenuItem(Dictionary.get("GUI.Format"), BLANK_ICON); 185 208 help_format.addActionListener(Gatherer.g_man); 186 209 help_format.setComponentOrientation(Dictionary.getOrientation()); 210 187 211 help_about = new JMenuItem(Dictionary.get("Menu.Help_About")); 188 212 help_about.addActionListener(Gatherer.g_man); 189 213 help_about.setComponentOrientation(Dictionary.getOrientation()); 214 190 215 // Layout (help menu) 191 216 help.add(help_general);
Note:
See TracChangeset
for help on using the changeset viewer.