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


Java PaletteContainer.add方法代码示例

本文整理汇总了Java中org.eclipse.gef.palette.PaletteContainer.add方法的典型用法代码示例。如果您正苦于以下问题:Java PaletteContainer.add方法的具体用法?Java PaletteContainer.add怎么用?Java PaletteContainer.add使用的例子?那么, 这里精选的方法代码示例或许可以为您提供帮助。您也可以进一步了解该方法所在org.eclipse.gef.palette.PaletteContainer的用法示例。


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

示例1: createNewEntry

import org.eclipse.gef.palette.PaletteContainer; //导入方法依赖的package包/类
/**
 * @see org.eclipse.gef.ui.palette.customize.PaletteEntryFactory#createNewEntry(org.eclipse.swt.widgets.Shell,
 *      org.eclipse.gef.palette.PaletteEntry)
 */
public PaletteEntry createNewEntry(Shell shell, PaletteEntry selected) {
	PaletteContainer parent = determineContainerForNewEntry(selected);
	int index = determineIndexForNewEntry(parent, selected);
	PaletteEntry entry = createNewEntry(shell);
	parent.remove(selected);
	parent.add(index - 1, entry);
	((PaletteStack) entry).add(selected);
	entry.setUserModificationPermission(PaletteEntry.PERMISSION_FULL_MODIFICATION);
	return entry;
}
 
开发者ID:ghillairet,项目名称:gef-gwt,代码行数:15,代码来源:PaletteStackFactory.java

示例2: createTransitionEntry

import org.eclipse.gef.palette.PaletteContainer; //导入方法依赖的package包/类
protected void createTransitionEntry(PaletteContainer container) {
	container.add(new ConnectionCreationToolEntry("Transition", "Creates a transition", getType(TRANSITION_ID),
			findIcon("icons/obj16/transition-16.png"), findIcon("icons/obj32/transition-32.png")));
}
 
开发者ID:Yakindu,项目名称:statecharts,代码行数:5,代码来源:DefaultSCTPaletteFactory.java

示例3: createStateEntry

import org.eclipse.gef.palette.PaletteContainer; //导入方法依赖的package包/类
protected void createStateEntry(PaletteContainer container) {
	container.add(new CreationToolEntry("State", "Creates a state", getType(STATE_ID),
			findIcon("icons/obj16/State-16.png"), findIcon("icons/obj32/State-32.png"), true));
}
 
开发者ID:Yakindu,项目名称:statecharts,代码行数:5,代码来源:DefaultSCTPaletteFactory.java

示例4: createCompositeStateEntry

import org.eclipse.gef.palette.PaletteContainer; //导入方法依赖的package包/类
protected void createCompositeStateEntry(PaletteContainer container) {
	container.add(new CreationToolEntry("Composite State", "Creates a composite state", getType(COMPOSITE_STATE_ID),
			findIcon("icons/obj16/Composite-State-16.png"), findIcon("icons/obj32/Composite-State-32.png"), true));
}
 
开发者ID:Yakindu,项目名称:statecharts,代码行数:5,代码来源:DefaultSCTPaletteFactory.java

示例5: createOrthogonalStateEntry

import org.eclipse.gef.palette.PaletteContainer; //导入方法依赖的package包/类
protected void createOrthogonalStateEntry(PaletteContainer container) {
	container.add(new CreationToolEntry("Orthogonal State", "Creates an orthogonal state",
			getType(ORTHOGONAL_STATE_ID), findIcon("icons/obj16/Orthogonal-State-16.png"),
			findIcon("icons/obj32/Orthogonal-State-32.png"), true));
}
 
开发者ID:Yakindu,项目名称:statecharts,代码行数:6,代码来源:DefaultSCTPaletteFactory.java

示例6: createRegionEntry

import org.eclipse.gef.palette.PaletteContainer; //导入方法依赖的package包/类
protected void createRegionEntry(PaletteContainer container) {
	container.add(new CreationToolEntry("Region", "Creates a region", getType(REGION_ID),
			findIcon("icons/obj16/Region-16.png"), findIcon("icons/obj32/Region-32.png"), false));
}
 
开发者ID:Yakindu,项目名称:statecharts,代码行数:5,代码来源:DefaultSCTPaletteFactory.java

示例7: createInitialStateEntry

import org.eclipse.gef.palette.PaletteContainer; //导入方法依赖的package包/类
protected void createInitialStateEntry(PaletteContainer container) {
	container.add(new CreationToolEntry("Entry", "Creates an initial state", getType(ENTRY_ID),
			findIcon("icons/obj16/Initial-State-16.png"), findIcon("icons/obj32/Initial-State-32.png"), false));
}
 
