]> git.uio.no Git - ifi-stolz-refaktor.git/blame - case-study/jdt-after/ui/org/eclipse/jdt/internal/ui/preferences/JavaSourcePreviewerUpdater.java
Case Study: adding data and statistics
[ifi-stolz-refaktor.git] / case-study / jdt-after / ui / org / eclipse / jdt / internal / ui / preferences / JavaSourcePreviewerUpdater.java
CommitLineData
1b2798f6
EK
1/*******************************************************************************
2 * Copyright (c) 2000, 2008 IBM Corporation and others.
3 * All rights reserved. This program and the accompanying materials
4 * are made available under the terms of the Eclipse Public License v1.0
5 * which accompanies this distribution, and is available at
6 * http://www.eclipse.org/legal/epl-v10.html
7 *
8 * Contributors:
9 * IBM Corporation - initial API and implementation
10 *******************************************************************************/
11
12package org.eclipse.jdt.internal.ui.preferences;
13
14import org.eclipse.jface.preference.IPreferenceStore;
15import org.eclipse.jface.util.IPropertyChangeListener;
16
17import org.eclipse.jface.text.source.SourceViewer;
18
19import org.eclipse.jdt.ui.text.JavaSourceViewerConfiguration;
20
21/**
22 * Handles Java editor font changes for Java source preview viewers.
23 *
24 * @since 3.0
25 */
26public class JavaSourcePreviewerUpdater {
27
28 /**
29 * Creates a Java source preview updater for the given viewer, configuration and preference store.
30 *
31 * @param viewer the viewer
32 * @param configuration the configuration
33 * @param preferenceStore the preference store
34 */
35 public JavaSourcePreviewerUpdater(final SourceViewer viewer, final JavaSourceViewerConfiguration configuration, final IPreferenceStore preferenceStore) {
36 final IPropertyChangeListener propertyChangeListener= configuration.generated_2081952679570305773(viewer, preferenceStore);
37 preferenceStore.addPropertyChangeListener(propertyChangeListener);
38 }
39}