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

Merged
merged 1 commit into from
Jan 6, 2025

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).

Copy link
Author

Choose a reason for hiding this comment

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

I have updated the fix accordingly. Kindly check

But I have a question here:
Does the checkbox 'This plug-in will make contributions to the UI' need to be enabled only for Eclipse projects? I notice that it is greyed out for the both OSGi framework -> standard Equinox and bnd(with checked or unchecked generate automatic metadata)

Copy link
Contributor

Choose a reason for hiding this comment

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

This plug-in will make contributions to the UI

Yes this is eclipse specific, in standard OSGi there is no mean of "UI", this is application specific. Still a "standard" plugin can of course contribute to the UI... it just controls what is offered to the user and some initial settings but nothing that is persisted.

@nburnwal09 nburnwal09 force-pushed the pluginProjectType_Fix branch from 9c53a54 to ca40a1b Compare January 3, 2025 14:13
Copy link
Contributor

@laeubi laeubi left a comment

Choose a reason for hiding this comment

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

This looks fine to me!

@laeubi laeubi force-pushed the pluginProjectType_Fix branch from ca40a1b to f93822e Compare January 4, 2025 07:38
@laeubi laeubi merged commit 5baaa6d into eclipse-pde:master Jan 6, 2025
7 checks passed
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