/*******************************************************************************
 * 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 com.googlecode.goclipse.editors.GoEditor;
import com.googlecode.goclipse.ui.editor.GoEditorSourceViewerConfiguration;
import com.googlecode.goclipse.ui.editor.GoSimpleSourceViewerConfiguration;
import com.googlecode.goclipse.ui.editor.actions.GoEditorContextMenuContributor;

public class EditorSettings_Actual {
	
	public static final String EDITOR_ID = "com.googlecode.goclipse.editors.Editor";
	public static final String EDITOR_CONTEXT_ID = "com.googlecode.goclipse.ui.Contexts.Editor";
	
	public static final String EDITOR_CODE_TARGET = "com.googlecode.goclipse.ui.Editor.CodeTarget";
	
	public static GoEditorSourceViewerConfiguration createSourceViewerConfiguration(
			IPreferenceStore preferenceStore, AbstractLangEditor editor) {
		IColorManager colorManager = LangUIPlugin.getInstance().getColorManager();
		return new GoEditorSourceViewerConfiguration(preferenceStore, colorManager, (GoEditor) editor);
	}
	
	public static GoSimpleSourceViewerConfiguration createSimpleSourceViewerConfiguration(
			IPreferenceStore preferenceStore, IColorManager colorManager) {
		return new GoSimpleSourceViewerConfiguration(preferenceStore, colorManager, null);
	}
	
	public static Class<GoEditor> editorKlass() {
		return GoEditor.class;
	}
	
	/* ----------------- actions ----------------- */
	
	public static interface EditorCommandIds {
		
		public static final String OpenDef_ID = "com.googlecode.goclipse.ui.commands.openDefinition";
		
		public static final String GoToMatchingBracket = "com.googlecode.goclipse.ui.commands.GoToMatchingBracket";
		public static final String ToggleComment = "com.googlecode.goclipse.ui.commands.ToggleComment";
		
	}
	
	public static LangEditorContextMenuContributor createCommandsContribHelper(IServiceLocator svcLocator) {
		return new GoEditorContextMenuContributor(svcLocator);
	}
	
}

@@ -1321,35 +1321,34 @@
 D = 
-%22com.googlecode.goclipse.ui
+LangUIPlugin.PLUGIN_ID + %22
 .Con
@@ -1419,35 +1419,34 @@
 T = 
-%22com.googlecode.goclipse.ui
+LangUIPlugin.PLUGIN_ID + %22
 .Edi
@@ -2281,35 +2281,34 @@
 D = 
-%22com.googlecode.goclipse.ui
+LangUIPlugin.PLUGIN_ID + %22
 .com
@@ -2390,35 +2390,34 @@
 t = 
-%22com.googlecode.goclipse.ui
+LangUIPlugin.PLUGIN_ID + %22
 .com
@@ -2494,35 +2494,34 @@
 t = 
-%22com.googlecode.goclipse.ui
+LangUIPlugin.PLUGIN_ID + %22
 .com

refactor EditorSettings_Actual