private D createEditor(Object content, Class<? extends D> editorType, String icon, ResourceLoader resourceLoader) throws SecurityException, InvocationTargetException, IllegalAccessException, IllegalArgumentException, NoSuchMethodException, InstantiationException { D editor = createEditor(content, editorType); DATA dockableData = dockableDataFactory.createDockableData(icon, resourceLoader); dockableDataManager.registerDockableData(editor, dockableData); inject(editor); return editor; }
private D createAndRegisterView(Class<? extends D> viewType, String displayName, String icon, ResourceLoader resourceLoader) throws InstantiationException, IllegalAccessException { D view = createView(viewType); DATA dockableData = dockableDataFactory.createDockableData(displayName, icon, resourceLoader); dockableDataManager.registerDockableData(view, dockableData); inject(view); return view; }