Skip to content

Conversation

@sderazo
Copy link

@sderazo sderazo commented Sep 29, 2025

This pull request addresses Issue #1881 , where I added a button for removing unused dependencies to the toolbar since the feature is quite hidden in the Dependencies Tab under Dependency Analysis. The button currently has a placeholder icon, which is the Eclipse logo.

I have made the following changes:

  • I created the RemoveUnusedDependenciesHandler.java file, which contains the logic to check if there are any unused dependencies and remove them if they exist. For getting the current plug-in model, I created the getCurrentPluginModel() function within the RemoveUnusedDependenciesHandler class. It retrieves the plug-in from the active editor.
  • [Work in Progress] The button currently has a placeholder icon. I am curious as how do icons get assigned to buttons and what the process is of creating it if the icon does not exist already.

Here is a picture of what the toolbar looks like with the button:
Screenshot 2025-09-28 at 9 29 22 PM

When I hover over the button, it shows "Removes unused dependencies".

…#1881

We added a button for removing unused dependencies to the toolbar since the feature is quite hidden in the Dependencies Tab under Dependency Analysis. The button currently has a placeholder icon, which is the Eclipse logo.

Fixes eclipse-pde#1881
@laeubi
Copy link
Contributor

laeubi commented Sep 30, 2025

@sderazo it looks like you adding a button to the global toolbar, but this should be added to the toolbar of the editor:

grafik

sorry if this was not clear in my inital report.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

2 participants