Skip to content

Plugin section via file import does not work as expected - #1004

Open
subyssurendran666 wants to merge 2 commits into
eclipse-equinox:masterfrom
subyssurendran666:plugin_section_via_file_import_not_as_expect_1003
Open

Plugin section via file import does not work as expected#1004
subyssurendran666 wants to merge 2 commits into
eclipse-equinox:masterfrom
subyssurendran666:plugin_section_via_file_import_not_as_expect_1003

Conversation

@subyssurendran666

Copy link
Copy Markdown
Contributor
image

Changes the behavior so that no plugins are selected by default when importing from a p2f file. This allows users to explicitly select only the plugins they want to install.

Fix: #1003

@subyssurendran666

Copy link
Copy Markdown
Contributor Author

@merks could you please review this PR?

@subyssurendran666
subyssurendran666 force-pushed the plugin_section_via_file_import_not_as_expect_1003 branch from ddacb61 to 93bac43 Compare March 16, 2026 15:21
@subyssurendran666

Copy link
Copy Markdown
Contributor Author

@laeubi Could you please trigger the GitHub Copilot review for this PR?

@iloveeclipse

Copy link
Copy Markdown
Member

Changes the behavior so that no plugins are selected by default when importing from a p2f file. This allows users to explicitly select only the plugins they want to install.

This is bad proposal & wrong solution. I want everything to be installed, I don't want to explicitly select anything, because the file in question has all what I need, and I do this literally every day.

@iloveeclipse iloveeclipse left a comment

Copy link
Copy Markdown
Member

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

As explained, it is not a solution for the problem.

@subyssurendran666

Copy link
Copy Markdown
Contributor Author

Changes the behavior so that no plugins are selected by default when importing from a p2f file. This allows users to explicitly select only the plugins they want to install.

This is bad proposal & wrong solution. I want everything to be installed, I don't want to explicitly select anything, because the file in question has all what I need, and I do this literally every day.

One situation I faced while setting up JDT.UI was that I only needed AssertJ and Mockito. However, the p2f file contains many other plugins as well. In that case, I had to manually deselect the unwanted plugins, or click “Deselect All” and then select only the required plugins. Because of this, the auto-selection process irritated me multiple times while setting up JDT.UI.

The actual problem was slightly different. In the existing implementation, all plugins are selected by default. If the user clicks “Deselect All” and then tries to select the required plugin, all the plugins get auto-selected again, and the plugin that the user manually selected becomes deselected.

To avoid this issue, I set all plugins to be deselected by default, and the problem was resolved. These are the reasons why I implemented it this way.

I am open to implementing this in a different way, but auto-selecting all plugins by default can definitely cause inconvenience for users who do not need all the plugins.

@iloveeclipse

Copy link
Copy Markdown
Member

If the user clicks “Deselect All” and then tries to select the required plugin, all the plugins get auto-selected again,

This is the bug.

@subyssurendran666
subyssurendran666 force-pushed the plugin_section_via_file_import_not_as_expect_1003 branch from 93bac43 to c04f46b Compare July 22, 2026 05:15
@eclipse-equinox-bot

eclipse-equinox-bot commented Jul 22, 2026

Copy link
Copy Markdown
Contributor

This pull request changes some projects for the first time in this development cycle.
Therefore the following files need a version increment:

bundles/org.eclipse.equinox.p2.ui.importexport/META-INF/MANIFEST.MF

An additional commit containing all the necessary changes was pushed to the top of this PR's branch. To obtain these changes (for example if you want to push more changes) either fetch from your fork or apply the git patch.

Git patch
From 910376bc37df8198124a3983e6c6465cd5091075 Mon Sep 17 00:00:00 2001
From: Eclipse Equinox Bot <equinox-bot@eclipse.org>
Date: Wed, 22 Jul 2026 08:17:56 +0000
Subject: [PATCH] Version bump(s) for 4.41 stream


diff --git a/bundles/org.eclipse.equinox.p2.ui.importexport/META-INF/MANIFEST.MF b/bundles/org.eclipse.equinox.p2.ui.importexport/META-INF/MANIFEST.MF
index bb49b95d8..dccaa9976 100755
--- a/bundles/org.eclipse.equinox.p2.ui.importexport/META-INF/MANIFEST.MF
+++ b/bundles/org.eclipse.equinox.p2.ui.importexport/META-INF/MANIFEST.MF
@@ -2,7 +2,7 @@ Manifest-Version: 1.0
 Bundle-ManifestVersion: 2
 Bundle-Name: %pluginName
 Bundle-SymbolicName: org.eclipse.equinox.p2.ui.importexport;singleton:=true
