Last change
on this file since 304 was
304,
checked in by boris, 19 years ago
|
- implemented a method for content assistant to figure our which source file it is invoked on
|
File size:
1.2 KB
|
Line | |
---|
1 | |
---|
2 | package org.modelica.mdt.ui; |
---|
3 | |
---|
4 | import java.util.Collection; |
---|
5 | |
---|
6 | import org.eclipse.core.resources.IResource; |
---|
7 | |
---|
8 | import org.eclipse.core.runtime.PlatformObject; |
---|
9 | import org.eclipse.jface.text.IRegion; |
---|
10 | import org.modelica.mdt.core.CompilerProxy; |
---|
11 | import org.modelica.mdt.core.IModelicaElement; |
---|
12 | import org.modelica.mdt.core.IModelicaClass; |
---|
13 | import org.modelica.mdt.core.IModelicaSourceFile; |
---|
14 | import org.modelica.mdt.core.IParent; |
---|
15 | import org.modelica.mdt.core.compiler.CompilerInstantiationException; |
---|
16 | import org.modelica.mdt.core.compiler.ConnectException; |
---|
17 | |
---|
18 | public class SystemLibrary extends PlatformObject |
---|
19 | implements IModelicaElement, IParent |
---|
20 | { |
---|
21 | public String getElementName() |
---|
22 | { |
---|
23 | return "System Library"; |
---|
24 | } |
---|
25 | |
---|
26 | public IResource getResource() |
---|
27 | { |
---|
28 | return null; |
---|
29 | } |
---|
30 | |
---|
31 | public IRegion getLocation() |
---|
32 | { |
---|
33 | return null; |
---|
34 | } |
---|
35 | |
---|
36 | public String getFilePath() |
---|
37 | { |
---|
38 | return null; |
---|
39 | } |
---|
40 | |
---|
41 | public Collection<IModelicaClass> getChildren() |
---|
42 | throws ConnectException, CompilerInstantiationException |
---|
43 | { |
---|
44 | return CompilerProxy.getStandardLibrary(); |
---|
45 | } |
---|
46 | |
---|
47 | public boolean hasChildren() |
---|
48 | { |
---|
49 | return true; |
---|
50 | } |
---|
51 | |
---|
52 | public IModelicaSourceFile getSourceFile() |
---|
53 | { |
---|
54 | return null; |
---|
55 | } |
---|
56 | |
---|
57 | } |
---|
Note: See
TracBrowser
for help on using the repository browser.