Package tool.preferences

Source Code of tool.preferences.ToolPreferencePage

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 ToolPreferencePage extends FieldEditorPreferencePage
implements IWorkbenchPreferencePage{
 
  public ToolPreferencePage(){
    super(FieldEditorPreferencePage.GRID);
   
    IPreferenceStore store =
      ToolPlugin.getDefault().getPreferenceStore();
    setPreferenceStore(store);
  }
  @Override
  public void init(IWorkbench workBench) {
   
  }

  @Override
  protected void createFieldEditors() {
    DirectoryFieldEditor  forteRoot = new DirectoryFieldEditor(
        ToolPlugin.FORTE_ROOT_PREFERENCE,
        "&Forte Root:",
        getFieldEditorParent());
      addField(forteRoot);
      StringFieldEditor  forteLogger = new StringFieldEditor (
          ToolPlugin.FORTE_LOGGER_PREFERENCE,
          "&Log Flags:",
           getFieldEditorParent());
        addField(forteLogger)
   
  }

}
TOP

Related Classes of tool.preferences.ToolPreferencePage

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.