Search in sources :

Example 1 with RulerComposite

use of org.eclipse.gef.ui.rulers.RulerComposite in project tdi-studio-se by Talend.

the class AbstractTalendEditor method createGraphicalViewer.

@Override
protected void createGraphicalViewer(final Composite parent) {
    rulerComp = new RulerComposite(parent, SWT.NONE);
    super.createGraphicalViewer(rulerComp);
    rulerComp.setGraphicalViewer((ScrollingGraphicalViewer) getGraphicalViewer());
}
Also used : RulerComposite(org.eclipse.gef.ui.rulers.RulerComposite)

Example 2 with RulerComposite

use of org.eclipse.gef.ui.rulers.RulerComposite in project yamcs-studio by yamcs.

the class OPIEditor method createGraphicalViewer.

@Override
protected void createGraphicalViewer(Composite parent) {
    initDisplayModel();
    rulerComposite = new RulerComposite(parent, SWT.NONE);
    GraphicalViewer viewer = new PatchedScrollingGraphicalViewer();
    viewer.createControl(rulerComposite);
    setGraphicalViewer(viewer);
    configureGraphicalViewer();
    hookGraphicalViewer();
    initializeGraphicalViewer();
    rulerComposite.setGraphicalViewer((ScrollingGraphicalViewer) getGraphicalViewer());
}
Also used : RulerComposite(org.eclipse.gef.ui.rulers.RulerComposite) GraphicalViewer(org.eclipse.gef.GraphicalViewer) ScrollingGraphicalViewer(org.eclipse.gef.ui.parts.ScrollingGraphicalViewer)

Example 3 with RulerComposite

use of org.eclipse.gef.ui.rulers.RulerComposite in project jbosstools-hibernate by jbosstools.

the class DiagramViewer method createGraphicalViewer.

/* (non-Javadoc)
	 * @see org.eclipse.gef.ui.parts.GraphicalEditor#createGraphicalViewer(org.eclipse.swt.widgets.Composite)
	 */
protected void createGraphicalViewer(Composite parent) {
    rulerComp = new RulerComposite(parent, SWT.NONE);
    super.createGraphicalViewer(rulerComp);
    rulerComp.setGraphicalViewer((ScrollingGraphicalViewer) getGraphicalViewer());
}
Also used : RulerComposite(org.eclipse.gef.ui.rulers.RulerComposite)

Example 4 with RulerComposite

use of org.eclipse.gef.ui.rulers.RulerComposite in project tdi-studio-se by Talend.

the class ErdiagramDiagramEditor method createGraphicalViewer.

protected void createGraphicalViewer(final Composite parent) {
    rulerComp = new RulerComposite(parent, SWT.BORDER);
    super.createGraphicalViewer(rulerComp);
    rulerComp.setGraphicalViewer((ScrollingGraphicalViewer) getGraphicalViewer());
}
Also used : RulerComposite(org.eclipse.gef.ui.rulers.RulerComposite)

Aggregations

RulerComposite (org.eclipse.gef.ui.rulers.RulerComposite)4 GraphicalViewer (org.eclipse.gef.GraphicalViewer)1 ScrollingGraphicalViewer (org.eclipse.gef.ui.parts.ScrollingGraphicalViewer)1