当前位置: 首页>>代码示例>>Java>>正文


Java SelectionToolEntry类代码示例

本文整理汇总了Java中org.eclipse.gef.palette.SelectionToolEntry的典型用法代码示例。如果您正苦于以下问题:Java SelectionToolEntry类的具体用法?Java SelectionToolEntry怎么用?Java SelectionToolEntry使用的例子?那么恭喜您, 这里精选的类代码示例或许可以为您提供帮助。


SelectionToolEntry类属于org.eclipse.gef.palette包,在下文中一共展示了SelectionToolEntry类的7个代码示例,这些例子默认根据受欢迎程度排序。您可以为喜欢或者感觉有用的代码点赞,您的评价将有助于系统推荐出更棒的Java代码示例。

示例1: createToolBar

import org.eclipse.gef.palette.SelectionToolEntry; //导入依赖的package包/类
/**
 * Creates a new JDPalette object.
 * 
 * @param paletteRoot
 *          the palette root
 */
public static void createToolBar(PaletteRoot paletteRoot) {
	PaletteToolbar paletteToolbar = new PaletteToolbar("toolbar"); //$NON-NLS-1$
	paletteToolbar.add(new SelectionToolEntry());
	paletteToolbar.add(new JDMarqueeToolEntry());
	paletteRoot.add(paletteToolbar);
}
 
开发者ID:OpenSoftwareSolutions,项目名称:PDFReporter-Studio,代码行数:13,代码来源:JDPaletteFactory.java

示例2: createControlGroup

import org.eclipse.gef.palette.SelectionToolEntry; //导入依赖的package包/类
private static PaletteContainer createControlGroup(PaletteRoot root)
{
	PaletteGroup controlGroup = new PaletteGroup("Control Group");

	List<PaletteEntry> tools = new ArrayList<PaletteEntry>();
	ToolEntry selectionTool = new SelectionToolEntry();
	tools.add(selectionTool);
	root.setDefaultEntry(selectionTool);
	controlGroup.addAll(tools);
	return controlGroup;
}
 
开发者ID:winture,项目名称:wt-studio,代码行数:12,代码来源:PaletteFactory.java

示例3: createControlGroup

import org.eclipse.gef.palette.SelectionToolEntry; //导入依赖的package包/类
private static PaletteContainer createControlGroup(PaletteRoot root)
{
	PaletteGroup controlGroup = new PaletteGroup("Control Group");

	List<PaletteEntry> tools = new ArrayList<PaletteEntry>();
	ToolEntry selectionTool = new SelectionToolEntry();
	tools.add(selectionTool);
	root.setDefaultEntry(selectionTool);
	// ToolEntry connectionCreationTool = new ConnectionCreationToolEntry("Connection",
	// "Create a connection", null, null, null);
	// tools.add(connectionCreationTool);
	controlGroup.addAll(tools);
	return controlGroup;
}
 
开发者ID:winture,项目名称:wt-studio,代码行数:15,代码来源:PaletteFactory.java

示例4: addSelectionTool

import org.eclipse.gef.palette.SelectionToolEntry; //导入依赖的package包/类
private void addSelectionTool() {
	SelectionToolEntry entry = new SelectionToolEntry();
	group.add(entry);
	group.add(new MarqueeToolEntry());
	setDefaultEntry(entry);
}
 
开发者ID:gw4e,项目名称:gw4e.project,代码行数:7,代码来源:GW4EGraphicalEditorPalette.java

示例5: createPaletteGroup

import org.eclipse.gef.palette.SelectionToolEntry; //导入依赖的package包/类
private static PaletteGroup createPaletteGroup() {
	PaletteGroup selectionGroup = new PaletteGroup("Selections");
	selectionGroup.add(new SelectionToolEntry());
	return selectionGroup;
}
 
开发者ID:bsteker,项目名称:bdf2,代码行数:6,代码来源:DbToolGefEditorPaletteFactory.java

示例6: addSelectionTool

import org.eclipse.gef.palette.SelectionToolEntry; //导入依赖的package包/类
/** This method add the {@link SelectionTool} to the palett. */
private void addSelectionTool() {
  SelectionToolEntry entry = new SelectionToolEntry();
  group.add(entry);
  setDefaultEntry(entry);
}
 
