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.
Many years later, this would still be a welcome change.
This would be a very useful feature.