[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index] [Newsgroup Home]
[news.eclipse.newcomer] Re: plugin editor help

"Astrid Sawatzky" <assawatzky@xxxxxxxxxxxxx> skrev i melding 
news:djjc2t$97n$1@xxxxxxxxxxxxxxxxxxx
> LA wrote:
>> Hi,
>>
>> Have recently started looking into plug-in development for eclipse 3.1 
>> but I'm stuck with a problem. Trying to move on from the hello world 
>> example but wonder how I can access the editor within the workspace. My 
>> plugin has the IWorkbenchWindow variable set correctly but I'm unsure how 
>> to access the editor from there on. There are two thing I'd like to do 
>> with the editor, one is to add text to the currently active page and 
>> secondly to add a new "untitled text file" (I know that already exists) 
>> to the editor.
>>
>> Appreciate any help\advice.
>>
>> Cheers.
> Dear LA,
>
> if u started the project with new Plugin-Project , then u find a 
> plugin.xml in your project's folder.
>
> open that one .
>
> it'll show 2 links in the overview tab where u can decide if u'd like to 
> run ur plugin in debug or in normal mode.
>
> HTH
> kind regards
> Astrid

Thanks for replying to my post.

At the moent I've create a "HelloWorld" plugin using the wizard and think I 
understand whats going on with the plugin.xml and such. The plugin works 
fine when I run it aswell.

Now, I'd like to access the active editors and read \ write text to it. My 
question is then, using a IWorkbenchWindow variable how can I access the 
active editor and archive the tasks mentioned. Hope that was clear.

Appreciate any help.