Please use the Apache issue tracking system for new NetBeans issues (https://issues.apache.org/jira/projects/NETBEANS0/issues) !!
View | Details | Raw Unified | Return to bug 212656 | Differences between
and this patch

Collapse All | Expand All

(-)a/apisupport.ant/nbproject/project.xml (+3 lines)
 Lines 383-389    Link Here 
383
                </test-type>
383
                </test-type>
384
            </test-dependencies>
384
            </test-dependencies>
385
            <friend-packages>
385
            <friend-packages>
386
                <friend>org.netbeans.modules.java.hints</friend>
386
                <friend>org.netbeans.modules.vmd.componentssupport</friend>
387
                <friend>org.netbeans.modules.vmd.componentssupport</friend>
388
                <package>org.netbeans.modules.apisupport.project</package>
389
                <package>org.netbeans.modules.apisupport.project.ui.customizer</package>
387
                <package>org.netbeans.modules.apisupport.project.ui.wizard.spi</package>
390
                <package>org.netbeans.modules.apisupport.project.ui.wizard.spi</package>
388
            </friend-packages>
391
            </friend-packages>
389
            <extra-compilation-unit>
392
            <extra-compilation-unit>
(-)a/apisupport.ant/src/org/netbeans/modules/apisupport/project/ui/customizer/AddModulePanel.java (-2 / +26 lines)
 Lines 40-45    Link Here 
40
 * However, if you add GPL Version 2 code and therefore, elected the GPL
40
 * However, if you add GPL Version 2 code and therefore, elected the GPL
41
 * Version 2 license, then the option applies only if the new code is
41
 * Version 2 license, then the option applies only if the new code is
42
 * made subject to such option by the copyright holder.
42
 * made subject to such option by the copyright holder.
43
 *
44
 * Portions Copyrighted 2012 markiewb@netbeans.org
43
 */
45
 */
44
46
45
package org.netbeans.modules.apisupport.project.ui.customizer;
47
package org.netbeans.modules.apisupport.project.ui.customizer;
 Lines 101-107    Link Here 
101
    private final SingleModuleProperties props;
103
    private final SingleModuleProperties props;
102
    
104
    
103
    public static ModuleDependency[] selectDependencies(final SingleModuleProperties props) {
105
    public static ModuleDependency[] selectDependencies(final SingleModuleProperties props) {
104
        final AddModulePanel addPanel = new AddModulePanel(props);
106
        // keep backwards compatibility
107
        return selectDependencies(props, null);
108
    }
109
    /**
110
     * 
111
     * @param props
112
     * @param initialFilterText initial filter text or null if not given
113
     * @return 
114
     */
115
    public static ModuleDependency[] selectDependencies(final SingleModuleProperties props, final String initialFilterText) {
116
        final AddModulePanel addPanel;
117
        if (null != initialFilterText) {
118
            // init dialog with filter text
119
            addPanel = new AddModulePanel(props, initialFilterText);
120
        }
121
        else{
122
            // keep backwards compatibility
123
            addPanel = new AddModulePanel(props);
124
        }
105
        final DialogDescriptor descriptor = new DialogDescriptor(addPanel,
125
        final DialogDescriptor descriptor = new DialogDescriptor(addPanel,
106
                getMessage("CTL_AddModuleDependencyTitle"));
126
                getMessage("CTL_AddModuleDependencyTitle"));
107
        descriptor.setHelpCtx(new HelpCtx("org.netbeans.modules.apisupport.project.ui.customizer.AddModulePanel"));
127
        descriptor.setHelpCtx(new HelpCtx("org.netbeans.modules.apisupport.project.ui.customizer.AddModulePanel"));
 Lines 130-139    Link Here 
130
    }
150
    }
131
    
151
    
132
    public AddModulePanel(final SingleModuleProperties props) {
152
    public AddModulePanel(final SingleModuleProperties props) {
153
        this(props, FILTER_DESCRIPTION);
154
    }
155
156
    private AddModulePanel(final SingleModuleProperties props, String initialString) {
133
        this.props = props;
157
        this.props = props;
134
        initComponents();
158
        initComponents();
135
        initAccessibility();
159
        initAccessibility();
136
        filterValue.setText(FILTER_DESCRIPTION);
160
        filterValue.setText(initialString);
137
        fillUpUniverseModules();
161
        fillUpUniverseModules();
138
        moduleList.setCellRenderer(CustomizerComponentFactory.getDependencyCellRenderer(false));
162
        moduleList.setCellRenderer(CustomizerComponentFactory.getDependencyCellRenderer(false));
139
        moduleList.addListSelectionListener(new ListSelectionListener() {
163
        moduleList.addListSelectionListener(new ListSelectionListener() {

Return to bug 212656
By use of this website, you agree to the NetBeans Policies and Terms of Use. © 2014, Oracle Corporation and/or its affiliates. Sponsored by Oracle logo