Skip to content

Commit 62c8631

Browse files
Ajit/eclipse (#971)
Preparing for developing a custom IDE for UDB with Eclipse.
1 parent 292b34f commit 62c8631

Some content is hidden

Large Commits have some content hidden by default. Use the searchbox below for content that may be hidden.

54 files changed

+1956
-0
lines changed

.gitignore

Lines changed: 3 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -27,3 +27,6 @@ sorbet
2727
!tools/ruby-gems/idlc/sorbet
2828
!tools/ruby-gems/udb/sorbet
2929
coverage
30+
31+
# emacs backup files
32+
*~

tools/eclipse/.gitignore

Lines changed: 23 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,23 @@
1+
# Created by https://www.toptal.com/developers/gitignore/api/eclipse
2+
### Eclipse ###
3+
# .metadata ### Git repo should be outside the Eclipse workspace!
4+
bin/
5+
tmp/
6+
*.tmp
7+
*.bak
8+
*.swp
9+
*~.nib
10+
local.properties
11+
.settings/
12+
.loadpath
13+
.recommenders
14+
15+
# External tool builders
16+
.externalToolBuilders/
17+
18+
# Created by https://www.toptal.com/developers/gitignore/api/xtext
19+
### XText ###
20+
# Those source folders can be generated by maven and Eclipse
21+
generated/
22+
src-gen/
23+
xtend-gen/

tools/eclipse/REUSE.toml

Lines changed: 7 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,7 @@
1+
version = 1
2+
3+
[[annotations]]
4+
path = "**"
5+
precedence = "closest"
6+
SPDX-FileCopyrightText = "Qualcomm Technologies, Inc. and/or its subsidiaries."
7+
SPDX-License-Identifier = "CC0-1.0"
Lines changed: 9 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,9 @@
1+
<?xml version="1.0" encoding="UTF-8"?>
2+
<classpath>
3+
<classpathentry kind="src" path="src"/>
4+
<classpathentry kind="src" path="src-gen"/>
5+
<classpathentry kind="src" path="xtend-gen"/>
6+
<classpathentry kind="con" path="org.eclipse.jdt.launching.JRE_CONTAINER/org.eclipse.jdt.internal.debug.ui.launcher.StandardVMType/JavaSE-21"/>
7+
<classpathentry kind="con" path="org.eclipse.pde.core.requiredPlugins"/>
8+
<classpathentry kind="output" path="bin"/>
9+
</classpath>
Lines changed: 34 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,34 @@
1+
<?xml version="1.0" encoding="UTF-8"?>
2+
<projectDescription>
3+
<name>org.riscv.idl.ide</name>
4+
<comment></comment>
5+
<projects>
6+
</projects>
7+
<buildSpec>
8+
<buildCommand>
9+
<name>org.eclipse.xtext.ui.shared.xtextBuilder</name>
10+
<arguments>
11+
</arguments>
12+
</buildCommand>
13+
<buildCommand>
14+
<name>org.eclipse.jdt.core.javabuilder</name>
15+
<arguments>
16+
</arguments>
17+
</buildCommand>
18+
<buildCommand>
19+
<name>org.eclipse.pde.ManifestBuilder</name>
20+
<arguments>
21+
</arguments>
22+
</buildCommand>
23+
<buildCommand>
24+
<name>org.eclipse.pde.SchemaBuilder</name>
25+
<arguments>
26+
</arguments>
27+
</buildCommand>
28+
</buildSpec>
29+
<natures>
30+
<nature>org.eclipse.xtext.ui.shared.xtextNature</nature>
31+
<nature>org.eclipse.jdt.core.javanature</nature>
32+
<nature>org.eclipse.pde.PluginNature</nature>
33+
</natures>
34+
</projectDescription>
Lines changed: 15 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,15 @@
1+
Manifest-Version: 1.0
2+
Automatic-Module-Name: org.riscv.idl.ide
3+
Bundle-ManifestVersion: 2
4+
Bundle-Name: org.riscv.idl.ide
5+
Bundle-Vendor: My Company
6+
Bundle-Version: 1.0.0.qualifier
7+
Bundle-SymbolicName: org.riscv.idl.ide; singleton:=true
8+
Bundle-ActivationPolicy: lazy
9+
Require-Bundle: org.riscv.idl,
10+
org.eclipse.xtext.ide,
11+
org.eclipse.xtext.xbase.ide,
12+
org.antlr.runtime;bundle-version="[3.2.0,3.2.1)"
13+
Bundle-RequiredExecutionEnvironment: JavaSE-21
14+
Export-Package: org.riscv.idl.ide.contentassist.antlr,
15+
org.riscv.idl.ide.contentassist.antlr.internal
Lines changed: 6 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,6 @@
1+
source.. = src/,\
2+
src-gen/,\
3+
xtend-gen/
4+
bin.includes = .,\
5+
META-INF/
6+
bin.excludes = **/*.xtend
Lines changed: 11 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,11 @@
1+
/*
2+
* generated by Xtext 2.39.0
3+
*/
4+
package org.riscv.idl.ide;
5+
6+
7+
/**
8+
* Use this class to register ide components.
9+
*/
10+
public class IdlIdeModule extends AbstractIdlIdeModule {
11+
}
Lines changed: 22 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,22 @@
1+
/*
2+
* generated by Xtext 2.39.0
3+
*/
4+
package org.riscv.idl.ide;
5+
6+
import com.google.inject.Guice;
7+
import com.google.inject.Injector;
8+
import org.eclipse.xtext.util.Modules2;
9+
import org.riscv.idl.IdlRuntimeModule;
10+
import org.riscv.idl.IdlStandaloneSetup;
11+
12+
/**
13+
* Initialization support for running Xtext languages as language servers.
14+
*/
15+
public class IdlIdeSetup extends IdlStandaloneSetup {
16+
17+
@Override
18+
public Injector createInjector() {
19+
return Guice.createInjector(Modules2.mixin(new IdlRuntimeModule(), new IdlIdeModule()));
20+
}
21+
22+
}
Lines changed: 21 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,21 @@
1+
<?xml version="1.0" encoding="UTF-8"?>
2+
<classpath>
3+
<classpathentry kind="src" output="test-bin" path="src">
4+
<attributes>
5+
<attribute name="test" value="true"/>
6+
</attributes>
7+
</classpathentry>
8+
<classpathentry kind="src" output="test-bin" path="src-gen">
9+
<attributes>
10+
<attribute name="test" value="true"/>
11+
</attributes>
12+
</classpathentry>
13+
<classpathentry kind="src" output="test-bin" path="xtend-gen">
14+
<attributes>
15+
<attribute name="test" value="true"/>
16+
</attributes>
17+
</classpathentry>
18+
<classpathentry kind="con" path="org.eclipse.jdt.launching.JRE_CONTAINER/org.eclipse.jdt.internal.debug.ui.launcher.StandardVMType/JavaSE-21"/>
19+
<classpathentry kind="con" path="org.eclipse.pde.core.requiredPlugins"/>
20+
<classpathentry kind="output" path="bin"/>
21+
</classpath>

0 commit comments

Comments
 (0)