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

(-)a/o.n.core/arch.xml (+7 lines)
Lines 596-601 Link Here
596
            Get this property to determine when use JDK's <code>java.net.ProxySelector</code> or core's 
596
            Get this property to determine when use JDK's <code>java.net.ProxySelector</code> or core's 
597
            implementation of <code>ProxySelector</code>.
597
            implementation of <code>ProxySelector</code>.
598
        </api>
598
        </api>
599
        
600
    <api name="TimableEventQueue.install" category="friend" group="property" type="export">
601
        By default NetBeans based applications install their own <code>EventQueue</code>.
602
        One can suppress that since versiong 3.27 of <code>org.netbeans.core</code> module
603
        by branding key <code>TimableEventQueue.install</code> in
604
        <code>org/netbeans/core/Bundle</code> to <code>false</code>.
605
    </api>
599
 </answer>
606
 </answer>
600
607
601
608
(-)a/o.n.core/manifest.mf (-1 / +1 lines)
Lines 4-7 Link Here
4
OpenIDE-Module-Layer: org/netbeans/core/resources/mf-layer.xml
4
OpenIDE-Module-Layer: org/netbeans/core/resources/mf-layer.xml
5
AutoUpdate-Show-In-Client: false
5
AutoUpdate-Show-In-Client: false
6
AutoUpdate-Essential-Module: true
6
AutoUpdate-Essential-Module: true
7
OpenIDE-Module-Specification-Version: 3.26
7
OpenIDE-Module-Specification-Version: 3.27
(-)a/o.n.core/src/org/netbeans/core/Bundle.properties (+4 lines)
Lines 181-183 Link Here
181
ProxySettings.password.description=Proxy password
181
ProxySettings.password.description=Proxy password
182
182
183
Title_WebBrowser=Web Browser
183
Title_WebBrowser=Web Browser
184
185
186
# NOI18N
187
TimableEventQueue.install=true
(-)a/o.n.core/src/org/netbeans/core/TimableEventQueue.java (-1 / +6 lines)
Lines 65-70 Link Here
65
import org.openide.util.Exceptions;
65
import org.openide.util.Exceptions;
66
import org.openide.util.Lookup;
66
import org.openide.util.Lookup;
67
import org.openide.util.Mutex;
67
import org.openide.util.Mutex;
68
import org.openide.util.NbBundle;
68
import org.openide.util.RequestProcessor;
69
import org.openide.util.RequestProcessor;
69
import org.openide.windows.WindowManager;
70
import org.openide.windows.WindowManager;
70
71
Lines 100-106 Link Here
100
    static volatile Thread eq;
101
    static volatile Thread eq;
101
    private final Frame mainWindow;
102
    private final Frame mainWindow;
102
103
103
    TimableEventQueue(Frame f) {
104
    private TimableEventQueue(Frame f) {
104
        this.mainWindow = f;
105
        this.mainWindow = f;
105
        TIMEOUT = RP.create(this);
106
        TIMEOUT = RP.create(this);
106
        TIMEOUT.setPriority(Thread.MIN_PRIORITY);
107
        TIMEOUT.setPriority(Thread.MIN_PRIORITY);
Lines 110-115 Link Here
110
        initialize(null, true);
111
        initialize(null, true);
111
    }
112
    }
