Can Perspective be accessed from DataBase ? [message #465502] |
Fri, 30 March 2007 12:29 |
Himansu Sekhar Swain Messages: 22 Registered: July 2009 |
Junior Member |
|
|
Hi All,
From last 5-6 days I have been trying to save the perspective
name, ID, Description etc... in the database and to set in the workbnech
page..But noway it succede.
Am I doing any mistake when saving perspective.
Can anybody help me, what are the parameters required to manage the
perspective through database.
Here is my code :
//text is the textfield name of my dialog
IPerspectiveDescriptor currentPerspectiveDesc =
PlatformUI.getWorkbench().getActiveWorkbenchWindow().
getActivePage().getPerspective();
String perspID = currentPerspectiveDesc.getId()+"."+text.getText();
PerspectiveRegistry persp =
(PerspectiveRegistry)PlatformUI.getWorkbench().getPerspectiv eRegistry();
PerspectiveDescriptor newPerDesc = persp.createPerspective(newName,
(PerspectiveDescriptor)currentPerspectiveDesc);
then insert into table...of database
In case of open perspective I am using "newPerDesc" of a particular
selected perspective name, but that perspective is not opening..
Can anybody help me..
|
|
|
Powered by
FUDForum. Page generated in 0.03112 seconds