1 11 package org.eclipse.team.internal.ui.synchronize; 12 13 import org.eclipse.jface.preference.*; 14 import org.eclipse.team.internal.ui.TeamUIMessages; 15 import org.eclipse.ui.IWorkbench; 16 import org.eclipse.ui.IWorkbenchPreferencePage; 17 18 public class StartupPreferencePage extends FieldEditorPreferencePage implements 19 IWorkbenchPreferencePage { 20 21 public static final String PROP_STARTUP_ACTION = "startupAction"; public static final String STARTUP_ACTION_NONE = "none"; public static final String STARTUP_ACTION_POPULATE = "populate"; public static final String STARTUP_ACTION_SYNCHRONIZE = "synchronize"; 26 public static final String STARTUP_PREFERENCES = "org.eclipse.team.ui.startupPreferences"; 29 public StartupPreferencePage(IPreferenceStore store) { 30 super(GRID); 31 setTitle(TeamUIMessages.StartupPreferencePage_0); 32 setDescription(TeamUIMessages.StartupPreferencePage_1); 33 setPreferenceStore(store); 34 } 35 36 public void init(IWorkbench workbench) { 37 } 39 40 protected void createFieldEditors() { 41 addField(new RadioGroupFieldEditor(PROP_STARTUP_ACTION, 42 TeamUIMessages.StartupPreferencePage_2, 1, 43 new String [][] { 44 {TeamUIMessages.StartupPreferencePage_3, STARTUP_ACTION_POPULATE}, 45 {TeamUIMessages.StartupPreferencePage_4, STARTUP_ACTION_SYNCHRONIZE}, 46 {TeamUIMessages.StartupPreferencePage_5, STARTUP_ACTION_NONE} 47 }, 48 getFieldEditorParent(), true )); 49 } 50 51 } 52 | Popular Tags |