Skip to main content


Eclipse Community Forums
Forum Search:

Search      Help    Register    Login    Home
Home » Modeling » EMF "Technology" (Ecore Tools, EMFatic, etc)  » TreeViewerSWTFactory drag and drop exceptions(default drag and drop causes null pointer exceptions)
TreeViewerSWTFactory drag and drop exceptions [message #1758907] Tue, 04 April 2017 12:54 Go to next message
Jay Norwood is currently offline Jay NorwoodFriend
Messages: 155
Registered: July 2009
Senior Member
The simple implementation, like this, results in drag and drop exceptions.

tv = TreeViewerSWTFactory.createTreeViewer(parent, rootElement);

There was a suggestion in an article describing TreeViewerSWTFactory which described a way to use customization, which I could use to fix this. It took a little digging to figure out, so I'm posting it.

tv = TreeViewerSWTFactory.fillDefaults(parent, rootElement).
customizeDragAndDrop(new DNDProvider(){

@Override
public boolean hasDND() {
// TODO Auto-generated method stub
return false;
}
... the rest of the generated overrides
}).create();

Re: TreeViewerSWTFactory drag and drop exceptions [message #1758993 is a reply to message #1758907] Wed, 05 April 2017 06:23 Go to previous messageGo to next message
Jonas Helming is currently offline Jonas HelmingFriend
Messages: 111
Registered: September 2016
Senior Member
Hi Jay,

could you post your findings, including the Exceptions as a Bug Report, please?

Thank you and best regards

Jonas

--
Get professional Eclipse developer support:
http://eclipsesource.com/en/services/developer-support/


--
Jonas Helming
Get professional Eclipse developer support:
http://eclipsesource.com/en/services/developer-support/
Re: TreeViewerSWTFactory drag and drop exceptions [message #1759074 is a reply to message #1758993] Wed, 05 April 2017 22:08 Go to previous message
Jay Norwood is currently offline Jay NorwoodFriend
Messages: 155
Registered: July 2009
Senior Member
ok, done.
https://bugs.eclipse.org/bugs/show_bug.cgi?id=514809
Previous Topic:[Edapt] Migrating a file with multiple model namespaces
Next Topic:[Edapt] Creating history from existing metamodel versions
Goto Forum:
  


Current Time: Fri Apr 19 20:45:32 GMT 2024

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

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

Back to the top