| /******************************************************************************* |
| * Copyright (c) 2008, 2016 xored software, Inc. |
| * |
| * 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 |
| * |
| * Contributors: |
| * xored software, Inc. - initial API and Implementation (Alex Panchenko) |
| *******************************************************************************/ |
| package org.eclipse.dltk.ui.formatter; |
| |
| import org.eclipse.dltk.ui.preferences.IPreferenceDelegate; |
| import org.eclipse.swt.widgets.Button; |
| import org.eclipse.swt.widgets.Combo; |
| import org.eclipse.swt.widgets.Composite; |
| import org.eclipse.swt.widgets.Control; |
| import org.eclipse.swt.widgets.Text; |
| |
| public interface IFormatterControlManager extends IPreferenceDelegate<String> { |
| |
| public interface IInitializeListener { |
| void initialize(); |
| } |
| |
| void addInitializeListener(IInitializeListener listener); |
| |
| void removeInitializeListener(IInitializeListener listener); |
| |
| Button createCheckbox(Composite parent, String key, String text); |
| |
| Button createCheckbox(Composite parent, String key, String text, int hspan); |
| |
| /** |
| * @param parent |
| * @param key |
| * @param label |
| * @param items |
| * @return |
| * @deprecated |
| */ |
| @Deprecated |
| Combo createCombo(Composite parent, String key, String label, String[] items); |
| |
| Combo createCombo(Composite parent, String key, String label, |
| String[] itemValues, String[] itemLabels); |
| |
| Text createNumber(Composite parent, String key, String label); |
| |
| void enableControl(Control control, boolean enabled); |
| |
| } |