Last change
on this file since 437 was
437,
checked in by Mateusz Poszwa, 9 years ago
|
Added Framclipse as developed by Bartosz Kukawka and Tomek Maciejewski in 2010
|
-
Property svn:eol-style set to
native
|
File size:
504 bytes
|
Line | |
---|
1 | package com.framsticks.framclipse.scoping; |
---|
2 | |
---|
3 | import org.eclipse.emf.ecore.EObject; |
---|
4 | import org.eclipse.xtext.scoping.impl.ImportUriResolver; |
---|
5 | |
---|
6 | import com.framsticks.framclipse.framScript.Header; |
---|
7 | |
---|
8 | public class FramScriptImportUriResolver extends ImportUriResolver { |
---|
9 | @Override |
---|
10 | public String apply(EObject from) { |
---|
11 | if (from instanceof Header) { |
---|
12 | Header header = (Header) from; |
---|
13 | if (header.getName().equals("expdef:")) { |
---|
14 | return header.getValue() + ".expdef"; |
---|
15 | } |
---|
16 | } |
---|
17 | return super.apply(from); |
---|
18 | } |
---|
19 | } |
---|
Note: See
TracBrowser
for help on using the repository browser.