Project

General

Profile

« Previous | Next » 

Revision cf3d9f76

Added by Patrick Plitzner over 4 years ago

ref #8475 Create FeatureState in wizard dialog

View differences:

eu.etaxonomy.taxeditor.store/src/main/java/eu/etaxonomy/taxeditor/ui/section/feature/OnlyApplicableIfEntityCollectionSection.java
12 12
import java.util.Collection;
13 13
import java.util.Comparator;
14 14

  
15
import org.eclipse.core.runtime.IStatus;
16
import org.eclipse.jface.wizard.WizardDialog;
17

  
15 18
import eu.etaxonomy.cdm.api.conversation.ConversationHolder;
16 19
import eu.etaxonomy.cdm.model.description.FeatureState;
17 20
import eu.etaxonomy.cdm.model.term.TermNode;
......
53 56
     */
54 57
    @Override
55 58
    public FeatureState createNewElement() {
56
        return FeatureState.NewInstance();
59
        FeatureStateWizard wizard = new FeatureStateWizard(formFactory, "Only applicable if");
60
        WizardDialog dialog = new WizardDialog(getLayoutComposite().getShell(), wizard);
61
        int status = dialog.open();
62
        if(status == IStatus.OK) {
63
            return wizard.getFeatureState();
64
        }
65
        return null;
57 66
    }
58 67

  
59 68
    /**

Also available in: Unified diff