public class EditorEmbedderFactory
extends java.lang.Object
| Modifier and Type | Class and Description |
|---|---|
static interface |
EditorEmbedderFactory.IEditorCreator
Creates a specific embedded editor.
|
| Modifier and Type | Field and Description |
|---|---|
private static java.util.Map<java.lang.String,EditorEmbedderFactory.IEditorCreator> |
CREATORS |
| Constructor and Description |
|---|
EditorEmbedderFactory() |
| Modifier and Type | Method and Description |
|---|---|
static IEmbeddedEditor |
embedEditor(java.net.URI resourceURI,
org.eclipse.swt.widgets.Composite composite)
Embeds an editor for the given resource URI into
composite. |
static void |
register(java.lang.String extension,
EditorEmbedderFactory.IEditorCreator creator)
Registers an editor creator.
|
static void |
unregister(java.lang.String extension)
Unregisters an editor creator.
|
private static final java.util.Map<java.lang.String,EditorEmbedderFactory.IEditorCreator> CREATORS
public static void register(java.lang.String extension,
EditorEmbedderFactory.IEditorCreator creator)
extension - the file extension to react oncreator - the editor creator to registerpublic static void unregister(java.lang.String extension)
extension - the file extension to unregister the creator forpublic static IEmbeddedEditor embedEditor(java.net.URI resourceURI, org.eclipse.swt.widgets.Composite composite)
composite.resourceURI - the URI to be handledcomposite - the parent composite to embed the editor intoCopyright © 2009 - 2018 SSE. All Rights Reserved.