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 173646 - persistence.xml editor looses Design/XML switching buttons
Summary: persistence.xml editor looses Design/XML switching buttons
Status: RESOLVED DUPLICATE of bug 173789
Alias: None
Product: javaee
Classification: Unclassified
Component: Persistence (show other bugs)
Version: 6.x
Hardware: All All
: P4 blocker (vote)
Assignee: Sergey Petrov
URL:
Keywords:
Depends on: 173789
Blocks:
  Show dependency tree
 
Reported: 2009-10-02 18:07 UTC by err
Modified: 2010-02-11 04:31 UTC (History)
0 users

See Also:
Issue Type: DEFECT
Exception Reporter:


Attachments

Note You need to log in before you can comment on or make changes to this bug.
Description err 2009-10-02 18:07:37 UTC
- turn off MenuBar>View>ShowEditorToolbar
- double click persistence.xml to bring up in editor
- click XML to switch to the xml view

Observe that the Design/XML buttons are not present

The GUI mutliview editor (matisse) used to have this problem. It was fixed in a recent release, so they probably have a
ready solution.
Comment 1 Sergey Petrov 2009-10-05 14:36:14 UTC
I'm not sure it's an issue, as you hide toolbar with buttons yourself and so you have no toolbar, I also don't see fixed
behavior for gui editor, just tried and see no way to switch to design mode from editor (for JFrame).
all works the same way, web.xml editor, gui editor, persistence.xml editor. I'm not sure what will be a good solution in
this case. Also after close-reopen all editors are in design mode again. 
May be should be considered as enhancment request to provide switching to design view somehow even if toolbar is hidden.
Comment 2 Sergey Petrov 2009-10-05 14:43:01 UTC
yes, I see something strange in 6.7, there are number of issues.
if I deselect "show editor toolbar" in design mode, switch to code and back I see "show" isn't deselected but it's not a
solution and may be it was fixed (or roll backed if it was attempt to fix switch issue) in 6.8 or I can't reproduce it
Comment 3 Sergey Petrov 2009-10-05 14:46:31 UTC
last comment was about gui editor.
Comment 4 err 2009-10-05 17:59:14 UTC
I just tried the GUI. You are right. I was sure I remembered that was fixed in the past. Maybe 6.5. I almost never do
GUI work. I'll file a bug against the editor. Something like "multiview editor should always display buttons for
DESIGN/EDIT switching".

If I have toolbar turned off, and I open persistence.xml (or JFrame), why does it show a toolbar?

Anyway, I thought the JFrame was working.
Comment 5 err 2009-10-05 18:00:29 UTC
Filed issue 173789
Comment 6 Sergey Petrov 2009-10-05 19:41:41 UTC
>If I have toolbar turned off, and I open persistence.xml (or JFrame), why does it show a toolbar?

Do you mean toolbar for editor or design view? In my opinion ShowEditorToolbar may be just for editor just because of
its name "editor toolbar" and do not work for design and others views.
Comment 7 err 2009-10-05 19:51:41 UTC
> > If I have toolbar turned off, and I open persistence.xml (or JFrame), why does it show a toolbar?

> Do you mean toolbar for editor or design view?

I thought the design view was an editor (though not a text editor). Anyway, I was being picky (I made a silly comment).

The issue I filed to editor pretty much outlines what I think about this minor problem.
Comment 8 Sergey Petrov 2009-10-05 19:54:49 UTC
ok, persistence.xml editor should follow  more general resolution on issue 173789
Comment 9 Sergey Petrov 2010-02-11 04:31:32 UTC
I can't reproduce the issue in 6.8 and 6.9, may be fixed by general fix in issue 173789,
close as duplicate as it have the same fix and is just a case.

*** This bug has been marked as a duplicate of bug 173789 ***