org.eclipse.gef.palette.PaletteContainer Java Examples

The following examples show how to use org.eclipse.gef.palette.PaletteContainer. You can vote up the ones you like or vote down the ones you don't like, and go to the original project or source file by following the links above each example. You may check out the related API usage on the sidebar.
Example #1
Source File: CrossflowPaletteFactory.java    From scava with Eclipse Public License 2.0 6 votes vote down vote up
/**
* Creates "Objects" palette tool group
* @generated
*/
private PaletteContainer createObjects1Group() {
	PaletteDrawer paletteContainer = new PaletteDrawer(Messages.Objects1Group_title);
	paletteContainer.setId("createObjects1Group"); //$NON-NLS-1$
	paletteContainer.add(createCommitmentTask1CreationTool());
	paletteContainer.add(createCsvSink2CreationTool());
	paletteContainer.add(createCsvSource3CreationTool());
	paletteContainer.add(createField4CreationTool());
	paletteContainer.add(createLanguage5CreationTool());
	paletteContainer.add(createOpinionatedTask6CreationTool());
	paletteContainer.add(createParameter7CreationTool());
	paletteContainer.add(createQueue8CreationTool());
	paletteContainer.add(createScriptedTask9CreationTool());
	paletteContainer.add(createSink10CreationTool());
	paletteContainer.add(createSource11CreationTool());
	paletteContainer.add(createTask12CreationTool());
	paletteContainer.add(createTopic13CreationTool());
	paletteContainer.add(createType14CreationTool());
	return paletteContainer;
}
 
Example #2
Source File: ProcessPaletteFactory.java    From bonita-studio with GNU General Public License v2.0 6 votes vote down vote up
/**
* Creates "Int. Events" palette tool group
* @generated
*/
protected PaletteContainer createIntEvents7Group() {
	PaletteDrawer paletteContainer = new PaletteDrawer(Messages.IntEvents7Group_title);
	paletteContainer.setId("createIntEvents7Group"); //$NON-NLS-1$
	paletteContainer.add(createThrowLink1CreationTool());
	paletteContainer.add(createCatchLink2CreationTool());
	paletteContainer.add(createThrowMessage3CreationTool());
	paletteContainer.add(createCatchMessage4CreationTool());
	paletteContainer.add(createThrowSignal5CreationTool());
	paletteContainer.add(createCatchSignal6CreationTool());
	paletteContainer.add(createCatchError7CreationTool());
	paletteContainer.add(createNonInterruptingTimer8CreationTool());
	paletteContainer.add(createEvent9CreationTool());
	paletteContainer.add(createTimer10CreationTool());
	return paletteContainer;
}
 
Example #3
Source File: DesignerPaletteFactory.java    From birt with Eclipse Public License 1.0 6 votes vote down vote up
private static PaletteContainer createQuickTools( )
{

	PaletteCategory quickTools = new PaletteCategory( IPreferenceConstants.PALETTE_CONTENT,
			Messages.getString( "DesignerPaletteFactory.quicktool.title" ), //$NON-NLS-1$
			ReportPlatformUIImages.getImageDescriptor( ISharedImages.IMG_OBJ_FOLDER ) );
	ReportElementFactory factory = new ReportElementFactory( AGG_TEMPLATE );
	CombinedTemplateCreationEntry combined = new QuickToolsCombinedTemplateCreationEntry( Messages.getString( "DesignerPaletteFactory.quicktool.agg.title" ), //$NON-NLS-1$
			Messages.getString( "DesignerPaletteFactory.quicktool.agg.toolTip" ), //$NON-NLS-1$
			AGG_TEMPLATE, 
			factory,
			ReportPlatformUIImages.getImageDescriptor( IReportGraphicConstants.ICON_ELEMENT_AGGREGATION ),
			ReportPlatformUIImages.getImageDescriptor( IReportGraphicConstants.ICON_ELEMENT_AGGREGATION_LARGE ) ) ;
	quickTools.add( combined );
	
	factory = new ReportElementFactory( TIMEPERIOD_TEMPLATE );
	combined = new QuickToolsCombinedTemplateCreationEntry( Messages.getString( "DesignerPaletteFactory.quicktool.timeperiod.title" ), //$NON-NLS-1$
			Messages.getString( "DesignerPaletteFactory.quicktool.timeperiod.toolTip" ), //$NON-NLS-1$
			TIMEPERIOD_TEMPLATE, 
			factory,
			ReportPlatformUIImages.getImageDescriptor( IReportGraphicConstants.ICON_ELEMENT_TIMEPERIOD ),
			ReportPlatformUIImages.getImageDescriptor( IReportGraphicConstants.ICON_ELEMENT_TIMEPERIOD_LARGE ) ) ;
	quickTools.add( combined );
	return quickTools;
}
 
