Skip to main content


Eclipse Community Forums
Forum Search:

Search      Help    Register    Login    Home
Home » Eclipse Projects » GEF » Drag and Drop issue
Drag and Drop issue [message #145795] Sat, 31 July 2004 10:18 Go to next message
Eclipse UserFriend
Originally posted by: justinaruja.isletsystems.com

Hello All,

I have a window with more than one containers (say 2containers).

Container1 have a list of jobs that must be assigned to workers.

Container 2 have a row of workers.

when I drag a job from the list and drop it on worker's row it must
change to another object.

Please direct me how to achieve this


Thanks in advance

Damian
Re: Drag and Drop issue [message #145974 is a reply to message #145795] Mon, 02 August 2004 16:31 Go to previous messageGo to next message
Pratik Shah is currently offline Pratik ShahFriend
Messages: 1077
Registered: July 2009
Senior Member
Does the underlying model change or just the visual representation?

"Damian" <justinaruja@isletsystems.com> wrote in message
news:cefril$ssd$1@eclipse.org...
> Hello All,
>
> I have a window with more than one containers (say 2containers).
>
> Container1 have a list of jobs that must be assigned to workers.
>
> Container 2 have a row of workers.
>
> when I drag a job from the list and drop it on worker's row it must
> change to another object.
>
> Please direct me how to achieve this
>
>
> Thanks in advance
>
> Damian
>
>
>
>
>
>
>
Re: Drag and Drop issue [message #146017 is a reply to message #145795] Mon, 02 August 2004 19:06 Go to previous messageGo to next message
Eclipse UserFriend
Originally posted by: none.us.ibm.com

The default drag tracker uses orphan+add contributions. If you decide to
handle everything in ADD, you can ignore the orphan requests everywhere.
Then, it just becomes an issue of how you interpret "ADD" when it is from a
job to a worker. You can interpret it (in the worker's editpolicy) to mean
assign the worker that job.

The other alternative is to customize the tracker and use new request
types/objects.

"Damian" <justinaruja@isletsystems.com> wrote in message
news:cefril$ssd$1@eclipse.org...
> Hello All,
>
> I have a window with more than one containers (say 2containers).
>
> Container1 have a list of jobs that must be assigned to workers.
>
> Container 2 have a row of workers.
>
> when I drag a job from the list and drop it on worker's row it must
> change to another object.
>
> Please direct me how to achieve this
>
>
> Thanks in advance
>
> Damian
>
>
>
>
>
>
>
Re: Drag and Drop issue [message #146418 is a reply to message #145974] Wed, 04 August 2004 04:32 Go to previous messageGo to next message
Eclipse UserFriend
Originally posted by: justinaruja.isletsystems.com

Hello Pratik,


Underlying model get change.

Regards

Damian





Pratik Shah wrote:

> Does the underlying model change or just the visual representation?

> "Damian" <justinaruja@isletsystems.com> wrote in message
> news:cefril$ssd$1@eclipse.org...
> > Hello All,
> >
> > I have a window with more than one containers (say 2containers).
> >
> > Container1 have a list of jobs that must be assigned to workers.
> >
> > Container 2 have a row of workers.
> >
> > when I drag a job from the list and drop it on worker's row it must
> > change to another object.
> >
> > Please direct me how to achieve this
> >
> >
> > Thanks in advance
> >
> > Damian
> >
> >
> >
> >
> >
> >
> >
Re: Drag and Drop issue [message #146663 is a reply to message #146418] Thu, 05 August 2004 16:14 Go to previous message
Pratik Shah is currently offline Pratik ShahFriend
Messages: 1077
Registered: July 2009
Senior Member
Like Randy said, when you drag a job from container 1, container 1 will get
an orphan request to remove that job. Then container2 will get an add
request to add the job. Rather, if you are dropping on top of a worker,
that worker will get an add request. The worker can then determine what is
the right course of action and return an appropriate command. In this case,
you might want to ignore adding the given job (which means it will get
deleted), and add something else to the model (the new object that you want
it to change to).

"damian" <justinaruja@isletsystems.com> wrote in message
news:ceposr$3gm$1@eclipse.org...
> Hello Pratik,
>
>
> Underlying model get change.
>
> Regards
>
> Damian
>
>
>
>
>
> Pratik Shah wrote:
>
> > Does the underlying model change or just the visual representation?
>
> > "Damian" <justinaruja@isletsystems.com> wrote in message
> > news:cefril$ssd$1@eclipse.org...
> > > Hello All,
> > >
> > > I have a window with more than one containers (say 2containers).
> > >
> > > Container1 have a list of jobs that must be assigned to workers.
> > >
> > > Container 2 have a row of workers.
> > >
> > > when I drag a job from the list and drop it on worker's row it must
> > > change to another object.
> > >
> > > Please direct me how to achieve this
> > >
> > >
> > > Thanks in advance
> > >
> > > Damian
> > >
> > >
> > >
> > >
> > >
> > >
> > >
>
>
Previous Topic:Is it possible to disable PaletteEntries?
Next Topic:Visio stencil to GEF
Goto Forum:
  


Current Time: Fri Apr 26 19:26:25 GMT 2024

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