Eclipse Community Forums
Forum Search:

Search      Help    Register    Login    Home
Home » Eclipse Projects » Eclipse Platform » Get error 'indirectly referenced from...' for IVerticalRulerColumn
Get error 'indirectly referenced from...' for IVerticalRulerColumn [message #487417] Wed, 23 September 2009 03:55 Go to next message
Prasanna K is currently offline Prasanna K
Messages: 78
Registered: July 2009
Member
Hi,

I am using eclipse-3.4.2 to develop a plug-in.
I am trying to implement the interface org.eclipse.ui.texteditor.rulers.IContributedRulerColumn to add some ruler features to the editor in my plug-in.

I get this compilation error : "The type org.eclipse.jface.text.source.IVerticalRulerColumn cannot be resolved. It is indirectly referenced from required .class files".

I have following in my plug-in dependencies among many others : org.eclipse.jface.text.source;bundle-version="3.4.2"
org.eclipse.ui.workbench.texteditor;bundle-version="3.4.1"

I also did a jar -tvf on the plug-in jar file on the disk and did a grep for IVerticalRulerColumn and it in did found the class as :
jar -tvf org.eclipse.jface.text.source_3.4.2.r342_v20081119-0800.jar | grep IVerticalRulerColumn

What could be the problem?
Thanks.
http://twitter.com/kaprasanna
Re: Get error 'indirectly referenced from...' for IVerticalRulerColumn [message #487424 is a reply to message #487417] Wed, 23 September 2009 04:30 Go to previous messageGo to next message
Daniel Krügler is currently offline Daniel Krügler
Messages: 853
Registered: July 2009
Senior Member
kaprasi wrote:
> Hi,
>
> I am using eclipse-3.4.2 to develop a plug-in.
> I am trying to implement the interface
> org.eclipse.ui.texteditor.rulers.IContributedRulerColumn to add some
> ruler features to the editor in my plug-in.
>
> I get this compilation error : "The type
> org.eclipse.jface.text.source.IVerticalRulerColumn cannot be resolved.
> It is indirectly referenced from required .class files".
>
> I have following in my plug-in dependencies among many others :
> org.eclipse.jface.text.source;bundle-version="3.4.2"
> org.eclipse.ui.workbench.texteditor;bundle-version="3.4.1"

I'm not sure about the versions (just delete them) and I also
would not add a dependency on a *source* plugin.

Just replace

org.eclipse.jface.text.source

by

org.eclipse.jface.text

HTH & Greetings from Bremen

Daniel Krügler
Re: Get error 'indirectly referenced from...' for IVerticalRulerColumn [message #487442 is a reply to message #487417] Wed, 23 September 2009 05:45 Go to previous messageGo to next message
Prasanna K is currently offline Prasanna K
Messages: 78
Registered: July 2009
Member
Daniel,

Thanks.. That solved my problem.

But I believe, the larger question is, how do we (plug-in developers) know why such things happen and shouldn't there be a kinda central db of all classes which can be queried to retrieve info like containing bundle for which platform among may other things?

Thanks again.
Re: Get error 'indirectly referenced from...' for IVerticalRulerColumn [message #487463 is a reply to message #487442] Wed, 23 September 2009 06:28 Go to previous message
Daniel Krügler is currently offline Daniel Krügler
Messages: 853
Registered: July 2009
Senior Member
kaprasi wrote:
> Thanks.. That solved my problem.

Fine!

> But I believe, the larger question is, how do we (plug-in developers)
> know why such things happen and shouldn't there be a kinda central db of
> all classes which can be queried to retrieve info like containing bundle
> for which platform among may other things?

I agree that I also sometimes miss such a feature. What you often need
to know is: Which *plug-in* does provide this class or interface?
Unfortunately you don't find the answer to this in the help system,
which only shows you the *package* where such entity belongs to.

All the best,

- Daniel Krügler
Previous Topic:special keys
Next Topic:Delete the "Open in a new window" menu
Goto Forum:
  


Current Time: Thu Jul 31 01:37:45 EDT 2014

Powered by FUDForum. Page generated in 0.16505 seconds