KickJava   Java API By Example, From Geeks To Geeks.

Java > Open Source Codes > org > eclipse > emf > mapping > ecore2ecore > presentation > Ecore2EcoreActionBarContributor


1 /**
2  * <copyright>
3  *
4  * Copyright (c) 2004-2005 IBM Corporation and others.
5  * All rights reserved. This program and the accompanying materials
6  * are made available under the terms of the Eclipse Public License v1.0
7  * which accompanies this distribution, and is available at
8  * http://www.eclipse.org/legal/epl-v10.html
9  *
10  * Contributors:
11  * IBM - Initial API and implementation
12  *
13  * </copyright>
14  *
15  * $Id: Ecore2EcoreActionBarContributor.java,v 1.6 2005/06/08 06:23:41 nickb Exp $
16  */

17 package org.eclipse.emf.mapping.ecore2ecore.presentation;
18
19 import org.eclipse.emf.edit.ui.action.EditingDomainActionBarContributor;
20 import org.eclipse.emf.edit.ui.action.LoadResourceAction;
21 import org.eclipse.emf.edit.ui.action.ValidateAction;
22 import org.eclipse.jface.action.IToolBarManager;
23 import org.eclipse.jface.action.Separator;
24
25 /**
26  * This is the action bar contributor for the Ecore2Ecore model editor.
27  * @generated NOT
28  */

29 public class Ecore2EcoreActionBarContributor extends EditingDomainActionBarContributor
30 {
31   /**
32    * This creates an instance of the contributor.
33    */

34   public Ecore2EcoreActionBarContributor()
35   {
36     loadResourceAction = new LoadResourceAction();
37     validateAction = new ValidateAction();
38   }
39
40   /**
41    * This adds Separators for editor additions to the tool bar.
42    */

43   public void contributeToToolBar(IToolBarManager toolBarManager)
44   {
45     toolBarManager.add(new Separator("ecore2ecore-settings"));
46     toolBarManager.add(new Separator("ecore2ecore-additions"));
47   }
48
49 }
Popular Tags