|
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.ui.services.editor.AbstractEditorProvider
public abstract class AbstractEditorProvider
An abstract implementation of an editor provider
Constructor Summary | |
---|---|
AbstractEditorProvider()
|
Method Summary | |
---|---|
protected abstract boolean |
canOpen(IEditorInput editorInput)
Method Determines if the editor provider can open an editor for the given editor input |
protected abstract java.lang.String |
getEditorId(IEditorInput editorInput)
Returns the Editor id suitable for the given editor input |
IEditorPart |
openEditor(IEditorInput editorInput)
Opens an editor with the given editor input |
boolean |
provides(IOperation operation)
Determines if the provider can handle the given editor operation |
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, removeProviderChangeListener |
Constructor Detail |
---|
public AbstractEditorProvider()
Method Detail |
---|
public IEditorPart openEditor(IEditorInput editorInput)
openEditor
in interface IEditorProvider
editorInput
- the editor input object
IEditorProvider.openEditor(IEditorInput)
public boolean provides(IOperation operation)
provides
in interface IProvider
operation
- the given operation
true
if this provider provides the operation;
false
otherwise.IProvider.provides(org.eclipse.gmf.runtime.common.core.service.IOperation)
protected abstract java.lang.String getEditorId(IEditorInput editorInput)
editorInput
- the given editor input
protected abstract boolean canOpen(IEditorInput editorInput)
editorInput
- the given editor input
|
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.