Eclipse Community Forums - RDF feed
https://www.eclipse.org/forums/
Eclipse Community ForumsProject Explorer Drag and Drop disable
https://www.eclipse.org/forums/index.php/mv/msg/458872/1018277/#msg_1018277
is there any way how to disable drag and drop action in project explorer? I dont want move models or diagrams from one project to other project. THX for any idea.]]>Zemiii Zoltán Zemko2013-03-13T14:47:17-00:00Re: Project Explorer Drag and Drop disable
https://www.eclipse.org/forums/index.php/mv/msg/458872/1018674/#msg_1018674
in your gmfgen-model, you will find an entry "Gen Navigator".
Delete this entry and regenerate (in a clean workspace) your code.
This should eleminate the code and according plugin-entries.
If you don't want to regenerate, simply delete (or comment) the following entries in your generated plugin.xml of your diagram-plugin:
- org.eclipse.ui.navigator.viewer
- org.eclipse.ui.navigator.navigatorContent
- org.eclipse.ui.navigator.linkHelper
If you do not delete the entries and comment them, you might want change the generated-flag to false, since it won't get overridden in case of a code-regen.
Something like this:
Regards
Thomas]]>Thomas Beyer2013-03-14T09:41:08-00:00Re: Project Explorer Drag and Drop disable
https://www.eclipse.org/forums/index.php/mv/msg/458872/1019193/#msg_1019193
I tried all of your tips, but no one works. I must missed something. I tried removed
- org.eclipse.ui.navigator.viewer
- org.eclipse.ui.navigator.navigatorContent
- org.eclipse.ui.navigator.linkHelper
from extensions nothing.
I comment and then delete the extension points from plugin.xml and nothing.
This should really disable drag and drop function in project explorer window of running application? But thx for previous advice.
Zemiii]]>Zemiii Zoltán Zemko2013-03-15T08:09:08-00:00Re: Project Explorer Drag and Drop disable
https://www.eclipse.org/forums/index.php/mv/msg/458872/1019254/#msg_1019254
weired, because if you disable the navigator-content, the projectexplorer shouldn't display any children of your diagram and model files at all. So, I don't really know how you could drag/drop.
Please make sure to test your plugins in a clean runtime-application. Maybe there are still some "old" deployed plugins, that get activated.
Another thing that came to my mind:
if you just want to disable the drag and drop (generated for shortcuts by gmf as default), you could also remove the following entries in your gmfgen for the Gen Diagram XXXEditPart:
- Diagram
-> Contains Shortcuts To
-> Contains Shortcuts Provided For
and regenerate the code.
This should preserve the display of the content, but disable default drag and drop as shortcuts.
So you could leave the generated navigator stuff in place in this case.
Regards
Thomas
]]>Thomas Beyer2013-03-15T10:21:32-00:00Re: Project Explorer Drag and Drop disable
https://www.eclipse.org/forums/index.php/mv/msg/458872/1047633/#msg_1047633
Jaroslav Stružka2013-04-23T13:10:25-00:00