Package com.googlecode.goclipse.go.lang.model

Examples of com.googlecode.goclipse.go.lang.model.Node


        String[] parts = word.split("\\.");
        Import   i     = cc1.getImportForName(parts[0]);
       
        if (i != null) {
       
          Node node = cc1.getLocationForPkgAndName(i.path, parts[1]);
          if (node == null) {
            return null;
          }

          h.node   = node;
View Full Code Here


    Object sel = ((IStructuredSelection)getTreeViewer().getSelection()).getFirstElement();
   
    if (sel instanceof Node) {
      IDocument document = documentProvider.getDocument(editor.getEditorInput());
     
      Node node = (Node)sel;
     
      int line = node.getLine() - 1;
     
      if (line != -1) {
        try {
          editor.selectAndReveal(document.getLineOffset(line), document.getLineLength(line));
        } catch (BadLocationException ble) {
View Full Code Here

    }
   
    @Override
    public String getText(Object element) {
      if (element instanceof Node) {
        Node node = (Node)element;
       
        return node.getName();
      } else {
        return element.toString();
      }
    }
View Full Code Here

    }
   
    @Override
    public Image getImage(Object element) {
      if (element instanceof Node) {
        Node node = (Node)element;
        return GoImageProvider.getImage(node);
      } else if (element == IMPORT_CONTAINER) {
        return GoPluginImages.ELEMENT_IMPORT_CONTAINER.getImage();
      } else {
        return null;
View Full Code Here

       
        if (strs.length > 1) {
          str.append(strs[1], StyledString.DECORATIONS_STYLER);
        }
      } else if (element instanceof Node) {
        Node node = (Node)element;
       
        if (node.getName() != null) {
          str.append(node.getName());
        } else {
          str.append(node.toString());
        }
       
        if (node instanceof Type) {
          Type type = (Type)node;
         
View Full Code Here

TOP

Related Classes of com.googlecode.goclipse.go.lang.model.Node

Copyright © 2018 www.massapicom. 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.