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

(-)a/autoupdate.services/apichanges.xml (+20 lines)
Lines 71-76 Link Here
71
            <class package="org.netbeans.spi.autoupdate" name="UpdateItem"/>
71
            <class package="org.netbeans.spi.autoupdate" name="UpdateItem"/>
72
            <issue number="162673"/>
72
            <issue number="162673"/>
73
        </change>
73
        </change>
74
        
75
        <change id="new-operation-container">
76
            <api name="general"/>
77
            <summary>New operation type introduced together with method for create appropriate container</summary>
78
            <version major="1" minor="11"/>
79
            <date day="19" month="8" year="2009"/>
80
            <author login="dlipin"/>
81
            <compatibility semantic="compatible"/>
82
            <description>
83
                <p>
84
                    New operation type - <code>OperationSupport.OperationType.INTERNAL_UPDATE</code> is introduced.
85
                    This operation can be used to find out elements which have updates and
86
                    which the particular element has the dependency on.
87
                </p>
88
            </description>
89
            <class package="org.netbeans.api.autoupdate" name="OperationSupport"/>
90
            <class package="org.netbeans.api.autoupdate" name="OperationContainer"/>
91
            <issue number="141714"/>
92
        </change>
93
74
    </changes>
94
    </changes>
75
95
76
    <!-- Now the surrounding HTML text and document structure: -->
96
    <!-- Now the surrounding HTML text and document structure: -->
(-)a/autoupdate.services/src/org/netbeans/api/autoupdate/OperationContainer.java (+11 lines)
Lines 97-102 Link Here
97
    }
97
    }
98
98
99
    /**
99
    /**
100
     * The factory method to construct instance of <code>OperationContainer</code> for install operation
101
     * @return newly constructed instance of <code>OperationContainer</code> for install operation
102
     */
103
    public static OperationContainer<InstallSupport> createForInternalUpdate() {
104
        OperationContainer<InstallSupport> retval =
105
                new OperationContainer<InstallSupport>(OperationContainerImpl.createForInternalUpdate(), new InstallSupport());
106
        retval.getSupportInner ().setContainer(retval);
107
        return retval;
108
    }
109
110
    /**
100
     * The factory method to construct  instance of <code>OperationContainer</code> for install operation
111
     * The factory method to construct  instance of <code>OperationContainer</code> for install operation
101
     * @return newly constructed instance of <code>OperationContainer</code> for install operation
112
     * @return newly constructed instance of <code>OperationContainer</code> for install operation
102
     */
113
     */
(-)a/autoupdate.services/src/org/netbeans/api/autoupdate/OperationSupport.java (+3 lines)
Lines 151-156 Link Here
151
            case CUSTOM_UNINSTALL:
151
            case CUSTOM_UNINSTALL:
152
                impl = OperationSupportImpl.forCustomUninstall ();
152
                impl = OperationSupportImpl.forCustomUninstall ();
153
                break;
153
                break;
154
            case INTERNAL_UPDATE:
155
                impl = OperationSupportImpl.forInternalUpdate ();
156
                break;
154
            default:
157
            default:
155
                assert false : "Unknown OperationSupport for type " + type;
158
                assert false : "Unknown OperationSupport for type " + type;
156
        }
159
        }

Return to bug 141714