Package tool.preferences

Source Code of tool.preferences.MethodEditorPreferencePage

package tool.preferences;

import org.eclipse.jface.preference.BooleanFieldEditor;
import org.eclipse.jface.preference.DirectoryFieldEditor;
import org.eclipse.jface.preference.FieldEditorPreferencePage;
import org.eclipse.jface.preference.IPreferenceStore;
import org.eclipse.jface.preference.StringFieldEditor;
import org.eclipse.ui.IWorkbench;
import org.eclipse.ui.IWorkbenchPreferencePage;

import tool.ToolPlugin;

public class MethodEditorPreferencePage extends FieldEditorPreferencePage
implements IWorkbenchPreferencePage{
 
  public MethodEditorPreferencePage(){
    super(FieldEditorPreferencePage.GRID);
   
    IPreferenceStore store =
      ToolPlugin.getDefault().getPreferenceStore();
    setPreferenceStore(store);
  }
  @Override
  public void init(IWorkbench workBench) {
   
  }

  @Override
  protected void createFieldEditors() {
    BooleanFieldEditor  signature = new BooleanFieldEditor(
        ToolPlugin.METHOD_SIGNATURE_PREFERENCE,
        "&Show signature panel:",
        getFieldEditorParent());
      addField(signature);
   
  }

}
TOP

Related Classes of tool.preferences.MethodEditorPreferencePage

TOP
Copyright © 2018 www.massapi.com. All rights reserved.
All source code are property of their respective owners. Java is a trademark of Sun Microsystems, Inc and owned by ORACLE Inc. Contact coftware#gmail.com.