Changeset 10552
- Timestamp:
- 2005-08-23T15:08:42+12:00 (19 years ago)
- Location:
- trunk/gli/src/org/greenstone/gatherer
- Files:
-
- 2 edited
Legend:
- Unmodified
- Added
- Removed
-
trunk/gli/src/org/greenstone/gatherer/cdm/GeneralManager.java
r10511 r10552 147 147 private boolean has_been_warned = false; 148 148 private boolean ready = false; 149 //private CollectionMeta beta_collectionmeta;150 149 private CollectionMeta collection_extra_collectionmeta; 151 150 private CollectionMeta collection_name_collectionmeta; … … 163 162 /** Button to browse for the collection home page icon. */ 164 163 private JButton browse_home_icon_button; 165 /** The checkbox controlling the state of the collection. */166 //private JCheckBox beta_checkbox;167 164 /** The checkbox controlling public access to the collection. */ 168 165 private JCheckBox public_checkbox; … … 187 184 super(); 188 185 // Retrieve some of the model elements, those we know aren't language dependant 189 //beta_collectionmeta = new CollectionMeta(CollectionDesignManager.collect_config.getBeta());190 186 public_collectionmeta = new CollectionMeta(CollectionDesignManager.collect_config.getPublic()); 191 187 … … 246 242 Dictionary.registerText(browse_home_icon_button, "General.Browse"); 247 243 248 // public and beta244 // public 249 245 JPanel box_panel = new JPanel(); 250 246 public_checkbox = new JCheckBox("", public_collectionmeta.getValue(CollectionMeta.TEXT).equals(CollectionConfiguration.TRUE_STR)); 251 247 Dictionary.registerText(public_checkbox, "CDM.General.Access"); 252 //beta_checkbox = new JCheckBox("", beta_collectionmeta.getValue(CollectionMeta.TEXT).equals(CollectionConfiguration.TRUE_STR));253 //Dictionary.registerText(beta_checkbox, "CDM.General.Beta");254 248 255 249 JPanel description_panel = new JPanel(); … … 260 254 Dictionary.registerTooltip(description_textarea, "CDM.General.Collection_Extra_Tooltip"); 261 255 // Connection 262 //beta_checkbox.addActionListener(CollectionDesignManager.change_listener);263 256 BrowseListener browse_listener = new BrowseListener(StaticStrings.IMAGES_PATH_RELATIVE_TO_GSDL_PREFIX); 264 257 browse_about_icon_button.addActionListener(browse_listener); … … 334 327 box_panel.setLayout(new GridLayout(1,1,5,2)); 335 328 box_panel.add(public_checkbox); 336 //box_panel.add(beta_checkbox);337 329 338 330 description_panel.setLayout(new BorderLayout()); … … 382 374 // I forgot to keep the checkboxes up to date. Why hasn't this caused problems before today? 383 375 public_checkbox.setSelected(public_collectionmeta.getValue(CollectionMeta.TEXT).equals(CollectionConfiguration.TRUE_STR)); 384 //beta_checkbox.setSelected(beta_collectionmeta.getValue(CollectionMeta.TEXT).equals(CollectionConfiguration.TRUE_STR));385 376 ready = true; 386 377 } … … 424 415 if(ready) { 425 416 // Boolean values 426 //beta_collectionmeta.setValue((beta_checkbox.isSelected() ? CollectionConfiguration.TRUE_STR : CollectionConfiguration.FALSE_STR));427 417 public_collectionmeta.setValue((public_checkbox.isSelected() ? CollectionConfiguration.TRUE_STR : CollectionConfiguration.FALSE_STR)); 428 418 String creator_email_str = creator_emailfield.getText(); -
trunk/gli/src/org/greenstone/gatherer/util/StaticStrings.java
r10540 r10552 62 62 static final public String COLLECTION_ELEMENT = "Collection"; 63 63 static final public String COLLECTION_STR = "Collection: "; 64 static final public String COLLECTIONMETADATA_BETA_ELEMENT = "Beta";65 static final public String COLLECTIONMETADATA_BETA_STR = "beta";66 64 static final public String COLLECTIONMETADATA_COLLECTIONNAME_STR = "collectionname"; 67 65 static final public String COLLECTIONMETADATA_COLLECTIONEXTRA_STR = "collectionextra";
Note:
See TracChangeset
for help on using the changeset viewer.