Skip to main content


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 05:24 Go to next message
Mihael Schmidt is currently offline Mihael SchmidtFriend
Messages: 81
Registered: August 2010
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 09:56 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 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 13:55 Go to previous message
Mihael Schmidt is currently offline Mihael SchmidtFriend
Messages: 81
Registered: August 2010
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: Tue Sep 24 13:16:48 GMT 2024

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

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

Back to the top