comparison dwtx/jface/action/GroupMarker.d @ 16:e0f0aaf75edd

PopupDialog, bindings and actions
author Frank Benoit <benoit@tionex.de>
date Tue, 01 Apr 2008 08:00:31 +0200
parents
children ea8ff534f622
comparison
equal deleted inserted replaced
15:db8940420ed8 16:e0f0aaf75edd
1 /*******************************************************************************
2 * Copyright (c) 2000, 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 * Port to the D programming language:
11 * Frank Benoit <benoit@tionex.de>
12 *******************************************************************************/
13 module dwtx.jface.action.GroupMarker;
14
15 import dwtx.jface.action.AbstractGroupMarker;
16
17 import dwt.dwthelper.utils;
18
19 /**
20 * A group marker is a special kind of contribution item denoting
21 * the beginning of a group. These groups are used to structure
22 * the list of items. Unlike regular contribution items and
23 * separators, group markers have no visual representation.
24 * The name of the group is synonymous with the contribution item id.
25 * <p>
26 * This class may be instantiated; it is not intended to be
27 * subclassed outside the framework.
28 * </p>
29 */
30 public class GroupMarker : AbstractGroupMarker {
31 /**
32 * Create a new group marker with the given name.
33 * The group name must not be <code>null</code> or the empty string.
34 * The group name is also used as the item id.
35 *
36 * @param groupName the name of the group
37 */
38 public this(String groupName) {
39 super(groupName);
40 }
41
42 /**
43 * The <code>GroupMarker</code> implementation of this method
44 * returns <code>false</code> since group markers are always invisible.
45 */
46 public bool isVisible() {
47 return false;
48 }
49 }