Bug 206031 - Do not open design tab of a form by default
Do not open design tab of a form by default
Status: NEW
Product: guibuilder
Classification: Unclassified
Component: Code
7.2
All All
: P3 with 2 votes (vote)
: TBD
Assigned To: issues@guibuilder
issues@guibuilder
: PERFORMANCE, USABILITY
Depends on:
Blocks:
  Show dependency treegraph
 
Reported: 2011-12-06 19:17 UTC by Jesse Glick
Modified: 2013-01-08 16:25 UTC (History)
0 users

See Also:
Issue Type: ENHANCEMENT
:


Attachments

Note You need to log in before you can comment on or make changes to this bug.
Description Jesse Glick 2011-12-06 19:17:16 UTC
Various UI gestures to "open" a file, when applied to a form, open it in design view:

- ENTER or double-click in Projects/Files [FormDataNode.getPreferredAction]
- CLI --open [DefaultOpenFileImpl.openDataObjectByCookie]

Others open in source view, e.g.

- Go to Type [FileDescription.open]
- other Navigate menu items oriented to Java elements [UiUtils.doOpen]

When you did in fact mean to manipulate the GUI form itself, it is fine to open to this tab. But in my experience most of the time during code maintenance, i.e. most of the times you open a form, you want to work on the Java code. Of course if you are on the "wrong" tab you can easily switch to the other one. But opening the design tab carries penalties:

1. It is slow. I frequently observe pauses of multiple seconds waiting for the form to be loaded.

2. The form editor often makes modifications merely because the form was opened, without any explicit edit gesture - meaning you have to do a VCS revert before editing plain old Java code just so your diff is minimal. For example, guarded blocks might be regenerated. And the .form file may be modified too:

-<?xml version="1.1" encoding="UTF-8" ?>
+<?xml version="1.0" encoding="UTF-8" ?>

Given these problems, I think it is better to always open the Source tab initially; if the user wants the Design view, they can explicitly switch to it. An exception might be when the form is first created from template, when you presumably want to work on the design immediately.


By use of this website, you agree to the NetBeans Policies and Terms of Use. © 2012, Oracle Corporation and/or its affiliates. Sponsored by Oracle logo