Skip to main content



      Home
Home » Eclipse Projects » Eclipse Platform » Editor part -> site
Editor part -> site [message #276927] Wed, 01 December 2004 07:36 Go to next message
Eclipse UserFriend
Originally posted by: brendan.moorehead.gmail.com

I have the current editor input & site
i need to be able to get line number and what text is selected
how do i get the text viewer from the editor so i can use
stlyedtext class or others
Re: Editor part -> site [message #276962 is a reply to message #276927] Thu, 02 December 2004 04:39 Go to previous messageGo to next message
Eclipse UserFriend
Originally posted by: brendan.moorehead.gmail.com

I cannot use ITextEditor or TextSelection in my class
Eclipse does not recognize them and cannot import them
How do i resolve this


Brendan Moorehead wrote:

> I have the current editor input & site
> i need to be able to get line number and what text is selected
> how do i get the text viewer from the editor so i can use
> stlyedtext class or others
Re: Editor part -> site [message #276967 is a reply to message #276962] Thu, 02 December 2004 05:43 Go to previous messageGo to next message
Eclipse UserFriend
Originally posted by: daniel.megert.gmx.net

Brendan Moorehead wrote:

> I cannot use ITextEditor or TextSelection in my class
> Eclipse does not recognize them and cannot import them
> How do i resolve this

You have to add org.eclipse.jface.text as required plug-in to your
plugin.xml.

Dani

>
>
> Brendan Moorehead wrote:
>
>> I have the current editor input & site
>> i need to be able to get line number and what text is selected
>> how do i get the text viewer from the editor so i can use
>> stlyedtext class or others
>
>
>
Re: Editor part -> site [message #276970 is a reply to message #276967] Thu, 02 December 2004 07:08 Go to previous messageGo to next message
Eclipse UserFriend
Originally posted by: brendan.moorehead.gmail.com

Added in dependency but still cannot use classes


Daniel Megert wrote:

> Brendan Moorehead wrote:

>> I cannot use ITextEditor or TextSelection in my class
>> Eclipse does not recognize them and cannot import them
>> How do i resolve this

> You have to add org.eclipse.jface.text as required plug-in to your
> plugin.xml.

> Dani

>>
>>
>> Brendan Moorehead wrote:
>>
>>> I have the current editor input & site
>>> i need to be able to get line number and what text is selected
>>> how do i get the text viewer from the editor so i can use
>>> stlyedtext class or others
>>
>>
>>
Re: Editor part -> site [message #277033 is a reply to message #276970] Fri, 03 December 2004 07:11 Go to previous message
Eclipse UserFriend
Originally posted by: daniel.megert.gmx.net

Brendan Moorehead wrote:

> Added in dependency but still cannot use classes

If your project isn't a PDE plug-in project then you also have to
manually update the Java build path.

Dani

>
>
> Daniel Megert wrote:
>
>> Brendan Moorehead wrote:
>
>
>>> I cannot use ITextEditor or TextSelection in my class
>>> Eclipse does not recognize them and cannot import them
>>> How do i resolve this
>>
>
>> You have to add org.eclipse.jface.text as required plug-in to your
>> plugin.xml.
>
>
>> Dani
>
>
>>>
>>>
>>> Brendan Moorehead wrote:
>>>
>>>> I have the current editor input & site
>>>> i need to be able to get line number and what text is selected
>>>> how do i get the text viewer from the editor so i can use
>>>> stlyedtext class or others
>>>
>>>
>>>
>>>
>
>
Previous Topic:Browser widget limitations
Next Topic:How to Create a Source Build
Goto Forum:
  


Current Time: Sun May 04 14:17:33 EDT 2025

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

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

Back to the top