View Javadoc

1   /*
2    * This file is a part of CAST project.
3    * (c) Copyright 2007, AGH University of Science & Technology
4    * All rights reserved. Check the documentation for licensing terms.
5    * https://caribou.iisg.agh.edu.pl/trac/cast
6    */
7   package pl.edu.agh.cast.schema.action;
8   
9   import org.eclipse.ui.IWorkbenchPart;
10  
11  import pl.edu.agh.cast.schema.figure.ConnectionType;
12  import pl.edu.agh.cast.schema.util.Messages;
13  
14  /**
15   * Action to change the connection type to {@link ConnectionType#SINGLE_CONNECTION}.
16   *
17   * @author AGH CAST Team
18   */
19  public class SingleConnectionAction extends ChangeConnectionTypeAction {
20  
21      public static final String ID = "singleConnectionTypeChanged"; //$NON-NLS-1$
22  
23      public static final String MENU_TEXT = Messages.ConnectionTypeChangedAction_0;
24  
25      public SingleConnectionAction(IWorkbenchPart part) {
26          super(part, ConnectionType.SINGLE_CONNECTION);
27      }
28  
29      @Override
30      public String getId() {
31          return ID;
32      }
33  
34      @Override
35      public String getText() {
36          return MENU_TEXT;
37      }
38  }