1
/*******************************************************************************
2
* Copyright (c) 2008 Alexander Kurtakov.
3
* All rights reserved. This program and the accompanying materials
4
* are made available under the terms of the Eclipse Public License v1.0
5
* which accompanies this distribution, and is available at
6
* http://www.eclipse.org/legal/epl-v10.html
9
* Alexander Kurtakov - initial API and implementation
10
*******************************************************************************/
11
package org.eclipse.linuxtools.internal.rpm.rpmlint.resolutions;
14
* Resolution for "macro-in-%changelog" warning.
15
* The resolution is to escape the macro.
18
public class MacroInChangelog extends AReplaceTextResolution {
21
* The string ID of the rpmlint warning.
23
public static final String ID = "macro-in-%changelog"; //$NON-NLS-1$
26
* @see org.eclipse.linuxtools.internal.rpm.rpmlint.resolutions.AReplaceTextResolution#getOriginalString()
29
public String getOriginalString() {
30
return "%"; //$NON-NLS-1$
34
* @see org.eclipse.linuxtools.internal.rpm.rpmlint.resolutions.AReplaceTextResolution#getReplaceString()
37
public String getReplaceString() {
38
return "%%"; //$NON-NLS-1$
42
* @see org.eclipse.ui.IMarkerResolution2#getDescription()
44
public String getDescription() {
45
return Messages.MacroInChangelog_0
46
+ Messages.MacroInChangelog_1;
50
* @see org.eclipse.ui.IMarkerResolution#getLabel()
52
public String getLabel() {