Changeset 7365
- Timestamp:
- 2004-05-21T13:49:56+12:00 (20 years ago)
- File:
-
- 1 edited
Legend:
- Unmodified
- Added
- Removed
-
trunk/gli/src/org/greenstone/gatherer/cdm/GeneralManager.java
r7151 r7365 149 149 private boolean has_been_warned = false; 150 150 private boolean ready = false; 151 private CollectionMeta beta_collectionmeta;151 //private CollectionMeta beta_collectionmeta; 152 152 private CollectionMeta collection_extra_collectionmeta; 153 153 private CollectionMeta collection_name_collectionmeta; … … 166 166 private JButton browse_home_icon_button; 167 167 /** The checkbox controlling the state of the collection. */ 168 private JCheckBox beta_checkbox;168 //private JCheckBox beta_checkbox; 169 169 /** The checkbox controlling public access to the collection. */ 170 170 private JCheckBox public_checkbox; … … 189 189 super(); 190 190 // Retrieve some of the model elements, those we know aren't language dependant 191 beta_collectionmeta = new CollectionMeta(CollectionDesignManager.collect_config.getBeta());191 //beta_collectionmeta = new CollectionMeta(CollectionDesignManager.collect_config.getBeta()); 192 192 public_collectionmeta = new CollectionMeta(CollectionDesignManager.collect_config.getPublic()); 193 193 … … 252 252 public_checkbox = new JCheckBox("", public_collectionmeta.getValue(CollectionMeta.TEXT).equals(CollectionConfiguration.TRUE_STR)); 253 253 Dictionary.registerText(public_checkbox, "CDM.General.Access"); 254 beta_checkbox = new JCheckBox("", beta_collectionmeta.getValue(CollectionMeta.TEXT).equals(CollectionConfiguration.TRUE_STR));255 Dictionary.registerText(beta_checkbox, "CDM.General.Beta");254 //beta_checkbox = new JCheckBox("", beta_collectionmeta.getValue(CollectionMeta.TEXT).equals(CollectionConfiguration.TRUE_STR)); 255 //Dictionary.registerText(beta_checkbox, "CDM.General.Beta"); 256 256 257 257 JPanel description_panel = new JPanel(); … … 262 262 Dictionary.registerTooltip(description_textarea, "CDM.General.Collection_Extra_Tooltip"); 263 263 // Connection 264 beta_checkbox.addActionListener(CollectionDesignManager.change_listener);264 //beta_checkbox.addActionListener(CollectionDesignManager.change_listener); 265 265 BrowseListener browse_listener = new BrowseListener(StaticStrings.IMAGES_PATH_RELATIVE_TO_GSDL_PREFIX); 266 266 browse_about_icon_button.addActionListener(browse_listener); … … 326 326 small_icon_panel.add(browse_home_icon_button, BorderLayout.EAST); 327 327 328 box_panel.setLayout(new GridLayout( 2,1,5,2));328 box_panel.setLayout(new GridLayout(1,1,5,2)); 329 329 box_panel.add(public_checkbox); 330 box_panel.add(beta_checkbox);330 //box_panel.add(beta_checkbox); 331 331 332 332 description_panel.setLayout(new BorderLayout()); … … 376 376 // I forgot to keep the checkboxes up to date. Why hasn't this caused problems before today? 377 377 public_checkbox.setSelected(public_collectionmeta.getValue(CollectionMeta.TEXT).equals(CollectionConfiguration.TRUE_STR)); 378 beta_checkbox.setSelected(beta_collectionmeta.getValue(CollectionMeta.TEXT).equals(CollectionConfiguration.TRUE_STR));378 //beta_checkbox.setSelected(beta_collectionmeta.getValue(CollectionMeta.TEXT).equals(CollectionConfiguration.TRUE_STR)); 379 379 ready = true; 380 380 } … … 418 418 if(ready) { 419 419 // Boolean values 420 beta_collectionmeta.setValue((beta_checkbox.isSelected() ? CollectionConfiguration.TRUE_STR : CollectionConfiguration.FALSE_STR));420 //beta_collectionmeta.setValue((beta_checkbox.isSelected() ? CollectionConfiguration.TRUE_STR : CollectionConfiguration.FALSE_STR)); 421 421 public_collectionmeta.setValue((public_checkbox.isSelected() ? CollectionConfiguration.TRUE_STR : CollectionConfiguration.FALSE_STR)); 422 422 String creator_email_str = creator_emailfield.getText();
Note:
See TracChangeset
for help on using the changeset viewer.