public Image getImage() { if (m_Element instanceof VhdlOutlineElement) { VhdlOutlineElement e = (VhdlOutlineElement) m_Element; return VerilogPlugin.getPlugin().getImage(e.GetImageName()); } return null; }
/** * Class constructor * * @param doc Document instance * @param element Outline element associated with this proposal * @param offset Offset line of the replace string from the beginning of the document?? * @param length length of the replace string */ public VhdlInstanceCompletionProposal( HdlDocument doc, OutlineElement element, int offset, int length) { super(doc, element.getName(), offset, length); if (element instanceof VhdlOutlineElement) { VhdlOutlineElement vhdlElement = (VhdlOutlineElement) element; name = vhdlElement.getShortName(); } m_Element = element; }