forked from eclipse-archived/triquetrum
-
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.
eclipse-archived#190 In progress TqCL - syntax (insert) and library s…
…ervices
- Loading branch information
Showing
27 changed files
with
243 additions
and
133 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
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
25 changes: 25 additions & 0 deletions
25
...trum.commands.xtext.ui/src/main/java/org/eclipse/triquetrum/commands/ui/TqclUiModule.java
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,25 @@ | ||
/******************************************************************************* | ||
* Copyright (c) 2016 Totaro Rodolfo | ||
* All rights reserved. This program and the accompanying materials | ||
* are made available under the terms of the Eclipse Public License v1.0 | ||
* which accompanies this distribution, and is available at | ||
* http://www.eclipse.org/legal/epl-v10.html | ||
* | ||
* generated by Xtext 2.10.0 | ||
* | ||
* Contributors: | ||
* Rodolfo Totaro - initial API and implementation and/or initial documentation | ||
*******************************************************************************/ | ||
package org.eclipse.triquetrum.commands.ui; | ||
|
||
import org.eclipse.ui.plugin.AbstractUIPlugin; | ||
|
||
/** | ||
* Use this class to register components to be used within the Eclipse IDE. | ||
*/ | ||
public class TqclUiModule extends AbstractTqclUiModule { | ||
|
||
public TqclUiModule(AbstractUIPlugin plugin) { | ||
super(plugin); | ||
} | ||
} |
13 changes: 0 additions & 13 deletions
13
...rum.commands.xtext.ui/src/main/java/org/eclipse/triquetrum/commands/ui/TqclUiModule.xtend
This file was deleted.
Oops, something went wrong.
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
-1.99 KB
...nds.xtext.ui/src/main/xtend-gen/org/eclipse/triquetrum/commands/ui/.TqclUiModule.xtendbin
Binary file not shown.
19 changes: 0 additions & 19 deletions
19
...commands.xtext.ui/src/main/xtend-gen/org/eclipse/triquetrum/commands/ui/TqclUiModule.java
This file was deleted.
Oops, something went wrong.
Binary file modified
BIN
+0 Bytes
(100%)
...nd-gen/org/eclipse/triquetrum/commands/ui/labeling/.TqclDescriptionLabelProvider.xtendbin
Binary file not shown.
Binary file modified
BIN
+0 Bytes
(100%)
...rc/main/xtend-gen/org/eclipse/triquetrum/commands/ui/labeling/.TqclLabelProvider.xtendbin
Binary file not shown.
Binary file modified
BIN
+0 Bytes
(100%)
...in/xtend-gen/org/eclipse/triquetrum/commands/ui/outline/.TqclOutlineTreeProvider.xtendbin
Binary file not shown.
Binary file modified
BIN
+0 Bytes
(100%)
...main/xtend-gen/org/eclipse/triquetrum/commands/ui/quickfix/.TqclQuickfixProvider.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
Original file line number | Diff line number | Diff line change |
---|---|---|
|
@@ -200,4 +200,6 @@ public Class<? extends IGenerator2> bindIGenerator2() { | |
return TqclGenerator.class; | ||
} | ||
|
||
|
||
|
||
} |
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
26 changes: 26 additions & 0 deletions
26
...etrum.commands.xtext/src/main/java/org/eclipse/triquetrum/commands/TqclRuntimeModule.java
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,26 @@ | ||
/******************************************************************************* | ||
* Copyright (c) 2016 Totaro Rodolfo | ||
* All rights reserved. This program and the accompanying materials | ||
* are made available under the terms of the Eclipse Public License v1.0 | ||
* which accompanies this distribution, and is available at | ||
* http://www.eclipse.org/legal/epl-v10.html | ||
* | ||
* generated by Xtext 2.10.0 | ||
* | ||
* Contributors: | ||
* Rodolfo Totaro - initial API and implementation and/or initial documentation | ||
*******************************************************************************/ | ||
package org.eclipse.triquetrum.commands; | ||
|
||
import org.eclipse.xtext.naming.IQualifiedNameProvider; | ||
|
||
/** | ||
* Use this class to register components to be used at runtime / without the Equinox extension registry. | ||
*/ | ||
public class TqclRuntimeModule extends AbstractTqclRuntimeModule { | ||
|
||
@Override | ||
public Class<? extends IQualifiedNameProvider> bindIQualifiedNameProvider() { | ||
return org.eclipse.triquetrum.commands.scoping.TqclQualifiedNameProvider.class; | ||
} | ||
} |
11 changes: 0 additions & 11 deletions
11
...trum.commands.xtext/src/main/java/org/eclipse/triquetrum/commands/TqclRuntimeModule.xtend
This file was deleted.
Oops, something went wrong.
24 changes: 24 additions & 0 deletions
24
...rum.commands.xtext/src/main/java/org/eclipse/triquetrum/commands/TqclStandaloneSetup.java
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,24 @@ | ||
/******************************************************************************* | ||
* Copyright (c) 2016 Totaro Rodolfo | ||
* All rights reserved. This program and the accompanying materials | ||
* are made available under the terms of the Eclipse Public License v1.0 | ||
* which accompanies this distribution, and is available at | ||
* http://www.eclipse.org/legal/epl-v10.html | ||
* | ||
* generated by Xtext 2.10.0 | ||
* | ||
* Contributors: | ||
* Rodolfo Totaro - initial API and implementation and/or initial documentation | ||
*******************************************************************************/ | ||
package org.eclipse.triquetrum.commands; | ||
|
||
|
||
/** | ||
* Initialization support for running Xtext languages without Equinox extension registry. | ||
*/ | ||
public class TqclStandaloneSetup extends TqclStandaloneSetupGenerated { | ||
|
||
public static void doSetup() { | ||
new TqclStandaloneSetup().createInjectorAndDoEMFRegistration(); | ||
} | ||
} |
15 changes: 0 additions & 15 deletions
15
...um.commands.xtext/src/main/java/org/eclipse/triquetrum/commands/TqclStandaloneSetup.xtend
This file was deleted.
Oops, something went wrong.
28 changes: 28 additions & 0 deletions
28
...text/src/main/java/org/eclipse/triquetrum/commands/scoping/TqclQualifiedNameProvider.java
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,28 @@ | ||
package org.eclipse.triquetrum.commands.scoping; | ||
|
||
import org.eclipse.emf.ecore.EObject; | ||
import org.eclipse.triquetrum.commands.tqcl.Insert; | ||
import org.eclipse.triquetrum.commands.validation.TqCLUtils; | ||
import org.eclipse.xtext.naming.DefaultDeclarativeQualifiedNameProvider; | ||
import org.eclipse.xtext.naming.QualifiedName; | ||
|
||
public class TqclQualifiedNameProvider extends DefaultDeclarativeQualifiedNameProvider { | ||
|
||
@Override | ||
public QualifiedName apply(EObject eObject) { | ||
// if (eObject instanceof Insert) { | ||
// return getFullyQualifiedName(eObject); | ||
// } | ||
return super.apply(eObject); | ||
} | ||
|
||
@Override | ||
public QualifiedName getFullyQualifiedName(EObject eObject) { | ||
// if (eObject instanceof Insert) { | ||
// Insert insert = (Insert) eObject; | ||
// return QualifiedName.create(TqCLUtils.cleanEntityName(insert.getName())); | ||
// } | ||
return super.getFullyQualifiedName(eObject); | ||
} | ||
|
||
} |
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 removed
BIN
-1.59 KB
...ands.xtext/src/main/xtend-gen/org/eclipse/triquetrum/commands/.TqclRuntimeModule.xtendbin
Binary file not shown.
Binary file removed
BIN
-1.86 KB
...ds.xtext/src/main/xtend-gen/org/eclipse/triquetrum/commands/.TqclStandaloneSetup.xtendbin
Binary file not shown.
13 changes: 0 additions & 13 deletions
13
....commands.xtext/src/main/xtend-gen/org/eclipse/triquetrum/commands/TqclRuntimeModule.java
This file was deleted.
Oops, something went wrong.
17 changes: 0 additions & 17 deletions
17
...ommands.xtext/src/main/xtend-gen/org/eclipse/triquetrum/commands/TqclStandaloneSetup.java
This file was deleted.
Oops, something went wrong.
Oops, something went wrong.