|
org.netbeans.modules.editor.guards/0 0.1 | |||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | |||||||||
java.lang.Objectorg.netbeans.api.editor.guards.GuardedSectionManager
public final class GuardedSectionManager
This is the entry point for clients to manipulate guarded sections of the given document.
| Method Summary | |
|---|---|
InteriorSection |
createInteriorSection(Position pos,
String name)
Creates an empty interior section at the given position. |
SimpleSection |
createSimpleSection(Position pos,
String name)
Creates an empty simple section at the given position. |
InteriorSection |
findInteriorSection(String name)
Tries to find the interior section of the given name. |
SimpleSection |
findSimpleSection(String name)
Tries to find the simple section of the given name. |
Iterable<GuardedSection> |
getGuardedSections()
Gets all sections. |
static GuardedSectionManager |
getInstance(StyledDocument doc)
Gets the manager instance. |
| Methods inherited from class java.lang.Object |
|---|
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
| Method Detail |
|---|
public static GuardedSectionManager getInstance(StyledDocument doc)
doc - a document containing guarded sections
null.public SimpleSection findSimpleSection(String name)
name - the name of the requested section
null if there is no section
of the given namepublic InteriorSection findInteriorSection(String name)
name - the name of the looked-for section
null if there is no section
of the given namepublic SimpleSection createSimpleSection(Position pos, String name) throws IllegalArgumentException, BadLocationException
IllegalArgumentException - if either the name has been already used, or
the position is inside another section or Java Element.
BadLocationException - if pos is outside of document's scope, or
the document does not permit creating the guarded section.public InteriorSection createInteriorSection(Position pos, String name) throws IllegalArgumentException, BadLocationException
IllegalArgumentException - if either the name has been already used, or
the position is inside another section or Java Element.
BadLocationException - if pos is outside of document's scope, or
the document does not permit creating the guarded section.public Iterable<GuardedSection> getGuardedSections()
GuardedSections
|
org.netbeans.modules.editor.guards/0 0.1 | |||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | |||||||||