Example #4
Source File: BasePaletteFactory.java    From birt with Eclipse Public License 1.0 6 votes vote down vote up
/**
 * Creates default tools category, which include selection and marquee tools
 * 
 * @param root
 *            the root
 * @return PaletteContainer contains default tools
 */
protected static PaletteContainer createControlGroup( PaletteRoot root )
{
	PaletteGroup controlGroup = new PaletteGroup( PALETTE_GROUP_TEXT );

	List<ToolEntry> entries = new ArrayList<ToolEntry>( );

	ToolEntry tool = new PanningSelectionToolEntry( POINTER_SELECT_LABEL,
			TOOL_TIP_POINTER_SELECT );
	entries.add( tool );
	root.setDefaultEntry( tool );

	tool = new MarqueeToolEntry( RECTANGEL_SELECT_LABEL,
			TOOL_TIP_RECTANGLE_SELECT );
	entries.add( tool );

	controlGroup.addAll( entries );
	return controlGroup;
}
 
Example #5
Source File: CrossflowPaletteFactory.java    From scava with Eclipse Public License 2.0 5 votes vote down vote up
/**
* Creates "Connections" palette tool group
* @generated
*/
private PaletteContainer createConnections2Group() {
	PaletteDrawer paletteContainer = new PaletteDrawer(Messages.Connections2Group_title);
	paletteContainer.setId("createConnections2Group"); //$NON-NLS-1$
	paletteContainer.add(createExtending1CreationTool());
	paletteContainer.add(createInputOf2CreationTool());
	paletteContainer.add(createOutput3CreationTool());
	paletteContainer.add(createType4CreationTool());
	return paletteContainer;
}
 
Example #6
Source File: SwitchPaletteMode.java    From bonita-studio with GNU General Public License v2.0 5 votes vote down vote up
/**
 * Given the rootMemento, gets the memento that already exists for the
 * palette entry or creates a new one in the rootMemento (and the necessary
 * palette container mementos) if one does not exist yet. The root memento's
 * tree structure matches that of the palette root. If a palette entry in
 * stack A, in drawer B is customized, the root memento will have a child
 * memento for drawer B which has a child memento for stack A which has a
 * child memento for the entry. The memento's use the palette entry's id.
 * 
 * @param rootMemento
 *            the root memento representing the palette root
 * @param paletteEntry
 *            the palette entry for which a memento should be retrieved or
 *            created
 * @return returns the memento that already exists for the palette entry or
 *         creates a new one in the rootMemento if one does not exist yet or
 *         null if the memento could not be created (most likely because the
 *         palete id is not acceptable).
 */
private IMemento getMementoForEntry(IMemento rootMemento, PaletteEntry paletteEntry) {

	ArrayList<String> idList = new ArrayList<String>();
	idList.add(paletteEntry.getId());

	PaletteContainer parent = paletteEntry.getParent();
	while (parent != null && !PaletteRoot.PALETTE_TYPE_ROOT.equals(parent.getType())) {
		idList.add(parent.getId());
		parent = parent.getParent();
	}

	// go through ids in reverse order and create the mementos as necessary
	IMemento containerMemento = rootMemento;
	for (int i = idList.size() - 1; i >= 0; i--) {
		String id = idList.get(i);
		IMemento memento = containerMemento.getChild(id);
		if (memento == null) {
			try {
				memento = containerMemento.createChild(id);
			} catch (Exception e) {
				Trace.catching(GefPlugin.getInstance(), GefDebugOptions.EXCEPTIONS_CATCHING, getClass(),
						"Invalid palette id encountered when saving the palette customizations.", //$NON-NLS-1$
						e);
				Log.warning(GefPlugin.getInstance(), GefStatusCodes.IGNORED_EXCEPTION_WARNING,
						"Invalid palette id encountered when saving the palette customizations.", //$NON-NLS-1$
						e);
				return null;
			}
		}
		containerMemento = memento;
	}

	return containerMemento;
}
 
