Project

General

Profile

Revision e3d544f0

IDe3d544f05036b4af8e78c815a08dc2458a5ef79d
Parent 860fc861
Child b294e97e

Added by Katja Luther over 3 years ago

fix delete media configuration wizard

View differences:

eu.etaxonomy.taxeditor.store/src/main/java/eu/etaxonomy/taxeditor/ui/dialog/configurator/deleteConfigurator/DeleteMediaConfiguratorComposite.java
71 71
//        }
72 72
//        else {
73 73
        	
74
        	btnDelete = new Button(this, SWT.RADIO);
75
        	btnDelete.setText(Messages.DeleteConfiguration_media_delete);
74
        	
76 75
        	//btnDelete.setSelection(configurator.setDeleteFrom(deleteFrom););
77 76
        	
78 77
        	btnDeleteIfUsedInSomeWhereElse = new Button(this, SWT.RADIO);
......
89 88
//                btnDeleteIfUsedInSpecimenDescription.setEnabled(b.getSelection());
90 89
//                btnDeleteIfUsedInTaxonDescription.setEnabled(b.getSelection());
91 90
//            });
92
            btnRemoveFromImageGallery = new Button(this, SWT.RADIO);
93
            btnRemoveFromImageGallery.setText(Messages.DeleteConfiguration_media_removeFromGallery);
94
            btnRemoveFromImageGallery.setSelection(configurator.isOnlyRemoveFromGallery());
95
        	
91
        	if (!inBulkEditor){
92
        		btnDelete = new Button(this, SWT.RADIO);
93
            	btnDelete.setText(Messages.DeleteConfiguration_media_delete);
94
            	
95
	            btnRemoveFromImageGallery = new Button(this, SWT.RADIO);
96
	            btnRemoveFromImageGallery.setText(Messages.DeleteConfiguration_media_removeFromGallery);
97
	            btnRemoveFromImageGallery.setSelection(configurator.isOnlyRemoveFromGallery());
98
        	}
96 99
//        }
97 100

  
98 101
        m_bindingContext = initDataBindings();
......
118 121
//	        IObservableValue observeSelectionBtnDelete = WidgetProperties.selection().observe(btnDelete);
119 122
//	        IObservableValue deleteConfiguratorObserveValue = PojoProperties.value("deleteIfUsedInTaxonDescription").observe(configurator);
120 123
//	        bindingContext.bindValue(observeSelectionBtnDelete, deleteConfiguratorObserveValue, null, null);
121
       
122
            IObservableValue observeSelectionBtnRemoveFromImageGallery = WidgetProperties.selection().observe(btnRemoveFromImageGallery);
123
            IObservableValue removeFromImageGalleryConfiguratorObserveValue = PojoProperties.value("onlyRemoveFromGallery").observe(configurator);
124
            bindingContext.bindValue(observeSelectionBtnRemoveFromImageGallery, removeFromImageGalleryConfiguratorObserveValue, null, null);
125
//        }
124
 	       if (!inBulkEditor){
125
	            IObservableValue observeSelectionBtnRemoveFromImageGallery = WidgetProperties.selection().observe(btnRemoveFromImageGallery);
126
	            IObservableValue removeFromImageGalleryConfiguratorObserveValue = PojoProperties.value("onlyRemoveFromGallery").observe(configurator);
127
	            bindingContext.bindValue(observeSelectionBtnRemoveFromImageGallery, removeFromImageGalleryConfiguratorObserveValue, null, null);
128
 	       }
126 129

  
127 130
       
128 131

  

Also available in: Unified diff

Add picture from clipboard (Maximum size: 40 MB)