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.

Bug 227844

Summary: org.netbeans.core.multiview.MultiViewPeer.peerComponentShowing: LowPerformance took 65156 ms.
Product: platform Reporter: Exceptions Reporter <exceptions_reporter>
Component: TextAssignee: Miloslav Metelka <mmetelka>
Status: NEW ---    
Severity: normal CC: ayermolayev, carduelis, ihsantobe17, ostermann_bernd, ridha, tpavek
Priority: P3 Keywords: PERFORMANCE
Version: 7.3   
Hardware: All   
OS: All   
Issue Type: DEFECT Exception Reporter: 199491
Attachments: nps snapshot
nps snapshot
nps snapshot

Description Exceptions Reporter 2013-03-23 05:06:56 UTC
Build: NetBeans IDE 7.3 (Build 201302261559)
VM: Java HotSpot(TM) Client VM, 23.7-b01, Java(TM) SE Runtime Environment, 1.7.0_13-b20
OS: Windows XP

User Comments:
GUEST: Netbeans gestartet

GUEST: Opening Netbeans



Maximum slowness yet reported was 65156 ms, average is 45409
Comment 1 Exceptions Reporter 2013-03-23 05:07:01 UTC
Created attachment 132970 [details]
nps snapshot
Comment 2 Stanislav Aubrecht 2013-03-25 09:31:23 UTC
FormEditorSupport.JavaEditorTopComponent.getToolbarRepresentation() waits for editor pane to be initialized.
Comment 3 ridha 2013-04-26 18:13:24 UTC
Created attachment 133859 [details]
nps snapshot
Comment 4 carduelis 2013-05-17 06:13:59 UTC
Created attachment 134553 [details]
nps snapshot

startup of NB
Comment 5 Tomas Pavek 2013-07-09 17:03:14 UTC
As mentioned above, FormEditorSupport.JavaEditorTopComponent.getToolbarRepresentation() waits for editor pane to be initialized. But how else it should get the toolbar?

The code is:

JEditorPane pane = getEditorPane();
if (pane != null) {
    Document doc = pane.getDocument();
    if (doc instanceof NbDocument.CustomToolbar) {
        toolbar = ((NbDocument.CustomToolbar)doc).createToolbar(pane);
    }
}

It's the CloneableEditor.getEditorPane() that is slow, yet requires to be called in EDT. I don't see what could be done with this on GUI builder side, if anybody knows please let me know. Is there a way to get to the document/toolbar out of EDT?