Package org.mevenide.idea.synchronize

Examples of org.mevenide.idea.synchronize.ProblemInfo


            final DefaultMutableTreeNode node = (DefaultMutableTreeNode) lastPathComp;
            final Object userObject = node.getUserObject();
            if (!(userObject instanceof ProblemInfo))
                return new AnAction[0];

            final ProblemInfo problem = (ProblemInfo) userObject;
            final AnAction[] fixActions = problem.getFixActions();
            if (fixActions == null)
                return new AnAction[0];

            return fixActions;
        }
View Full Code Here


                                                  int row,
                                                  boolean hasFocus) {

        final String text;

        final ProblemInfo problem = getNodeProblem(pValue);
        if (problem != null)
            text = problem.getDescription();
        else
            text = pValue == null ? "" : pValue.toString();

        final Component c = super.getTreeCellRendererComponent(tree,
                                                               text,
                                                               sel,
                                                               expanded,
                                                               leaf,
                                                               row,
                                                               hasFocus);
        if (c instanceof JLabel && problem != null) {
            final JLabel label = (JLabel) c;
            final AnAction[] fixActions = problem.getFixActions();

            if (!problem.isValid())
                label.setIcon(Icons.PROBLEM_FIXED);
            else if (fixActions != null && fixActions.length > 0)
                label.setIcon(Icons.PROBLEM);
            else
                label.setIcon(Icons.WARNING);
View Full Code Here

TOP

Related Classes of org.mevenide.idea.synchronize.ProblemInfo

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.