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.
<!-- ACTUAL CHANGES BEGIN HERE: -->
<changes>
<change id="visible-ancestor">
<api name="general"/>
<summary>Find a visible ancestor of UpdateUnit</summary>
<version major="1" minor="37"/>
<date day="31" month="10" year="2012"/>
<author login="jrechtacek"/>
<compatibility addition="yes" binary="compatible" deletion="no" deprecation="no" semantic="compatible" source="compatible"/>
<description>
<p>
Added a method {@link org.netbeans.api.autoupdate.UpdateUnit#getVisibleAncestor} which returns a visible plugin
which depending upon this unit. Returns a unit if this unit is installed in the system and some of visible
units depending upon this one, otherwise returns null.
</p>
</description>
<class package="org.netbeans.api.autoupdate" name="UpdateUnit"/>
<issue number="190246"/>
</change>
<change id="preffered-update">
<summary>Mark an update as preferred just if needed</summary>
Manifest-Version: 1.0
OpenIDE-Module: org.netbeans.modules.autoupdate.services
OpenIDE-Module-Localizing-Bundle: org/netbeans/modules/autoupdate/services/resources/Bundle.properties
OpenIDE-Module-Specification-Version: 1.36
OpenIDE-Module-Specification-Version: 1.37
OpenIDE-Module-Layer: org/netbeans/modules/autoupdate/services/resources/layer.xml
AutoUpdate-Show-In-Client: false
AutoUpdate-Essential-Module: true
/*
* DO NOT ALTER OR REMOVE COPYRIGHT NOTICES OR THIS HEADER.
*
* Copyright 1997-2010 Oracle and/or its affiliates. All rights reserved.
* Copyright 1997-2012 Oracle and/or its affiliates. All rights reserved.
* Oracle and Java are registered trademarks of Oracle and/or its affiliates.
* Other names may be trademarks of their respective owners.
return impl.isPending ();
}
/** Returns a nearest plugin depending upon this unit which is supposed
* to be visible in application UI.
* Works only for units which are already installed in the application.
* @since 1.37
* @return UpdateUnit or null
*/
public UpdateUnit getVisibleAncestor() {
if (getInstalled() != null) {
return impl.getVisibleAncestor();
} else {
return null;
@Override
public boolean equals(Object obj) {
if (obj == null)
return false;
return true;
public int hashCode() {
int hash = 5;