01: /*******************************************************************************
02: * Copyright (c) 2000, 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.jface.action;
11:
12: /**
13: * A group marker is a special kind of contribution item denoting
14: * the beginning of a group. These groups are used to structure
15: * the list of items. Unlike regular contribution items and
16: * separators, group markers have no visual representation.
17: * The name of the group is synonymous with the contribution item id.
18: * <p>
19: * This class may be instantiated; it is not intended to be
20: * subclassed outside the framework.
21: * </p>
22: */
23: public class GroupMarker extends AbstractGroupMarker {
24: /**
25: * Create a new group marker with the given name.
26: * The group name must not be <code>null</code> or the empty string.
27: * The group name is also used as the item id.
28: *
29: * @param groupName the name of the group
30: */
31: public GroupMarker(String groupName) {
32: super (groupName);
33: }
34:
35: /**
36: * The <code>GroupMarker</code> implementation of this method
37: * returns <code>false</code> since group markers are always invisible.
38: */
39: public boolean isVisible() {
40: return false;
41: }
42: }
|