| /******************************************************************************* |
| * Copyright (c) 2014, 2019 Willink Transformations and others. |
| * All rights reserved. This program and the accompanying materials |
| * are made available under the terms of the Eclipse Public License v2.0 |
| * which accompanies this distribution, and is available at |
| * http://www.eclipse.org/legal/epl-v20.html |
| * |
| * Contributors: |
| * E.D.Willink - initial API and implementation |
| *******************************************************************************/ |
| package org.eclipse.ocl.xtext.oclinecore.ui; |
| |
| import org.eclipse.jdt.annotation.NonNull; |
| import org.eclipse.ocl.xtext.base.ui.BaseEditor; |
| import org.eclipse.ocl.xtext.oclinecore.ui.internal.OCLinEcoreActivator; |
| |
| public class OCLinEcoreEditor extends BaseEditor |
| { |
| public static final String EDITOR_ID = OCLinEcoreActivator.ORG_ECLIPSE_OCL_XTEXT_OCLINECORE_OCLINECORE; |
| |
| public OCLinEcoreEditor() { |
| super(); |
| } |
| |
| @Override |
| public @NonNull String getMarkerId() { |
| return OCLinEcoreUiModule.MARKER_ID; |
| } |
| |
| @Override |
| protected void initializeEditor() { |
| super.initializeEditor(); |
| setEditorContextMenuId("#OCLinEcoreEditorContext"); //$NON-NLS-1$ |
| setRulerContextMenuId("#OCLinEcoreRulerContext"); //$NON-NLS-1$ |
| // setHelpContextId(ITextEditorHelpContextIds.TEXT_EDITOR); |
| } |
| } |