diff options
author | Alexander Kurtakov | 2009-03-28 12:49:59 +0000 |
---|---|---|
committer | Alexander Kurtakov | 2009-03-28 12:49:59 +0000 |
commit | 917f643ec2dbf5c1605c753763e27df2bedb0014 (patch) | |
tree | 0ee43a1d2792f1dbf5020656d072c67717b1a884 /rpm/org.eclipse.linuxtools.rpm.ui.editor/src/org/eclipse/linuxtools/rpm/ui/editor/parser/SpecfileSection.java | |
parent | 5f642cfa66c317af67a088ee409c94f292b15f78 (diff) | |
download | org.eclipse.linuxtools-917f643ec2dbf5c1605c753763e27df2bedb0014.tar.gz org.eclipse.linuxtools-917f643ec2dbf5c1605c753763e27df2bedb0014.tar.xz org.eclipse.linuxtools-917f643ec2dbf5c1605c753763e27df2bedb0014.zip |
2009-03-28 Alexander Kurtakov <akurtako@redhat.com>
* src/org/eclipse/linuxtools/rpm/ui/editor/compare/SpecStructureCreator.java (parseSpecfile): User correct section borders.
* src/org/eclipse/linuxtools/rpm/ui/editor/parser/SpecfileParser.java (parseSimpleDefinition): Format.
(complexSections): Likewise.
(complexDefinitions): Likewise.
(parseMacro): Set section boundaries.
(generateTaskMarker): Format.
(parseDefine): Likewise.
(parseComplexDefinition): Likewise.
(parsePatch): Likewise.
(errorHandler): Likewise.
(simpleDefinitions): Likewise.
(directValuesDefinitions): Likewise.
(parseSection): Set section boundaries.
(parseDirectDefinition): Format.
(parseLine): Likewise.
(simpleSections): Likewise.
(parse): Likewise.
* src/org/eclipse/linuxtools/rpm/ui/editor/parser/SpecfileSection.java (getPackageName): Format.
(SpecfileSection): Likewise.
(setSectionEndLine): Store end line.
(getSectionEndLine): Likewise.
Diffstat (limited to 'rpm/org.eclipse.linuxtools.rpm.ui.editor/src/org/eclipse/linuxtools/rpm/ui/editor/parser/SpecfileSection.java')
-rw-r--r-- | rpm/org.eclipse.linuxtools.rpm.ui.editor/src/org/eclipse/linuxtools/rpm/ui/editor/parser/SpecfileSection.java | 27 |
1 files changed, 21 insertions, 6 deletions
diff --git a/rpm/org.eclipse.linuxtools.rpm.ui.editor/src/org/eclipse/linuxtools/rpm/ui/editor/parser/SpecfileSection.java b/rpm/org.eclipse.linuxtools.rpm.ui.editor/src/org/eclipse/linuxtools/rpm/ui/editor/parser/SpecfileSection.java index e0ff244b21..46da2a35ff 100644 --- a/rpm/org.eclipse.linuxtools.rpm.ui.editor/src/org/eclipse/linuxtools/rpm/ui/editor/parser/SpecfileSection.java +++ b/rpm/org.eclipse.linuxtools.rpm.ui.editor/src/org/eclipse/linuxtools/rpm/ui/editor/parser/SpecfileSection.java @@ -16,8 +16,8 @@ import java.text.MessageFormat; public class SpecfileSection extends SpecfileElement { private SpecfilePackage parentPackage; + private int sectionEndLine; - public SpecfileSection(String name, Specfile specfile) { super(name); parentPackage = null; @@ -40,9 +40,24 @@ public class SpecfileSection extends SpecfileElement { return MessageFormat.format("{0} {1}", getName(), parentPackage); //$NON-NLS-1$ } } - - public String getPackageName(){ - return parentPackage.getPackageName(); - } - + + public String getPackageName() { + return parentPackage.getPackageName(); + } + + /** + * @param sectionEnd + * the sectionEnd to set + */ + public void setSectionEndLine(int sectionEnd) { + this.sectionEndLine = sectionEnd; + } + + /** + * @return the sectionEnd + */ + public int getSectionEndLine() { + return sectionEndLine; + } + } |