Examples of XbaseEditor


Examples of org.eclipse.xtext.xbase.ui.editor.XbaseEditor

    return null;
  }
 
  public void launch(final IEditorPart editor, final String mode) {
    if ((editor instanceof XbaseEditor)) {
      final XbaseEditor xbaseEditor = ((XbaseEditor) editor);
      int _switchResult = (int) 0;
      ISelectionProvider _selectionProvider = xbaseEditor.getSelectionProvider();
      ISelection _selection = _selectionProvider.getSelection();
      final ISelection it = _selection;
      boolean _matched = false;
      if (!_matched) {
        if (it instanceof ITextSelection) {
          _matched=true;
          _switchResult = ((ITextSelection)it).getOffset();
        }
      }
      if (!_matched) {
        _switchResult = (-1);
      }
      final int offset = _switchResult;
      IEditorInput _editorInput = xbaseEditor.getEditorInput();
      if ((_editorInput instanceof IFileEditorInput)) {
        IEditorInput _editorInput_1 = xbaseEditor.getEditorInput();
        IFile _file = ((IFileEditorInput) _editorInput_1).getFile();
        IProject _project = _file.getProject();
        final String project = _project.getName();
        IXtextDocument _document = xbaseEditor.getDocument();
        final IUnitOfWork<LaunchConfigurationInfo, XtextResource> _function = new IUnitOfWork<LaunchConfigurationInfo, XtextResource>() {
          public LaunchConfigurationInfo exec(final XtextResource it) throws Exception {
            LaunchConfigurationInfo _xblockexpression = null;
            {
              EList<EObject> _contents = it.getContents();
View Full Code Here
TOP
Copyright © 2018 www.massapi.com. All rights reserved.
All source code are property of their respective owners. Java is a trademark of Sun Microsystems, Inc and owned by ORACLE Inc. Contact coftware#gmail.com.