use of doc.mathobjects.MathObject in project OpenNotebook by jaltekruse.
the class NotebookPanel method ungroup.
public void ungroup() {
MathObject mObj = getCurrentDocViewer().getFocusedObject();
if (mObj != null) {
if (mObj instanceof Grouping) {
if (mObj == getCurrentDocViewer().getTempGroup()) {
getCurrentDocViewer().ungroupTempGroup();
} else {
((Grouping) mObj).unGroup();
mObj.getParentContainer().removeObject(mObj);
}
getCurrentDocViewer().setFocusedObject(null);
getCurrentDocViewer().addUndoState();
getCurrentDocViewer().repaint();
}
}
}
Aggregations