Skip to main content


Eclipse Community Forums
Forum Search:

Search      Help    Register    Login    Home
Home » Eclipse Projects » Rich Client Platform (RCP) » Can Perspective be accessed from DataBase ?
Can Perspective be accessed from DataBase ? [message #465502] Fri, 30 March 2007 12:29
Himansu Sekhar Swain is currently offline Himansu Sekhar SwainFriend
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..
Previous Topic:Undo for Eclipse RCP Editor by Using ActionFactory.UNDO.create(window)
Next Topic:Example of client-server aplication using Eclipse RCP
Goto Forum:
  


Current Time: Thu Apr 25 03:48:13 GMT 2024

Powered by FUDForum. Page generated in 0.03112 seconds
.:: Contact :: Home ::.

Powered by: FUDforum 3.0.2.
Copyright ©2001-2010 FUDforum Bulletin Board Software

Back to the top