Package com.intellij.ide.ui

Examples of com.intellij.ide.ui.ListCellRendererWrapper


      model.addElement(language);
    }

    // When com.intellij.openapi.fileTypes.impl.FileTypePatternDialog#FileTypePatternDialog updates to fix this warning, we make the same update here
    //noinspection GtkPreferredJComboBoxRenderer,deprecation
    myCommenterLanguage.setRenderer(new ListCellRendererWrapper(myCommenterLanguage.getRenderer()) {
      @Override
      public void customize(JList list, Object value, int index, boolean selected, boolean hasFocus) {
        setText(value == null ? "" : ((Language)value).getDisplayName());
        if (value != null) {
          final FileType type = ((Language)value).getAssociatedFileType();
View Full Code Here


        }
      }

    });

    profiles.setRenderer(new ListCellRendererWrapper(profiles.getRenderer()) {
      @Override
      public void customize(JList jList, Object value, int i, boolean b, boolean b1) {
        if (value != null) {
          setText(((Settings) value).getName());
        }
View Full Code Here

TOP

Related Classes of com.intellij.ide.ui.ListCellRendererWrapper

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.