View Javadoc

1   /*
2    * Copyright 1999-2006 Faculty of Mathematics, Physics and Informatics, Comenius
3    * University, Bratislava. This file is protected by the Mozilla Public License
4    * version 1.1 (the License); you may not use this file except in compliance
5    * with the License. You may obtain a copy of the License at
6    * http://euromath2.sourceforge.net/license.html Unless required by applicable
7    * law or agreed to in writing, software distributed under the License is
8    * distributed on an "AS IS" BASIS, WITHOUT WARRANTIES OR CONDITIONS OF ANY
9    * KIND, either express or implied. See the License for the specific language
10   * governing permissions and limitations under the License.
11   */
12  package sk.uniba.euromath.editor.actions;
13  
14  import org.eclipse.gef.ui.actions.UpdateAction;
15  import org.eclipse.jface.action.IAction;
16  import org.eclipse.ui.IWorkbenchPart;
17  
18  /***
19   * Interface for all action used for global contributions in
20   * MultiViewActionContributor. This type of action is used in
21   * {@link sk.uniba.euromath.editor.actions.IActionContributor}, because using this
22   * type of action is easier and it is not hard to implement it and mainly are
23   * used for global contributions.
24   * 
25   * @author Tomáš Studva 26.10.2005
26   */
27  public interface IMultiViewAction extends IAction, UpdateAction {
28  
29      /***
30       * Sets new workbench part. Used when active workbench part was changed.
31       * 
32       * @param part
33       *            active workbench part
34       */
35      public void setWorkbenchPart(IWorkbenchPart part);
36  }