Example #7
Source File: ProcessPaletteFactory.java    From bonita-studio with GNU General Public License v2.0 5 votes vote down vote up
/**
* Creates "Text Annotation" palette tool group
* @generated
*/
protected PaletteContainer createTextAnnotation9Group() {
	PaletteDrawer paletteContainer = new PaletteDrawer(Messages.TextAnnotation9Group_title);
	paletteContainer.setId("createTextAnnotation9Group"); //$NON-NLS-1$
	paletteContainer.add(createTextAnnotation1CreationTool());
	return paletteContainer;
}
 
Example #8
Source File: ProcessPaletteFactory.java    From bonita-studio with GNU General Public License v2.0 5 votes vote down vote up
/**
* Creates "End Events" palette tool group
* @generated
*/
protected PaletteContainer createEndEvents8Group() {
	PaletteDrawer paletteContainer = new PaletteDrawer(Messages.EndEvents8Group_title);
	paletteContainer.setId("createEndEvents8Group"); //$NON-NLS-1$
	paletteContainer.add(createEnd1CreationTool());
	paletteContainer.add(createEndMessage2CreationTool());
	paletteContainer.add(createEndSignal3CreationTool());
	paletteContainer.add(createEndError4CreationTool());
	paletteContainer.add(createEndTerminatedEvent5CreationTool());
	return paletteContainer;
}
 
Example #9
Source File: ProcessPaletteFactory.java    From bonita-studio with GNU General Public License v2.0 5 votes vote down vote up
/**
* Creates "Start Events" palette tool group
* @generated
*/
protected PaletteContainer createStartEvents6Group() {
	PaletteDrawer paletteContainer = new PaletteDrawer(Messages.StartEvents6Group_title);
	paletteContainer.setId("createStartEvents6Group"); //$NON-NLS-1$
	paletteContainer.add(createStart1CreationTool());
	paletteContainer.add(createStartMessage2CreationTool());
	paletteContainer.add(createStartTimer3CreationTool());
	paletteContainer.add(createStartSignal4CreationTool());
	paletteContainer.add(createStartError5CreationTool());
	return paletteContainer;
}
 
Example #10
Source File: ProcessPaletteFactory.java    From bonita-studio with GNU General Public License v2.0 5 votes vote down vote up
/**
* Creates "Activities" palette tool group
* @generated
*/
protected PaletteContainer createActivities5Group() {
	PaletteDrawer paletteContainer = new PaletteDrawer(Messages.Activities5Group_title);
	paletteContainer.setId("createActivities5Group"); //$NON-NLS-1$
	paletteContainer.setDescription(Messages.Activities5Group_desc);
	paletteContainer.add(createCallActivity1CreationTool());
	paletteContainer.add(createEvenementialSubProcess2CreationTool());
	return paletteContainer;
}
 
Example #11
Source File: ProcessPaletteFactory.java    From bonita-studio with GNU General Public License v2.0 5 votes vote down vote up
/**
* Creates "Tasks" palette tool group
* @generated
*/
protected PaletteContainer createTasks4Group() {
	PaletteDrawer paletteContainer = new PaletteDrawer(Messages.Tasks4Group_title);
	paletteContainer.setId("createTasks4Group"); //$NON-NLS-1$
	paletteContainer.add(createServiceTask1CreationTool());
	paletteContainer.add(createHuman2CreationTool());
	paletteContainer.add(createScriptTask3CreationTool());
	paletteContainer.add(createReceiveTask4CreationTool());
	paletteContainer.add(createSendTask5CreationTool());
	paletteContainer.add(createStep6CreationTool());
	return paletteContainer;
}
 
