fix for #34385 BLD200312221900
authorlebedkov@netbeans.org
Mon, 22 Dec 2003 18:10:46 +0000
changeset 38706615f92be274
parent 3869 0e6093634005
child 3871 abd2b8acd306
fix for #34385
suggestions_framework/src/org/netbeans/modules/tasklist/suggestions/SuggestionImpl.java
suggestions_framework/src/org/netbeans/modules/tasklist/suggestions/suggestion-registry-1_0.dtd
     1.1 --- a/suggestions_framework/src/org/netbeans/modules/tasklist/suggestions/SuggestionImpl.java	Mon Dec 22 18:08:20 2003 +0000
     1.2 +++ b/suggestions_framework/src/org/netbeans/modules/tasklist/suggestions/SuggestionImpl.java	Mon Dec 22 18:10:46 2003 +0000
     1.3 @@ -17,6 +17,7 @@
     1.4  import org.openide.util.Utilities;
     1.5  import org.netbeans.modules.tasklist.core.Task;
     1.6  import org.netbeans.modules.tasklist.client.SuggestionPerformer;
     1.7 +import org.netbeans.modules.tasklist.client.SuggestionPriority;
     1.8  import org.openide.loaders.DataObject;
     1.9  import org.openide.nodes.Node;
    1.10  import org.openide.text.Line;
    1.11 @@ -200,6 +201,19 @@
    1.12           return seed;
    1.13      }
    1.14  
    1.15 +    /**
    1.16 +     * Get the priority of the task.
    1.17 +     * This method could also return null if it is a category item.
    1.18 +     *
    1.19 +     * @return The priority of the task or null
    1.20 +     */
    1.21 +    public SuggestionPriority getPriority() {
    1.22 +        if (seed == SuggestionList.CATEGORY_NODE_SEED)
    1.23 +            return null;
    1.24 +        else
    1.25 +            return super.getPriority();
    1.26 +    }
    1.27 +    
    1.28  /*
    1.29      public boolean isHighlighted() {
    1.30          return highlighted;
     2.1 --- a/suggestions_framework/src/org/netbeans/modules/tasklist/suggestions/suggestion-registry-1_0.dtd	Mon Dec 22 18:08:20 2003 +0000
     2.2 +++ b/suggestions_framework/src/org/netbeans/modules/tasklist/suggestions/suggestion-registry-1_0.dtd	Mon Dec 22 18:10:46 2003 +0000
     2.3 @@ -1,3 +1,16 @@
     2.4 +<!--
     2.5 +                Sun Public License Notice
     2.6 +
     2.7 +The contents of this file are subject to the Sun Public License
     2.8 +Version 1.0 (the "License"). You may not use this file except in
     2.9 +compliance with the License. A copy of the License is available at
    2.10 +http://www.sun.com/
    2.11 +
    2.12 +The Original Code is NetBeans. The Initial Developer of the Original
    2.13 +Code is Sun Microsystems, Inc. Portions Copyright 1997-2003 Sun
    2.14 +Microsystems, Inc. All Rights Reserved.
    2.15 +-->
    2.16 +
    2.17  <!--
    2.18  -//NetBeans//DTD suggestion registry 1.0//EN
    2.19  http://www.netbeans.org/dtds/suggestion-registry-1_0.dtd