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);
}
Aggregations