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

(-)a/autoupdate.services/apichanges.xml (+17 lines)
Lines 57-62 Link Here
57
    <!-- ACTUAL CHANGES BEGIN HERE: -->
57
    <!-- ACTUAL CHANGES BEGIN HERE: -->
58
58
59
    <changes>
59
    <changes>
60
        <change id="visible-ancestor">
61
            <api name="general"/>
62
            <summary>Find a visible ancestor of UpdateUnit</summary>
63
            <version major="1" minor="37"/>
64
            <date day="31" month="10" year="2012"/>
65
            <author login="jrechtacek"/>
66
            <compatibility addition="yes" binary="compatible" deletion="no" deprecation="no" semantic="compatible" source="compatible"/>
67
            <description>
68
                <p>
69
                    Added a method {@link org.netbeans.api.autoupdate.UpdateUnit#getVisibleAncestor} which returns a visible plugin
70
                    which depending upon this unit. Returns a unit if this unit is installed in the system and some of visible
71
                    units depending upon this one, otherwise returns null.
72
                </p>
73
            </description>
74
            <class package="org.netbeans.api.autoupdate" name="UpdateUnit"/>
75
            <issue number="190246"/>
76
        </change>
60
        <change id="preffered-update">
77
        <change id="preffered-update">
61
            <api name="general"/>
78
            <api name="general"/>
62
            <summary>Mark an update as preferred just if needed</summary>
79
            <summary>Mark an update as preferred just if needed</summary>
(-)a/autoupdate.services/manifest.mf (-1 / +1 lines)
Lines 1-7 Link Here
1
Manifest-Version: 1.0
1
Manifest-Version: 1.0
2
OpenIDE-Module: org.netbeans.modules.autoupdate.services
2
OpenIDE-Module: org.netbeans.modules.autoupdate.services
3
OpenIDE-Module-Localizing-Bundle: org/netbeans/modules/autoupdate/services/resources/Bundle.properties
3
OpenIDE-Module-Localizing-Bundle: org/netbeans/modules/autoupdate/services/resources/Bundle.properties
4
OpenIDE-Module-Specification-Version: 1.36
4
OpenIDE-Module-Specification-Version: 1.37
5
OpenIDE-Module-Layer: org/netbeans/modules/autoupdate/services/resources/layer.xml
5
OpenIDE-Module-Layer: org/netbeans/modules/autoupdate/services/resources/layer.xml
6
AutoUpdate-Show-In-Client: false
6
AutoUpdate-Show-In-Client: false
7
AutoUpdate-Essential-Module: true
7
AutoUpdate-Essential-Module: true
(-)a/autoupdate.services/src/org/netbeans/api/autoupdate/UpdateUnit.java (-1 / +18 lines)
Lines 1-7 Link Here
1
/*
1
/*
2
 * DO NOT ALTER OR REMOVE COPYRIGHT NOTICES OR THIS HEADER.
2
 * DO NOT ALTER OR REMOVE COPYRIGHT NOTICES OR THIS HEADER.
3
 *
3
 *
4
 * Copyright 1997-2010 Oracle and/or its affiliates. All rights reserved.
4
 * Copyright 1997-2012 Oracle and/or its affiliates. All rights reserved.
5
 *
5
 *
6
 * Oracle and Java are registered trademarks of Oracle and/or its affiliates.
6
 * Oracle and Java are registered trademarks of Oracle and/or its affiliates.
7
 * Other names may be trademarks of their respective owners.
7
 * Other names may be trademarks of their respective owners.
Lines 136-141 Link Here
136
        return impl.isPending ();
136
        return impl.isPending ();
137
    }
137
    }
138
    
138
    
139
    /** Returns a nearest plugin depending upon this unit which is supposed
140
     * to be visible in application UI.
141
     * Works only for units which are already installed in the application.
142
     * 
143
     * @since 1.37
144
     * @return UpdateUnit or null
145
     */
146
    public UpdateUnit getVisibleAncestor() {
147
        if (getInstalled() != null) {
148
            return impl.getVisibleAncestor();
149
        } else {
150
            return null;
151
        }
152
    }
153
    
154
    @Override
139
    public boolean equals(Object obj) {
155
    public boolean equals(Object obj) {
140
        if (obj == null)
156
        if (obj == null)
141
            return false;
157
            return false;
Lines 149-154 Link Here
149
        return true;
165
        return true;
150
    }
166
    }
151
167
168
    @Override
152
    public int hashCode() {
169
    public int hashCode() {
153
        int hash = 5;
170
        int hash = 5;
154
171

Return to bug 190246