| /******************************************************************************* |
| * Copyright (c) 2005, 2007 IBM Corporation and others. |
| * This program and the accompanying materials are made available under the |
| * terms of the Eclipse Public License v. 2.0 which is available at |
| * http://www.eclipse.org/legal/epl-2.0. |
| * |
| * SPDX-License-Identifier: EPL-2.0 |
| * |
| |
| *******************************************************************************/ |
| package org.eclipse.dltk.ruby.internal.ui.preferences; |
| |
| import org.eclipse.dltk.ruby.internal.ui.RubyUI; |
| import org.eclipse.dltk.ui.preferences.AbstractConfigurationBlockPreferencePage; |
| import org.eclipse.dltk.ui.preferences.EditorConfigurationBlock; |
| import org.eclipse.dltk.ui.preferences.IPreferenceConfigurationBlock; |
| import org.eclipse.dltk.ui.preferences.OverlayPreferenceStore; |
| |
| public class RubyEditorPreferencesPage extends |
| AbstractConfigurationBlockPreferencePage { |
| |
| @Override |
| protected void setDescription() { |
| setDescription(RubyPreferencesMessages.EditorPreferencePageDescription); |
| } |
| |
| @Override |
| protected void setPreferenceStore() { |
| setPreferenceStore(RubyUI.getDefault().getPreferenceStore()); |
| } |
| |
| @Override |
| protected IPreferenceConfigurationBlock createConfigurationBlock( |
| OverlayPreferenceStore overlayPreferenceStore) { |
| return new EditorConfigurationBlock(this, overlayPreferenceStore, |
| EditorConfigurationBlock.FLAG_TAB_ALWAYS_INDENT); |
| } |
| } |