Example #12
Source File: ProcessPaletteFactory.java    From bonita-studio with GNU General Public License v2.0 5 votes vote down vote up
/**
* Creates "Flow" palette tool group
* @generated
*/
protected PaletteContainer createFlow3Group() {
	PaletteDrawer paletteContainer = new PaletteDrawer(Messages.Flow3Group_title);
	paletteContainer.setId("createFlow3Group"); //$NON-NLS-1$
	paletteContainer.add(createTransition1CreationTool());
	return paletteContainer;
}
 
Example #13
Source File: ProcessPaletteFactory.java    From bonita-studio with GNU General Public License v2.0 5 votes vote down vote up
/**
* Creates "Gateways" palette tool group
* @generated
*/
protected PaletteContainer createGateways2Group() {
	PaletteDrawer paletteContainer = new PaletteDrawer(Messages.Gateways2Group_title);
	paletteContainer.setId("createGateways2Group"); //$NON-NLS-1$
	paletteContainer.add(createGate1CreationTool());
	paletteContainer.add(createXORGate2CreationTool());
	paletteContainer.add(createInclusiveGate3CreationTool());
	return paletteContainer;
}
 
Example #14
Source File: ProcessPaletteFactory.java    From bonita-studio with GNU General Public License v2.0 5 votes vote down vote up
/**
* Creates "Swimlanes" palette tool group
* @generated
*/
protected PaletteContainer createSwimlanes1Group() {
	PaletteDrawer paletteContainer = new PaletteDrawer(Messages.Swimlanes1Group_title);
	paletteContainer.setId("createSwimlanes1Group"); //$NON-NLS-1$
	paletteContainer.setDescription(Messages.Swimlanes1Group_desc);
	paletteContainer.add(createPool1CreationTool());
	paletteContainer.add(createLane2CreationTool());
	return paletteContainer;
}
 
Example #15
Source File: ProcessEditPolicyEntries.java    From bonita-studio with GNU General Public License v2.0 5 votes vote down vote up
private void fillList(PaletteContainer container, List<ToolAndToolEntry> list) {
	for (Object child : container.getChildren()) {
		if (child instanceof ToolEntry) {
			ToolEntry entry = (ToolEntry)child;
			/*create only one tool per entry*/
			Tool tool1 = entry.createTool();
			if(tool1 != null){
				tool1.setEditDomain(domain);
				if ( tool1 instanceof UnspecifiedTypeCreationTool) {
					UnspecifiedTypeCreationTool tool = (UnspecifiedTypeCreationTool)tool1;
					CreateUnspecifiedTypeRequest request = (CreateUnspecifiedTypeRequest) tool.createCreateRequest();
					EClass targetEClass = ((List<IElementType>)request.getElementTypes()).get(0).getEClass();
					if ((ProcessPackage.Literals.FLOW_ELEMENT.isSuperTypeOf(targetEClass))
							|| ProcessPackage.Literals.TEXT_ANNOTATION.isSuperTypeOf(targetEClass)) {
						list.add(new ToolAndToolEntry(tool1, entry));
					} else {
						tool1.deactivate();
					}
				}else if(tool1 instanceof UnspecifiedTypeConnectionTool){	
					list.add(new ToolAndToolEntry(tool1, entry));
				} else if(tool1 != null){
					tool1.deactivate();
				}
			}
		} else if (child instanceof PaletteContainer) {
			fillList((PaletteContainer)child, list);
		}
	}
}
 
Example #16
Source File: DefaultSCTPaletteFactory.java    From statecharts with Eclipse Public License 1.0 5 votes vote down vote up
public void createPaletteEntries(PaletteRoot root) {
	PaletteContainer container = createToolsCategory(root);
	createTransitionEntry(container);
	createStateEntry(container);
	createCompositeStateEntry(container);
	createOrthogonalStateEntry(container);
	createRegionEntry(container);
	createInitialStateEntry(container);
	createShallowHistoryEntry(container);
	createDeepHistoryEntry(container);
	createFinalStateEntry(container);
	createExitEntry(container);
	createChoiceEntry(container);
	createSynchronizationEntry(container);
}
 
Example #17
Source File: DefaultSCTPaletteFactory.java    From statecharts with Eclipse Public License 1.0 4 votes vote down vote up
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));
}
 
