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 175960 - Editor shows empty source window
Summary: Editor shows empty source window
Status: VERIFIED FIXED
Alias: None
Product: javame
Classification: Unclassified
Component: Visual Designer (show other bugs)
Version: 6.x
Hardware: All All
: P1 blocker (vote)
Assignee: Karol Harezlak
URL:
Keywords:
Depends on: 175590
Blocks:
  Show dependency tree
 
Reported: 2009-11-03 14:35 UTC by Andrei Chistiakov
Modified: 2009-11-05 12:34 UTC (History)
1 user (show)

See Also:
Issue Type: DEFECT
Exception Reporter:


Attachments
screen shot (71.47 KB, image/png)
2009-11-03 14:35 UTC, Andrei Chistiakov
Details

Note You need to log in before you can comment on or make changes to this bug.
Description Andrei Chistiakov 2009-11-03 14:35:08 UTC
Product Version: NetBeans IDE Dev (Build 200911030222)
Java: 1.6.0_16; Java HotSpot(TM) Client VM 14.2-b01
System: Windows XP version 5.1 running on x86; Cp1251; ru_RU (nb)

To reproduce:

- create a new Mobile Application
- after that, when HelloMIDlet is opened, switch Editor to Source view

Source code is not displayed in Editor

See attached screenshot
Comment 1 Andrei Chistiakov 2009-11-03 14:35:57 UTC
Created attachment 90449 [details]
screen shot
Comment 2 Andrew Korostelev 2009-11-03 15:35:04 UTC
most likely it is caused by common issue 175590
While not sure, set as 'depends on', but not duplicate.
Comment 3 Karol Harezlak 2009-11-03 17:29:13 UTC
Since we did not change anything in this part of the code for this 6.8 it looks like problem on platform side.
 
Fragment of logs:

| Pane is null
WARNING: org.netbeans.modules.vmd.io.editor.CodeEditorTopComponent.getEditorPane(CodeEditorTopComponent.java:69)
         org.netbeans.core.multiview.MultiViewCloneableTopComponent.getEditorPane(MultiViewCloneableTopComponent.java:224)
Comment 4 Petr Suchomel 2009-11-04 09:09:47 UTC
Marku, I think this is an optimization issue which was rounding around for a while.
Comment 5 mslama 2009-11-04 12:44:10 UTC
I am looking at it. Seems the same as issue #175590.
Comment 6 mslama 2009-11-04 13:04:34 UTC
You must call CloneableEditor.componentShowing. Form editor does it as follows:
at org.openide.text.CloneableEditor.componentShowing(CloneableEditor.java:208)
at org.netbeans.modules.form.FormEditorSupport$JavaEditorTopComponent.componentShowing(FormEditorSupport.java:1240)
at org.netbeans.core.multiview.MultiViewPeer.showCurrentElement(MultiViewPeer.java:295)
at org.netbeans.core.multiview.MultiViewPeer.showCurrentElement(MultiViewPeer.java:265)
at org.netbeans.core.multiview.MultiViewPeer$SelectionListener.selectionChanged(MultiViewPeer.java:676)
at org.netbeans.core.multiview.MultiViewModel.fireSelectionChanged(MultiViewModel.java:243)
at org.netbeans.core.multiview.MultiViewModel.setActiveDescription(MultiViewModel.java:115)
at org.netbeans.core.multiview.MultiViewModel$BtnGroup.setSelected(MultiViewModel.java:293)
at javax.swing.JToggleButton$ToggleButtonModel.setSelected(JToggleButton.java:237)
at javax.swing.ButtonGroup.setSelected(ButtonGroup.java:147)
at org.netbeans.core.multiview.MultiViewModel$BtnGroup.setSelected(MultiViewModel.java:289)
...

This change was done in CloneableEditor to fix semantics of CloneableEditor.close.
Comment 7 Karol Harezlak 2009-11-04 15:24:43 UTC
fixed in main,

changeset:

http://hg.netbeans.org/main/rev/407feb634612 
Comment 8 Karol Harezlak 2009-11-04 16:35:21 UTC
Additional modification for fix:

changeset:

http://hg.netbeans.org/main/rev/5560af683b70
Comment 9 Andrei Chistiakov 2009-11-05 12:34:48 UTC
Verified with NetBeans IDE Dev (Build 200911050201).