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/InapplicableIfEntityCollectionSection.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;
......
54 57
     */
55 58
    @Override
56 59
    public FeatureState createNewElement() {
57
        return FeatureState.NewInstance();
60
        FeatureStateWizard wizard = new FeatureStateWizard(formFactory, "Inapplicable If");
61
        WizardDialog dialog = new WizardDialog(getLayoutComposite().getShell(), wizard);
62
        int status = dialog.open();
63
        if(status == IStatus.OK) {
64
            return wizard.getFeatureState();
65
        }
66
        return null;
58 67
    }
59 68

  
60 69
    /**

Also available in: Unified diff