1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18 package pl.edu.agh.cast.editor.action;
19
20 import org.eclipse.jface.resource.ImageDescriptor;
21 import org.eclipse.ui.actions.RetargetAction;
22
23 import pl.edu.agh.cast.util.Images;
24 import pl.edu.agh.cast.util.Messages;
25
26
27
28
29
30
31 public class FitZoomRetargetAction extends RetargetAction {
32
33
34
35
36 public FitZoomRetargetAction() {
37 super(null, null);
38 setText(Messages.FitZoomAction_0);
39 setImageDescriptor(ImageDescriptor.createFromImage(Images.getInstance().get(Images.FIT_ZOOM)));
40 setId(FitZoomAction.ID);
41 setToolTipText(Messages.FitZoomAction_0);
42 setActionDefinitionId(FitZoomAction.ID);
43 }
44
45 }