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.
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
Created attachment 90449 [details] screen shot
most likely it is caused by common issue 175590 While not sure, set as 'depends on', but not duplicate.
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)
Marku, I think this is an optimization issue which was rounding around for a while.
I am looking at it. Seems the same as issue #175590.
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.
fixed in main, changeset: http://hg.netbeans.org/main/rev/407feb634612
Additional modification for fix: changeset: http://hg.netbeans.org/main/rev/5560af683b70
Verified with NetBeans IDE Dev (Build 200911050201).