|
|||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |
public interface IRemoteSelection
This class represents the current selection of a document.
Access
To get the current selection of a document, use the Selection property in the Document class.
Usage
This class can only be used in visible mode, if used in invisible mode, calling the properties or methods of this class throws an exception.
Method Summary | |
---|---|
void |
copy()
This method copies the selected range to the clipboard. |
void |
cut()
This method cuts the selected range to the clipboard. |
IRemoteTextRange |
getRange()
This property returns the selected range of the document. |
void |
insertHyperLink(java.lang.String displayName,
java.lang.String url)
This method inserts a hyperlink at the current selection of a document. |
void |
paste()
This method pastes the content from the clipboard into the current selection. |
void |
setRange(IRemoteTextRange start,
IRemoteTextRange end)
This method selects a range as the current selection of the document. |
Method Detail |
---|
IRemoteTextRange getRange() throws RemoteEclipseAPIException
RemoteEclipseAPIException
void cut() throws RemoteEclipseAPIException
RemoteEclipseAPIException
void copy() throws RemoteEclipseAPIException
RemoteEclipseAPIException
void paste() throws RemoteEclipseAPIException
RemoteEclipseAPIException
void setRange(IRemoteTextRange start, IRemoteTextRange end) throws RemoteEclipseAPIException
start
- Specifies the starting position of the selection.end
- Specifies the ending position of the selection.
RemoteEclipseAPIException
void insertHyperLink(java.lang.String displayName, java.lang.String url) throws RemoteEclipseAPIException
displayName
- Specifies the name of this link to display.url
- Specifies the URL of this link.
RemoteEclipseAPIException
|
|||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |