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 201353
Collapse All | Expand All

(-)a/java.preprocessorbridge/apichanges.xml (+132 lines)
Line 0 Link Here
1
<?xml version="1.0" encoding="UTF-8"?>
2
<!--
3
DO NOT ALTER OR REMOVE COPYRIGHT NOTICES OR THIS HEADER.
4
5
Copyright 1997-2010 Oracle and/or its affiliates. All rights reserved.
6
7
Oracle and Java are registered trademarks of Oracle and/or its affiliates.
8
Other names may be trademarks of their respective owners.
9
10
11
The contents of this file are subject to the terms of either the GNU
12
General Public License Version 2 only ("GPL") or the Common
13
Development and Distribution License("CDDL") (collectively, the
14
"License"). You may not use this file except in compliance with the
15
License. You can obtain a copy of the License at
16
http://www.netbeans.org/cddl-gplv2.html
17
or nbbuild/licenses/CDDL-GPL-2-CP. See the License for the
18
specific language governing permissions and limitations under the
19
License.  When distributing the software, include this License Header
20
Notice in each file and include the License file at
21
nbbuild/licenses/CDDL-GPL-2-CP.  Oracle designates this
22
particular file as subject to the "Classpath" exception as provided
23
by Oracle in the GPL Version 2 section of the License file that
24
accompanied this code. If applicable, add the following below the
25
License Header, with the fields enclosed by brackets [] replaced by
26
your own identifying information:
27
"Portions Copyrighted [year] [name of copyright owner]"
28
29
Contributor(s):
30
31
The Original Software is NetBeans. The Initial Developer of the Original
32
Software is Sun Microsystems, Inc. Portions Copyright 1997-2006 Sun
33
Microsystems, Inc. All Rights Reserved.
34
35
If you wish your version of this file to be governed by only the CDDL
36
or only the GPL Version 2, indicate your decision by adding
37
"[Contributor] elects to include this software in this distribution
38
under the [CDDL or GPL Version 2] license." If you do not indicate a
39
single choice of license, a recipient has the option to distribute
40
your version of this file under either the CDDL, the GPL Version 2 or
41
to extend the choice of license to its licensees as provided above.
42
However, if you add GPL Version 2 code and therefore, elected the GPL
43
Version 2 license, then the option applies only if the new code is
44
made subject to such option by the copyright holder.
45
-->
46
47
<?xml-stylesheet href="../nbbuild/javadoctools/apichanges.xsl" type="text/xsl"?>
48
<!DOCTYPE apichanges PUBLIC "-//NetBeans//DTD API changes list 1.0//EN" "../nbbuild/javadoctools/apichanges.dtd">
49
50
<!-- INFO FOR PEOPLE ADDING CHANGES:
51
[most of contents snipped - see openide's apichanges for how-to instructions]
52
<change>
53
    <api name="compiler"/>
54
    <summary>Some brief description here, can use <b>XHTML</b></summary>
55
    <version major="1" minor="99"/>
56
    <date day="13" month="6" year="2001"/>
57
    <author login="jrhacker"/>
58
    <compatibility addition="yes"/>
59
    <description>
60
        The main description of the change here.
61
        Again can use full <b>XHTML</b> as needed.
62
    </description>
63
    <class package="org.openide.compiler" name="DoWhatIWantCompiler"/>
64
    <issue number="14309"/>
65
</change>
66
-->
67
68
<apichanges>
69
70
<!-- First, a list of API names you may use: -->
71
<apidefs>
72
        <apidef name="general">Java Source Firend API</apidef>
73
</apidefs>
74
75
<!-- ACTUAL CHANGES BEGIN HERE: -->
76
77
<changes>
78
        <change id="JavaIndexerPlugin">
79
            <api name="general"/>
80
            <summary>Added a possibility to plug into Java source indexing</summary>
81
            <version major="1" minor="20"/>
82
            <date day="29" month="8" year="2011"/>
83
            <author login="tzezula"/>
84
            <compatibility addition="yes" modification="no" semantic="compatible" source="compatible" binary="compatible"/>
85
            <description>
86
                <p>
87
                    Added a possibility to plug into Java source indexing. The indexer plugin is called
88
                    on fully attributed compilation unit tree processed by <code>JavaCustomIndexer</code>.
89
                    Because the parsing and attribution of Java source was already done by JavaCustomIndexer
90
                    the plugin does not introduce any performance impact.
91
                </p>
92
            </description>
93
            <class package="org.netbeans.modules.java.preprocessorbridge.spi" name="JavaIndexerPlugin"/>
94
        </change>
95
</changes>
96
97
  <!-- Now the surrounding HTML text and document structure: -->
98
99
  <htmlcontents>
100
<!--
101
102
                            NO NO NO NO NO!
103
104
         ==============>    DO NOT EDIT ME!  <======================
105
106
          AUTOMATICALLY GENERATED FROM APICHANGES.XML, DO NOT EDIT
107
108
                SEE xml/api/doc/changes/apichanges.xml
109
110
-->
111
    <head>
112
      <title>Java Source Friend API changes by date</title>
113
      <link rel="stylesheet" href="prose.css" type="text/css"/>
114
    </head>
115
    <body>
116
117
<p class="overviewlink"><a href="overview-summary.html">Overview</a></p>
118
119
<h1>Introduction</h1>
120
121
<p>This document lists changes made to the Java Source Friend APIs. Please ask on the
122
<code>dev@java.netbeans.org</code> or <code>nbdev@netbeans.org</code>
123
mailing list if you have any questions about the details of a
124
change, or are wondering how to convert existing code to be compatible.</p>
125
126
      <hr/><standard-changelists module-code-name="org.netbeans.modules.java.preprocessorbridge"/>
127
128
      <hr/><p>@FOOTER@</p>
129
130
    </body>
131
  </htmlcontents>
132
</apichanges>
(-)a/java.preprocessorbridge/nbproject/project.properties (-1 / +3 lines)
Lines 1-4 Link Here
1
is.autoload=true
1
is.autoload=true
2
javac.compilerargs=-Xlint:unchecked
2
javac.compilerargs=-Xlint:unchecked
3
javac.source=1.6
3
javac.source=1.6
4
spec.version.base=1.19.0
4
spec.version.base=1.20.0
5
javadoc.apichanges=${basedir}/apichanges.xml
6
(-)a/java.preprocessorbridge/nbproject/project.xml (+9 lines)
Lines 6-11 Link Here
6
            <code-name-base>org.netbeans.modules.java.preprocessorbridge</code-name-base>
6
            <code-name-base>org.netbeans.modules.java.preprocessorbridge</code-name-base>
7
            <module-dependencies>
7
            <module-dependencies>
8
                <dependency>
8
                <dependency>
9
                    <code-name-base>org.netbeans.api.annotations.common</code-name-base>
10
                    <build-prerequisite/>
11
                    <compile-dependency/>
12
                    <run-dependency>
13
                        <release-version>1</release-version>
14
                        <specification-version>1.10</specification-version>
15
                    </run-dependency>
16
                </dependency>
17
                <dependency>
9
                    <code-name-base>org.netbeans.libs.javacapi</code-name-base>
18
                    <code-name-base>org.netbeans.libs.javacapi</code-name-base>
10
                    <build-prerequisite/>
19
                    <build-prerequisite/>
11
                    <compile-dependency/>
20
                    <compile-dependency/>
(-)a/java.preprocessorbridge/src/org/netbeans/modules/java/preprocessorbridge/spi/JavaIndexerPlugin.java (+78 lines)
Line 0 Link Here
1
/*
2
 * DO NOT ALTER OR REMOVE COPYRIGHT NOTICES OR THIS HEADER.
3
 *
4
 * Copyright 2011 Oracle and/or its affiliates. All rights reserved.
5
 *
6
 * Oracle and Java are registered trademarks of Oracle and/or its affiliates.
7
 * Other names may be trademarks of their respective owners.
8
 *
9
 * The contents of this file are subject to the terms of either the GNU
10
 * General Public License Version 2 only ("GPL") or the Common
11
 * Development and Distribution License("CDDL") (collectively, the
12
 * "License"). You may not use this file except in compliance with the
13
 * License. You can obtain a copy of the License at
14
 * http://www.netbeans.org/cddl-gplv2.html
15
 * or nbbuild/licenses/CDDL-GPL-2-CP. See the License for the
16
 * specific language governing permissions and limitations under the
17
 * License.  When distributing the software, include this License Header
18
 * Notice in each file and include the License file at
19
 * nbbuild/licenses/CDDL-GPL-2-CP.  Oracle designates this
20
 * particular file as subject to the "Classpath" exception as provided
21
 * by Oracle in the GPL Version 2 section of the License file that
22
 * accompanied this code. If applicable, add the following below the
23
 * License Header, with the fields enclosed by brackets [] replaced by
24
 * your own identifying information:
25
 * "Portions Copyrighted [year] [name of copyright owner]"
26
 *
27
 * If you wish your version of this file to be governed by only the CDDL
28
 * or only the GPL Version 2, indicate your decision by adding
29
 * "[Contributor] elects to include this software in this distribution
30
 * under the [CDDL or GPL Version 2] license." If you do not indicate a
31
 * single choice of license, a recipient has the option to distribute
32
 * your version of this file under either the CDDL, the GPL Version 2 or
33
 * to extend the choice of license to its licensees as provided above.
34
 * However, if you add GPL Version 2 code and therefore, elected the GPL
35
 * Version 2 license, then the option applies only if the new code is
36
 * made subject to such option by the copyright holder.
37
 *
38
 * Contributor(s):
39
 *
40
 * Portions Copyrighted 2011 Sun Microsystems, Inc.
41
 */
42
package org.netbeans.modules.java.preprocessorbridge.spi;
43
44
import com.sun.source.tree.CompilationUnitTree;
45
import org.netbeans.api.annotations.common.CheckForNull;
46
import org.netbeans.api.annotations.common.NonNull;
47
import org.openide.filesystems.FileObject;
48
import org.openide.util.Lookup;
49
50
/**
51
 *
52
 * JavaCustomIndexer plugin called during scan on fully attributed trees.
53
 * @since 1.20
54
 * @author Tomas Zezula
55
 */
56
public interface JavaIndexerPlugin {
57
    /**
58
     * Process given attributed compilation unit.
59
     * @param toProcess the compilation unit to process
60
     * @param services a {@link Lookup} containing javac services (Elements, Types, Trees)
61
     */
62
    public void process (@NonNull CompilationUnitTree toProcess, @NonNull Lookup services);
63
64
    /**
65
     * Factory to create JavaIndexerPlugin.
66
     * The factory instance should be registered in mime lookup.
67
     */
68
    public interface Factory {
69
        /**
70
         * Creates a new instance of {@link JavaIndexerPlugin}.
71
         * @param root the source root for which the plugin is created
72
         * @return the new instance of {@link JavaIndexerPlugin} or null
73
         * if the factory does not handle given source root
74
         */
75
        @CheckForNull
76
        JavaIndexerPlugin create(@NonNull FileObject root);
77
    }
78
}

Return to bug 201353