]>
Commit | Line | Data |
---|---|---|
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 | ||
12 | package org.eclipse.jdt.internal.ui.preferences; | |
13 | ||
14 | import org.eclipse.jface.preference.IPreferenceStore; | |
15 | import org.eclipse.jface.util.IPropertyChangeListener; | |
16 | ||
17 | import org.eclipse.jface.text.source.SourceViewer; | |
18 | ||
19 | import 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 | */ | |
26 | public 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 | } |