Skip to main content


Eclipse Community Forums
Forum Search:

Search      Help    Register    Login    Home
Home » Eclipse Projects » GEF » Direct Edit - Adding and Removing Edit Parts
Direct Edit - Adding and Removing Edit Parts [message #219562] Tue, 18 July 2006 16:55 Go to next message
Eclipse UserFriend
Originally posted by: Daniel.Rozeboom.cda.canon.com

Hi there,

I've seen a few fragments around for Direct Edit but it seems like a lot
is still up in the air. What I'm trying to do is implement a situation
where I can direct edit a section of text in an edit part, but this direct
editing should also allow the user to insert other types of edit parts
(containing images, widgets, whatever) in the text. I suppose this idea is
similar to a WYSIWIG editor inside an edit part, but not quite so robust.
Is this feasible? If it will mean trying to write a whole new section
of Draw2D or what have you, I can probably attempt to implement it in a
pop-up dialog if it saves some trouble. But I'm just not entirely clear on
how the text facilities of Draw2D and the capabilities of direct edit will
fit into the picture here. Does anyone have some suggestions as to the best
way this can be accomplished, or can you pinpoint certain features that I
will have a very difficult time implementing through the current GEF/Draw2D
facilities? Thanks in advance.

- Daniel
Re: Direct Edit - Adding and Removing Edit Parts [message #219608 is a reply to message #219562] Wed, 19 July 2006 15:57 Go to previous messageGo to next message
Eclipse UserFriend
Originally posted by: none.us.ibm.com

rich text cell editing is something that the GEF text work considers a
requirement. Unfortunately, that work is still isolated in an example due to
lack of feedback and clients to help establish the API.

At one point, we had the Logic example performing direct edit without direct
edit manager. In other words, the TextSelectionTool simple placed the caret
in the note object and started typing.

"Daniel Rozeboom" <Daniel.Rozeboom@cda.canon.com> wrote in message
news:e9j3q5$qcj$1@utils.eclipse.org...
> Hi there,
>
> I've seen a few fragments around for Direct Edit but it seems like a
> lot is still up in the air. What I'm trying to do is implement a
> situation where I can direct edit a section of text in an edit part, but
> this direct editing should also allow the user to insert other types of
> edit parts (containing images, widgets, whatever) in the text. I suppose
> this idea is similar to a WYSIWIG editor inside an edit part, but not
> quite so robust.
> Is this feasible? If it will mean trying to write a whole new section
> of Draw2D or what have you, I can probably attempt to implement it in a
> pop-up dialog if it saves some trouble. But I'm just not entirely clear
> on how the text facilities of Draw2D and the capabilities of direct edit
> will fit into the picture here. Does anyone have some suggestions as to
> the best way this can be accomplished, or can you pinpoint certain
> features that I will have a very difficult time implementing through the
> current GEF/Draw2D facilities? Thanks in advance.
>
> - Daniel
>
Re: Direct Edit - Adding and Removing Edit Parts [message #219614 is a reply to message #219608] Wed, 19 July 2006 21:13 Go to previous messageGo to next message
Eclipse UserFriend
Originally posted by: Daniel.Rozeboom.cda.canon.com

So basically there's no good way to do this? Would it be helpful for me to
see this version of the Logic example you're referring to, or no? Thanks in
advance.

- Daniel
"Randy Hudson" <none@us.ibm.com> wrote in message
news:e9lkpf$lvd$1@utils.eclipse.org...
> rich text cell editing is something that the GEF text work considers a
> requirement. Unfortunately, that work is still isolated in an example due
> to lack of feedback and clients to help establish the API.
>
> At one point, we had the Logic example performing direct edit without
> direct edit manager. In other words, the TextSelectionTool simple placed
> the caret in the note object and started typing.
>
> "Daniel Rozeboom" <Daniel.Rozeboom@cda.canon.com> wrote in message
> news:e9j3q5$qcj$1@utils.eclipse.org...
>> Hi there,
>>
>> I've seen a few fragments around for Direct Edit but it seems like a
>> lot is still up in the air. What I'm trying to do is implement a
>> situation where I can direct edit a section of text in an edit part, but
>> this direct editing should also allow the user to insert other types of
>> edit parts (containing images, widgets, whatever) in the text. I suppose
>> this idea is similar to a WYSIWIG editor inside an edit part, but not
>> quite so robust.
>> Is this feasible? If it will mean trying to write a whole new section
>> of Draw2D or what have you, I can probably attempt to implement it in a
>> pop-up dialog if it saves some trouble. But I'm just not entirely clear
>> on how the text facilities of Draw2D and the capabilities of direct edit
>> will fit into the picture here. Does anyone have some suggestions as to
>> the best way this can be accomplished, or can you pinpoint certain
>> features that I will have a very difficult time implementing through the
>> current GEF/Draw2D facilities? Thanks in advance.
>>
>> - Daniel
>>
>
>
Re: Direct Edit - Adding and Removing Edit Parts [message #219961 is a reply to message #219614] Mon, 24 July 2006 15:25 Go to previous messageGo to next message
Eclipse UserFriend
Originally posted by: none.us.ibm.com

"Daniel Rozeboom" <Daniel.Rozeboom@cda.canon.com> wrote in message
news:e9m79g$j56$1@utils.eclipse.org...
> So basically there's no good way to do this? Would it be helpful for me
> to see this version of the Logic example you're referring to, or no?
> Thanks in advance.

That version is unreleased, as it depended on unreleased GEF code. Clients
have created entire HTML editors using GEF, so there are *ways* to do
things. There is a good way, and it requires a lot of work. It's a question
of what is right for you, and how much work will it take.

Since your use case is probably a closed world, you have an easier effort
than it takes to design an API that can work for all GEF clients, regardless
of what they are trying to do. You should look at the text example.
Re: Direct Edit - Adding and Removing Edit Parts [message #220135 is a reply to message #219961] Tue, 25 July 2006 17:43 Go to previous message
Eclipse UserFriend
Originally posted by: Daniel.Rozeboom.cda.canon.com

10-4. I think to save myself twenty headaches, a slightly simplified (but
more specialized) solution will probably work for me. Thanks.

- Daniel

"Randy Hudson" <none@us.ibm.com> wrote in message
news:ea2oop$35a$1@utils.eclipse.org...
>
> "Daniel Rozeboom" <Daniel.Rozeboom@cda.canon.com> wrote in message
> news:e9m79g$j56$1@utils.eclipse.org...
>> So basically there's no good way to do this? Would it be helpful for me
>> to see this version of the Logic example you're referring to, or no?
>> Thanks in advance.
>
> That version is unreleased, as it depended on unreleased GEF code. Clients
> have created entire HTML editors using GEF, so there are *ways* to do
> things. There is a good way, and it requires a lot of work. It's a
> question of what is right for you, and how much work will it take.
>
> Since your use case is probably a closed world, you have an easier effort
> than it takes to design an API that can work for all GEF clients,
> regardless of what they are trying to do. You should look at the text
> example.
>
Previous Topic:Direct Edit Focus Issues
Next Topic:unable to implement a clean "CenterLayout"
Goto Forum:
  


Current Time: Mon Jan 13 14:57:22 GMT 2025

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

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

Back to the top