blob: 0e9c3838a7b2a820030a256c771d2409457ed281 [file] [log] [blame]
/*******************************************************************************
* Copyright (c) 2005, 2016 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.AbstractConfigurationBlock;
import org.eclipse.dltk.ui.preferences.AbstractConfigurationBlockPreferencePage;
import org.eclipse.dltk.ui.preferences.IPreferenceConfigurationBlock;
import org.eclipse.dltk.ui.preferences.OverlayPreferenceStore;
import org.eclipse.dltk.ui.util.SWTFactory;
import org.eclipse.swt.layout.GridData;
import org.eclipse.swt.widgets.Composite;
import org.eclipse.swt.widgets.Control;
public class RubyGlobalPreferencesPage extends
AbstractConfigurationBlockPreferencePage {
@Override
protected IPreferenceConfigurationBlock createConfigurationBlock(
OverlayPreferenceStore overlayPreferenceStore) {
return new AbstractConfigurationBlock(overlayPreferenceStore, this) {
@Override
public Control createControl(Composite parent) {
Composite composite = SWTFactory.createComposite(parent, parent
.getFont(), 1, 1, GridData.FILL_HORIZONTAL);
return composite;
}
};
}
@Override
protected String getHelpId() {
return null;
}
@Override
protected void setDescription() {
setDescription(RubyPreferencesMessages.GlobalPreferencePageDescription);
}
@Override
protected void setPreferenceStore() {
setPreferenceStore(RubyUI.getDefault().getPreferenceStore());
}
}