public interface IModelService
IModelService through IModelServiceHolder that is implemented
with IEditorPart.IModelServiceHolder| Modifier and Type | Field and Description |
|---|---|
static String |
ATTR_WINDOWHANDLE |
static String[] |
EXTS_HTML
HTML extensions
|
static String[] |
EXTS_ODF
ODF extensions
|
static String[] |
MIMETYPES_HTML
HTML MIME type
|
static String[] |
MIMETYPES_ODF
ODF MIME type
|
| Modifier and Type | Method and Description |
|---|---|
ImagePositionInfo[] |
getAllImagePosition()
Get all image position information within the content
|
Object |
getAttribute(String key)
Get corresponding
Object with 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
IModelServiceHolder who owns this implementation |
IModelServiceScrollManager |
getScrollManager()
Get
IModelServiceScrollManager to 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 |
Composite |
getTargetComposite()
Get the
Composite that 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
Document into HTML and save into target file. |
File |
saveOriginalDocument(String file)
Save the original
Document into target file |
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
String[] getSupportMIMETypes()
IModelServiceString[] getSupportExtensions()
IModelServiceString getCurrentMIMEType()
void open(String url)
url - target URLString getURL()
String getTitle()
String getID()
Document getDocument()
Document. This method returns
Document based on the original source of the content.DocumentComposite getTargetComposite()
Composite that hold the contentCompositeFile saveOriginalDocument(String file)
Document into target filefile - target file pathFileFile 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 pathFile.void jumpToNode(Node target)
Nodetarget - target NodeIModelServiceScrollManager getScrollManager()
IModelServiceScrollManager to scroll the contentIModelServiceScrollManagerImagePositionInfo[] getAllImagePosition()
ImagePositionInfoIModelServiceHolder getModelServiceHolder()
IModelServiceHolder who owns this implementationIModelServiceHolder