Question

I'm trying to create an Eclipse plug-in, which gives suggestions about in which packages the classes should be. And now I'm having troubles on adding corresponding icons to the java editor, on the left side of the package declaration. To be more specific, now the user can run the algorithm from the context menu and what I want is to add suggestions on each java class file (similar to the way that FindBugs works). And if the user clicks on that icon, there must be a hint (I guess they are called Proposals) saying "move to package 'anotherpackage'"; after clicking on it the class will be moved to that package.

Was it helpful?

Solution

You need to create problem markers for the icons and afterwards you implement matching quick fixes for the tooltips to solve the problems.

Licensed under: CC-BY-SA with attribution
Not affiliated with StackOverflow
scroll top