Java tutorial
/******************************************************************************* * This program and the accompanying materials * are made available under the terms of the Eclipse Public License v1.0 * which accompanies this distribution, and is available at * http://www.eclipse.org/legal/epl-v10.html * Contributors: * * Hitesh Gaur - with help from Bio 7. Original Editor is created by them. *******************************************************************************/ package net.openchrom.xxd.processor.supplier.rscripting.ui.editor; import org.eclipse.jface.action.Action; import org.eclipse.jface.preference.PreferenceDialog; import org.eclipse.ui.dialogs.PreferencesUtil; public class OpenPreferences extends Action { public OpenPreferences() { super("Preferences"); setId("net.openchrom.xxd.processor.supplier.rscripting.ui.r_editor_preferences"); setText("R Preferences"); } public void run() { PreferenceDialog dialog = PreferencesUtil.createPreferenceDialogOn(null, "prefr", null, null); dialog.open(); } }