protected String getName() { return enm.getName().toString(); }
@Override public String getItemText() { return displayFQN ? enm.getQualifiedName().toString() : enm.getName().toString(); }
private void init(CsmEnum enumeration){ final CharSequence old = name; name = enumeration.getName(); final CharSequence oldQ = qname; qname = enumeration.getQualifiedName(); if( enumImage == null ) { enumImage = CsmImageLoader.getImage(enumeration); } final Runnable runnable = new Runnable() { @Override public void run() { if ((old == null) || !old.equals(name)) { fireNameChange(old == null ? null : old.toString(), name == null ? null : name.toString()); fireDisplayNameChange(old == null ? null : old.toString(), name == null ? null : name.toString()); } if ((oldQ == null) || !oldQ.equals(qname)) { fireShortDescriptionChange(oldQ == null ? null : oldQ.toString(), qname == null ? null : qname.toString()); } } }; if (SwingUtilities.isEventDispatchThread()) { runnable.run(); } else { SwingUtilities.invokeLater(runnable); } }
if (!context.isCpp() || !en.isStronglyTyped() && en.getName().length()==0){ addEnumerators(res, en, strPrefix, match, caseSensitive); if (!en.isStronglyTyped() && en.getName().length()==0){ addEnumerators(res, en, strPrefix, match, caseSensitive); if (!context.isCpp() || !en.isStronglyTyped() && en.getName().length()==0){ addEnumerators(res, en, strPrefix, match, caseSensitive);
} else if (CsmKindUtilities.isEnumerator(refObject)) { CsmEnumerator enmtr = ((CsmEnumerator)refObject); labelText = getString("DSC_EnumeratorUsages", enmtr.getName().toString(), enmtr.getEnumeration().getName().toString()); // NOI18N } else if (CsmKindUtilities.isField(refObject)) { String fieldName = ((CsmField)refObject).getName().toString();