Example #18
Source File: DefaultSCTPaletteFactory.java    From statecharts with Eclipse Public License 1.0 4 votes vote down vote up
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));
}
 
Example #19
Source File: MasterPagePaletteFactory.java    From birt with Eclipse Public License 1.0 4 votes vote down vote up
/**
	 * Creates BIRT Master Page specified categories and items.
	 * 
	 * @return PaletteContainer containing BIRT Master Page specified categories
	 */
	private static PaletteContainer createAutoTextDrawer( )
	{
		PaletteCategory category = new PaletteCategory( IPreferenceConstants.PALETTE_AUTOTEXT,
				AUTOTEXT_LABEL,
				ReportPlatformUIImages.getImageDescriptor( ISharedImages.IMG_OBJ_FOLDER ) );
		List entries = new ArrayList( );

		CombinedTemplateCreationEntry combined = null;

		combined = createAutoText( AUTOTEXT_PAGE,
				AUTOTEXT_TOOLTIP_PAGE,
				IReportElementConstants.AUTOTEXT_PAGE );
		entries.add( combined );
		
		combined = createAutoText( AUTOTEXT_TOTAL_PAGE_COUNT,
				AUTOTEXT_TOOLTIP_TOTAL_PAGE_COUNT,
				IReportElementConstants.AUTOTEXT_TOTAL_PAGE_COUNT );
		entries.add( combined );
		
		combined = createAutoText( AUTOTEXT_PAGE_X_OF_Y,
		AUTOTEXT_TOOLTIP_PAGE_X_OF_Y,
		IReportElementConstants.AUTOTEXT_PAGEXOFY );
		entries.add( combined );

		combined = createAutoText( AUTOTEXT_AUTHOR_PAGE_DATE,
				AUTOTEXT_TOOLTIP_AUTHOR_PAGE_DATE,
				IReportElementConstants.AUTOTEXT_AUTHOR_PAGE_DATE );
		entries.add( combined );

		combined = createAutoText( AUTOTEXT_CONFIDENTIAL_PAGE,
				AUTOTEXT_TOOLTIP_CONFIDENTIAL_PAGE,
				IReportElementConstants.AUTOTEXT_CONFIDENTIAL_PAGE );
		entries.add( combined );

		combined = createAutoText( AUTOTEXT_DATE,
				AUTOTEXT_TOOLTIP_DATE,
				IReportElementConstants.AUTOTEXT_DATE );
		entries.add( combined );

		combined = createAutoText( AUTOTEXT_CREATED_ON,
				AUTOTEXT_TOOLTIP_CREATED_ON,
				IReportElementConstants.AUTOTEXT_CREATEDON );
		entries.add( combined );

		combined = createAutoText( AUTOTEXT_CREATED_BY,
				AUTOTEXT_TOOLTIP_CREATED_BY,
				IReportElementConstants.AUTOTEXT_CREATEDBY );
		entries.add( combined );

		combined = createAutoText( AUTOTEXT_FILENAME,
				AUTOTEXT_TOOLTIP_FILENAME,
				IReportElementConstants.AUTOTEXT_FILENAME );
		entries.add( combined );

		combined = createAutoText( AUTOTEXT_LAST_PRINTED,
				AUTOTEXT_TOOLTIP_LAST_PRINTED,
				IReportElementConstants.AUTOTEXT_LASTPRINTED );
		entries.add( combined );

		combined = createAutoText( AUTOTEXT_VARIABLE,
				AUTOTEXT_TOOLTIP_VARIABLE,
				IReportElementConstants.AUTOTEXT_VARIABLE );
		entries.add( combined );

//	Remove unsupported function			
//		combined = createAutoText( AUTOTEXT_PAGE_X_OF_Y,
//				AUTOTEXT_TOOLTIP_PAGE_X_OF_Y,
//				IReportElementConstants.AUTOTEXT_PAGEXOFY );
//		entries.add( combined );

		category.addAll( entries );
		return category;
	}
 
Example #20
Source File: DefaultSCTPaletteFactory.java    From statecharts with Eclipse Public License 1.0 4 votes vote down vote up
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));
}
 
