boolean () { TreePath[] selectionPaths = getSelectionModel().getSelectionPaths(); if (!(selectionPaths == null || selectionPaths.length <= 1)) { return false; } PostfixTemplate selectedTemplate = getSelectedTemplate(); if (!isEditable(selectedTemplate)) { return false; } PostfixTemplateProvider provider = selectedTemplate.getProvider(); if (provider == null) { return false; } PostfixTemplateEditor editor = provider.createEditor(selectedTemplate); if (editor != null) { Disposer.dispose(editor); return true; } return false; }