source: trunk/org.modelica.mdt.ui/src/org/modelica/mdt/ui/SystemLibrary.java @ 304

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
2package org.modelica.mdt.ui;
3
4import java.util.Collection;
5
6import org.eclipse.core.resources.IResource;
7
8import org.eclipse.core.runtime.PlatformObject;
9import org.eclipse.jface.text.IRegion;
10import org.modelica.mdt.core.CompilerProxy;
11import org.modelica.mdt.core.IModelicaElement;
12import org.modelica.mdt.core.IModelicaClass;
13import org.modelica.mdt.core.IModelicaSourceFile;
14import org.modelica.mdt.core.IParent;
15import org.modelica.mdt.core.compiler.CompilerInstantiationException;
16import org.modelica.mdt.core.compiler.ConnectException;
17
18public 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.