Search in sources :

Example 1 with DiagramGraphicalViewer

use of org.eclipse.gmf.runtime.diagram.ui.parts.DiagramGraphicalViewer in project tdi-studio-se by Talend.

the class BusinessRulersAndGridComposite method initWorkspacePropertyListener.

/**
     * Initializes the preferenceStore property change listener.
     */
private void initWorkspacePropertyListener() {
    IDiagramWorkbenchPart editor = (IDiagramWorkbenchPart) getEditor();
    if (editor == null)
        return;
    DiagramGraphicalViewer viewer = (DiagramGraphicalViewer) editor.getDiagramGraphicalViewer();
    workspaceViewerProperties = viewer.getWorkspaceViewerPreferenceStore();
    workspaceViewerProperties.addPropertyChangeListener(propertyListener);
}
Also used : DiagramGraphicalViewer(org.eclipse.gmf.runtime.diagram.ui.parts.DiagramGraphicalViewer) IDiagramWorkbenchPart(org.eclipse.gmf.runtime.diagram.ui.parts.IDiagramWorkbenchPart)

Aggregations

DiagramGraphicalViewer (org.eclipse.gmf.runtime.diagram.ui.parts.DiagramGraphicalViewer)1 IDiagramWorkbenchPart (org.eclipse.gmf.runtime.diagram.ui.parts.IDiagramWorkbenchPart)1