KickJava   Java API By Example, From Geeks To Geeks.

Java > Open Source Codes > org > eclipse > ui > internal > cheatsheets > actions > IMenuContributor


1 /*******************************************************************************
2  * Copyright (c) 2005, 2006 IBM Corporation and others.
3  * All rights reserved. This program and the accompanying materials
4  * are made available under the terms of the Eclipse Public License v1.0
5  * which accompanies this distribution, and is available at
6  * http://www.eclipse.org/legal/epl-v10.html
7  *
8  * Contributors:
9  * IBM Corporation - initial API and implementation
10  *******************************************************************************/

11
12 package org.eclipse.ui.internal.cheatsheets.actions;
13
14 import org.eclipse.swt.widgets.Menu;
15
16 /**
17  * Interface representing an object that can contribute to a menu
18  */

19
20 public interface IMenuContributor {
21     /**
22      * Contribute zero or more items to a menu
23      * @param menu The menu to add the contributions
24      * @param index The index before cintributions are added
25      * @return the index after contributions are added
26      */

27     public int contributeToViewMenu(Menu menu, int index);
28 }
29
Popular Tags