|
What this is
Other links
The source code/* * Sun Public License Notice * * The contents of this file are subject to the Sun Public License * Version 1.0 (the "License"). You may not use this file except in * compliance with the License. A copy of the License is available at * http://www.sun.com/ * * The Original Code is NetBeans. The Initial Developer of the Original * Code is Sun Microsystems, Inc. Portions Copyright 1997-2003 Sun * Microsystems, Inc. All Rights Reserved. */ package org.netbeans.modules.refactoring.ui; import org.netbeans.jmi.javamodel.AnnotationType; import org.netbeans.jmi.javamodel.Attribute; import org.netbeans.jmi.javamodel.Constructor; import org.netbeans.jmi.javamodel.EnumConstant; import org.netbeans.jmi.javamodel.Field; import org.netbeans.jmi.javamodel.Initializer; import org.netbeans.jmi.javamodel.JavaClass; import org.netbeans.jmi.javamodel.JavaEnum; import org.netbeans.jmi.javamodel.Method; import org.netbeans.modules.java.ui.nodes.FilterSourceNodeFactory; import org.openide.nodes.Node; /** Filter factory that adds Refactoring action to java element nodes. * * @author Martin Matula */ public class RefactoringFilterFactory extends FilterSourceNodeFactory { /** Creates a new instance of RefactoringFilterFactory */ public RefactoringFilterFactory() { } public Node createInitializerNode(Initializer element) { return new RefactoringFilterNode(super.createInitializerNode(element)); } public Node createFieldNode(Field element) { return new RefactoringFilterNode(super.createFieldNode(element)); } public Node createConstructorNode(Constructor element) { return new RefactoringFilterNode(super.createConstructorNode(element)); } public Node createClassNode(JavaClass element) { return new RefactoringFilterNode(super.createClassNode(element)); } public Node createMethodNode(Method element) { return new RefactoringFilterNode(super.createMethodNode(element)); } public Node createEnumNode(JavaEnum element) { return new RefactoringFilterNode(super.createEnumNode(element)); } public Node createEnumConstantNode(EnumConstant element) { return new RefactoringFilterNode(super.createEnumConstantNode(element)); } public Node createAnnotationTypeNode(AnnotationType element) { return new RefactoringFilterNode(super.createAnnotationTypeNode(element)); } public Node createAnnotationTypeMethodNode(Attribute element) { return new RefactoringFilterNode(super.createAnnotationTypeMethodNode(element)); } public Node createWaitNode() { return new RefactoringFilterNode(super.createWaitNode()); } public Node createErrorNode() { return new RefactoringFilterNode(super.createErrorNode()); } } |
... this post is sponsored by my books ... | |
#1 New Release! |
FP Best Seller |
Copyright 1998-2021 Alvin Alexander, alvinalexander.com
All Rights Reserved.
A percentage of advertising revenue from
pages under the /java/jwarehouse
URI on this website is
paid back to open source projects.