Skip to main content

Eclipse Community Forums
Forum Search:

Search      Help    Register    Login    Home
Home » Eclipse Projects » Plugin Development Environment (PDE) » Dependency Analysis issues
Dependency Analysis issues [message #663132] Sun, 03 April 2011 22:14
Alain Picard is currently offline Alain PicardFriend
Messages: 233
Registered: July 2009
Senior Member
I am having a few issues here and I'd like to know how best to proceed.

First, don't think it matters here, but we use Required Plugins for
Eclipse provided functionality and Imported Packages for everything else.

When I use "Find Unused Dependencies" from the Manifest Dependency
Analysis section, it tells me that I have some Unused Dependencies and
if I remove them, I get build errors. The opposite is also the case if I
ask to "add dependencies" from that same set it tells me that no
additional dependencies were found (which we had tried to use a while
back to establish a baseline but got the same type of problems as
described below and we just fixed the errors reported then).

There seems to be a number of situations where the analysis is
incorrect. Here are 2 identified situations causing the issue:

-First downcasting.
I have a package that defines some methods that would return an EList
(from EMF) and my plugin uses it but downcasted to a List as such:
List<Something> =;
where run is set to return an EList and not a List.
This gives me that the type EList cannot be resolved and it is
indirectly referenced.

-Second superclass
I have a plugin/package that define a class that is subclassed in a
different plugin/package. That subclass is being used in a 3rd plugin.
This plugin import the package for the subclass that it uses, but I get
an error the the type SuperClass cannot be resolved and it is indirectly
referenced. Here I have no clue how I'm even referencing the super
class, I don't even address superclass field or method that I see.

So, back to the questions.
1. Why isn't this managed with the dependency analysis and if that is a
limitation, how can this dependency analysis be useful in real life cases.

2. I can obviously fix every error until there are none (and that works
btw), but that doesn't seem like a good way to deal with the issue. Are
there some patterns or strategies when building plugins to avoid those

3. In the first case, I feel that I probably can get around it by
marking the EMF common plugin as re-exported from my first plugin. Here
my question is two-fold, I've read a lot of posts about staying away
from re-exporting and so wonder about how good they are and secondly,
since we mostly use import packages, what is the equivalent and how do
we deal with such issues then?

Previous Topic:MenuContribution: How to add a menu item under File.New Menu?
Next Topic:HowTo get the data from a wizard?
Goto Forum:

Current Time: Wed Aug 12 16:18:52 GMT 2020

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

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

Back to the top