This Bugzilla instance is a read-only archive of historic NetBeans bug reports. To report a bug in NetBeans please follow the project's instructions for reporting issues.

View | Details | Raw Unified | Return to bug 190606
Collapse All | Expand All

(-)a/editor.completion/apichanges.xml (+16 lines)
Lines 108-113 Link Here
108
    <!-- ACTUAL CHANGES BEGIN HERE: -->
108
    <!-- ACTUAL CHANGES BEGIN HERE: -->
109
109
110
    <changes>
110
    <changes>
111
        <change id="CompletionProvider.Registration">
112
            <api name="completion"/>
113
            <summary>Addition of CompletionProvider.Registration annotation</summary>
114
            <version major="1" minor="23"/>
115
            <date day="29" month="9" year="2010"/>
116
            <author login="jlahoda"/>
117
            <compatibility addition="yes"/>
118
            <description>
119
            <p>
120
                Adding <code>CompletionProvider.Registration</code> annotation for registration
121
                of CompletionProviders to mimelookup.
122
            </p>
123
            </description>
124
            <issue number="999999"/>
125
        </change>
126
111
        <change id="CompletionResultSet.setHasAdditionalItemsText">
127
        <change id="CompletionResultSet.setHasAdditionalItemsText">
112
            <api name="completion"/>
128
            <api name="completion"/>
113
            <summary>Addition of CompletionResultSet.setHasAdditionalItemsText()</summary>
129
            <summary>Addition of CompletionResultSet.setHasAdditionalItemsText()</summary>
(-)a/editor.completion/nbproject/project.properties (-1 / +1 lines)
Lines 44-47 Link Here
44
javac.source=1.6
44
javac.source=1.6
45
javadoc.arch=${basedir}/arch.xml
45
javadoc.arch=${basedir}/arch.xml
46
javadoc.apichanges=${basedir}/apichanges.xml
46
javadoc.apichanges=${basedir}/apichanges.xml
47
spec.version.base=1.22.0
47
spec.version.base=1.23.0
(-)a/editor.completion/src/org/netbeans/spi/editor/completion/CompletionProvider.java (+27 lines)
Lines 44-50 Link Here
44
44
45
package org.netbeans.spi.editor.completion;
45
package org.netbeans.spi.editor.completion;
46
46
47
import java.lang.annotation.ElementType;
48
import java.lang.annotation.Retention;
49
import java.lang.annotation.RetentionPolicy;
50
import java.lang.annotation.Target;
47
import javax.swing.text.JTextComponent;
51
import javax.swing.text.JTextComponent;
52
import org.netbeans.spi.editor.mimelookup.MimeLookupRegistrationMetaAnnotation;
48
53
49
/**
54
/**
50
 * The basic interface for providing code completion items. You should implement this interface
55
 * The basic interface for providing code completion items. You should implement this interface
Lines 130-133 Link Here
130
     */
135
     */
131
    public int getAutoQueryTypes(JTextComponent component, String typedText);
136
    public int getAutoQueryTypes(JTextComponent component, String typedText);
132
137
138
    /**
139
     * Registration annotation for {@link CompletionProvider}s.
140
     * @since 1.23
141
     */
142
    @Retention(RetentionPolicy.SOURCE)
143
    @Target({ElementType.TYPE, ElementType.METHOD})
144
    @MimeLookupRegistrationMetaAnnotation(targetPackage="org.netbeans.modules.editor.completion", subfolderName="CompletionProviders", clazz=CompletionProvider.class)
145
    public static @interface Registration {
146
        /**
147
         * Mime type to which should be the given provider registered.
148
         */
149
        public String   mimeType();
150
        /**
151
         * Position of the provider in the list of providers.
152
         */
153
        public int      position() default Integer.MAX_VALUE;
154
        /**
155
         * Superseded providers.
156
         */
157
        public String[] supersedes() default {};
158
    }
159
    
133
}
160
}
(-)a/editor.lib2/apichanges.xml (+13 lines)
Lines 107-112 Link Here
107
    <!-- ACTUAL CHANGES BEGIN HERE: -->
107
    <!-- ACTUAL CHANGES BEGIN HERE: -->
108
108
109
    <changes>
109
    <changes>
110
        <change id="HighlightsLayerFactory.Registration">
111
            <summary>HighlightsLayerFactory.Registration annotation added</summary>
112
            <version major="1" minor="33"/>
113
            <date day="29" month="9" year="2010"/>
114
            <author login="jlahoda"/>
115
            <compatibility binary="compatible" source="compatible" semantic="compatible" addition="yes"/>
116
            <description>
117
                Added <code>HighlightsLayerFactory.Registration</code> annotation
118
                for registration of HighlightsLayerFactories.
119
            </description>
120
            <issue number="999999"/>
121
        </change>
122
        
110
        <change id="typinghooks-spi-added">
123
        <change id="typinghooks-spi-added">
111
            <summary>Typing Hooks SPI added</summary>
124
            <summary>Typing Hooks SPI added</summary>
112
            <version major="1" minor="31"/>
125
            <version major="1" minor="31"/>
(-)a/editor.lib2/nbproject/project.properties (-1 / +1 lines)
Lines 43-49 Link Here
43
is.autoload=true
43
is.autoload=true
44
javac.source=1.6
44
javac.source=1.6
45
javac.compilerargs=-Xlint:unchecked
45
javac.compilerargs=-Xlint:unchecked
46
spec.version.base=1.32.0
46
spec.version.base=1.33.0
47
47
48
javadoc.arch=${basedir}/arch.xml
48
javadoc.arch=${basedir}/arch.xml
49
javadoc.apichanges=${basedir}/apichanges.xml
49
javadoc.apichanges=${basedir}/apichanges.xml
(-)a/editor.lib2/src/org/netbeans/spi/editor/highlighting/HighlightsLayerFactory.java (+27 lines)
Lines 44-51 Link Here
44
44
45
package org.netbeans.spi.editor.highlighting;
45
package org.netbeans.spi.editor.highlighting;
46
46
47
import java.lang.annotation.ElementType;
48
import java.lang.annotation.Retention;
49
import java.lang.annotation.RetentionPolicy;
50
import java.lang.annotation.Target;
47
import javax.swing.text.Document;
51
import javax.swing.text.Document;
48
import javax.swing.text.JTextComponent;
52
import javax.swing.text.JTextComponent;
53
import org.netbeans.spi.editor.mimelookup.MimeLookupRegistrationMetaAnnotation;
49
54
50
/**
55
/**
51
 * Factory for producing <code>HighlightsLayer</code>s. Modules can implement
56
 * Factory for producing <code>HighlightsLayer</code>s. Modules can implement
Lines 112-115 Link Here
112
     */
117
     */
113
    HighlightsLayer[] createLayers(Context context);
118
    HighlightsLayer[] createLayers(Context context);
114
119
120
    /**
121
     * Registration annotation for {@link HighlightsLayerFactory}.
122
     * @since 1.33
123
     */
124
    @Retention(RetentionPolicy.SOURCE)
125
    @Target({ElementType.TYPE, ElementType.METHOD})
126
    @MimeLookupRegistrationMetaAnnotation(targetPackage="org.netbeans.modules.editor.lib2.highlighting")
127
    public static @interface Registration {
128
        /**
129
         * Mime type to which should be the given provider registered.
130
         */
131
        public String   mimeType();
132
        /**
133
         * Position of the provider in the list of providers.
134
         */
135
        public int      position() default Integer.MAX_VALUE;
136
        /**
137
         * Superseded providers.
138
         */
139
        public String[] supersedes() default {};
140
    }
141
    
115
}
142
}

Return to bug 190606