|
|
Re: How to prevent a part to be moved to a special stack? [message #1387499 is a reply to message #1386938] |
Wed, 25 June 2014 07:10 |
Marina Knieling Messages: 83 Registered: February 2013 |
Member |
|
|
The DnDAddon is quite comprehensive (Addon, Manager, Info, Processor,
lots of *Agent classes). Any hints on where to best hook in my custom
logic? I guess the *DropAgents is a good start, but maybe you can point
me to a concrete method.
And Tom (or anyone else), could you please have a look at my other
question concerning the DnDAddon in this forum? I simply need to know
whether to file a bug or - again - implement my own logic. Thanks
Marina
On 23.06.2014 10:15, Tom Schindl wrote:
> You need to fork the DnDAddon and implement your custom logic.
>
> Tom
>
> On 23.06.14 10:11, Marina Knieling wrote:
>> Hey guys,
>>
>> please read carefully, I don't want to prevent a part to be moved,
>> that's possible with adding the NoMove tag.
>>
>> What I want to achieve is that a part can't be moved to a special stack.
>> I have two stacks that shall only host one part each (it's going to be a
>> web like menu) and I don't want any other part to be moved in that
>> stack. I've read about a tag named "STANDALONE" but I can't find the
>> article again or any other documentation about this tag. Neither can I
>> figure out whether this is correct or where to add it.
>>
>> Any hints on this are appreciated.
>>
>> Thanks in advance
>> Marina
>
|
|
|
|
|
|
|
|
Re: How to prevent a part to be moved to a special stack? [message #1387692 is a reply to message #1387679] |
Wed, 25 June 2014 12:55 |
Eclipse User |
|
|
|
I see. There is an 'if' check in the DnDProcessor regarding the contributionURI so try making sure that your class is called DnDAddon and your package name ends with ui.workbench.addons.dndaddon. So something like 'my.custom.ui.workbench.addons.dndaddon.DnDAddon'.
In the mean time I'll file a bug to make this easier for Mars. Let me know how it goes.
|
|
|
|
|
|
Powered by
FUDForum. Page generated in 0.03260 seconds