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
-
Method Summary
Modifier and TypeMethodDescriptionvoid
Add a buffer into the given editPane.void
Add a buffer into the current editPane of the given view.int
countBufferSets
(Buffer buffer) Count the bufferSets in which the buffer is.static Buffer
Create an untitled buffergetScope()
void
handleEditPaneUpdate
(EditPaneUpdate message) void
void
moveBuffer
(EditPane editPane, int oldPosition, int newPosition) Moves a buffer from a old position to a new position in the BufferSet used in an EditPane.void
removeBuffer
(Buffer buffer) remove a buffer from all bufferSets.void
removeBuffer
(EditPane editPane, Buffer buffer) Remove a buffer from the EditPane's bufferSet.void
setScope
(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
-