Skip to main content



      Home
Home » Eclipse Projects » Eclipse Platform » modal IEditorPart?
modal IEditorPart? [message #312909] Fri, 23 February 2007 15:21 Go to next message
Eclipse UserFriend
Originally posted by: lamont_gilbert.rigidsoftware.com

Is it possible to make a modal IEditorPart such that the user may only
work within this part of this page while it is open? I have a sort of
drill-down behavior, so I need to prevent the user from editing the
original drawing while he/she is editing a component of that drawing.

Or is there a better way to implement drilldown?


Thanks,


CL
Re: modal IEditorPart? [message #313740 is a reply to message #312909] Mon, 26 March 2007 08:19 Go to previous messageGo to next message
Eclipse UserFriend
CL 'dnoyeB' Gilbert wrote:
> Is it possible to make a modal IEditorPart such that the user may only
> work within this part of this page while it is open? I have a sort of
> drill-down behavior, so I need to prevent the user from editing the
> original drawing while he/she is editing a component of that drawing.
>
> Or is there a better way to implement drilldown?
>

If your original editor supports a model, you could have the sub-editor
mark it read-only until the sub-editor changes have been saved.

I don't think there's an easy way to just change it, unless you could
add some kind of SWT listener that wouldn't allow certain SWT events
while the sub-editor is open.

PW
Re: modal IEditorPart? [message #313808 is a reply to message #313740] Mon, 26 March 2007 11:31 Go to previous message
Eclipse UserFriend
Originally posted by: lamont_gilbert.rigidsoftware.com

On Mon, 26 Mar 2007 08:19:37 -0400, Paul Webster wrote:
>
> If your original editor supports a model, you could have the sub-editor
> mark it read-only until the sub-editor changes have been saved.
>
> I don't think there's an easy way to just change it, unless you could
> add some kind of SWT listener that wouldn't allow certain SWT events
> while the sub-editor is open.
>
> PW

That sounds resonable. I have intended to implement a locking scheme.
Perhaps now is the time.
Previous Topic:Disabling Actions via systemProperty (ENV VARS?)
Next Topic:How to override existing plugin in the plugins directory
Goto Forum:
  


Current Time: Thu Jun 19 20:13:19 EDT 2025

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

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

Back to the top