Skip to content

Commit

Permalink
Added a check for Equinox when switched from bnd to standard equinox for
Browse files Browse the repository at this point in the history
plugin project
  • Loading branch information
Neha Burnwal committed Jan 3, 2025
1 parent 32d72df commit 9c53a54
Show file tree
Hide file tree
Showing 2 changed files with 3 additions and 4 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -162,9 +162,6 @@ protected void createFormatGroup(Composite container) {
private void updateAutomatic() {
boolean standardSelected = PDEUIMessages.NewProjectCreationPage_standard.equals(fOSGiCombo.getText());
useAutomaticMetadata.setVisible(standardSelected);
if (!standardSelected) {
useAutomaticMetadata.setSelection(false);
}
}

private void updateRuntimeDependency() {
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -36,6 +36,7 @@
import org.eclipse.jface.viewers.ViewerFilter;
import org.eclipse.jface.wizard.IWizardNode;
import org.eclipse.pde.bnd.ui.templating.RepoTemplateLabelProvider;
import org.eclipse.pde.internal.core.ICoreConstants;
import org.eclipse.pde.internal.ui.IHelpContextIds;
import org.eclipse.pde.internal.ui.PDEUIMessages;
import org.eclipse.pde.internal.ui.elements.ElementList;
Expand Down Expand Up @@ -67,7 +68,8 @@ public boolean select(Viewer viewer, Object parentElement, Object element) {
boolean ui = data.isUIPlugin();
boolean rcp = data.isRCPApplicationPlugin();
boolean osgi = data.getOSGiFramework() != null;
boolean automatic = osgi && data.isAutomaticMetadataGeneration();
boolean automatic = osgi && data.isAutomaticMetadataGeneration()
&& !data.getOSGiFramework().equals(ICoreConstants.EQUINOX);
WizardElement welement = (WizardElement) element;
boolean active = TemplateWizardHelper.isActive(welement);
boolean uiFlag = welement.getFlag(TemplateWizardHelper.FLAG_UI, true);
Expand Down

0 comments on commit 9c53a54

Please sign in to comment.