Skip to main content

Notice: this Wiki will be going read only early in 2024 and edits will no longer be possible. Please see: for the plan.

Jump to: navigation, search

FAQ How do I set the size or position of my view?

The short answer is that you can’t always control the size and position of your view. If you create your own perspective, you can specify the initial size and position of the view relative to other views. Once the perspective has been opened, the user is free to move the view elsewhere and change its size. At this point, you no longer have control over the view’s size and position.

In a similar manner, you can influence the initial size and position of your view in other perspectives by using the perspectiveExtensions extension point. As with perspectives, this extension point allows you to specify the size and position of your view relative to other views that are known to be in that perspective. Note that you shouldn’t generally make your view appear by default in perspectives provided by other plug-ins. If many plug-ins did this, the host perspective would quickly become cluttered and difficult to use. To ensure that your view does not appear by default, specify the attribute visible="false" in your extension declaration.

See Also:

FAQ How do I create a new perspective?

FAQ How can I add my views and actions to an existing perspective?

FAQ Why can't I control when, where, and how my view is presented?

This FAQ was originally published in Official Eclipse 3.0 FAQs. Copyright 2004, Pearson Education, Inc. All rights reserved. This text is made available here under the terms of the Eclipse Public License v1.0.

Back to the top