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 POC: in progress model changes
- Loading branch information
Rodolfo Totaro
committed
Dec 17, 2016
1 parent
3f12f4b
commit 2e27071
Showing
11 changed files
with
165 additions
and
11 deletions.
There are no files selected for viewing
Binary file modified
BIN
+0 Bytes
(100%)
....tests/src/test/xtend-gen/org/eclipse/triquetrum/commands/tests/.TqclParsingTest.xtendbin
Binary file not shown.
34 changes: 34 additions & 0 deletions
34
...t.ui/src/main/java/org/eclipse/triquetrum/commands/ui/editor/TriquetrumCommandEditor.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,34 @@ | ||
package org.eclipse.triquetrum.commands.ui.editor; | ||
|
||
import org.eclipse.jface.text.ITextSelection; | ||
import org.eclipse.jface.viewers.ISelection; | ||
import org.eclipse.swt.SWT; | ||
import org.eclipse.swt.events.KeyAdapter; | ||
import org.eclipse.swt.events.KeyEvent; | ||
import org.eclipse.swt.widgets.Composite; | ||
import org.eclipse.xtext.ui.editor.XtextEditor; | ||
import org.eclipse.xtext.ui.editor.model.IXtextDocument; | ||
|
||
public class TriquetrumCommandEditor extends XtextEditor { | ||
|
||
@Override | ||
public void createPartControl(Composite parent) { | ||
super.createPartControl(parent); | ||
getSourceViewer().getTextWidget().addKeyListener(new KeyAdapter() { | ||
|
||
@Override | ||
public void keyPressed(KeyEvent e) { | ||
|
||
if(((e.stateMask & SWT.CTRL) == SWT.CTRL) && (e.keyCode == SWT.CR)) | ||
{ | ||
IXtextDocument document = getDocument(); | ||
|
||
|
||
} | ||
|
||
} | ||
}); | ||
|
||
} | ||
|
||
} |
Binary file modified
BIN
+0 Bytes
(100%)
...nds.xtext.ui/src/main/xtend-gen/org/eclipse/triquetrum/commands/ui/.TqclUiModule.xtendbin
Binary file not shown.
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
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%)
...ands.xtext/src/main/xtend-gen/org/eclipse/triquetrum/commands/.TqclRuntimeModule.xtendbin
Binary file not shown.
Binary file modified
BIN
+0 Bytes
(100%)
...ds.xtext/src/main/xtend-gen/org/eclipse/triquetrum/commands/.TqclStandaloneSetup.xtendbin
Binary file not shown.