/*******************************************************************************
 * Copyright (c) 2014, 2014 IBM Corporation 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:
 *     Bruno Medeiros - initial API and implementation
 *******************************************************************************/
package melnorme.lang.ide.ui;

import melnorme.lang.ide.ui.editor.AbstractLangEditor;
import melnorme.lang.ide.ui.editor.LangEditorContextMenuContributor;

import org.eclipse.cdt.ui.text.IColorManager;
import org.eclipse.jface.preference.IPreferenceStore;
import org.eclipse.ui.services.IServiceLocator;

import LANG_PROJECT_ID.ide.ui.editor.LANGUAGE_Editor;
import LANG_PROJECT_ID.ide.ui.editor.LANGUAGE_SimpleSourceViewerConfiguration;
import LANG_PROJECT_ID.ide.ui.editor.LANGUAGE_SourceViewerConfiguration;

public class EditorSettings_Actual {
	
	public static final String EDITOR_ID = "LANG_PROJECT_ID.ide.ui.editor.LANGUAGE_Editor";
	public static final String EDITOR_CONTEXT_ID = "LANG_PROJECT_ID.ide.ui.Contexts.Editor";
	
	public static final String EDITOR_CODE_TARGET = "LANG_PROJECT_ID.ide.ui.Editor.HyperlinkCodeTarget";
	
	public static LANGUAGE_SourceViewerConfiguration createSourceViewerConfiguration(
			IPreferenceStore preferenceStore, AbstractLangEditor editor) {
		IColorManager colorManager = LangUIPlugin.getInstance().getColorManager();
		return new LANGUAGE_SourceViewerConfiguration(preferenceStore, colorManager, editor);
	}
	
	public static LANGUAGE_SimpleSourceViewerConfiguration createSimpleSourceViewerConfiguration(
			IPreferenceStore preferenceStore, IColorManager colorManager) {
		return new LANGUAGE_SimpleSourceViewerConfiguration(preferenceStore, colorManager);
	}
	
	public static Class<LANGUAGE_Editor> editorKlass() {
		return LANGUAGE_Editor.class;
	}
	
	/* ----------------- actions ----------------- */
	
	public static interface EditorCommandIds {
		
		public static final String OpenDef_ID = "LANG_PROJECT_ID.ide.ui.commands.openDefinition";
		
		public static final String GoToMatchingBracket = "LANG_PROJECT_ID.ide.ui.commands.GoToMatchingBracket";
		public static final String ToggleComment = "LANG_PROJECT_ID.ide.ui.commands.ToggleComment";
		
	}
	
	public static LangEditorContextMenuContributor createCommandsContribHelper(IServiceLocator svcLocator) {
		return new LangEditorContextMenuContributor(svcLocator) { };
	}
	
}
@@ -1149,39 +1149,42 @@
 OR_ID = 
-%22LANG_PROJECT_ID.ide.ui
+LangUIPlugin.PLUGIN_ID + %22
 .editor.
@@ -1250,39 +1250,42 @@
 XT_ID = 
-%22LANG_PROJECT_ID.ide.ui
+LangUIPlugin.PLUGIN_ID + %22
 .Context
@@ -1348,39 +1348,42 @@
 ARGET = 
-%22LANG_PROJECT_ID.ide.ui
+LangUIPlugin.PLUGIN_ID + %22
 .Editor.
@@ -2232,39 +2232,42 @@
 ef_ID = 
-%22LANG_PROJECT_ID.ide.ui
+LangUIPlugin.PLUGIN_ID + %22
 .command
@@ -2341,39 +2341,42 @@
 acket = 
-%22LANG_PROJECT_ID.ide.ui
+LangUIPlugin.PLUGIN_ID + %22
 .command
@@ -2449,31 +2449,34 @@
 t = 
-%22LANG_PROJECT_ID.ide.ui
+LangUIPlugin.PLUGIN_ID + %22
 .com

refactor EditorSettings_Actual