class RemoveAction extends AbstractAction {

        public RemoveAction() {
            super(NbBundle.getMessage(SavedQueryNode.class, "SavedQueryNode.actions.remove"));
        }

        @Override
        public void actionPerformed(ActionEvent e) {<FILL_FUNCTION_BODY>}
    }

            FilterController filterController = Lookup.getDefault().lookup(FilterController.class);
            FilterLibrary filterLibrary = filterController.getModel().getLibrary();
            filterLibrary.deleteQuery(query);
        
<no_super_class>