Skip to main content


Eclipse Community Forums
Forum Search:

Search      Help    Register    Login    Home
Home » Eclipse Projects » GEF » TabbedPropertySheetPage with CommandStack
TabbedPropertySheetPage with CommandStack [message #244944] Thu, 14 August 2008 16:01 Go to next message
Eclipse UserFriend
Originally posted by: andreas-scharf.gmx.de

Hi,

I'm currently switching from PropertySheetPage to
TabbedPropertySheetPage. Everything works fine, but I noticed that
changes made in the tabbed properties don't let the gef based editor get
dirty so saving is not possible.

Is there a built-in way of using the gef commandstack within the
TabbedPropertySheetPage? I've looked at the tabbed logic example in the
cvs, where the problem is the same. I can adjust all values but the
editor doesn't get dirty.

Cheers,
Andreas
Re: TabbedPropertySheetPage with CommandStack [message #244971 is a reply to message #244944] Sun, 17 August 2008 15:40 Go to previous messageGo to next message
marco is currently offline marcoFriend
Messages: 14
Registered: July 2009
Junior Member
Hi.

The dirty property of the GEF editors changes only if you do, redo or
undo commands.

I think the best way is create and execute specified command when the
user adjust the property values on TabbedPropertySheetPage.

cheers
Marco.

Andreas Scharf ha scritto:
> Hi,
>
> I'm currently switching from PropertySheetPage to
> TabbedPropertySheetPage. Everything works fine, but I noticed that
> changes made in the tabbed properties don't let the gef based editor get
> dirty so saving is not possible.
>
> Is there a built-in way of using the gef commandstack within the
> TabbedPropertySheetPage? I've looked at the tabbed logic example in the
> cvs, where the problem is the same. I can adjust all values but the
> editor doesn't get dirty.
>
> Cheers,
> Andreas
Re: TabbedPropertySheetPage with CommandStack [message #244979 is a reply to message #244971] Mon, 18 August 2008 13:39 Go to previous messageGo to next message
Eclipse UserFriend
Originally posted by: andreas-scharf.gmx.de

Marco,

it's clear why the dirty flag isn't set. But in case of a "normal"
PropertySheetPage I can set the RootEntry to an
UndoablePropertySheetEntry which takes my GEF commandStack as argument
in the constructor.

So the question was if there's way which I haven't seen yet to also use
the GEF commandstack to execute those commands.

Cheers,
Andreas

marco schrieb:
> Hi.
>
> The dirty property of the GEF editors changes only if you do, redo or
> undo commands.
>
> I think the best way is create and execute specified command when the
> user adjust the property values on TabbedPropertySheetPage.
>
> cheers
> Marco.
>
> Andreas Scharf ha scritto:
>> Hi,
>>
>> I'm currently switching from PropertySheetPage to
>> TabbedPropertySheetPage. Everything works fine, but I noticed that
>> changes made in the tabbed properties don't let the gef based editor
>> get dirty so saving is not possible.
>>
>> Is there a built-in way of using the gef commandstack within the
>> TabbedPropertySheetPage? I've looked at the tabbed logic example in
>> the cvs, where the problem is the same. I can adjust all values but
>> the editor doesn't get dirty.
>>
>> Cheers,
>> Andreas
Re: TabbedPropertySheetPage with CommandStack [message #244989 is a reply to message #244979] Mon, 18 August 2008 14:54 Go to previous message
marco is currently offline marcoFriend
Messages: 14
Registered: July 2009
Junior Member
Hi Andreas

One of the possibles ways is use your GEF viewPart (which it could be
reached by id ...) and getAdapter method.

You can adapt your viewpart as wrapper to internal editor CommandStack
(via getEditDomain().getCommandStack())

Other way it would be using getEditDomain().getCommandStack() directly ...

cheers
marco

Andreas Scharf ha scritto:
> Marco,
>
> it's clear why the dirty flag isn't set. But in case of a "normal"
> PropertySheetPage I can set the RootEntry to an
> UndoablePropertySheetEntry which takes my GEF commandStack as argument
> in the constructor.
>
> So the question was if there's way which I haven't seen yet to also use
> the GEF commandstack to execute those commands.
>
> Cheers,
> Andreas
>
> marco schrieb:
>> Hi.
>>
>> The dirty property of the GEF editors changes only if you do, redo or
>> undo commands.
>>
>> I think the best way is create and execute specified command when the
>> user adjust the property values on TabbedPropertySheetPage.
>>
>> cheers
>> Marco.
>>
>> Andreas Scharf ha scritto:
>>> Hi,
>>>
>>> I'm currently switching from PropertySheetPage to
>>> TabbedPropertySheetPage. Everything works fine, but I noticed that
>>> changes made in the tabbed properties don't let the gef based editor
>>> get dirty so saving is not possible.
>>>
>>> Is there a built-in way of using the gef commandstack within the
>>> TabbedPropertySheetPage? I've looked at the tabbed logic example in
>>> the cvs, where the problem is the same. I can adjust all values but
>>> the editor doesn't get dirty.
>>>
>>> Cheers,
>>> Andreas
Previous Topic:how to Remove Run As, Debug As, Team, etc from the context menu within the GEF editor
Next Topic:same filename for model and diagram
Goto Forum:
  


Current Time: Thu Apr 25 13:34:22 GMT 2024

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

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

Back to the top