How to open an eclipse view to Right Side Only
I have an ec开发者_如何学运维lipse view and whenever I open that view, I want it to default open in Right Side of the eclipse. How to make this possible
while being in an eclipse perspective place the views in the locations you want. After exiting and reopening eclipse the views will remain in the positions you placed them in the respective perspective.
If you want to programatically position your view, right away when it is opened for the first time, you can create your own perspective, adn in that perspective you either include the view in the desired location, or you include a placeholder to define where the view should appear as soon as it's opened. See API for org.eclipse.ui.IPageLayout
, method addPlaceholder
.
If you don't create your own perspective, you may not be able to influence where your view is initially positioned. You can only manually position the view after it had been opened, and Eclipse will then remember this location in the workspace.
精彩评论