1 11 package org.eclipse.pde.internal.ui.correction; 12 13 import org.eclipse.core.resources.IMarker; 14 import org.eclipse.core.runtime.CoreException; 15 import org.eclipse.osgi.util.NLS; 16 import org.eclipse.pde.internal.core.text.build.Build; 17 import org.eclipse.pde.internal.core.text.build.BuildEntry; 18 import org.eclipse.pde.internal.ui.PDEUIMessages; 19 20 public class RemoveSeperatorBuildEntryResolution extends BuildEntryMarkerResolution { 21 22 public RemoveSeperatorBuildEntryResolution(int type, IMarker marker) { 23 super(type, marker); 24 } 25 26 protected void createChange(Build build) { 27 try { 28 BuildEntry buildEntry = (BuildEntry)build.getEntry(fEntry); 29 buildEntry.renameToken(fToken, fToken.substring(0, fToken.length() - 1)); 30 } catch (CoreException e) { 31 } 32 } 33 34 public String getLabel() { 35 return NLS.bind(PDEUIMessages.RemoveSeperatorBuildEntryResolution_label, fToken, fEntry); 36 } 37 38 } 39 | Popular Tags |