Skip to main content



      Home
Home » Eclipse Projects » Rich Client Platform (RCP) » Idocumentprovider
Idocumentprovider [message #464283] Thu, 01 March 2007 10:36 Go to next message
Eclipse UserFriend
Hi,

iam using a class which extends Rcp text editor.Im my constructor iam
writing the below code.

super();
setSourceViewerConfiguration(new MySourceViewerConfig());
setDocumentProvider(new simpleDocumentprovider());
getDocument()


Getdocument() is my own method which iam calling in constructor.Strangely
when ever i run my class gedocument method gets executed before then
setDocumentprovider.Can any one help me in finding wgy is this happening
in this way?


Thanks in advance
peter.
Re: Idocumentprovider [message #464328 is a reply to message #464283] Fri, 02 March 2007 04:19 Go to previous message
Eclipse UserFriend
peter wrote:

>
> Hi,
>
> iam using a class which extends Rcp text editor.Im my constructor
> iam writing the below code.
> super();
> setSourceViewerConfiguration(new MySourceViewerConfig());
> setDocumentProvider(new simpleDocumentprovider());
> getDocument()
>
>
> Getdocument() is my own method which iam calling in
> constructor.Strangely when ever i run my class gedocument method gets
> executed before then setDocumentprovider.Can any one help me in
> finding wgy is this happening in this way?

Simply step through the code in the Debugger.

Dani

>
>
> Thanks in advance
> peter.
>
>
>
Previous Topic:Automatic Updates in RCP
Next Topic:JFace TreeViewer - Notifying Model
Goto Forum:
  


Current Time: Sat Mar 15 22:52:16 EDT 2025

Powered by FUDForum. Page generated in 0.08776 seconds
.:: Contact :: Home ::.

Powered by: FUDforum 3.0.2.
Copyright ©2001-2010 FUDforum Bulletin Board Software

Back to the top