int index = presentation.getToolBar().getSelectedIndex(); if (index == -1) return;
    public void removeAllPlaneAreas()    {        abstraction.removeAllPlaneAreas();        drawingCanvas.clearPreviousView();        drawingCanvas.repaint();        ToolBarMng tbm = presentation.getToolBar().getManager();        tbm.removeCurrentPlane(getCurrentZ(), getCurrentT());        ScreenROI roi = getScreenROI();        drawingCanvas.getManager().setDefault(roi.getIndex(),                 roi.getAreaColor(), ROIAgtUIF.CONSTRUCTING);        setROIThumbnail();    }