Revision 7bd84a66
Added by Patrick Plitzner about 7 years ago
eu.etaxonomy.taxeditor.store/src/main/java/eu/etaxonomy/taxeditor/ui/dialog/configurator/deleteConfigurator/DeleteConfiguratorDialog.java | ||
---|---|---|
46 | 46 |
|
47 | 47 |
public DeleteConfiguratorDialog(DeleteConfiguratorBase configurator, Shell parentShell, String dialogTitle, |
48 | 48 |
Image dialogTitleImage, String dialogMessage, int dialogImageType, String[] dialogButtonLabels, int defaultIndex) { |
49 |
super(parentShell, dialogTitle, dialogTitleImage, dialogMessage, dialogImageType, dialogButtonLabels, defaultIndex); |
|
50 |
this.configurator = configurator; |
|
51 |
this.fromBulkEditor = false; |
|
49 |
this(configurator, parentShell, dialogTitle, dialogTitleImage, dialogMessage, dialogImageType, dialogButtonLabels, defaultIndex, false); |
|
52 | 50 |
} |
53 | 51 |
|
54 | 52 |
@Override |
... | ... | |
65 | 63 |
} else if(configurator instanceof NameDeletionConfigurator){ |
66 | 64 |
composite.addConfiguratorComposite(new DeleteNameConfiguratorComposite((NameDeletionConfigurator) configurator, composite.getSectionConfigure(), SWT.NONE)); |
67 | 65 |
} else if(configurator instanceof MediaDeletionConfigurator){ |
68 |
if (!fromBulkEditor){ |
|
69 |
composite.addConfiguratorComposite(new DeleteMediaConfiguratorComposite((MediaDeletionConfigurator) configurator, composite.getSectionConfigure(), SWT.NONE, fromBulkEditor)); |
|
70 |
}else{ |
|
71 |
composite.addConfiguratorComposite(new DeleteMediaConfiguratorComposite((MediaDeletionConfigurator) configurator, composite.getSectionConfigure(), SWT.NONE)); |
|
72 |
} |
|
66 |
composite.addConfiguratorComposite(new DeleteMediaConfiguratorComposite((MediaDeletionConfigurator) configurator, composite.getSectionConfigure(), SWT.NONE, fromBulkEditor)); |
|
73 | 67 |
} |
74 | 68 |
|
75 | 69 |
|
Also available in: Unified diff
ref #6527 Refactor configurator composite