1 2 package de.loskutov.bco.preferences; 3 4 import org.eclipse.jface.preference.*; 5 import org.eclipse.ui.IWorkbenchPreferencePage; 6 import org.eclipse.ui.IWorkbench; 7 8 import de.loskutov.bco.BytecodeOutlinePlugin; 9 10 11 21 public class BCOPreferencePage extends FieldEditorPreferencePage implements IWorkbenchPreferencePage { 22 23 public BCOPreferencePage() { 24 super( GRID ); 25 setPreferenceStore(BytecodeOutlinePlugin.getDefault() 26 .getPreferenceStore()); 27 setDescription(BytecodeOutlinePlugin.getResourceString("BCOPreferencePage.defaultsGroup")); 28 } 29 30 35 public void createFieldEditors() { 36 37 addField( new BooleanFieldEditor( BCOConstants.LINK_VIEW_TO_EDITOR, 38 BytecodeOutlinePlugin.getResourceString( "BCOPreferencePage.linkViewToEditor" ), getFieldEditorParent() ) ); 40 41 addField( new BooleanFieldEditor( BCOConstants.SHOW_ONLY_SELECTED_ELEMENT, 42 BytecodeOutlinePlugin.getResourceString( "BCOPreferencePage.showOnlySelected" ), getFieldEditorParent() ) ); 44 45 addField( new BooleanFieldEditor( BCOConstants.SHOW_RAW_BYTECODE, 46 BytecodeOutlinePlugin.getResourceString( "BCOPreferencePage.showRawBytecode" ), getFieldEditorParent() ) ); 48 49 addField( new BooleanFieldEditor( BCOConstants.SHOW_ASMIFIER_CODE, 50 BytecodeOutlinePlugin.getResourceString( "BCOPreferencePage.showAsmifierCode" ), getFieldEditorParent() ) ); 52 53 addField( new BooleanFieldEditor( BCOConstants.SHOW_ANALYZER, 54 BytecodeOutlinePlugin.getResourceString( "BCOPreferencePage.showAnalyzer" ), getFieldEditorParent() ) ); 56 57 addField( new BooleanFieldEditor( BCOConstants.SHOW_LINE_INFO, 59 BytecodeOutlinePlugin.getResourceString( "BCOPreferencePage.showLineInfo" ), getFieldEditorParent() ) ); 61 62 addField( new BooleanFieldEditor( BCOConstants.SHOW_VARIABLES, 63 BytecodeOutlinePlugin.getResourceString( "BCOPreferencePage.showVariables" ), getFieldEditorParent() ) ); 65 66 addField( new BooleanFieldEditor( BCOConstants.SHOW_STACKMAP, 67 BytecodeOutlinePlugin.getResourceString( "BCOPreferencePage.showStackMap" ), getFieldEditorParent() ) ); 69 70 addField( new BooleanFieldEditor( BCOConstants.EXPAND_STACKMAP, 71 BytecodeOutlinePlugin.getResourceString( "BCOPreferencePage.expandStackMap" ), getFieldEditorParent() ) ); 73 74 } 78 79 84 public void init( IWorkbench workbench ) { 85 } 87 88 } 89 | Popular Tags |