Changeset 438 for java/Framclipse/com.framsticks.framclipse.ui/src/com
- Timestamp:
- 10/18/15 23:05:09 (9 years ago)
- Location:
- java/Framclipse/com.framsticks.framclipse.ui/src/com/framsticks/framclipse/ui
- Files:
-
- 1 added
- 2 deleted
- 2 edited
Legend:
- Unmodified
- Added
- Removed
-
java/Framclipse/com.framsticks.framclipse.ui/src/com/framsticks/framclipse/ui/FramScriptSourceViewerConfiguration.java
r437 r438 12 12 import org.eclipse.jface.text.source.ISourceViewer; 13 13 import org.eclipse.swt.widgets.Shell; 14 import org.eclipse.xtext.parsetree.AbstractNode; 15 import org.eclipse.xtext.parsetree.CompositeNode; 16 import org.eclipse.xtext.parsetree.NodeUtil; 17 import org.eclipse.xtext.parsetree.ParseTreeUtil; 14 import org.eclipse.xtext.nodemodel.ICompositeNode; 15 import org.eclipse.xtext.nodemodel.ILeafNode; 16 import org.eclipse.xtext.nodemodel.util.NodeModelUtils; 18 17 import org.eclipse.xtext.resource.XtextResource; 19 18 import org.eclipse.xtext.ui.editor.XtextSourceViewerConfiguration; … … 62 61 @Override 63 62 public String exec(XtextResource state) throws Exception { 64 CompositeNode root = state.getParseResult().getRootNode(); 65 AbstractNode current = ParseTreeUtil.getCurrentOrFollowingNodeByOffset(root, offset); 66 EObject semantic = NodeUtil.getNearestSemanticObject(current); 63 ICompositeNode root = state.getParseResult().getRootNode(); 64 // AbstractNode current = ParseTreeUtil.getCurrentOrFollowingNodeByOffset(root, offset); 65 ILeafNode current = NodeModelUtils.findLeafNodeAtOffset(root, offset); 66 // EObject semantic = NodeUtil.getNearestSemanticObject(current); 67 EObject semantic = current.getSemanticElement(); 67 68 68 69 if (semantic instanceof QualifiedExpression) { -
java/Framclipse/com.framsticks.framclipse.ui/src/com/framsticks/framclipse/ui/contentassist/FramScriptProposalProvider.java
r437 r438 35 35 36 36 protected FramScriptProposalCreator(ContentAssistContext contentAssistContext, String ruleName) { 37 super(contentAssistContext, ruleName );37 super(contentAssistContext, ruleName, getQualifiedNameConverter()); 38 38 this.cac = contentAssistContext; 39 39 }
Note: See TracChangeset
for help on using the changeset viewer.