1 11 package org.eclipse.team.internal.ccvs.ui; 12 13 import org.eclipse.jface.preference.RadioGroupFieldEditor; 14 15 public class UpdateMergePreferencePage extends CVSFieldEditorPreferencePage { 16 17 private RadioGroupFieldEditor updateStyle; 18 private RadioGroupFieldEditor updatePreviewStyle; 19 20 protected String getPageHelpContextId() { 21 return IHelpContextIds.UPDATE_MERGE_PREFERENCE_PAGE; 22 } 23 24 protected String getPageDescription() { 25 return null; 26 } 27 28 protected void createFieldEditors() { 29 30 updateStyle = new RadioGroupFieldEditor( 31 ICVSUIConstants.PREF_UPDATE_HANDLING, 32 CVSUIMessages.WorkInProgressPage_0, 33 1, 34 new String [][] { 35 new String [] {CVSUIMessages.WorkInProgressPage_1, ICVSUIConstants.PREF_UPDATE_HANDLING_PREVIEW}, 36 new String [] {CVSUIMessages.WorkInProgressPage_2, ICVSUIConstants.PREF_UPDATE_HANDLING_PERFORM}, 37 new String [] {CVSUIMessages.UpdateMergePreferencePage_0, ICVSUIConstants.PREF_UPDATE_HANDLING_TRADITIONAL} 38 }, 39 getFieldEditorParent(), 40 true); 41 addField(updateStyle); 42 43 updatePreviewStyle = new RadioGroupFieldEditor( 44 ICVSUIConstants.PREF_UPDATE_PREVIEW, 45 CVSUIMessages.UpdateMergePreferencePage_1, 46 1, 47 new String [][] { 48 new String [] {CVSUIMessages.UpdateMergePreferencePage_2, ICVSUIConstants.PREF_UPDATE_PREVIEW_IN_DIALOG}, 49 new String [] {CVSUIMessages.UpdateMergePreferencePage_3, ICVSUIConstants.PREF_UPDATE_PREVIEW_IN_SYNCVIEW} 50 }, 51 getFieldEditorParent(), 52 true); 53 addField(updatePreviewStyle); 54 55 57 } 58 59 } 60 | Popular Tags |