Project

General

Profile

« Previous | Next » 

Revision bb18021b

Added by Katja Luther over 6 years ago

fix setPublishFlagForSubtree in editor

View differences:

eu.etaxonomy.taxeditor.navigation/src/main/java/eu/etaxonomy/taxeditor/navigation/navigator/e4/handler/SetPublishFlagForSubtreeHandlerE4.java
43 43
    /**
44 44
     * @param label
45 45
     */
46
    public SetPublishFlagForSubtreeHandlerE4(String label) {
47
        super(label);
46
    public SetPublishFlagForSubtreeHandlerE4() {
47
        super(TaxonNavigatorLabels.CHANGE_PUBLISH_FOR_SUBTREE);
48 48
    }
49 49

  
50 50

  
eu.etaxonomy.taxeditor.navigation/src/main/java/eu/etaxonomy/taxeditor/navigation/navigator/operation/SetPublishForSubtreeOperation.java
61 61
        ITaxonNodeService taxonService = CdmApplicationState.getService(ITaxonNodeService.class);
62 62
//      taxonService.setSecundumForSubtree(config.getSubtreeUuid(), config.getNewSecundum(), config.isIncludeAcceptedTaxa(), config.isIncludeSynonyms(), config.isOverwriteExistingAccepted(), config.isOverwriteExistingSynonyms(), config.isIncludeSharedTaxa(), config.isEmptySecundumDetail(), null);
63 63
        eu.etaxonomy.cdm.common.monitor.IProgressMonitor cdmMonitor =  CdmProgressMonitorAdapter.CreateMonitor(monitor);
64
        updateResult = taxonService.setPublishForSubtree(config.getSubtreeUuid(), config.isPublish(), config.isIncludeAcceptedTaxa(), config.isIncludeSynonyms(), config.isIncludeSharedTaxa(), cdmMonitor);
64
        updateResult = taxonService.setPublishForSubtree(config.getSubtreeUuid(), config.isPublish(), config.isIncludeAcceptedTaxa(), config.isIncludeSynonyms(), config.isIncludeSharedTaxa(), null);
65 65
        return updateResult;
66 66
    }
67 67

  
eu.etaxonomy.taxeditor.store/src/main/java/eu/etaxonomy/taxeditor/ui/dialog/configurator/PublishSubTreeConfiguratorWizardPage.java
75 75

  
76 76
        control.setLayout(gridLayoutControl);
77 77
        control.setLayoutData(new GridData(SWT.FILL, SWT.LEFT, true, true));
78

  
79
        btnPublish = new Button(control, SWT.CHECK);
80
        btnPublish.setText(Messages.SetPublishConfiguration_Publish);
81
        btnPublish.setToolTipText(Messages.SetPublishConfiguration_Publish_tooltip);
82
        btnPublish.setSelection(configurator.isPublish());
83

  
84

  
78 85
      //  Composite control = toolkit.createComposite(composite);
79 86
        btnIncludeAcceptedTaxa = new Button(control, SWT.CHECK);
80 87
        btnIncludeAcceptedTaxa.setText(Messages.SetPublishConfiguration_IncludeAcceptedTaxa);
......
122 129
            }
123 130
        });
124 131

  
125
        btnPublish = new Button(control, SWT.CHECK);
126
        btnPublish.setText(Messages.SetPublishConfiguration_Publish);
127
        btnPublish.setToolTipText(Messages.SetPublishConfiguration_Publish_tooltip);
128
        btnPublish.setSelection(configurator.isPublish());
129 132

  
130 133
        m_bindingContext = initDataBindings();
131 134
        setControl(composite);

Also available in: Unified diff