|
Runtime | ||||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | ||||||||||
java.lang.Objectorg.eclipse.gmf.runtime.common.core.service.AbstractProvider
org.eclipse.gmf.runtime.common.core.service.Service
org.eclipse.gmf.runtime.diagram.ui.services.palette.PaletteService
| Nested Class Summary | |
protected static class |
PaletteService.ProviderDescriptor
|
| Field Summary | |
static java.lang.String |
GROUP_STANDARD
the standard group id |
static java.lang.String |
SEPARATOR_STANDARD
the standard separator id |
static java.lang.String |
TOOL_SELECTION
the standard separator id |
| Fields inherited from class org.eclipse.gmf.runtime.common.core.service.Service |
INVALID_ELEMENT_MESSAGE_PATTERN |
| Constructor Summary | |
protected |
PaletteService()
Creates a new instance of the Palette Service |
| Method Summary | |
void |
contributeToPalette(IEditorPart editor,
java.lang.Object content,
PaletteRoot root,
java.util.Map predefinedEntries)
Contributes to the palette of the given editor with the given content |
PaletteRoot |
createPalette(IEditorPart editor,
java.lang.Object content)
Creates default palette root. |
static PaletteService |
getInstance()
gets the singleton instance |
protected Service.ProviderDescriptor |
newProviderDescriptor(IConfigurationElement element)
Creates a new provider descriptor for the specified configuration element. |
void |
setContributions(IConfigurationElement configElement)
Sets contribution Empty because contributions are stored in the providers |
void |
updatePalette(PaletteRoot existingRoot,
IEditorPart editor,
java.lang.Object content)
Updates the palette root given. |
| Methods inherited from class org.eclipse.gmf.runtime.common.core.service.Service |
addProvider, clearCache, configureProviders, configureProviders, createPriorityCache, execute, executeUnique, getAllProviders, getCachingKey, getPriority, getProviders, isOptimistic, isOptimized, providerChanged, provides, provides, removeProvider |
| Methods inherited from class org.eclipse.gmf.runtime.common.core.service.AbstractProvider |
addProviderChangeListener, fireProviderChange, removeProviderChangeListener |
| Methods inherited from class java.lang.Object |
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
| Methods inherited from interface org.eclipse.gmf.runtime.common.core.service.IProvider |
addProviderChangeListener, provides, removeProviderChangeListener |
| Field Detail |
public static final java.lang.String GROUP_STANDARD
public static final java.lang.String SEPARATOR_STANDARD
public static final java.lang.String TOOL_SELECTION
| Constructor Detail |
protected PaletteService()
| Method Detail |
public void setContributions(IConfigurationElement configElement)
setContributions in interface IPaletteProviderconfigElement - public static PaletteService getInstance()
PaletteServiceprotected Service.ProviderDescriptor newProviderDescriptor(IConfigurationElement element)
Serviceelement.
newProviderDescriptor in class Serviceelement - The configuration element from which to create the descriptor.
Service.newProviderDescriptor(org.eclipse.core.runtime.IConfigurationElement)
public void contributeToPalette(IEditorPart editor,
java.lang.Object content,
PaletteRoot root,
java.util.Map predefinedEntries)
IPaletteProvider
contributeToPalette in interface IPaletteProvidereditor - The editor hosting the palettecontent - The editor's contentsroot - The editor's palette rootpredefinedEntries - map of predefined palette entries where the key is the palette
entry id and the value is the palette entryIPaletteProvider.contributeToPalette(org.eclipse.ui.IEditorPart, java.lang.Object, org.eclipse.gef.palette.PaletteRoot, Map)
public PaletteRoot createPalette(IEditorPart editor,
java.lang.Object content)
editor - the editorcontent - the palette content
public void updatePalette(PaletteRoot existingRoot,
IEditorPart editor,
java.lang.Object content)
existingRoot - existing palette root in which to add/remove entries that are
now provided for or no longer provided foreditor - the editorcontent - the palette content
|
Runtime | ||||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | ||||||||||
Guidelines for using Eclipse APIs.
Copyright (c) IBM Corp., Borland Software Corp., and others 2005,2006. All rights reserved.