Skip to content

Commit

Permalink
[PDE] Reduce usage of PDE internals in production code
Browse files Browse the repository at this point in the history
  • Loading branch information
HannesWell committed Sep 27, 2024
1 parent 40e9417 commit 3d646b5
Showing 1 changed file with 3 additions and 3 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -46,11 +46,11 @@
import org.eclipse.pde.core.plugin.IPluginModelBase;
import org.eclipse.pde.core.plugin.PluginRegistry;
import org.eclipse.pde.core.project.IBundleProjectDescription;
import org.eclipse.pde.internal.core.natures.FeatureProject;

public class PDEProjectHelper {

private static final String PDE_PLUGIN_NATURE = IBundleProjectDescription.PLUGIN_NATURE;
private static final String PDE_FEATURE_NATURE = "org.eclipse.pde.FeatureNature";

private static AtomicBoolean isListeningForPluginModelChanges = new AtomicBoolean(false);

Expand Down Expand Up @@ -115,8 +115,8 @@ static void configurePDEFeatureProject(IMavenProjectFacade projectFacade, IProgr
if (project != null) {
// see
// org.eclipse.pde.internal.ui.wizards.feature.AbstractCreateFeatureOperation
if (!project.hasNature(FeatureProject.NATURE)) {
AbstractProjectConfigurator.addNature(project, FeatureProject.NATURE, monitor);
if (!project.hasNature(PDE_FEATURE_NATURE)) {
AbstractProjectConfigurator.addNature(project, PDE_FEATURE_NATURE, monitor);
}
}
}
Expand Down

0 comments on commit 3d646b5

Please sign in to comment.