KickJava   Java API By Example, From Geeks To Geeks.

Java > Open Source Codes > org > netbeans > modules > websvc > wsitconf > refactoring > WSITRefactoringFactory


1 /*
2  * The contents of this file are subject to the terms of the Common Development
3  * and Distribution License (the License). You may not use this file except in
4  * compliance with the License.
5  *
6  * You can obtain a copy of the License at http://www.netbeans.org/cddl.html
7  * or http://www.netbeans.org/cddl.txt.
8  *
9  * When distributing Covered Code, include this CDDL Header Notice in each file
10  * and include the License file at http://www.netbeans.org/cddl.txt.
11  * If applicable, add the following below the CDDL Header, with the fields
12  * enclosed by brackets [] replaced by your own identifying information:
13  * "Portions Copyrighted [year] [name of copyright owner]"
14  *
15  * The Original Software is NetBeans. The Initial Developer of the Original
16  * Software is Sun Microsystems, Inc. Portions Copyright 1997-2006 Sun
17  * Microsystems, Inc. All Rights Reserved.
18  */

19
20 package org.netbeans.modules.websvc.wsitconf.refactoring;
21
22 //import org.netbeans.modules.refactoring.api.AbstractRefactoring;
23
//import org.netbeans.modules.refactoring.api.ChangeParametersRefactoring;
24
//import org.netbeans.modules.refactoring.api.MoveClassRefactoring;
25
//import org.netbeans.modules.refactoring.api.RenameRefactoring;
26
//import org.netbeans.modules.refactoring.api.WhereUsedQuery;
27
//import org.netbeans.modules.refactoring.api.SafeDeleteRefactoring;
28
//import org.netbeans.modules.refactoring.spi.RefactoringPlugin;
29
//import org.netbeans.modules.refactoring.spi.RefactoringPluginFactory;
30
import org.netbeans.modules.websvc.wsitconf.refactoring.WSITRenameRefactoringPlugin;
31 import org.openide.ErrorManager;
32
33 /**
34  *
35  * @author Martin Grebac
36  */

37 public class WSITRefactoringFactory /*implements RefactoringPluginFactory*/ {
38     
39     private static ErrorManager err = ErrorManager.getDefault().getInstance("org.netbeans.modules.websvc.wsitconf.refactoring"); // NOI18N
40

41     /**
42      * Creates a new instance of WSITRefactoringFactory
43      */

44     public WSITRefactoringFactory() { }
45
46     /** Creates and returns a new instance of the refactoring plugin or returns
47      * null if the plugin is not suitable for the passed refactoring.
48      * @param refactoring Refactoring, the plugin should operate on.
49      * @return Instance of RefactoringPlugin or null if the plugin is not applicable to
50      * the passed refactoring.
51      */

52 // public RefactoringPlugin createInstance(AbstractRefactoring refactoring) {
53
//
54
// err.log("Create instance called: " + refactoring);
55
//
56
// if (refactoring instanceof RenameRefactoring) {
57
// err.log("Rename refactoring");
58
// return new WSITRenameRefactoringPlugin(refactoring);
59
// }
60
//
61
// if (refactoring instanceof SafeDeleteRefactoring) {
62
// err.log("Safe delete refactoring");
63
// return new WSITSafeDeleteRefactoringPlugin(refactoring);
64
// }
65
//
66
// if (refactoring instanceof WhereUsedQuery) {
67
// err.log("Where used refactoring");
68
// return new WSITWhereUsedRefactoringPlugin(refactoring);
69
// }
70
//
71
// if (refactoring instanceof MoveClassRefactoring) {
72
// err.log("Move class refactoring (also rename package is move class refactoring)");
73
// return new WSITMoveClassRefactoringPlugin(refactoring);
74
// }
75
//
76
// return null;
77
// }
78

79 }
80
Popular Tags