1 | public static class DelegateCommand extends CommandWrapper implements CommandActionDelegate↵ | | 1 | public static class DelegateCommand extends CommandWrapper implements CommandActionDelegate↵
|
2 | {↵ | | 2 | {↵
|
3 | protected MappingDomain mappingDomain;↵ | | 3 | protected MappingDomain mappingDomain;↵
|
4 | protected Collection<?> collection;↵ | | 4 | protected Collection<?> collection;↵
|
|
5 | public DelegateCommand(EditingDomain editingDomain, CommandParameter commandParameter)↵ | | 5 | public DelegateCommand(EditingDomain editingDomain, CommandParameter commandParameter)↵
|
6 | {↵ | | 6 | {↵
|
7 | super(CreateMappingCommand.create((MappingDomain)editingDomain, commandParameter.getCollection()));↵ | | 7 | super(CreateMappingCommand.create((MappingDomain)editingDomain, commandParameter.getCollection()));↵
|
8 | mappingDomain = (MappingDomain)editingDomain;↵ | | 8 | mappingDomain = (MappingDomain)editingDomain;↵
|
9 | collection = commandParameter.getCollection();↵ | | 9 | collection = commandParameter.getCollection();↵
|
10 | }↵ | | 10 | }↵
|
|
11 | /**↵ | | 11 | /**↵
|
12 | * This returns the icon, if any, of the action.↵ | | 12 | * This returns the icon, if any, of the action.↵
|
13 | */↵ | | 13 | */↵
|
14 | public Object getImage()↵ | | 14 | public Object getImage()↵
|
15 | {↵ | | 15 | {↵
|
16 | return "Placeholder";↵ | | 16 | return "Placeholder";↵
|
17 | }↵ | | 17 | }↵
|
|
18 | public String getText()↵ | | 18 | public String getText()↵
|
19 | {↵ | | 19 | {↵
|
20 | return getLabel();↵ | | 20 | return getLabel();↵
|
21 | }↵ | | 21 | }↵
|
|
22 | /**↵ | | 22 | /**↵
|
23 | * This returns the tool tip text, if any, of the action.↵ | | 23 | * This returns the tool tip text, if any, of the action.↵
|
24 | */↵ | | 24 | */↵
|
25 | public String getToolTipText()↵ | | 25 | public String getToolTipText()↵
|
26 | {↵ | | 26 | {↵
|
27 | return getDescription(); | | 27 | return getDescription();
|