Java Code Examples for org.eclipse.gef.palette.PaletteContainer#add()

The following examples show how to use org.eclipse.gef.palette.PaletteContainer#add() . 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: 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")));
}
 
Example 2
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 3
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 4
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 5
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 6
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 7
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 8
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 9
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 10
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 11
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 12
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));
}