Skip to main content


Eclipse Community Forums
Forum Search:

Search      Help    Register    Login    Home
Home » Eclipse Projects » Rich Client Platform (RCP) » Adding Global Actions Like Open Project, Save Project
Adding Global Actions Like Open Project, Save Project [message #817082] Fri, 09 March 2012 16:04 Go to next message
ModelGeek Mising name is currently offline ModelGeek Mising nameFriend
Messages: 550
Registered: June 2011
Senior Member
Hi,

i am trying to learn basics of RCP. I wonder how to add basic application operations like open project/close project/save project in RCP application.

Thanks for help!

Cheers
Re: Adding Global Actions Like Open Project, Save Project [message #818263 is a reply to message #817082] Sun, 11 March 2012 09:58 Go to previous messageGo to next message
Libor Jelinek is currently offline Libor JelinekFriend
Messages: 143
Registered: January 2012
Location: Prague, Czech Rep.
Senior Member

Standard IDE commands are still commands, so the following is an example of triggering Open Project in my RCP

<extension point="org.eclipse.ui.menus">  
<menuContribution
  allPopups="false"
  locationURI="menu:com.virtage.plexflow.menu.file?after=additions">
            
  <command
      commandId="org.eclipse.ui.project.openProject"
      label="New folder...">
  </command>
  
  ...


index.php/fa/7480/0/

[Updated on: Sun, 11 March 2012 10:00]

Report message to a moderator

Re: Adding Global Actions Like Open Project, Save Project [message #819151 is a reply to message #818263] Mon, 12 March 2012 15:05 Go to previous message
ModelGeek Mising name is currently offline ModelGeek Mising nameFriend
Messages: 550
Registered: June 2011
Senior Member
Hi,

As we are selecting openProject command, so i need to define a handler which must extend from org.eclipse.ui.project.openProject?

I want to enable "save all" when some thing has changed.... can you please explain how can i achieve this in RCP?

Thanks!

Cheers!
Previous Topic:[Solved] List every available perspective by default
Next Topic:Customizing Toolbar Views
Goto Forum:
  


Current Time: Sat Apr 27 01:25:28 GMT 2024

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

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

Back to the top