- GridLayout gridLayout = new GridLayout();
- composite.setLayout(gridLayout);
- controller = CdmStore.getCurrentApplicationConfiguration();
- if (controller != null){
- IPreferenceService service = controller.getPreferenceService();
- PrefKey key = CdmPreference.NewKey(PreferenceSubject.NewTaxEditorInstance(), PreferencePredicate.ShowImportExportMenu);
- CdmPreference isShowSpecimenPref = service.find(key);
- if (isShowSpecimenPref != null){
- this.isShowIOMenu = Boolean.valueOf(isShowSpecimenPref.getValue());
- }
-
- key = CdmPreference.NewKey(PreferenceSubject.NewTaxEditorInstance(), PreferencePredicate.ShowMediaView);
- CdmPreference isShowMediaViewPref = service.find(key);
- if (isShowMediaViewPref != null){
- this.isShowMediaView = Boolean.valueOf(isShowMediaViewPref.getValue());
- }
-
- key = CdmPreference.NewKey(PreferenceSubject.NewTaxEditorInstance(), PreferencePredicate.ShowChecklistPerspective);
- CdmPreference isShowChecklistPref = service.find(key);
- if (isShowChecklistPref != null){
- this.isShowCheckListPerspective = Boolean.valueOf(isShowChecklistPref.getValue());
- }
-
- key = CdmPreference.NewKey(PreferenceSubject.NewTaxEditorInstance(), PreferencePredicate.ShowTaxonNodeWizard);
- CdmPreference isShowTaxonNodeWizardPref = service.find(key);
- if (isShowTaxonNodeWizardPref != null){
- this.isShowTaxonNodeWizard = Boolean.valueOf(isShowTaxonNodeWizardPref.getValue());
- }
- }
- final Button showIOMenuButton = new Button(composite, SWT.CHECK);
-
- showIOMenuButton.setText(Messages.DatabasePreferncesPage_Show_IOMenu);
-
- showIOMenuButton.setSelection(isShowIOMenu);
- showIOMenuButton.addSelectionListener(new SelectionAdapter(){
- @Override
- public void widgetSelected(SelectionEvent e) {
- isShowIOMenu = showIOMenuButton.getSelection();
-
- }
- });
-
- final Button showMediaViewButton = new Button(composite, SWT.CHECK);
-
- showMediaViewButton.setText(Messages.DatabasePreferncesPage_Show_MediaView);
-
- showMediaViewButton.setSelection(isShowMediaView);
- showMediaViewButton.addSelectionListener(new SelectionAdapter(){
- @Override
- public void widgetSelected(SelectionEvent e) {
- isShowMediaView = showIOMenuButton.getSelection();
-
- }
- });
- final Button showChecklistPerspectiveButton = new Button(composite, SWT.CHECK);
-
- showChecklistPerspectiveButton.setText(Messages.DatabasePreferncesPage_Show_ChecklistPerspective);
-
- showChecklistPerspectiveButton.setSelection(isShowCheckListPerspective);
- showChecklistPerspectiveButton.addSelectionListener(new SelectionAdapter(){
- @Override
- public void widgetSelected(SelectionEvent e) {
- isShowCheckListPerspective = showChecklistPerspectiveButton.getSelection();
-
- }
- });
-
- final Button showTaxonNodeWizardButton = new Button(composite, SWT.CHECK);
-
- showTaxonNodeWizardButton.setText(Messages.DatabasePreferncesPage_Show_TaxonNodeWizard);
-
- showTaxonNodeWizardButton.setSelection(isShowTaxonNodeWizard);
- showTaxonNodeWizardButton.addSelectionListener(new SelectionAdapter(){
- @Override
- public void widgetSelected(SelectionEvent e) {
- isShowTaxonNodeWizard = showTaxonNodeWizardButton.getSelection();
-
- }
- });
+// GridLayout gridLayout = new GridLayout();
+// composite.setLayout(gridLayout);
+// controller = CdmStore.getCurrentApplicationConfiguration();
+// if (controller != null){
+// IPreferenceService service = controller.getPreferenceService();
+// PrefKey key = CdmPreference.NewKey(PreferenceSubject.NewTaxEditorInstance(), PreferencePredicate.ShowImportExportMenu);
+// CdmPreference isShowSpecimenPref = service.find(key);
+// if (isShowSpecimenPref != null){
+// this.isShowIOMenu = Boolean.valueOf(isShowSpecimenPref.getValue());
+// }
+//
+// key = CdmPreference.NewKey(PreferenceSubject.NewTaxEditorInstance(), PreferencePredicate.ShowMediaView);
+// CdmPreference isShowMediaViewPref = service.find(key);
+// if (isShowMediaViewPref != null){
+// this.isShowMediaView = Boolean.valueOf(isShowMediaViewPref.getValue());
+// }
+//
+// key = CdmPreference.NewKey(PreferenceSubject.NewTaxEditorInstance(), PreferencePredicate.ShowChecklistPerspective);
+// CdmPreference isShowChecklistPref = service.find(key);
+// if (isShowChecklistPref != null){
+// this.isShowCheckListPerspective = Boolean.valueOf(isShowChecklistPref.getValue());
+// }
+//
+// key = CdmPreference.NewKey(PreferenceSubject.NewTaxEditorInstance(), PreferencePredicate.ShowTaxonNodeWizard);
+// CdmPreference isShowTaxonNodeWizardPref = service.find(key);
+// if (isShowTaxonNodeWizardPref != null){
+// this.isShowTaxonNodeWizard = Boolean.valueOf(isShowTaxonNodeWizardPref.getValue());
+// }
+// }
+// final Button showIOMenuButton = new Button(composite, SWT.CHECK);
+//
+// showIOMenuButton.setText(Messages.DatabasePreferncesPage_Show_IOMenu);
+//
+// showIOMenuButton.setSelection(isShowIOMenu);
+// showIOMenuButton.addSelectionListener(new SelectionAdapter(){
+// @Override
+// public void widgetSelected(SelectionEvent e) {
+// isShowIOMenu = showIOMenuButton.getSelection();
+//
+// }
+// });
+//
+// final Button showMediaViewButton = new Button(composite, SWT.CHECK);
+//
+// showMediaViewButton.setText(Messages.DatabasePreferncesPage_Show_MediaView);
+//
+// showMediaViewButton.setSelection(isShowMediaView);
+// showMediaViewButton.addSelectionListener(new SelectionAdapter(){
+// @Override
+// public void widgetSelected(SelectionEvent e) {
+// isShowMediaView = showIOMenuButton.getSelection();
+//
+// }
+// });
+// final Button showChecklistPerspectiveButton = new Button(composite, SWT.CHECK);
+//
+// showChecklistPerspectiveButton.setText(Messages.DatabasePreferncesPage_Show_ChecklistPerspective);
+//
+// showChecklistPerspectiveButton.setSelection(isShowCheckListPerspective);
+// showChecklistPerspectiveButton.addSelectionListener(new SelectionAdapter(){
+// @Override
+// public void widgetSelected(SelectionEvent e) {
+// isShowCheckListPerspective = showChecklistPerspectiveButton.getSelection();
+//
+// }
+// });
+//
+// final Button showTaxonNodeWizardButton = new Button(composite, SWT.CHECK);
+//
+// showTaxonNodeWizardButton.setText(Messages.DatabasePreferncesPage_Show_TaxonNodeWizard);
+//
+// showTaxonNodeWizardButton.setSelection(isShowTaxonNodeWizard);
+// showTaxonNodeWizardButton.addSelectionListener(new SelectionAdapter(){
+// @Override
+// public void widgetSelected(SelectionEvent e) {
+// isShowTaxonNodeWizard = showTaxonNodeWizardButton.getSelection();
+//
+// }
+// });