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

(-)a/openide.util/apichanges.xml (+15 lines)
Lines 48-53 Link Here
48
    <apidef name="actions">Actions API</apidef>
48
    <apidef name="actions">Actions API</apidef>
49
</apidefs>
49
</apidefs>
50
<changes>
50
<changes>
51
    <change id="RequestProcessorForClass">
52
        <api name="util"/>
53
        <summary>Simplified constructor for RequestProcessor</summary>
54
        <version major="8" minor="3"/>
55
        <date day="13" month="4" year="2010"/>
56
        <author login="jtulach"/>
57
        <compatibility addition="yes"/>
58
        <description>
59
            <p>
60
                Simpler constructor for RequestProcessor.
61
            </p>
62
        </description>
63
        <class package="org.openide.util" name="RequestProcessor"/>
64
        <issue number="180458"/>
65
    </change>
51
    <change id="ActionInvoker-ActionPresenterProvider">
66
    <change id="ActionInvoker-ActionPresenterProvider">
52
        <api name="actions"/>
67
        <api name="actions"/>
53
        <summary>Action SPI interfaces added</summary>
68
        <summary>Action SPI interfaces added</summary>
(-)a/openide.util/manifest.mf (-1 / +1 lines)
Lines 1-5 Link Here
1
Manifest-Version: 1.0
1
Manifest-Version: 1.0
2
OpenIDE-Module: org.openide.util
2
OpenIDE-Module: org.openide.util
3
OpenIDE-Module-Localizing-Bundle: org/openide/util/Bundle.properties
3
OpenIDE-Module-Localizing-Bundle: org/openide/util/Bundle.properties
4
OpenIDE-Module-Specification-Version: 8.2
4
OpenIDE-Module-Specification-Version: 8.3
5
5
(-)a/openide.util/src/org/openide/util/RequestProcessor.java (+17 lines)
Lines 258-263 Link Here
258
        this(name, 1);
258
        this(name, 1);
259
    }
259
    }
260
260
261
    /** Convenience constructor for a new RequestProcessor with throughput 1.
262
     * Typical usage is:
263
     * <pre>
264
     * class MyClass {
265
     *   private static final RequestProcessor RP = new RequestProcessor(MyClass.class);
266
     * 
267
     * }
268
     * </pre>
269
     * Behaves as <code>new RequestProcessor(MyClass.class.getName())</code>.
270
     *
271
     * @param forClass name of this class gives name for the processor threads
272
     * @since 8.3
273
     */
274
    public RequestProcessor(Class<?> forClass) {
275
        this(forClass.getName());
276
    }
277
261
    /** Creates a new named RequestProcessor with defined throughput.
278
    /** Creates a new named RequestProcessor with defined throughput.
262
     * @param name the name to use for the request processor thread
279
     * @param name the name to use for the request processor thread
263
     * @param throughput the maximal count of requests allowed to run in parallel
280
     * @param throughput the maximal count of requests allowed to run in parallel
(-)a/openide.util/test/unit/src/org/openide/util/RequestProcessorTest.java (-1 / +5 lines)
Lines 233-238 Link Here
233
        
233
        
234
    }
234
    }
235
235
236
    static final class Priority {
237
        static final RequestProcessor RP = new RequestProcessor(Priority.class);
238
    }
239
236
    /**
240
    /**
237
     * A test that check that priorities are handled well.
241
     * A test that check that priorities are handled well.
238
     */
242
     */
Lines 270-276 Link Here
270
            r[i] = new R(i);
274
            r[i] = new R(i);
271
        }
275
        }
272
        
276
        
273
        RequestProcessor rp = new RequestProcessor("PrioriyTest");
277
        RequestProcessor rp = Priority.RP;
274
        
278
        
275
        RequestProcessor.Task t[] = new RequestProcessor.Task[5];
279
        RequestProcessor.Task t[] = new RequestProcessor.Task[5];
276
        synchronized (r[0]) {
280
        synchronized (r[0]) {

Return to bug 180458