+ \r
+ public GraphExplorer create3(Composite parent, int style) {\r
+ //GraphExplorerImpl2 explorer = new GraphExplorerImpl2(parent, style);\r
+ try {\r
+ Bundle bundle = Platform.getBundle("org.simantics.browsing.ui.nattable");\r
+ Class<GraphExplorer> clazz = (Class<GraphExplorer>)bundle.loadClass("org.simantics.browsing.ui.nattable.NatTableGraphExplorer");\r
+ //Class<GraphExplorer> clazz = (Class<GraphExplorer>)bundle.getClass().getClassLoader().loadClass("org.simantics.browsing.ui.nattable.NatTableGraphExplorer");\r
+ GraphExplorer explorer = clazz.getConstructor(Composite.class, int.class).newInstance(parent,style);\r
+ explorer.setSelectionDataResolver(selectionDataResolver);\r
+ explorer.setSelectionFilter(selectionFilter);\r
+ explorer.setSelectionTransformation(selectionTransformation);\r
+ Method m = clazz.getMethod("setServiceLocator", IServiceLocator.class);\r
+ m.invoke(explorer, serviceLocator);\r
+ //explorer.setServiceLocator(serviceLocator);\r
+ return explorer;\r
+ } catch (Throwable t) {\r
+ ExceptionUtils.logAndShowError(t);\r
+ return null;\r
+ }\r
+ }\r