Example #21
Source File: DesignerPaletteFactory.java    From birt with Eclipse Public License 1.0 4 votes vote down vote up
/**
 * Creates BIRT Normal specified categories and items.
 * 
 * @return Palette Container containing BIRT Normal specified categories
 */
private static PaletteContainer createContentCategory( )
{
	PaletteCategory category = new PaletteCategory( IPreferenceConstants.PALETTE_CONTENT,
			REPORT_ITEMS_LABEL,
			ReportPlatformUIImages.getImageDescriptor( ISharedImages.IMG_OBJ_FOLDER ) );
	List<CombinedTemplateCreationEntry> entries = new ArrayList<CombinedTemplateCreationEntry>( );

	CombinedTemplateCreationEntry combined = new ReportCombinedTemplateCreationEntry( ELEMENT_NAME_LABEL,
			TOOL_TIP_LABEL_REPORT_ITEM,
			IReportElementConstants.REPORT_ELEMENT_LABEL,
			new ReportElementFactory( IReportElementConstants.REPORT_ELEMENT_LABEL ),
			ReportPlatformUIImages.getImageDescriptor( IReportGraphicConstants.ICON_ELEMENT_LABEL ),
			ReportPlatformUIImages.getImageDescriptor( IReportGraphicConstants.ICON_ELEMENT_LABEL_LARGE ),
			getAbstractToolHandleExtendsFromPaletteName( IReportElementConstants.REPORT_ELEMENT_LABEL ) );

	entries.add( combined );

	combined = new ReportCombinedTemplateCreationEntry( ELEMENT_NAME_TEXT,
			TOOL_TIP_TEXT_REPORT_ITEM,
			IReportElementConstants.REPORT_ELEMENT_TEXT,
			new ReportElementFactory( IReportElementConstants.REPORT_ELEMENT_TEXT ),
			ReportPlatformUIImages.getImageDescriptor( IReportGraphicConstants.ICON_ELEMENT_TEXT ),
			ReportPlatformUIImages.getImageDescriptor( IReportGraphicConstants.ICON_ELEMENT_TEXT_LARGE ),
			getAbstractToolHandleExtendsFromPaletteName( IReportElementConstants.REPORT_ELEMENT_TEXT ) );

	entries.add( combined );

	combined = new ReportCombinedTemplateCreationEntry( ELEMENT_NAME_TEXTDATA,
			TOOL_TIP_TEXTDATA_REPORT_ITEM,
			IReportElementConstants.REPORT_ELEMENT_TEXTDATA,
			new ReportElementFactory( IReportElementConstants.REPORT_ELEMENT_TEXTDATA ),
			ReportPlatformUIImages.getImageDescriptor( IReportGraphicConstants.ICON_ELEMENT_TEXTDATA ),
			ReportPlatformUIImages.getImageDescriptor( IReportGraphicConstants.ICON_ELEMENT_TEXTDATA_LARGE ),
			getAbstractToolHandleExtendsFromPaletteName( IReportElementConstants.REPORT_ELEMENT_TEXTDATA ) );

	entries.add( combined );

	combined = new ReportCombinedTemplateCreationEntry( ELEMENT_NAME_DATA,
			TOOL_TIP_DATA_REPORT_ITEM,
			IReportElementConstants.REPORT_ELEMENT_DATA,
			new ReportElementFactory( IReportElementConstants.REPORT_ELEMENT_DATA ),
			ReportPlatformUIImages.getImageDescriptor( IReportGraphicConstants.ICON_ELEMENT_DATA ),
			ReportPlatformUIImages.getImageDescriptor( IReportGraphicConstants.ICON_ELEMENT_DATA_LARGE ),
			getAbstractToolHandleExtendsFromPaletteName( IReportElementConstants.REPORT_ELEMENT_DATA ) );

	entries.add( combined );

	combined = new ReportCombinedTemplateCreationEntry( ELEMENT_NAME_IMAGE,
			TOOL_TIP_IMAGE_REPORT_ITEM,
			IReportElementConstants.REPORT_ELEMENT_IMAGE,
			new ReportElementFactory( IReportElementConstants.REPORT_ELEMENT_IMAGE ),
			ReportPlatformUIImages.getImageDescriptor( IReportGraphicConstants.ICON_ELEMENT_IMAGE ),
			ReportPlatformUIImages.getImageDescriptor( IReportGraphicConstants.ICON_ELEMENT_IMAGE_LARGE ),
			getAbstractToolHandleExtendsFromPaletteName( IReportElementConstants.REPORT_ELEMENT_IMAGE ) );

	entries.add( combined );

	combined = new ReportCombinedTemplateCreationEntry( ELEMENT_NAME_GRID,
			TOOL_TIP_GRID_REPORT_ITEM,
			IReportElementConstants.REPORT_ELEMENT_GRID,
			new ReportElementFactory( IReportElementConstants.REPORT_ELEMENT_GRID ),
			ReportPlatformUIImages.getImageDescriptor( IReportGraphicConstants.ICON_ELEMENT_GRID ),
			ReportPlatformUIImages.getImageDescriptor( IReportGraphicConstants.ICON_ELEMENT_GRID_LARGE ),
			getAbstractToolHandleExtendsFromPaletteName( IReportElementConstants.REPORT_ELEMENT_GRID ) );

	entries.add( combined );
	combined = new ReportCombinedTemplateCreationEntry( ELEMENT_NAME_LIST,
			TOOL_TIP_LIST_REPORT_ITEM,
			IReportElementConstants.REPORT_ELEMENT_LIST,
			new ReportElementFactory( IReportElementConstants.REPORT_ELEMENT_LIST ),
			ReportPlatformUIImages.getImageDescriptor( IReportGraphicConstants.ICON_ELEMENT_LIST ),
			ReportPlatformUIImages.getImageDescriptor( IReportGraphicConstants.ICON_ELEMENT_LIST_LARGE ),
			getAbstractToolHandleExtendsFromPaletteName( IReportElementConstants.REPORT_ELEMENT_LIST ) );

	entries.add( combined );

	combined = new ReportCombinedTemplateCreationEntry( ELEMENT_NAME_TABLE,
			TOOL_TIP_TABLE_REPORT_ITEM,
			IReportElementConstants.REPORT_ELEMENT_TABLE,
			new ReportElementFactory( IReportElementConstants.REPORT_ELEMENT_TABLE ),
			ReportPlatformUIImages.getImageDescriptor( IReportGraphicConstants.ICON_ELEMENT_TABLE ),
			ReportPlatformUIImages.getImageDescriptor( IReportGraphicConstants.ICON_ELEMENT_TABLE_LARGE ),
			getAbstractToolHandleExtendsFromPaletteName( IReportElementConstants.REPORT_ELEMENT_TABLE ) );

	entries.add( combined );

	category.addAll( entries );
	return category;

}
 