112
    static void initialize(final Frame f, final boolean defaultWindow) {
113
    static void initialize(final Frame f, final boolean defaultWindow) {
114
        boolean install = Boolean.valueOf(NbBundle.getMessage(TimableEventQueue.class, "TimableEventQueue.install")); // NOI18N
115
        if (!install) {
116
            return;
117
        }
113
        
118
        
114
        // #28536: make sure a JRE bug does not prevent the event queue from having
119
        // #28536: make sure a JRE bug does not prevent the event queue from having
115
        // the right context class loader
120
        // the right context class loader
(-)4e4ff2ed9f67 (+42 lines)
Added Link Here
1
# DO NOT ALTER OR REMOVE COPYRIGHT NOTICES OR THIS HEADER.
2
#
3
# Copyright 2011 Oracle and/or its affiliates. All rights reserved.
4
#
5
# Oracle and Java are registered trademarks of Oracle and/or its affiliates.
6
# Other names may be trademarks of their respective owners.
7
#
8
# The contents of this file are subject to the terms of either the GNU
9
# General Public License Version 2 only ("GPL") or the Common
10
# Development and Distribution License("CDDL") (collectively, the
11
# "License"). You may not use this file except in compliance with the
12
# License. You can obtain a copy of the License at
13
# http://www.netbeans.org/cddl-gplv2.html
14
# or nbbuild/licenses/CDDL-GPL-2-CP. See the License for the
15
# specific language governing permissions and limitations under the
16
# License.  When distributing the software, include this License Header
17
# Notice in each file and include the License file at
18
# nbbuild/licenses/CDDL-GPL-2-CP.  Oracle designates this
19
# particular file as subject to the "Classpath" exception as provided
20
# by Oracle in the GPL Version 2 section of the License file that
21
# accompanied this code. If applicable, add the following below the
22
# License Header, with the fields enclosed by brackets [] replaced by
23
# your own identifying information:
24
# "Portions Copyrighted [year] [name of copyright owner]"
25
#
26
# If you wish your version of this file to be governed by only the CDDL
27
# or only the GPL Version 2, indicate your decision by adding
28
# "[Contributor] elects to include this software in this distribution
29
# under the [CDDL or GPL Version 2] license." If you do not indicate a
30
# single choice of license, a recipient has the option to distribute
31
# your version of this file under either the CDDL, the GPL Version 2 or
32
# to extend the choice of license to its licensees as provided above.
33
# However, if you add GPL Version 2 code and therefore, elected the GPL
34
# Version 2 license, then the option applies only if the new code is
35
# made subject to such option by the copyright holder.
36
#
37
# Contributor(s):
38
#
39
# Portions Copyrighted 2011 Sun Microsystems, Inc.
40
41
# NOI18N
42
TimableEventQueue.install=false
(-)4e4ff2ed9f67 (+69 lines)
Added Link Here
1
/*
2
 * DO NOT ALTER OR REMOVE COPYRIGHT NOTICES OR THIS HEADER.
3
 *
4
 * Copyright 1997-2010 Oracle and/or its affiliates. All rights reserved.
5
 *
6
 * Oracle and Java are registered trademarks of Oracle and/or its affiliates.
7
 * Other names may be trademarks of their respective owners.
8
 *
9
 * The contents of this file are subject to the terms of either the GNU
10
 * General Public License Version 2 only ("GPL") or the Common
11
 * Development and Distribution License("CDDL") (collectively, the
12
 * "License"). You may not use this file except in compliance with the
13
 * License. You can obtain a copy of the License at
14
 * http://www.netbeans.org/cddl-gplv2.html
15
 * or nbbuild/licenses/CDDL-GPL-2-CP. See the License for the
16
 * specific language governing permissions and limitations under the
17
 * License.  When distributing the software, include this License Header
18
 * Notice in each file and include the License file at
19
 * nbbuild/licenses/CDDL-GPL-2-CP.  Oracle designates this
20
 * particular file as subject to the "Classpath" exception as provided
21
 * by Oracle in the GPL Version 2 section of the License file that
22
 * accompanied this code. If applicable, add the following below the
23
 * License Header, with the fields enclosed by brackets [] replaced by
24
 * your own identifying information:
25
 * "Portions Copyrighted [year] [name of copyright owner]"
26
 * 
27
 * If you wish your version of this file to be governed by only the CDDL
28
 * or only the GPL Version 2, indicate your decision by adding
29
 * "[Contributor] elects to include this software in this distribution
30
 * under the [CDDL or GPL Version 2] license." If you do not indicate a
31
 * single choice of license, a recipient has the option to distribute
32
 * your version of this file under either the CDDL, the GPL Version 2 or
33
 * to extend the choice of license to its licensees as provided above.
34
 * However, if you add GPL Version 2 code and therefore, elected the GPL
35
 * Version 2 license, then the option applies only if the new code is
36
 * made subject to such option by the copyright holder.
37
 * 
38
 * Contributor(s):
39
 * 
40
 * Portions Copyrighted 2008 Sun Microsystems, Inc.
41
 */
42
43
package org.netbeans.core;
44
45
import java.awt.EventQueue;
46
import java.awt.Toolkit;
47
import java.util.Locale;
48
import org.netbeans.junit.NbTestCase;
49
50
public class TimableEventQueueSuppressTest extends NbTestCase {
51
    static {
52
        Locale.setDefault(new Locale("te", "ST"));
53
    }
54
    
55
    
56
    public TimableEventQueueSuppressTest(String testName) {
57
        super(testName);
58
    }
59
60
    public void testNotInstalled() throws Exception {
61
        EventQueue old = Toolkit.getDefaultToolkit().getSystemEventQueue();
62
        if (old instanceof TimableEventQueue) {
63
            fail("Old queue is already TimableEventQueue: " + old);
64
        }
65
        TimableEventQueue.initialize();
66
        EventQueue now = Toolkit.getDefaultToolkit().getSystemEventQueue();
67
        assertSame("Old queue was not replaced", old, now);
68
    }
69
}

Return to bug 201268