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:
771 bytes
|
Line | |
---|
1 | package com.framsticks.framclipse.resource; |
---|
2 | |
---|
3 | import org.eclipse.emf.ecore.resource.Resource; |
---|
4 | import org.eclipse.xtext.resource.IResourceDescription; |
---|
5 | import org.eclipse.xtext.resource.impl.DefaultResourceDescriptionManager; |
---|
6 | |
---|
7 | import com.google.inject.Provider; |
---|
8 | |
---|
9 | public class FramScriptResourceDescriptionManager extends |
---|
10 | DefaultResourceDescriptionManager { |
---|
11 | |
---|
12 | private static final String CACHE_KEY = FramScriptResourceDescriptionManager.class.getName() + "#getResourceDescription"; |
---|
13 | |
---|
14 | public IResourceDescription getResourceDescription(final Resource resource) { |
---|
15 | return getCache().get(CACHE_KEY, resource, new Provider<IResourceDescription>(){ |
---|
16 | public IResourceDescription get() { |
---|
17 | return new FramScriptResourceDescription(resource, getNameProvider()); |
---|
18 | }}); |
---|
19 | } |
---|
20 | |
---|
21 | } |
---|
Note: See
TracBrowser
for help on using the repository browser.