| 
 | ||||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | |||||||||
public interface IModelService
Interface to provide access to the model of the content. Users can get this
 IModelService through IModelServiceHolder that is implemented
 with IEditorPart.
IModelServiceHolder| Field Summary | |
|---|---|
| static String | ATTR_WINDOWHANDLE | 
| static String[] | EXTS_HTMLHTML extensions | 
| static String[] | EXTS_ODFODF extensions | 
| static String[] | MIMETYPES_HTMLHTML MIME type | 
| static String[] | MIMETYPES_ODFODF MIME type | 
| Method Summary | |
|---|---|
|  ImagePositionInfo[] | getAllImagePosition()Get all image position information within the content | 
|  Object | getAttribute(String key)Get corresponding Objectwith the specified key. | 
|  String | getCurrentMIMEType()Get MIME type of the content | 
|  Document | getDocument()Get model of the content as Document. | 
|  String | getID()Get ID | 
|  Document | getLiveDocument()Get model of the content as Document. | 
|  IModelServiceHolder | getModelServiceHolder()Get IModelServiceHolderwho owns this implementation | 
|  IModelServiceScrollManager | getScrollManager()Get IModelServiceScrollManagerto scroll the content | 
|  String[] | getSupportExtensions()Get file extensions that are supported by this IModelService | 
|  String[] | getSupportMIMETypes()Get MIME types that are supported by this IModelService | 
|  org.eclipse.swt.widgets.Composite | getTargetComposite()Get the Compositethat hold the content | 
|  String | getTitle()Get title | 
|  String | getURL()Get content URL as String | 
|  void | jumpToNode(Node target)Move current position to the specified Node | 
|  void | open(File target)Open specified File | 
|  void | open(String url)Open specified URL | 
|  File | saveDocumentAsHTMLFile(String file)Convert the Documentinto HTML and save into target file. | 
|  File | saveOriginalDocument(String file)Save the original Documentinto target file | 
| Field Detail | 
|---|
static final String[] MIMETYPES_HTML
static final String[] MIMETYPES_ODF
static final String[] EXTS_HTML
static final String[] EXTS_ODF
static final String ATTR_WINDOWHANDLE
| Method Detail | 
|---|
String[] getSupportMIMETypes()
IModelService
String[] getSupportExtensions()
IModelService
String getCurrentMIMEType()
void open(String url)
url - target URLvoid open(File target)
File
target - target FileString getURL()
String getTitle()
String getID()
Document getDocument()
Document. This method returns
 Document based on the original source of the content.
DocumentDocument getLiveDocument()
Document. This method returns
 runtime Document inside the Editor.
Documentorg.eclipse.swt.widgets.Composite getTargetComposite()
Composite that hold the content
CompositeFile saveOriginalDocument(String file)
Document into target file
file - target file path
FileFile saveDocumentAsHTMLFile(String file)
Document into HTML and save into target file. Empty
 file will be generated if this method is not supported by the
 implementation.
file - target file path
File.void jumpToNode(Node target)
Node
target - target NodeIModelServiceScrollManager getScrollManager()
IModelServiceScrollManager to scroll the content
IModelServiceScrollManagerImagePositionInfo[] getAllImagePosition()
ImagePositionInfoIModelServiceHolder getModelServiceHolder()
IModelServiceHolder who owns this implementation
IModelServiceHolderObject getAttribute(String key)
Object with the specified key. This method is
 used for implementation unique customization.
key - target key
Object with the specified key| 
 | ||||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | |||||||||