Editor ed = (Editor) Globals.curEditor();
Editor ed = Globals.curEditor();
    public void doIt() {        Editor ed = (Editor) Globals.curEditor();        if (ed == null)            return;        if (_mode == ZOOM_IN) {            zoomIn(ed);        } else if (_mode == ZOOM_OUT) {            zoomOut(ed);        } else if (_mode == ZOOM_RESET) {            ed.setScale(1.0);        }    }