«« Week 04 Status Report Ant Mangles Eclipse RCP Mac OS X .app Launcher? »»
blog header image
AudioMan Screenshots: With and Without View Titles

I've laid out some initial AudioMan and Durham Quick Editor user interfaces. Since both products use the Eclipse Rich Client Platform (RCP) I decided to use perspectives and views. Unfortunately views come with tabs (Eclipse calls them view titles) that I don't need or want.

Here are some screenshots:

AudioManQuick Editor


Here are the same screenshots with the view titles surgically removed with Adobe Photoshop:

AudioManQuick Editor


There's a very old Eclipse feature request to be able to programmatically remove the titles from views but it doesn't look like it's getting much attention.

I may have to modify the org.eclipse.ui.views package to make my own titleless view in the meantime. In these cases the views look much better without titles.

Update 9:55AM: Here's the code I'm using to make the AudioMan Browsing Perspective that has tabs:

public void createInitialLayout(IPageLayout layout) {
   String editorArea = layout.getEditorArea();
   layout.setEditorAreaVisible(false);
   layout.setFixed(true);

   IFolderLayout topMiddle = layout.createFolder("topMiddle", IPageLayout.TOP, 0.50f, editorArea);
   topMiddle.addView(ArtistView.ID);


   IFolderLayout topLeft = layout.createFolder("topLeft", IPageLayout.LEFT, 0.33f, "topMiddle");
   topLeft.addView(SourceView.ID);


   IFolderLayout topRight = layout.createFolder("topRight", IPageLayout.RIGHT, 0.50f, "topMiddle");
   topRight.addView(AlbumView.ID);


   layout.addView(TrackView.ID, IPageLayout.BOTTOM, 0.50f, editorArea);
}

Update 10:12AM: I figured it out. The IFolderLayout distracted me from the solution -- you can put the view IDs right in the refid parameter, like this:

public void createInitialLayout(IPageLayout layout) {
   String editorArea = layout.getEditorArea();
   layout.setEditorAreaVisible(false);
   layout.setFixed(true);

   layout.addStandaloneView(ArtistView.ID, false, IPageLayout.TOP, 0.50f, editorArea);
   layout.addStandaloneView(SourceView.ID, false, IPageLayout.LEFT, 0.33f, ArtistView.ID);
   layout.addStandaloneView(AlbumView.ID, false, IPageLayout.RIGHT, 0.50f, ArtistView.ID);
   layout.addStandaloneView(TrackView.ID, false, IPageLayout.BOTTOM, 0.50f, editorArea);
}

Now the GUIs look like the second set of screenshots. Woohoo.

Posted at March 23, 2005 at 07:48 AM EST
Last updated March 23, 2005 at 07:48 AM EST
Comments

I thought for sure that the removing view tab would be implemented. Well maybe that is something we can contribute.

Have you checked out createStandaloneViewPresentation in AbstractPresentationFactory (1)? It says "EXPERIMENTAL", but it looks like it has the support that we want, by passing in "false" to the showTitle parameter.

Also, I think the Bugzilla bug you're looking for is 53673 - [RCP] Abstract the presentation from the part (2)

Bummer - can't include hyperlinks in these comments... OK, here's the hyperlink footnotes then:
1. http://help.eclipse.org/help30/index.jsp?topic=/org.eclipse.platform.doc.isv/reference/api/org/eclipse/ui/presentations/AbstractPresentationFactory.html
2. https://bugs.eclipse.org/bugs/show_bug.cgi?id=53673

» Posted by: Luis de la Rosa at March 23, 2005 08:54 AM

Visually, I think the screenshots without the view titles are far better. I also don't think the user would want to move the parts of the window (views) around. So it makes sense to make the view titles hidden and make the views fixed.

» Posted by: Luis de la Rosa at March 23, 2005 08:59 AM

Thanks for the pointers Luis, I will investigate further.

» Posted by: Ryan at March 23, 2005 09:11 AM

I moved the original bug (5684) back into the UI inbox, sorry you commented on it but nobody noticed :)

» Posted by: Billy Biggs at March 25, 2005 10:10 PM

Billy: actually there was a misunderstanding on my part of the enhancement's intent -- it wasn't what I needed to do, and Eclipse already supports titleless views. Thanks though. :)

» Posted by: Ryan at March 26, 2005 05:46 AM
Google
 
Search scope: Web ryanlowe.ca