Skip to main content
aboutsummaryrefslogtreecommitdiffstats
blob: 662de5ee355c38d7a124c36a98d6d0ad92998fce (plain) (blame)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
/*******************************************************************************
 * Copyright (c) 2010 protos software gmbh (http://www.protos.de).
 * 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
 *******************************************************************************/

package org.eclipse.etrice.ui.structure.link;


import org.eclipse.etrice.ui.common.base.refactoring.DiagramReferenceUpdater;
import org.eclipse.etrice.ui.common.base.support.DiagramAccessBase;
import org.eclipse.etrice.ui.structure.DiagramAccess;
import org.eclipse.xtext.resource.generic.AbstractGenericResourceRuntimeModule;
import org.eclipse.xtext.ui.refactoring.IReferenceUpdater;

/**
 * @author Henrik Rentz-Reichert - initial contribution and API
 *
 */
public class ResourceModule extends AbstractGenericResourceRuntimeModule {

	/* (non-Javadoc)
	 * @see org.eclipse.xtext.resource.generic.AbstractGenericResourceRuntimeModule#getLanguageName()
	 */
	@Override
	protected String getLanguageName() {
		return "org.eclipse.etrice.ui.structure.editor.StructureEditor";
	}

	/* (non-Javadoc)
	 * @see org.eclipse.xtext.resource.generic.AbstractGenericResourceRuntimeModule#getFileExtensions()
	 */
	@Override
	protected String getFileExtensions() {
		return "structure";
	}
	
	public Class<? extends IReferenceUpdater> bindIReferenceUpdater() {
		return DiagramReferenceUpdater.class;
	}
	
	public Class<? extends DiagramAccessBase> bindDiagramAccess() {
		return DiagramAccess.class;
	}

}

Back to the top