Search in sources :

Example 1 with IFigureFactory

use of org.eclipse.wst.xsd.ui.internal.adt.design.figures.IFigureFactory in project webtools.sourceediting by eclipse.

the class BaseEditPart method getFigureFactory.

public IFigureFactory getFigureFactory() {
    EditPartFactory factory = getViewer().getEditPartFactory();
    // $NON-NLS-1$
    Assert.isTrue(factory instanceof IFigureFactory, "EditPartFactory must be an instanceof of IFigureFactory");
    return (IFigureFactory) factory;
}
Also used : EditPartFactory(org.eclipse.gef.EditPartFactory) IFigureFactory(org.eclipse.wst.xsd.ui.internal.adt.design.figures.IFigureFactory)

Aggregations

EditPartFactory (org.eclipse.gef.EditPartFactory)1 IFigureFactory (org.eclipse.wst.xsd.ui.internal.adt.design.figures.IFigureFactory)1