Skip to main content


Eclipse Community Forums
Forum Search:

Search      Help    Register    Login    Home
Home » Eclipse Projects » Rich Client Platform (RCP) » Is there a common "Open File..." command?
Is there a common "Open File..." command? [message #661498] Thu, 24 March 2011 23:09 Go to next message
Max Mising name is currently offline Max Mising nameFriend
Messages: 54
Registered: September 2010
Member
I wrote a custom "Open File..." command/handler for our application and want to reuse eclipse code where possible but couldn't find an open file command. I checked in IWorkbenchCommandConstants but did not see anything like it. Anyone know of the command to use?

Thanks,

Max
Re: Is there a common "Open File..." command? [message #661524 is a reply to message #661498] Fri, 25 March 2011 05:10 Go to previous messageGo to next message
Prakash G.R. is currently offline Prakash G.R.Friend
Messages: 621
Registered: July 2009
Senior Member
On 25/03/11 4:39 AM, Max wrote:
> I wrote a custom "Open File..." command/handler for our application and
> want to reuse eclipse code where possible but couldn't find an open file
> command. I checked in IWorkbenchCommandConstants but did not see
> anything like it. Anyone know of the command to use?

There isn't a command for this. You can use the action:
org.eclipse.ui.openLocalFile

--
- Prakash
Platform UI Team, IBM

www.eclipse-tips.com
Re: Is there a common "Open File..." command? [message #661618 is a reply to message #661524] Fri, 25 March 2011 15:18 Go to previous message
Max Mising name is currently offline Max Mising nameFriend
Messages: 54
Registered: September 2010
Member
Thanks for the reply! Adding an invisible separator named new.ext in my File menu with id="file" got it to auto contribute the menu item!

Thanks

Max
Previous Topic:Custom target platform, can't get show Splash
Next Topic:Features and the AboutDialog...
Goto Forum:
  


Current Time: Sat Apr 27 01:13:31 GMT 2024

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

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

Back to the top