forked from ProjetoDSL/ERDSL
-
Notifications
You must be signed in to change notification settings - Fork 0
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
- Numerous improvements and bug fixes. - Start of code-mining implementation (https://www.eclipse.org/eclipse/news/4.8/platform_isv.php)
- Loading branch information
1 parent
22eee33
commit b365fdc
Showing
110 changed files
with
2,872 additions
and
1,286 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Binary file modified
BIN
+0 Bytes
(100%)
org.xtext.unipampa.erdsl.ide/bin/org/xtext/unipampa/erdsl/ide/.ErDslIdeModule.xtendbin
Binary file not shown.
Binary file modified
BIN
+0 Bytes
(100%)
org.xtext.unipampa.erdsl.ide/bin/org/xtext/unipampa/erdsl/ide/.ErDslIdeSetup.xtendbin
Binary file not shown.
11 changes: 11 additions & 0 deletions
11
org.xtext.unipampa.erdsl.ide/bin/org/xtext/unipampa/erdsl/ide/ErDslIdeModule.xtend
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,11 @@ | ||
/* | ||
* generated by Xtext 2.25.0 | ||
*/ | ||
package org.xtext.unipampa.erdsl.ide | ||
|
||
|
||
/** | ||
* Use this class to register ide components. | ||
*/ | ||
class ErDslIdeModule extends AbstractErDslIdeModule { | ||
} |
20 changes: 20 additions & 0 deletions
20
org.xtext.unipampa.erdsl.ide/bin/org/xtext/unipampa/erdsl/ide/ErDslIdeSetup.xtend
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,20 @@ | ||
/* | ||
* generated by Xtext 2.25.0 | ||
*/ | ||
package org.xtext.unipampa.erdsl.ide | ||
|
||
import com.google.inject.Guice | ||
import org.eclipse.xtext.util.Modules2 | ||
import org.xtext.unipampa.erdsl.ErDslRuntimeModule | ||
import org.xtext.unipampa.erdsl.ErDslStandaloneSetup | ||
|
||
/** | ||
* Initialization support for running Xtext languages as language servers. | ||
*/ | ||
class ErDslIdeSetup extends ErDslStandaloneSetup { | ||
|
||
override createInjector() { | ||
Guice.createInjector(Modules2.mixin(new ErDslRuntimeModule, new ErDslIdeModule)) | ||
} | ||
|
||
} |
Binary file modified
BIN
+0 Bytes
(100%)
org.xtext.unipampa.erdsl.ide/xtend-gen/org/xtext/unipampa/erdsl/ide/.ErDslIdeModule.xtendbin
Binary file not shown.
Binary file modified
BIN
+0 Bytes
(100%)
org.xtext.unipampa.erdsl.ide/xtend-gen/org/xtext/unipampa/erdsl/ide/.ErDslIdeSetup.xtendbin
Binary file not shown.
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Binary file modified
BIN
+0 Bytes
(100%)
...t.unipampa.erdsl.tests/test-bin/org/xtext/unipampa/erdsl/tests/.ErDslParsingTest.xtendbin
Binary file not shown.
Binary file modified
BIN
+0 Bytes
(100%)
....unipampa.erdsl.tests/xtend-gen/org/xtext/unipampa/erdsl/tests/.ErDslParsingTest.xtendbin
Binary file not shown.
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Binary file removed
BIN
-761 Bytes
...a.erdsl.ui.tests/test-bin/org/xtext/unipampa/erdsl/ui/tests/ErDslUiInjectorProvider.class
Binary file not shown.
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Binary file modified
BIN
+0 Bytes
(100%)
org.xtext.unipampa.erdsl.ui/bin/org/xtext/unipampa/erdsl/ui/.ErDslUiModule.xtendbin
Binary file not shown.
Binary file added
BIN
+486 Bytes
....erdsl.ui/bin/org/xtext/unipampa/erdsl/ui/codemining/.ErDslCodeMiningProvider.java._trace
Binary file not shown.
Binary file added
BIN
+2.7 KB
...mpa.erdsl.ui/bin/org/xtext/unipampa/erdsl/ui/codemining/.ErDslCodeMiningProvider.xtendbin
Binary file not shown.
Binary file added
BIN
+1.3 KB
...nipampa.erdsl.ui/bin/org/xtext/unipampa/erdsl/ui/codemining/ErDslCodeMiningProvider.class
Binary file not shown.
38 changes: 38 additions & 0 deletions
38
...nipampa.erdsl.ui/bin/org/xtext/unipampa/erdsl/ui/codemining/ErDslCodeMiningProvider.xtend
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,38 @@ | ||
package org.xtext.unipampa.erdsl.ui.codemining | ||
|
||
import org.eclipse.jface.text.BadLocationException | ||
import org.eclipse.jface.text.IDocument | ||
import org.eclipse.jface.text.codemining.ICodeMining | ||
import org.eclipse.xtext.resource.XtextResource | ||
import org.eclipse.xtext.ui.codemining.AbstractXtextCodeMiningProvider | ||
import org.eclipse.xtext.util.CancelIndicator | ||
import org.eclipse.xtext.util.IAcceptor | ||
import org.xtext.unipampa.erdsl.erDsl.Entity | ||
import org.xtext.unipampa.erdsl.erDsl.ERModel | ||
|
||
class ErDslCodeMiningProvider extends AbstractXtextCodeMiningProvider { | ||
override void createCodeMinings(IDocument document, XtextResource resource, CancelIndicator indicator, | ||
IAcceptor<? super ICodeMining> acceptor) throws BadLocationException { | ||
|
||
// TODO: implement me | ||
// use acceptor.accept(super.createNewLineHeaderCodeMining(...)) to add a new code mining to the final list | ||
|
||
|
||
// val modeloER = resource.contents.get(0) as ERModel | ||
// var ent = 0 | ||
// var rel = 0 | ||
// | ||
// for (e : modeloER.entities) { | ||
// ent = ent + 1 | ||
// } | ||
// | ||
// for (e : modeloER.relations) { | ||
// rel = rel + 1 | ||
// } | ||
// | ||
// acceptor.accept(createNewLineHeaderCodeMining(0, document, " There are ["+ ent.toString +"] modeled entity(ies) and ["+ rel.toString +"] relationship(s) ")) | ||
// | ||
// ent = 0 | ||
// rel = 0 | ||
} | ||
} |
Binary file modified
BIN
+0 Bytes
(100%)
...pa.erdsl.ui/bin/org/xtext/unipampa/erdsl/ui/contentassist/.ErDslProposalProvider.xtendbin
Binary file not shown.
Binary file modified
BIN
+0 Bytes
(100%)
...erdsl.ui/bin/org/xtext/unipampa/erdsl/ui/labeling/.ErDslDescriptionLabelProvider.xtendbin
Binary file not shown.
Binary file modified
BIN
+0 Bytes
(100%)
...t.unipampa.erdsl.ui/bin/org/xtext/unipampa/erdsl/ui/labeling/.ErDslLabelProvider.xtendbin
Binary file not shown.
Binary file modified
BIN
+0 Bytes
(100%)
...pampa.erdsl.ui/bin/org/xtext/unipampa/erdsl/ui/outline/.ErDslOutlineTreeProvider.xtendbin
Binary file not shown.
Binary file modified
BIN
+0 Bytes
(100%)
...nipampa.erdsl.ui/bin/org/xtext/unipampa/erdsl/ui/quickfix/.ErDslQuickfixProvider.xtendbin
Binary file not shown.
Binary file modified
BIN
-304 Bytes
(79%)
org.xtext.unipampa.erdsl.ui/bin/org/xtext/unipampa/erdsl/ui/wizard/.ERtextFile.java._trace
Binary file not shown.
Binary file modified
BIN
-47 Bytes
(99%)
...xtext.unipampa.erdsl.ui/bin/org/xtext/unipampa/erdsl/ui/wizard/.ERtextProject.java._trace
Binary file not shown.
Binary file modified
BIN
-375 Bytes
(92%)
...pampa.erdsl.ui/bin/org/xtext/unipampa/erdsl/ui/wizard/.ErDslFileTemplateProvider.xtendbin
Binary file not shown.
Binary file modified
BIN
-26 Bytes
(100%)
...pa.erdsl.ui/bin/org/xtext/unipampa/erdsl/ui/wizard/.ErDslProjectTemplateProvider.xtendbin
Binary file not shown.
Binary file modified
BIN
-4.14 KB
(47%)
org.xtext.unipampa.erdsl.ui/bin/org/xtext/unipampa/erdsl/ui/wizard/ERtextFile.class
Binary file not shown.
Binary file modified
BIN
-1.32 KB
(87%)
org.xtext.unipampa.erdsl.ui/bin/org/xtext/unipampa/erdsl/ui/wizard/ERtextProject.class
Binary file not shown.
Oops, something went wrong.