History | Log In     View a printable version of the current page.  
Issue Details (XML | Word | Printable)

Key: IDEA-11608
Type: New Feature New Feature
Status: Reopened Reopened
Assignee: Maxim Shafirov
Reporter: Arik Kfir
Votes: 0
Watchers: 2
Operations

If you were logged in you would be able to see more operations.
IDEA: Feedback

Allow the "Structure" pane to be "freezed"

Created: 18 Feb 07 14:58   Updated: 04 Apr 07 15:35
Component/s: Project View

Environment: All.

Build: 6,708
Severity: Medium


 Description  « Hide
Sometimes it is useful to view the structure of one class while editing another class. For example, when editing a JSP page which displays the properties of the "Person" class - you would want to see the properties of the person class while creating the JSP. I could think of many other use-cases for this if needed.

In Oracle JDeveloper they have this feature with a small toggle-button on the structure pane which makes the structure pane keep displaying the currently shown structure even though the active editor continues to show a different class.



 All   Comments   Work Log   Change History      Sort Order:
Taras Tielkes - 18 Feb 07 16:35
For your example of displaying object attributes in a JSP, consider using <jsp:useBean id="..." scope="... type="..."/>

That will give you full completion for properties (and properties of properties, etc).


Vladislav Kaznacheev - 19 Mar 07 20:59
Disabling "Autoscroll from Source" in Structure view will do what you want

Arik Kfir - 20 Mar 07 14:39
Hi Vladislav,

I think you are mistaken. To reproduce (using latest EAP as well as 6.0.*):

1. Open any class
2. Show the Structure pane
3. Open another class
4. *** Structure pane shows the structure of the NEW class ***

What we want is the structure pane to keep showing the old class. Since this is a new use-case, and not a bug of course, I think a new button is in order (e.g. "Freeze") which will keep the structure pane from updating to always show the current class.

Please reconsider.


Taras Tielkes - 20 Mar 07 14:48
Arik, could you list some use cases?

Your original example if much better served using <jsp:useBean>, I think.


Dmitry Jemerov - 20 Mar 07 16:27
Arik,

Have you actually tried turning off "Autoscroll from source" button, as advised by Vladislav?


Arik Kfir - 20 Mar 07 20:54
Yes I did (EAP 6763) and still the Structure pane always displayed the current class being edited...

Arik Kfir - 20 Mar 07 20:58
Hi Taras,

This issue doesn't really talk about JSPs.... For example, suppose I create a framework which abstracts some API from my users (for the sake of example, say I am abstracting Swing) - I want to create a set of API classes which resembles some of Swing's properties. So I create a new "ArikButton" class - but I want to know what properties the JButton class has. The easiest way for me is to see the JButton properties in the Structure pane, while creating my own ArikButton class.

Another use case might be when I'm writing a new Swing frame, and I want to see my Person class' properties so I know which fields I want to put in my frame...