/******************************************************************************* * Copyright (c) 2008, 2016 xored software, Inc. and others. * * All rights reserved. This program and the accompanying materials * are made available under the terms of the Eclipse Public License v1.0 * which accompanies this distribution, and is available at * http://www.eclipse.org/legal/epl-v10.html * * Contributors: * xored software, Inc. - initial API and Implementation (Andrei Sobolev) *******************************************************************************/ package org.eclipse.dltk.ruby.internal.core; import java.util.List; import org.eclipse.core.runtime.Preferences; import org.eclipse.core.runtime.preferences.AbstractPreferenceInitializer; import org.eclipse.dltk.compiler.task.TaskTagUtils; import org.eclipse.dltk.compiler.task.TodoTask; import org.eclipse.dltk.ruby.core.RubyPlugin; public class RubyCorePreferenceInitializer extends AbstractPreferenceInitializer { @Override public void initializeDefaultPreferences() { List<TodoTask> taskTags = TaskTagUtils.getDefaultTags(); taskTags.add(new TodoTask("OPTIMIZE", TodoTask.PRIORITY_NORMAL)); Preferences store = RubyPlugin.getDefault().getPluginPreferences(); TaskTagUtils.initializeDefaultValues(store, taskTags); } }