开发者ID:Yakindu,项目名称:statecharts,代码行数:5,代码来源:DefaultSCTPaletteFactory.java

示例8: createShallowHistoryEntry

import org.eclipse.gef.palette.PaletteContainer; //导入方法依赖的package包/类
protected void createShallowHistoryEntry(PaletteContainer container) {
	container.add(new CreationToolEntry("Shallow History", "Creates a shallow state", getType(SHALLOWHISTORY_ID),
			findIcon("icons/obj16/Shallow-History-16.png"), findIcon("icons/obj32/Shallow-History-32.png"), false));
}
 
开发者ID:Yakindu,项目名称:statecharts,代码行数:5,代码来源:DefaultSCTPaletteFactory.java

示例9: createDeepHistoryEntry

import org.eclipse.gef.palette.PaletteContainer; //导入方法依赖的package包/类
protected void createDeepHistoryEntry(PaletteContainer container) {
	container.add(new CreationToolEntry("Deep History", "Creates a deep history", getType(DEEPHISTORY_ID),
			findIcon("icons/obj16/Deep-History-16.png"), findIcon("icons/obj32/Deep-History-32.png"), false));
}
 
开发者ID:Yakindu,项目名称:statecharts,代码行数:5,代码来源:DefaultSCTPaletteFactory.java

示例10: createFinalStateEntry

import org.eclipse.gef.palette.PaletteContainer; //导入方法依赖的package包/类
protected void createFinalStateEntry(PaletteContainer container) {
	container.add(new CreationToolEntry("Final State", "Creates a final state", getType(FINALSTATE_ID),
			findIcon("icons/obj16/Final-State-16.png"), findIcon("icons/obj32/Final-State-32.png"), false));
}
 
开发者ID:Yakindu,项目名称:statecharts,代码行数:5,代码来源:DefaultSCTPaletteFactory.java

示例11: createExitEntry

import org.eclipse.gef.palette.PaletteContainer; //导入方法依赖的package包/类
protected void createExitEntry(PaletteContainer container) {
	container.add(new CreationToolEntry("Exit Node", "Creates an exit node", getType(EXITNODE_ID),
			findIcon("icons/obj16/Exit-Point-16.png"), findIcon("icons/obj32/Exit-Point-32.png"), false));
}
 
开发者ID:Yakindu,项目名称:statecharts,代码行数:5,代码来源:DefaultSCTPaletteFactory.java

示例12: createChoiceEntry

import org.eclipse.gef.palette.PaletteContainer; //导入方法依赖的package包/类
protected void createChoiceEntry(PaletteContainer container) {
	container.add(new CreationToolEntry("Choice", "Creates a choice", getType(CHOICE_ID),
			findIcon("icons/obj16/Choice-16.png"), findIcon("icons/obj32/Choice-32.png"), false));
}
 
开发者ID:Yakindu,项目名称:statecharts,代码行数:5,代码来源:DefaultSCTPaletteFactory.java

示例13: createSynchronizationEntry

import org.eclipse.gef.palette.PaletteContainer; //导入方法依赖的package包/类
protected void createSynchronizationEntry(PaletteContainer container) {
	container.add(new CreationToolEntry("Synchronization", "Creates a synchronization", getType(SYNCHRONIZATION_ID),
			findIcon("icons/obj16/Synchronization-16.png"), findIcon("icons/obj32/Synchronization-32.png"), false));
}
 
开发者ID:Yakindu,项目名称:statecharts,代码行数:5,代码来源:DefaultSCTPaletteFactory.java

示例14: createNewEntry

import org.eclipse.gef.palette.PaletteContainer; //导入方法依赖的package包/类
/**
 * This method is called when a new palette entry of the type supported by
 * this <code>PaletteEntryFactory</code> is to be created.
 * 
 * @param shell
 *            The <code>Shell</code> of the
 *            <code>PaletteCustomizerDialog</code>
 * @param selected
 *            The <code>PaletteEntry</code> that was selected in the outline
 *            when this action was launched. Will never be <code>null</code>
 *            .
 * @return PaletteEntry The newly created <code>PaletteEntry</code>
 */
public PaletteEntry createNewEntry(Shell shell, PaletteEntry selected) {
	PaletteContainer parent = determineContainerForNewEntry(selected);
	int index = determineIndexForNewEntry(parent, selected);
	PaletteEntry entry = createNewEntry(shell);
	parent.add(index, entry);
	return entry;
}
 
开发者ID:ghillairet,项目名称:gef-gwt,代码行数:21,代码来源:PaletteEntryFactory.java


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