OpenFile/Dialog/-Action

SWT Designer allows you to create the views, editors, perspectives, pref pages, composites, etc. that comprise Eclipse SWT & RCP applications and plug-ins.

Moderators: Konstantin.Scheglov, gnebling, Alexander.Mitin, jwren, Eric Clayberg

OpenFile/Dialog/-Action

Postby raven » Wed Sep 06, 2006 11:51 am

Hi there,

In one of the sample RCP-application I do open ApplicationActionBarAdvisor via the Designer Editor.

While beeing in that editor (on the Actions tab) I can see several "standart actions" available like "Save" and "Save as" etc.

Now I wonder why is there no "Open File" action available?


Thanks a lot for any hints ...


raven
raven
 
Posts: 5
Joined: Wed Sep 06, 2006 11:38 am

Re: OpenFile/Dialog/-Action

Postby Eric Clayberg » Mon Sep 11, 2006 10:27 am

raven wrote:While beeing in that editor (on the Actions tab) I can see several "standard actions" available like "Save" and "Save as" etc.
Now I wonder why is there no "Open File" action available?

"Open File" is not a standard action. It is contributed by the Eclispse Editors plugin rather than the Workbench plugin ActionFactory class (where all of the standard actions come from).

You would need to add the org.eclipse.editors.ui plugin to your plugin's dependency list and then add it to your action list manually using the Add existing action command.
Eric Clayberg
Software Engineering Manager
Google
http://code.google.com/webtoolkit/download.html

Author: "Eclipse Plug-ins"
http://www.qualityeclipse.com
Eric Clayberg
Moderator
 
Posts: 4503
Joined: Tue Sep 30, 2003 6:39 am
Location: Boston, MA USA


Return to SWT Designer

Who is online

Users browsing this forum: No registered users and 1 guest