01: /*******************************************************************************
02: * Copyright (c) 2005, 2006 IBM Corporation and others.
03: * All rights reserved. This program and the accompanying materials
04: * are made available under the terms of the Eclipse Public License v1.0
05: * which accompanies this distribution, and is available at
06: * http://www.eclipse.org/legal/epl-v10.html
07: *
08: * Contributors:
09: * IBM Corporation - initial API and implementation
10: *******************************************************************************/package org.eclipse.ui.internal.cheatsheets.actions;
11:
12: import org.eclipse.swt.widgets.Menu;
13:
14: /**
15: * Interface representing an object that can contribute to a menu
16: */
17:
18: public interface IMenuContributor {
19: /**
20: * Contribute zero or more items to a menu
21: * @param menu The menu to add the contributions
22: * @param index The index before cintributions are added
23: * @return the index after contributions are added
24: */
25: public int contributeToViewMenu(Menu menu, int index);
26: }
|