1 11 package org.eclipse.pde.internal.ui.correction; 12 13 import org.eclipse.pde.internal.core.text.bundle.BundleModel; 14 import org.eclipse.pde.internal.ui.PDEUIMessages; 15 import org.eclipse.pde.internal.ui.wizards.tools.OrganizeManifest; 16 17 public class OrganizeRequireBundleResolution extends AbstractManifestMarkerResolution { 18 19 private boolean fRemoveImports; 20 21 public OrganizeRequireBundleResolution(int type, boolean removeImports) { 22 super(type); 23 fRemoveImports = removeImports; 24 } 25 26 protected void createChange(BundleModel model) { 27 OrganizeManifest.organizeRequireBundles(model.getBundle(), fRemoveImports); 28 } 29 30 public String getDescription() { 31 return PDEUIMessages.OrganizeRequireBundleResolution_Description; 32 } 33 34 public String getLabel() { 35 return PDEUIMessages.OrganizeRequireBundleResolution_Label; 36 } 37 38 } 39 | Popular Tags |