Last change
on this file since 453 was 453, checked in by Anya Helene Bagge, 14 years ago |
- Fix all warnings
- Move some files around
- Delete some unused files
|
File size:
1.2 KB
|
Line | |
---|
1 | package org.magnolialang.eclipse.editor;
|
---|
2 |
|
---|
3 | import org.eclipse.imp.editor.UniversalEditor;
|
---|
4 | import org.eclipse.jface.action.Action;
|
---|
5 | import org.eclipse.jface.action.IAction;
|
---|
6 | import org.eclipse.swt.widgets.Composite;
|
---|
7 | import org.eclipse.ui.texteditor.ITextEditorActionConstants;
|
---|
8 | import org.eclipse.ui.texteditor.ITextEditorActionDefinitionIds;
|
---|
9 |
|
---|
10 | public class MagnoliaEditor extends UniversalEditor {
|
---|
11 |
|
---|
12 | public MagnoliaEditor() {
|
---|
13 | super();
|
---|
14 | // used for the expression breakpoints management
|
---|
15 | //setEditorContextMenuId("rascal.editor.contextMenu");
|
---|
16 | }
|
---|
17 |
|
---|
18 | public void createPartControl(Composite parent) {
|
---|
19 | super.createPartControl(parent);
|
---|
20 | if(getParseController() != null)
|
---|
21 | ((MagnoliaParseController)getParseController()).setEditor(this);
|
---|
22 |
|
---|
23 | }
|
---|
24 | protected void createActions() {
|
---|
25 | super.createActions();
|
---|
26 |
|
---|
27 | IAction action = new Action(){/* Nothing. */};
|
---|
28 | action.setActionDefinitionId(ITextEditorActionDefinitionIds.SHOW_INFORMATION);
|
---|
29 |
|
---|
30 | setAction(ITextEditorActionConstants.SHOW_INFORMATION, action);
|
---|
31 | }
|
---|
32 |
|
---|
33 | @Override public void dispose() {
|
---|
34 | ((MagnoliaParseController)getParseController()).dispose();
|
---|
35 | super.dispose();
|
---|
36 | }
|
---|
37 | }
|
---|
Note:
See
TracBrowser
for help on using the repository browser.