Package com.python.pydev.analysis.additionalinfo

Examples of com.python.pydev.analysis.additionalinfo.IInfo


        this.showCompleteName = showCompleteName;
    }

    @Override
    public String getText(Object element) {
        IInfo info = getInfo(element);
        if (info == null) {
            return "";
        }
        if (showCompleteName) {
            return info.getName() + " - " + info.getDeclaringModuleName();
        }
        return info.getName();
    }
View Full Code Here


        return info.getName();
    }

    @Override
    public Image getImage(Object element) {
        IInfo info = getInfo(element);
        if (info == null) {
            return null;
        }
        return AnalysisPlugin.getImageForTypeInfo(info);
    }
View Full Code Here

            element = ((AdditionalInfoAndIInfo) element).info;
        }
        if (!(element instanceof IInfo)) {
            return null;
        }
        IInfo info = (IInfo) element;
        return info;
    }
View Full Code Here

    /**
     * @return the text with a style for the module part
     */
    public StyledString getStyledText(Object element) {
        IInfo info = getInfo(element);
        if (info == null) {
            return new StyledString();
        }
        if (showCompleteName) {
            return new StyledString(info.getName()).append(" - " + info.getDeclaringModuleName(),
                    StyledString.QUALIFIER_STYLER);
        }
        return new StyledString(info.getName());
    }
View Full Code Here

        return declaringModuleName;
    }

    @Override
    public Image getImage(Object element) {
        IInfo info = NameIInfoLabelProvider.getInfo(element);
        if (info == null) {
            return null;
        }
        return AnalysisPlugin.getImageForTypeInfo(info);
    }
View Full Code Here

        dialog.open();
        Object[] result = dialog.getResult();
        if (result != null && result.length > 0) {
            for (Object obj : result) {
                IInfo entry;
                if (obj instanceof AdditionalInfoAndIInfo) {
                    AdditionalInfoAndIInfo additional = (AdditionalInfoAndIInfo) obj;
                    try {
                        //Change the pythonNatures given the selection done (so, just investigate the passed nature, not
                        //all of the input natures).
View Full Code Here

TOP

Related Classes of com.python.pydev.analysis.additionalinfo.IInfo

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.