1 /*******************************************************************************
\r
2 * Copyright (c) 2013, 2015 Association for Decentralized Information Management in
\r
4 * All rights reserved. This program and the accompanying materials
\r
5 * are made available under the terms of the Eclipse Public License v1.0
\r
6 * which accompanies this distribution, and is available at
\r
7 * http://www.eclipse.org/legal/epl-v10.html
\r
10 * VTT Technical Research Centre of Finland - initial API and implementation
\r
11 * Semantum Oy - adaption to SCLModuleEditor/TextEditor
\r
12 *******************************************************************************/
\r
13 package org.simantics.modeling.ui.componentTypeEditor;
\r
15 import org.eclipse.swt.widgets.Display;
\r
16 import org.eclipse.ui.PlatformUI;
\r
17 import org.simantics.scl.ui.editor.SCLSourceViewerConfigurationNew;
\r
20 * @author Antti Villberg
\r
22 public class SymbolDropHandlerEditor extends SCLModuleEditor {
\r
24 public SymbolDropHandlerEditor() {
\r
29 protected void preInitialize() {
\r
30 Display display = PlatformUI.getWorkbench().getDisplay();
\r
31 SCLSourceViewerConfigurationNew sourceViewerConfiguration = new SCLSourceViewerConfigurationNew(resourceManager);
\r
32 setDocumentProvider(new SymbolDropHandlerDocumentProvider(sourceViewerConfiguration, display, this));
\r
33 setSourceViewerConfiguration(sourceViewerConfiguration);
\r