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 227715

Summary: org.netbeans.modules.templates.ScriptingCreateFromTemplateHandler.createFromTemplate: LowPerformance took 21154 ms.
Product: java Reporter: Exceptions Reporter <exceptions_reporter>
Component: ProjectAssignee: Tomas Zezula <tzezula>
Status: RESOLVED FIXED    
Severity: normal CC: mkozeny, tmysik
Priority: P3 Keywords: PERFORMANCE
Version: 7.3   
Hardware: All   
OS: All   
Issue Type: DEFECT Exception Reporter: 158762
Attachments: nps snapshot

Description Exceptions Reporter 2013-03-20 12:33:55 UTC
Build: NetBeans IDE 7.3 (Build 201302132200)
VM: Java HotSpot(TM) Client VM, 23.7-b01, Java(TM) SE Runtime Environment, 1.7.0_17-b02
OS: Windows 7

User Comments:
GUEST: creating a new class in a new JavaLibrary

tmysik: create new java file in j2se project

GUEST: Creating new HTML file



Maximum slowness yet reported was 21154 ms, average is 8216
Comment 1 Exceptions Reporter 2013-03-20 12:33:57 UTC
Created attachment 132837 [details]
nps snapshot
Comment 2 Tomas Mysik 2013-07-18 14:55:03 UTC
(In reply to comment #0)
> GUEST: creating a new class in a new JavaLibrary
> 
> tmysik: create new java file in j2se project

@mkozeny: Are you sure that this is HTML editor? Thanks.
Comment 3 Martin Kozeny 2013-07-19 08:06:15 UTC
I am sorry, there is probably a problem with creating templates in ScriptingCreateFromTemplateHandler.
Comment 4 Jaroslav Havlin 2013-07-22 14:21:05 UTC
Class org.netbeans.modules.java.source.queriesimpl.TemplateWizardIterator implements WizardDescriptor.InstantiatingIterator. It should implement WizardDescriptor.AsynchronousInstantiatingIterator if it's possible to create the files in background.
The change should be trivial. Please evaluate.
Thank you.
Comment 5 Tomas Zezula 2013-07-23 16:29:53 UTC
Fixed jet-main d2f8dbed173d
Comment 6 Quality Engineering 2013-07-25 02:28:51 UTC
Integrated into 'main-silver', will be available in build *201307242300* on http://bits.netbeans.org/dev/nightly/ (upload may still be in progress)

Changeset: http://hg.netbeans.org/main-silver/rev/d2f8dbed173d
User: Tomas Zezula <tzezula@netbeans.org>
Log: #227715:org.netbeans.modules.templates.ScriptingCreateFromTemplateHandler.createFromTemplate: LowPerformance took 21154 ms.
Comment 7 Jaroslav Havlin 2013-08-26 11:49:02 UTC
*** Bug 234940 has been marked as a duplicate of this bug. ***