-Bundle-Version: 1.5.100.qualifier
+Bundle-Version: 1.5.200.qualifier
 Bundle-Vendor: %providerName
 Require-Bundle: org.eclipse.ui,
  org.eclipse.core.runtime;bundle-version="[3.34.200,4.0.0)",
-- 
2.54.0

Further information are available in Common Build Issues - Missing version increments.

@github-actions

github-actions Bot commented Jul 22, 2026

Copy link
Copy Markdown

Test Results

   18 files  ±0     18 suites  ±0   30m 9s ⏱️ + 1m 28s
2 171 tests ±0  2 168 ✅ ±0  3 💤 ±0  0 ❌ ±0 
5 167 runs  ±0  5 158 ✅ ±0  9 💤 ±0  0 ❌ ±0 

Results for commit 7194b54. ± Comparison against base commit c3c473b.

♻️ This comment has been updated with latest results.

Changes the behavior so that no plugins are selected by default when
importing from a p2f file. This allows users to explicitly select only
the plugins they want to install.

Fix: eclipse-equinox#1003
@subyssurendran666
subyssurendran666 force-pushed the plugin_section_via_file_import_not_as_expect_1003 branch from 783e30d to 080a9ac Compare July 22, 2026 08:15
@subyssurendran666

Copy link
Copy Markdown
Contributor Author

Hi @iloveeclipse , I have incorporated the requested changes. Could you please review this PR when you have some time? Thanks in advance.

@iloveeclipse

Copy link
Copy Markdown
Member

Hi @iloveeclipse , I have incorporated the requested changes. Could you please review this PR when you have some time? Thanks in advance.

Going back to your original issue, I've tried to reproduce on master but failed.
Here is what we you are trying to fix:

If I click the Deselect All button to clear the default selections and then try to select only the plugin I need, the behavior is not as expected. When I click on the required plugin, instead of selecting that plugin, it selects all the other plugins and does not allow the intended plugin to be selected.

I'm using this file:

<?xml version='1.0' encoding='UTF-8'?>
<?p2f version='1.0.0'?>
<p2f  version='1.0.0'>
  <ius size='28'>
    <iu id='AnyEditTools.feature.group' name='AnyEditTools' version='0.0.0'>
        <repositories size='1'>
            <repository location='https://raw.githubusercontent.com/iloveeclipse/plugins/latest'/>
        </repositories>
    </iu>
    <iu id='org.eclipse.eclemma.feature.feature.group' name='EclEmma Java Code Coverage' version='0.0.0'>
        <repositories size='1'>
            <repository location='https://download.eclipse.org/eclemma/updates-master/'/>
        </repositories>
    </iu>
    <iu id='org.eclipse.jgit.lfs.feature.group' name='Eclipse Git LFS support' >
      <repositories size='1'>
        <repository location='https://download.eclipse.org/egit/updates-nightly'/>
      </repositories>
    </iu>
    <iu id='org.eclipse.egit.feature.group' name='Eclipse Git Team Provider' >
      <repositories size='1'>
        <repository location='https://download.eclipse.org/egit/updates-nightly'/>
      </repositories>
    </iu>
    <iu id='org.eclipse.equinox.executable.feature.group' name='Eclipse platform launcher executables' version='0.0.0'>
        <repositories size='1'>
            <repository location='https://download.eclipse.org/eclipse/updates/I-builds'/>
        </repositories>
    </iu>
    <iu id='com.microsoft.copilot.eclipse.feature.feature.group' name='Github Copilot' version='0.0.0'>
        <repositories size='1'>
            <repository location='https://azuredownloads-g3ahgwb5b8bkbxhd.b01.azurefd.net/github-copilot-eclipse-nightly/'/>
        </repositories>
    </iu>
  </ius>
</p2f>
  1. If I open the import page, everything is checked.
  2. After "delelect all" everything is unchecked.
  3. Selecting any entry afterwards simply does what it is supposed to do, without this patch.

What is different? I'm using Linux and you are testing on Mac. So I assume the bug is not in the fixed line but in the Mac table/checkbox handling code. Please investigate that.

@subyssurendran666

Copy link
Copy Markdown
Contributor Author

Thank you for testing this and for sharing your insights. I will investigate it further based on your suggestions.

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.

Plugin selection from File → Import via p2f file does not work as expected.

3 participants