Remove String from IDocument [message #333557] |
Wed, 17 December 2008 05:29  |
Eclipse User |
|
|
|
Hi all,
is is possible to remove a String from IDocument?
My plugin uses it's own content assist. My Problem is, that i have to
remove the String i searched for in the content assist. For example i type:
"create", then the content assist inserts me the following code:
createActions(){
super.createActions();
IAction a=new
TextOperationAction(JavaEditorMessages.getResourceBundle(),"ContentAssistProposal. ",this,ISourceViewer.CONTENTASSIST_PROPOSALS);
a.setActionDefinitionId(ITextEditorActionDefinitionIds.CONTE NT_ASSIST_PROPOSALS);
setAction("ContentAssistProposal",a);
a=new
TextOperationAction(JavaEditorMessages.getResourceBundle(),"ContentAssistTip. ",this,ISourceViewer.CONTENTASSIST_CONTEXT_INFORMATION);
a.setActionDefinitionId(ITextEditorActionDefinitionIds.CONTE NT_ASSIST_CONTEXT_INFORMATION);
setAction("ContentAssistTip",a);
a=new
DefineFoldingRegionAction(JavaEditorMessages.getResourceBund le(), "DefineFoldingRegion.",this);
setAction("DefineFoldingRegion",a);
}
create <<<<< Here is the problem
So now i want to remove "create" shown in the last line?
Any ideas?
Thanks
|
|
|
Re: Remove String from IDocument [message #333561 is a reply to message #333557] |
Wed, 17 December 2008 05:58  |
Eclipse User |
|
|
|
Artur Zeiler wrote:
> is is possible to remove a String from IDocument?
document.replace(5, 5, "") to _replace_ offset 5, and subsequent 5
characters (length of 5), with empty string = delete?
Remy
|
|
|
Powered by
FUDForum. Page generated in 0.05748 seconds