Eclipse Community Forums
Forum Search:

Search      Help    Register    Login    Home
Home » Eclipse Projects » Eclipse Platform » How to know if a perspective is custom or predefined?(From an IPerspectiveDescriptor how can one know if it describes a custom perspective, and if so, what the original perspective id is?)
How to know if a perspective is custom or predefined? [message #526826] Tue, 13 April 2010 03:41
Mattias Mohlin is currently offline Mattias Mohlin
Messages: 1
Registered: July 2009
Junior Member
I need to know if a perspective (described by an IPerspectiveDescriptor) represents a custom perspective. If so, I also need the id of the original perspective from which it was saved.
It seems PerspectiveDescriptor.getOriginalId() can be used to solve this problem, but that class is internal and I guess I should not use it.
Why is getOriginalId() not defined in the IPerspectiveDescriptor interface? Is there another way to solve this problem?

Regards,
/Mattias Mohlin
Previous Topic:Text editor get/set text
Next Topic:Runtime.getRuntime().exec() returns exit code 127 on Ubuntu Linux
Goto Forum:
  


Current Time: Wed Apr 23 02:45:00 EDT 2014

Powered by FUDForum. Page generated in 0.02602 seconds