Disable editorArea in perspective editor?

SWT Designer allows you to create the views, editors, perspectives, pref pages, composites, etc. that comprise Eclipse SWT & RCP applications and plug-ins.

Moderators: Konstantin.Scheglov, gnebling, Alexander.Mitin, jwren, Eric Clayberg

Disable editorArea in perspective editor?

Postby frankgerhardt » Sat Jun 16, 2007 2:08 pm

If I disable the editor area in code, the visual design gets quite confused beyond usefulness.

Is there any intended way to disable the editor area in the perspective editor?

Frank.
frankgerhardt
 
Posts: 6
Joined: Sun Mar 12, 2006 2:25 pm

Re: Disable editorArea in perspective editor?

Postby Eric Clayberg » Sun Jun 17, 2007 8:20 am

frankgerhardt wrote:If I disable the editor area in code, the visual design gets quite confused beyond usefulness.

I don't know what that means. I disabled the editor area in the Perspective Editor and it seemed to work fine.

frankgerhardt wrote:Is there any intended way to disable the editor area in the perspective editor?

Did you try setting the editorAreaVisible property of the perspective to false?

Image
Eric Clayberg
Software Engineering Manager
Google
http://code.google.com/webtoolkit/download.html

Author: "Eclipse Plug-ins"
http://www.qualityeclipse.com
Eric Clayberg
Moderator
 
Posts: 4503
Joined: Tue Sep 30, 2003 6:39 am
Location: Boston, MA USA

50/50 working

Postby frankgerhardt » Sun Jun 17, 2007 11:13 am

First I missed the editorAreaVisible property because I was looking for it on the editorArea, not on the perspective.

It works on my handwritten perspective. Here is what confuses me.

I create the RCP Mail demo project and make a new perspective with the two views. First with the editorArea.

Image

Then I set the editorArea property to false.

Image

I still see a thin vertical editorArea. My expectation is that this would be gone. Or what is this what I see there?
I also see the same in the preview.

Frank.
frankgerhardt
 
Posts: 6
Joined: Sun Mar 12, 2006 2:25 pm

Some more examples

Postby frankgerhardt » Sun Jun 17, 2007 11:28 am

Here my handwritten perspective. The code:

Code: Select all
   public void createInitialLayout(IPageLayout layout) {
      String editorArea = layout.getEditorArea();
      addFastViews(layout);
      addViewShortcuts(layout);
      addPerspectiveShortcuts(layout);
      layout.addView("com.example.views.CallsView", IPageLayout.LEFT, 1f, editorArea);
   }


When I open this, I get to see it right.

Image

The editorArea is set to visible by default but the view takes 100%.

Then I set the editorArea to not visible and I get this:

Image

When I set it to visible again, is is gone again.

Image

It's a bit counter intuitive because of that thin vertical thing mentioned in the previous post.

Frank.
frankgerhardt
 
Posts: 6
Joined: Sun Mar 12, 2006 2:25 pm

Re: 50/50 working

Postby Eric Clayberg » Sun Jun 17, 2007 5:38 pm

frankgerhardt wrote:I still see a thin vertical editorArea. My expectation is that this would be gone.

Designer shows a small placeholder for the hidden editor area. Even though the editor area is hidden, its location is still relevant for layout purposes at design time.

When the editor area is not hidden, it is shown at its actual size relative to the views placed in the perspective.
Eric Clayberg
Software Engineering Manager
Google
http://code.google.com/webtoolkit/download.html

Author: "Eclipse Plug-ins"
http://www.qualityeclipse.com
Eric Clayberg
Moderator
 
Posts: 4503
Joined: Tue Sep 30, 2003 6:39 am
Location: Boston, MA USA


Return to SWT Designer

Who is online

Users browsing this forum: No registered users and 2 guests