Eclipse Community Forums
Forum Search:

Search      Help    Register    Login    Home
Home » Eclipse Projects » Rich Client Platform (RCP) » FormEditor dirty but cannot save
FormEditor dirty but cannot save [message #552890] Sat, 14 August 2010 01:24 Go to next message
Mihael Schmidt is currently offline Mihael Schmidt
Messages: 23
Registered: August 2010
Junior Member
Hi,

I got a FormEditor with several FormPages. The editor is marked dirty when I use
firePropertyChange(PROP_DIRTY);


But I can't save the editor content. CTRL+S is not working and the menu item in the main menu is not enabled.

I added the save action/menu item with the following code in plugin.xml:

<menuContribution locationURI="menu:org.eclipse.ui.main.menu">
        	<menu id="file" label="Datei">
        		<command
        			commandId="org.eclipse.ui.file.save" 
        			label="Speichern"
        			style="push" />
        	</menu>
        </menuContribution>


How do I get the editor to enable saving?

Thanx for any response

Mihael
Re: FormEditor dirty but cannot save [message #553065 is a reply to message #552890] Mon, 16 August 2010 05:56 Go to previous messageGo to next message
Prakash G.R. is currently offline Prakash G.R.
Messages: 621
Registered: July 2009
Senior Member
On 14/08/10 10:54 AM, Mihael wrote:
> Hi,
>
> I got a FormEditor with several FormPages. The editor is marked dirty
> when I use firePropertyChange(PROP_DIRTY);
>
> But I can't save the editor content. CTRL+S is not working and the menu
> item in the main menu is not enabled.
>

Are you in an RCP application? If you need to register action in the
ActionAdvisor

--
- Prakash
Platform UI Team, IBM

www.eclipse-tips.com
Re: FormEditor dirty but cannot save [message #554202 is a reply to message #553065] Fri, 20 August 2010 09:55 Go to previous message
Mihael Schmidt is currently offline Mihael Schmidt
Messages: 23
Registered: August 2010
Junior Member
Registering the action did the trick.

Thanx

Mihael
Previous Topic:Performance: logic in SourceProvider or activeWhen?
Next Topic:Implement Calender Control
Goto Forum:
  


Current Time: Thu Aug 21 00:33:38 EDT 2014

Powered by FUDForum. Page generated in 0.01886 seconds