blob: d56b6d4dc4aa6d4537bf6859cbb9e0fd2149b9e3 [file] [log] [blame]
/*******************************************************************************
* Copyright (c) 2019 IBM Corporation and others.
*
* This program and the accompanying materials
* are made available under the terms of the Eclipse Public License 2.0
* which accompanies this distribution, and is available at
* https://www.eclipse.org/legal/epl-2.0/
*
* SPDX-License-Identifier: EPL-2.0
*
* Contributors:
* IBM Corporation - initial API and implementation
*******************************************************************************/
package org.eclipse.pde.api.tools.ui.internal.markers;
import org.eclipse.core.resources.IMarker;
import org.eclipse.osgi.util.NLS;
import org.eclipse.pde.api.tools.internal.provisional.IApiMarkerConstants;
public class SinceTagAfterVersionUpdateResolution extends SinceTagResolution {
IMarker markerVersion = null;
public SinceTagAfterVersionUpdateResolution(IMarker markerVer ,IMarker marker) {
super(marker);
markerVersion = markerVer;
}
@Override
public String getLabel() {
return NLS.bind(MarkerMessages.SinceTagResolution_add_since_tag_after_version_update, markerVersion.getAttribute(IApiMarkerConstants.MARKER_ATTR_VERSION, null));
}
@Override
public void run(final IMarker marker) {
if (markerVersion != null) {
new VersionNumberingResolution(markerVersion).run(markerVersion);
this.newVersionValue = markerVersion.getAttribute(IApiMarkerConstants.MARKER_ATTR_VERSION, null);
}
super.run(marker);
}
}