Package mmrnmhrm.core.model_elements

Examples of mmrnmhrm.core.model_elements.DefElementDescriptor


 
 
  protected static int getImageAdornmentFlags(int elementFlags) {
    int imageFlags = 0;
   
    if (new DefElementDescriptor(elementFlags).isConstructor()) {
      imageFlags |= ScriptElementImageDescriptor.CONSTRUCTOR;
    }
   
    return imageFlags;
  }
View Full Code Here


  }
 
  public ImageDescriptor getImageDescriptor(IMember member, Point imageSize) {
   
    try {
      DefElementDescriptor elementDescriptor = DeeSourceElementProvider.toElementDescriptor(member);
      return getImageDescriptor(elementDescriptor, imageSize);
    } catch (ModelException e) {
      DeeCore.logWarning("Error opening element for element descriptor", e);
      return DeeImages.getIDEInternalErrorImageDescriptor();
    }
View Full Code Here

    public ITypeInfoImageProvider getImageProvider() {
      return new ITypeInfoImageProvider() {
        @Override
        public ImageDescriptor getImageDescriptor(ITypeInfoRequestor typeInfoRequestor) {
          return deeModelElementLabelProvider.getImageDescriptor(
            new DefElementDescriptor(typeInfoRequestor.getModifiers()),
            DeeElementImageProvider.BIG_SIZE);
        }
      };
    }
View Full Code Here

    return iconStyle;
  }
 
  @Override
  public ImageDescriptor createImageDescriptor(CompletionProposal proposal) {
    DefElementDescriptor defDescriptor = null;
   
    if(proposal.getExtraInfo() instanceof DefElementDescriptor) {
      defDescriptor = (DefElementDescriptor) proposal.getExtraInfo();
    }
    else if(proposal.getExtraInfo() instanceof INamedElement) {
      INamedElement defElement = (INamedElement) proposal.getExtraInfo();
      defDescriptor = new DefElementDescriptor(defElement);
    }
    else if(proposal.getModelElement() instanceof IMember) {
      IMember member = (IMember) proposal.getModelElement();
      try {
        defDescriptor = DeeSourceElementProvider.toElementDescriptor(member);
View Full Code Here

   
    return getNodeImageDescriptorKey(node).getDescriptor();
  }
 
  public static ImageDescriptor getDefUnitImageDescriptor(DefUnit defUnit, ElementIconsStyle iconStyle) {
    DefElementDescriptor defDescriptor = new DefElementDescriptor(defUnit);
    return getDefUnitImageDescriptor(defDescriptor, iconStyle);
  }
View Full Code Here

TOP

Related Classes of mmrnmhrm.core.model_elements.DefElementDescriptor

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.