开发者ID:leondart,项目名称:FRaMED,代码行数:7,代码来源:ORMGraphicalEditorPalette.java

示例7: buildPalette

import org.eclipse.gef.palette.SelectionToolEntry; //导入依赖的package包/类
/**
 * Builds the palette entries.
 */
protected void buildPalette() {
    keyboardMapping = new HashMap();
    // a group of default control tools
    PaletteGroup controls = new PaletteGroup(Messages.getString("FmdPaletteRoot.controls")); //$NON-NLS-1$

    // the selection tool; default tool
    ToolEntry tool = new SelectionToolEntry();
    controls.add(tool);
    setDefaultEntry(tool);

    ToolEntry entry = new URNElementCreationEntry(
            "Comment", Messages.getString("FmdPaletteRoot.CreateAComment"), Comment.class, new ModelCreationFactory(getURNspec(), Comment.class), JUCMNavPlugin.getImageDescriptor("icons/Comment16.gif"), ImageDescriptor.createFromFile( //$NON-NLS-1$ //$NON-NLS-2$ //$NON-NLS-3$
                            JUCMNavPlugin.class, "icons/Comment24.gif")); //$NON-NLS-1$
    controls.add(entry);
    keyboardMapping.put("q", entry); //$NON-NLS-1$
    
    add(controls);

    //A group of links
    PaletteDrawer linksDrawer = new PaletteDrawer(Messages.getString("FmdPaletteRoot.links")); //$NON-NLS-1$

    // Add a decomposition
    entry = new BaseConnectionCreationToolEntry(
            Messages.getString("FmdPaletteRoot.decomposition"), Messages.getString("FmdPaletteRoot.createDecomposition"), new ModelCreationFactory(getURNspec(), Decomposition.class), //$NON-NLS-1$ //$NON-NLS-2$
            JUCMNavPlugin.getImageDescriptor("icons/Decomposition16.gif"), ImageDescriptor.createFromFile( //$NON-NLS-1$
                    JUCMNavPlugin.class, "icons/Decomposition24.gif")); //$NON-NLS-1$
    linksDrawer.add(entry);
    keyboardMapping.put("d", entry); //$NON-NLS-1$
    
    // Add a mandatory
    entry = new BaseConnectionCreationToolEntry(
            Messages.getString("FmdPaletteRoot.mandatory"), Messages.getString("FmdPaletteRoot.createMandatory"), new ModelCreationFactory(getURNspec(), Dependency.class), //$NON-NLS-1$ //$NON-NLS-2$
            JUCMNavPlugin.getImageDescriptor("icons/Mandatory16.gif"), ImageDescriptor.createFromFile( //$NON-NLS-1$
                    JUCMNavPlugin.class, "icons/Mandatory24.gif")); //$NON-NLS-1$
    linksDrawer.add(entry);
    
    add(linksDrawer);
    
    //A group of elements
    PaletteDrawer elementsDrawer = new PaletteDrawer(Messages.getString("FmdPaletteRoot.elements")); //$NON-NLS-1$
    
    entry = new URNElementCreationEntry(
            Messages.getString("FmdPaletteRoot.task"), Messages.getString("FmdPaletteRoot.createTask"), IntentionalElementRef.class, new ModelCreationFactory(getURNspec(), IntentionalElementRef.class, //$NON-NLS-1$ //$NON-NLS-2$
                    IntentionalElementType.TASK), JUCMNavPlugin.getImageDescriptor("icons/Task16.gif"), ImageDescriptor.createFromFile( //$NON-NLS-1$
                    JUCMNavPlugin.class, "icons/Task24.gif")); //$NON-NLS-1$
    elementsDrawer.add(entry);
    keyboardMapping.put("t", entry); //$NON-NLS-1$
    
    add(elementsDrawer);
}
 
开发者ID:McGill-DP-Group,项目名称:seg.jUCMNav,代码行数:54,代码来源:FmdPaletteRoot.java


注:本文中的org.eclipse.gef.palette.SelectionToolEntry类示例由纯净天空整理自Github/MSDocs等开源代码及文档管理平台,相关代码片段筛选自各路编程大神贡献的开源项目,源码版权归原作者所有,传播和使用请参考对应项目的License;未经允许,请勿转载。