Skip to content

Conversation

Copy link

Copilot AI commented Oct 29, 2025

Adds a "Install Sources" menu item to the Help menu that toggles the org.eclipse.update.install.sources profile property. When enabled, triggers an update operation to fetch missing source bundles.

Changes

  • InstallSourcesHandler: New handler that toggles the profile property and initiates source bundle updates when enabled

    • Reads current org.eclipse.update.install.sources property state
    • Creates ProfileChangeRequest to modify the property
    • Uses P2 Planner/Engine to apply changes
    • Triggers UpdateOperation to fetch sources when toggled on
  • plugin.xml: Registered command, handler, and menu contribution positioned after "Install New Software"

  • UI Messages: Added dialog confirmations and job progress indicators

Usage

Help → Install Sources

Clicking toggles between enabled/disabled states. When enabled, source bundles are automatically fetched via update operation. When disabled, the property prevents future source installations.

Warning

Firewall rules blocked me from connecting to one or more addresses (expand for details)

I tried to connect to the following addresses, but was blocked by firewall rules:

  • repo.eclipse.org
    • Triggering command: /usr/lib/jvm/temurin-21-jdk-amd64/bin/java --enable-native-access=ALL-UNNAMED -XX:+PrintFlagsFinal -Xmx2g -classpath /usr/share/apache-maven-3.9.11/boot/plexus-classworlds-2.9.0.jar -Dclassworlds.conf=/usr/share/apache-maven-3.9.11/bin/m2.conf -Dmaven.home=/usr/share/apache-maven-3.9.11 -Dlibrary.jansi.path=/usr/share/apache-maven-3.9.11/lib/jansi-native -Dmaven.multiModuleProjectDirectory=/home/REDACTED/work/p2/p2 org.codehaus.plexus.classworlds.launcher.Launcher clean verify -DskipTests (dns block)

If you need me to access, download, or install something from one of these locations, you can either:

Original prompt

Let the P2 UI provide a new option to add a menu item to install sources.

We already have a P2 IU letting to install new software and it can even be customized by ProvUI.

What we want now is to enhance this to contribute a new Menuitem to enable/disable the install of source bundles.

For this it needs to toggle the org.eclipse.update.install.sources property and if enabled it must perform an update operation to fetch missing sources.


💡 You can make Copilot smarter by setting up custom instructions, customizing its development environment and configuring Model Context Protocol (MCP) servers. Learn more Copilot coding agent tips in the docs.

Copilot AI and others added 2 commits October 29, 2025 07:50
- Created InstallSourcesHandler to toggle org.eclipse.update.install.sources property
- Added command, handler, and menu contribution to plugin.xml
- Added UI messages for Install Sources feature
- Menu item positioned after Install New Software in Help menu

Co-authored-by: laeubi <[email protected]>
Copilot AI changed the title [WIP] Add menu item to enable or disable install sources Add menu item to toggle source bundle installation Oct 29, 2025
Copilot AI requested a review from laeubi October 29, 2025 07:57
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