user414967
user414967

Reputation: 5325

hide perspectives

I created one perspective in eclipse workbench, not in eclipse rcp.Is it possible to hide other perspectives like java,debug? I just want to show only my perspective in my application.That should be the default one.Or I dont need to show any perspectives but my perspective which I created should be the default one. How do I do?

Upvotes: 1

Views: 1528

Answers (2)

dicle
dicle

Reputation: 1162

You can close wanted perspective like below:

IPerspectiveDescriptor[] openPerspectives = page.getOpenPerspectives();
for (IPerspectiveDescriptor openPerspective : openPerspectives) {
//add your own perspective name
  if (openPerspective.getLabel().equals("<perspectiveLabel>")) {
    page.closePerspective(openPerspective, false, false);
  }
}

Upvotes: 0

Tonny Madsen
Tonny Madsen

Reputation: 12718

You can use activities.

I also wrote a blog entry on this some years back: Using activities for user management.

UPDATED the link

Upvotes: 5

Related Questions