Revision 939829bc
Added by Patrick Plitzner about 7 years ago
eu.etaxonomy.taxeditor.navigation/src/main/java/eu/etaxonomy/taxeditor/navigation/key/polytomous/handler/DeleteHandler.java | ||
---|---|---|
23 | 23 |
import eu.etaxonomy.taxeditor.navigation.NavigationUtil; |
24 | 24 |
import eu.etaxonomy.taxeditor.navigation.key.polytomous.PolytomousKeyViewPart; |
25 | 25 |
import eu.etaxonomy.taxeditor.navigation.key.polytomous.operation.DeleteOperation; |
26 |
import eu.etaxonomy.taxeditor.navigation.l10n.Messages; |
|
26 | 27 |
import eu.etaxonomy.taxeditor.operation.AbstractPostOperation; |
27 | 28 |
|
28 | 29 |
/** |
... | ... | |
32 | 33 |
*/ |
33 | 34 |
public class DeleteHandler extends AbstractHandler { |
34 | 35 |
|
35 |
/* (non-Javadoc) |
|
36 |
protected static final String CONFIRM_MESSAGE = Messages.DeleteHandler_CONFIRM_MESSAGE; |
|
37 |
protected static final String CONFIRM = Messages.DeleteHandler_CONFIRM; |
|
38 |
|
|
39 |
/* (non-Javadoc) |
|
36 | 40 |
* @see org.eclipse.core.commands.IHandler#execute(org.eclipse.core.commands.ExecutionEvent) |
37 | 41 |
*/ |
38 | 42 |
@Override |
... | ... | |
45 | 49 |
return null; |
46 | 50 |
} |
47 | 51 |
|
48 |
boolean confirmation = MessagingUtils.confirmDialog("Confirm deletion", "Do you want to delete the selected key" + (keys.size() == 1 ? "" : "s") + "?");
|
|
52 |
boolean confirmation = MessagingUtils.confirmDialog(CONFIRM, CONFIRM_MESSAGE);
|
|
49 | 53 |
|
50 | 54 |
if(confirmation){ |
51 | 55 |
|
Also available in: Unified diff
ref #4611 i18n for taxeditor.navigator plugin