diff -r 1d736701d1bd autoupdate.services/apichanges.xml --- a/autoupdate.services/apichanges.xml Tue Aug 18 15:24:31 2009 +0400 +++ b/autoupdate.services/apichanges.xml Wed Aug 19 19:48:25 2009 +0400 @@ -71,6 +71,26 @@ + + + + New operation type introduced together with method for create appropriate container + + + + + +

+ New operation type - OperationSupport.OperationType.INTERNAL_UPDATE is introduced. + This operation can be used to find out elements which have updates and + which the particular element has the dependency on. +

+
+ + + +
+ diff -r 1d736701d1bd autoupdate.services/src/org/netbeans/api/autoupdate/OperationContainer.java --- a/autoupdate.services/src/org/netbeans/api/autoupdate/OperationContainer.java Tue Aug 18 15:24:31 2009 +0400 +++ b/autoupdate.services/src/org/netbeans/api/autoupdate/OperationContainer.java Wed Aug 19 19:48:25 2009 +0400 @@ -97,6 +97,17 @@ } /** + * The factory method to construct instance of OperationContainer for install operation + * @return newly constructed instance of OperationContainer for install operation + */ + public static OperationContainer createForInternalUpdate() { + OperationContainer retval = + new OperationContainer(OperationContainerImpl.createForInternalUpdate(), new InstallSupport()); + retval.getSupportInner ().setContainer(retval); + return retval; + } + + /** * The factory method to construct instance of OperationContainer for install operation * @return newly constructed instance of OperationContainer for install operation */ diff -r 1d736701d1bd autoupdate.services/src/org/netbeans/api/autoupdate/OperationSupport.java --- a/autoupdate.services/src/org/netbeans/api/autoupdate/OperationSupport.java Tue Aug 18 15:24:31 2009 +0400 +++ b/autoupdate.services/src/org/netbeans/api/autoupdate/OperationSupport.java Wed Aug 19 19:48:25 2009 +0400 @@ -151,6 +151,9 @@ case CUSTOM_UNINSTALL: impl = OperationSupportImpl.forCustomUninstall (); break; + case INTERNAL_UPDATE: + impl = OperationSupportImpl.forInternalUpdate (); + break; default: assert false : "Unknown OperationSupport for type " + type; }