View Javadoc

1   /*
2    * This file is a part of CAST project.
3    * (c) Copyright 2007, AGH University of Science & Technology
4    * https://caribou.iisg.agh.edu.pl/trac/cast
5    *
6    * Licensed under the Eclipse Public License, Version 1.0 (the "License").
7    * You may not use this file except in compliance with the License.
8    * You may obtain a copy of the License at
9    * http://www.eclipse.org/legal/epl-v10.html
10   */
11  /*
12   * File: FitZoomRetargetAction.java
13   * Created: 2007-00-00
14   * Author: kornel
15   * $Id: FitZoomRetargetAction.java 2892 2009-05-22 10:14:10Z apohllo $
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   * This class represents retarget version of action which fits zoom level.
28   * 
29   * @author AGH CAST Team
30   */
31  public class FitZoomRetargetAction extends RetargetAction {
32  
33  	/**
34  	 * Public constructor.
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  }