1 18 package org.visualcontent.repository.remoterep.preferences; 19 20 import org.eclipse.jface.preference.*; 21 import org.eclipse.ui.IWorkbenchPreferencePage; 22 import org.eclipse.ui.IWorkbench; 23 import org.visualcontent.repository.remoterep.Model3JackrabbitRepositoryPlugin; 24 25 38 39 public class Model3JCRPreferencePage 40 extends FieldEditorPreferencePage 41 implements IWorkbenchPreferencePage { 42 43 public Model3JCRPreferencePage() { 44 super(GRID); 45 setPreferenceStore(Model3JackrabbitRepositoryPlugin.getDefault().getPreferenceStore()); 46 setDescription("The preferences to connect to a remote JCR server per RMI."); 47 } 48 49 55 public void createFieldEditors() { 56 addField( 57 new StringFieldEditor(PreferenceConstants.P_HOST, "&Host:", getFieldEditorParent())); 58 addField( 59 new StringFieldEditor(PreferenceConstants.P_PORT, "&Post:", getFieldEditorParent())); 60 addField( 61 new StringFieldEditor(PreferenceConstants.P_REPOSITORY_NAME, "&Repository Name:", getFieldEditorParent())); 62 } 63 64 67 public void init(IWorkbench workbench) { 68 } 69 70 } | Popular Tags |