java.lang.Object
org.gjt.sp.jedit.bufferset.BufferSetManager
The buffersets manager. A singleton instance of this
can be obtained from jEdit.getBufferSetManager()
- Since:
- jEdit 4.3pre15
- Version:
- $Id: jEdit.java 25120 2020-04-03 14:58:39Z kpouer $
- Author:
- Matthieu Casanova
-
Constructor Summary
Constructors -
Method Summary
Modifier and TypeMethodDescriptionvoidAdd a buffer into the given editPane.voidAdd a buffer into the current editPane of the given view.intcountBufferSets(Buffer buffer) Count the bufferSets in which the buffer is.static BufferCreate an untitled buffergetScope()voidhandleEditPaneUpdate(EditPaneUpdate message) voidvoidmoveBuffer(EditPane editPane, int oldPosition, int newPosition) Moves a buffer from a old position to a new position in the BufferSet used in an EditPane.voidremoveBuffer(Buffer buffer) remove a buffer from all bufferSets.voidremoveBuffer(EditPane editPane, Buffer buffer) Remove a buffer from the EditPane's bufferSet.voidsetScope(BufferSet.Scope scope)
-
Constructor Details
-
BufferSetManager
public BufferSetManager()
-
-
Method Details
-
handleEditPaneUpdate
-
handlePropertiesChanged
-
countBufferSets
Count the bufferSets in which the buffer is.- Parameters:
buffer- the buffer- Returns:
- the number of buffersets in which buffer is
- See Also:
-
setScope
-
getScope
-
addBuffer
Add a buffer into the current editPane of the given view. If the view is null, it will be added to the current editPane of the active view.- Parameters:
view- a view (or null)buffer- the buffer to add
-
addBuffer
Add a buffer into the given editPane. If the editPane is null, it will be added to the current editPane of the active view.- Parameters:
editPane- an EditPane (or null)buffer- the buffer to add
-
moveBuffer
Moves a buffer from a old position to a new position in the BufferSet used in an EditPane. -
removeBuffer
Remove a buffer from the EditPane's bufferSet.- Parameters:
editPane- the editPane It cannot be nullbuffer- the buffer
-
removeBuffer
remove a buffer from all bufferSets.- Parameters:
buffer- the buffer that must be removed
-
createUntitledBuffer
Create an untitled buffer- Returns:
- the new untitled buffer
-
getOwners
- Returns:
- set of BufferSets that contain buffer
- Since:
- 4.4pre1
-