Revision 33ec4d77
Added by Patrick Plitzner over 8 years ago
eu.etaxonomy.taxeditor.editor/src/main/java/eu/etaxonomy/taxeditor/editor/view/derivate/contextMenu/CreateDerivateContextMenu.java | ||
---|---|---|
37 | 37 |
*/ |
38 | 38 |
public class CreateDerivateContextMenu extends CompoundContributionItem { |
39 | 39 |
|
40 |
/* (non-Javadoc) |
|
41 |
* @see org.eclipse.ui.actions.CompoundContributionItem#getContributionItems() |
|
42 |
*/ |
|
43 | 40 |
@Override |
44 | 41 |
protected IContributionItem[] getContributionItems() { |
45 | 42 |
IContributionItem[] contributionItems = new IContributionItem[] { |
... | ... | |
115 | 112 |
MenuItem existingMediaItem = new MenuItem(mediaMenu, SWT.NONE); |
116 | 113 |
existingMediaItem.setText("Media Specimen with existing media"); |
117 | 114 |
existingMediaItem.addSelectionListener(new SelectionAdapter() { |
118 |
/* (non-Javadoc) |
|
119 |
* @see org.eclipse.swt.events.SelectionAdapter#widgetSelected(org.eclipse.swt.events.SelectionEvent) |
|
120 |
*/ |
|
121 | 115 |
@Override |
122 | 116 |
public void widgetSelected(SelectionEvent e) { |
123 | 117 |
//select media |
... | ... | |
173 | 167 |
this.derivationEventType = derivationEventType; |
174 | 168 |
} |
175 | 169 |
|
176 |
/* (non-Javadoc) |
|
177 |
* @see org.eclipse.swt.events.SelectionListener#widgetSelected(org.eclipse.swt.events.SelectionEvent) |
|
178 |
*/ |
|
179 | 170 |
@Override |
180 | 171 |
public void widgetSelected(SelectionEvent e) { |
181 | 172 |
DerivateView derivateView = null; |
Also available in: Unified diff
Trim code