|
|
|
|
|
Re: EMF stand-alone SWT problems [message #1706014 is a reply to message #1705645] |
Fri, 21 August 2015 06:39 |
Stefan Bader Messages: 5 Registered: August 2015 |
Junior Member |
|
|
Sorry that i used the wrong forum :/
I want to create a gui that i can open without opening the eclipse.
I want the main window to be a SWT shell, which is defided into 2 segments. The first segment is a SWT tree structure. I want the second part to render a given EMF Model.
The problem is that almost all methods depend on the plugin object or the bundle object, which i can´t use.
I´m now trying to render my model by manually creating all needed classes and copying some methods, but this isn´t working out either.
Sorry I´m a newby at EMF implementation
EDIT: and yes i looked at it, but i can´t get it to work the way i want it. In fact the EMF model i want to render was such a make-it-happen-applicaition
[Updated on: Fri, 21 August 2015 06:43] Report message to a moderator
|
|
|
|
Re: EMF stand-alone SWT problems [message #1706032 is a reply to message #1706014] |
Fri, 21 August 2015 08:50 |
Stefan Bader Messages: 5 Registered: August 2015 |
Junior Member |
|
|
Hi Jonas,
I can´t use anything that uses the Plugin. class (org.eclipse.core.runtime.plugin) or the bundle class (org.osgi.framework.bundle).
These classes get called mostly by the Activator.class (org.eclipse.emf.ecp.view.internal.swt.Activator.class).
For example:
public ReportService getReportService() {
final BundleContext bundleContext = getBundle().getBundleContext();
final ServiceReference<ReportService> serviceReference =
bundleContext.getServiceReference(ReportService.class);
return bundleContext.getService(serviceReference);
}
I only get NullPointerExceptions when i use them, because i want it to be a pure SWT application without any links to eclipse.
I implemented it like i said. But it failes to initialize the correct renderer.
Thank you for your help
Stefan
[Updated on: Fri, 21 August 2015 08:51] Report message to a moderator
|
|
|
|
|
|
Powered by
FUDForum. Page generated in 0.03987 seconds