Fixing RequestProcessor.getDefault hint.
authorJesse Glick <jglick@netbeans.org>
Wed, 08 Dec 2010 19:07:41 -0500
changeset 172640a5ebec019f7
parent 17263 15debdb422ad
child 17265 7a645861f6bd
child 17266 a812a86e0729
child 17270 bddc081c7279
Fixing RequestProcessor.getDefault hint.
Fix was wrong (missing dot after package name).
Category did not match those of other apisupport hints.
javahints/nbproject/project.properties
javahints/src/org/netbeans/modules/javahints/RPD.java
     1.1 --- a/javahints/nbproject/project.properties	Fri Dec 03 06:30:24 2010 -0500
     1.2 +++ b/javahints/nbproject/project.properties	Wed Dec 08 19:07:41 2010 -0500
     1.3 @@ -50,7 +50,7 @@
     1.4  auxiliary.org-netbeans-modules-editor-indent.text.x-java.CodeStyle.project.text-limit-width=80
     1.5  javac.compilerargs=-Xlint:unchecked
     1.6  javac.source=1.5
     1.7 -spec.version.base=2.39.0
     1.8 +spec.version.base=2.40.0
     1.9  
    1.10  nbm.needs.restart=true
    1.11  requires.nb.javac=true
     2.1 --- a/javahints/src/org/netbeans/modules/javahints/RPD.java	Fri Dec 03 06:30:24 2010 -0500
     2.2 +++ b/javahints/src/org/netbeans/modules/javahints/RPD.java	Wed Dec 08 19:07:41 2010 -0500
     2.3 @@ -63,7 +63,7 @@
     2.4   *
     2.5   * @author lahvac
     2.6   */
     2.7 -@Hint(category="netbeans")
     2.8 +@Hint(category="apisupport") // XXX move to apisupport.refactoring once the required packages are at least available to friends
     2.9  public class RPD {
    2.10  
    2.11      @TriggerPattern(value="org.openide.util.RequestProcessor.getDefault()")
    2.12 @@ -93,7 +93,7 @@
    2.13  
    2.14                  ClassTree ct = (ClassTree) topLevel.getLeaf();
    2.15                  fieldName = "DEFAULT_WORKER";
    2.16 -                Tree field = Utilities.parseAndAttribute(wc, "private static final org.openide.util.RequestProcessor " + fieldName + " = new org.openide.util.RequestProcessor(" + topLevel.getCompilationUnit().getPackageName().toString() + ct.getSimpleName() + ".class.getName(), 50, false, false);", s);
    2.17 +                Tree field = Utilities.parseAndAttribute(wc, "private static final org.openide.util.RequestProcessor " + fieldName + " = new org.openide.util.RequestProcessor(" + topLevel.getCompilationUnit().getPackageName() + "." + ct.getSimpleName() + ".class.getName(), 50, false, false);", s);
    2.18  
    2.19                  wc.rewrite(ct, GeneratorUtilities.get(wc).insertClassMember(ct, GeneratorUtilities.get(wc).importFQNs(field)));
    2.20                  fieldCache.put(wc, fieldName);