Search in sources :

Example 1 with LayoutTplEditPartFactory

use of com.liferay.ide.layouttpl.ui.parts.LayoutTplEditPartFactory in project liferay-ide by liferay.

the class LayoutTplPreviewEditor method configureGraphicalViewer.

@Override
protected void configureGraphicalViewer() {
    super.configureGraphicalViewer();
    GraphicalViewer viewer = getGraphicalViewer();
    viewer.setEditPartFactory(new LayoutTplEditPartFactory());
    viewer.setRootEditPart(new LayoutTplRootEditPart());
    viewer.setKeyHandler(new GraphicalViewerKeyHandler(viewer));
}
Also used : GraphicalViewer(org.eclipse.gef.GraphicalViewer) LayoutTplEditPartFactory(com.liferay.ide.layouttpl.ui.parts.LayoutTplEditPartFactory) LayoutTplRootEditPart(com.liferay.ide.layouttpl.ui.parts.LayoutTplRootEditPart) GraphicalViewerKeyHandler(org.eclipse.gef.ui.parts.GraphicalViewerKeyHandler)

Aggregations

LayoutTplEditPartFactory (com.liferay.ide.layouttpl.ui.parts.LayoutTplEditPartFactory)1 LayoutTplRootEditPart (com.liferay.ide.layouttpl.ui.parts.LayoutTplRootEditPart)1 GraphicalViewer (org.eclipse.gef.GraphicalViewer)1 GraphicalViewerKeyHandler (org.eclipse.gef.ui.parts.GraphicalViewerKeyHandler)1