Package mmrnmhrm.ui.views

Source Code of mmrnmhrm.ui.views.ASTViewerContentProvider

package mmrnmhrm.ui.views;

import melnorme.util.swt.jface.ElementContentProvider;
import melnorme.utilbox.tree.IElement;
import dtool.parser.DeeParserResult;

public class ASTViewerContentProvider extends ElementContentProvider {
 
  protected ASTViewer view;
 
  public ASTViewerContentProvider(ASTViewer view) {
    this.view = view;
  }
 
  @Override
  public Object[] getElements(Object inputElement) {
    DeeParserResult deeModuleDecl = view.fDeeModule;
    if(deeModuleDecl == null) {
      return IElement.NO_ELEMENTS;
    }
    IElement input = deeModuleDecl.getModuleNode();
    return input.getChildren();
  }
 
}
TOP

Related Classes of mmrnmhrm.ui.views.ASTViewerContentProvider

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.