Example #22
Source File: DefaultSCTPaletteFactory.java    From statecharts with Eclipse Public License 1.0 4 votes vote down vote up
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));
}
 
Example #23
Source File: DefaultSCTPaletteFactory.java    From statecharts with Eclipse Public License 1.0 4 votes vote down vote up
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));
}
 
Example #24
Source File: DefaultSCTPaletteFactory.java    From statecharts with Eclipse Public License 1.0 4 votes vote down vote up
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));
}
 
Example #25
Source File: DefaultSCTPaletteFactory.java    From statecharts with Eclipse Public License 1.0 4 votes vote down vote up
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));
}
 
Example #26
Source File: DefaultSCTPaletteFactory.java    From statecharts with Eclipse Public License 1.0 4 votes vote down vote up
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));
}
 
Example #27
Source File: DefaultSCTPaletteFactory.java    From statecharts with Eclipse Public License 1.0 4 votes vote down vote up
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));
}
 
Example #28
Source File: DefaultSCTPaletteFactory.java    From statecharts with Eclipse Public License 1.0 4 votes vote down vote up
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));
}
 
Example #29
Source File: DefaultSCTPaletteFactory.java    From statecharts with Eclipse Public License 1.0 4 votes vote down vote up
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));
}
 
Example #30
Source File: DefaultSCTPaletteFactory.java    From statecharts with Eclipse Public License 1.0 4 votes vote down vote up
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")));
}