Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Updated selection when switched from bnd to standard equinox #1502

Open
wants to merge 1 commit into
base: master
Choose a base branch
from

Conversation

nburnwal09
Copy link

This commit fixes the bnd in templates while switching the plugin project type from bnd(with checked 'Generate OSGi metadata automatically' ) to standard equinox

Fixes: #1500

@nburnwal09 nburnwal09 force-pushed the pluginProjectType_Fix branch from cdef177 to 725f3c1 Compare December 3, 2024 10:24
Copy link

github-actions bot commented Dec 3, 2024

Test Results

   285 files  ±0     285 suites  ±0   55m 15s ⏱️ + 2m 1s
 3 586 tests ±0   3 510 ✅ ±0   76 💤 ±0  0 ❌ ±0 
10 950 runs  ±0  10 719 ✅ ±0  231 💤 ±0  0 ❌ ±0 

Results for commit 725f3c1. ± Comparison against base commit bb04e28.

@gireeshpunathil
Copy link
Contributor

@laeubi @HannesWell - can you please have a look? thanks!

@laeubi laeubi requested a review from HannesWell December 27, 2024 14:41
@laeubi laeubi force-pushed the pluginProjectType_Fix branch from 725f3c1 to 32d72df Compare December 27, 2024 14:41
@@ -162,6 +162,9 @@ protected void createFormatGroup(Composite container) {
private void updateAutomatic() {
boolean standardSelected = PDEUIMessages.NewProjectCreationPage_standard.equals(fOSGiCombo.getText());
useAutomaticMetadata.setVisible(standardSelected);
if (!standardSelected) {
useAutomaticMetadata.setSelection(false);
Copy link
Contributor

Choose a reason for hiding this comment

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

I'm not sure it should be fixed in the UI but at the place where the value is evaluated.

Copy link
Author

Choose a reason for hiding this comment

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

I will look into the possibility and get back.

Copy link
Author

Choose a reason for hiding this comment

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

We cannot stop it where the values are getting loaded as it is needed for standard selection bundles(when Generate OSGi metadata automatically is selected Unser standard)
As the problem occurs when moved from bnd to standard equinox, we need to make it False in the UI.

Copy link
Contributor

Choose a reason for hiding this comment

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

As the problem occurs when moved from bnd to standard equinox, we need to make it False in the UI.

I don't agree here, the UI is just showing a state. If that state is not valid or irrelevant then it should be assumed to be false on this place (or not being evaluated at all).

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.

selection of bnd template persists across different project types
3 participants