Java tutorial
/** * Copyright 2013 Nitor Creations Oy * * Licensed under the Apache License, Version 2.0 (the "License"); * you may not use this file except in compliance with the License. * You may obtain a copy of the License at * * http://www.apache.org/licenses/LICENSE-2.0 * * Unless required by applicable law or agreed to in writing, software * distributed under the License is distributed on an "AS IS" BASIS, * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. * See the License for the specific language governing permissions and * limitations under the License. */ package com.nitorcreations.robotframework.eclipseide.preferences; import org.eclipse.jface.preference.FieldEditorPreferencePage; import org.eclipse.jface.preference.StringFieldEditor; import org.eclipse.ui.IWorkbench; import org.eclipse.ui.IWorkbenchPreferencePage; import com.nitorcreations.robotframework.eclipseide.Activator; public class TableNamingPreferencePage extends FieldEditorPreferencePage implements IWorkbenchPreferencePage { public TableNamingPreferencePage() { super(GRID); setPreferenceStore(Activator.getDefault().getPreferenceStore()); setDescription("Preferred formatting of table names for the Robot Framework editor"); } @Override public void createFieldEditors() { addField(new StringFieldEditor(PreferenceConstants.P_VARIABLE_TABLE_FORMAT, "&Variable table:", getFieldEditorParent())); addField(new StringFieldEditor(PreferenceConstants.P_SETTING_TABLE_FORMAT, "&Setting/Metadata table:", getFieldEditorParent())); addField(new StringFieldEditor(PreferenceConstants.P_TESTCASE_TABLE_FORMAT, "&Testcase table:", getFieldEditorParent())); addField(new StringFieldEditor(PreferenceConstants.P_KEYWORD_TABLE_FORMAT, "User &keyword table:", getFieldEditorParent())); } @Override public void init(IWorkbench workbench) { } }