Skip to content

Commit

Permalink
Automatic flag in TemplateListSelectionPage must check if OSGi is active
Browse files Browse the repository at this point in the history
The "automatic" flag is actually bound to the enablement of an OSGi
Framework project type, so we need to disable it when OSGI is not
selected.

Fix eclipse-pde#566
  • Loading branch information
laeubi committed Apr 7, 2023
1 parent 9cddd29 commit 12e4733
Showing 1 changed file with 1 addition and 1 deletion.
Original file line number Diff line number Diff line change
Expand Up @@ -46,7 +46,7 @@ public boolean select(Viewer viewer, Object parentElement, Object element) {
boolean ui = data.isUIPlugin();
boolean rcp = data.isRCPApplicationPlugin();
boolean osgi = data.getOSGiFramework() != null;
boolean automatic = data.isAutomaticMetadataGeneration();
boolean automatic = osgi && data.isAutomaticMetadataGeneration();
WizardElement welement = (WizardElement) element;
boolean active = TemplateWizardHelper.isActive(welement);
boolean uiFlag = TemplateWizardHelper.getFlag(welement, TemplateWizardHelper.FLAG_UI, true);
Expand Down

0 comments on commit 12e4733

Please sign in to comment.