Available Methods
- isEmpty ( )
- join ( )
- isEmptyOrSpaces ( )
- isNotEmpty ( )
- notNullize ( )
- split ( )
- equals ( )
- replace ( )
- endsWithChar ( )
- trimEnd ( )
- capitalize ( )
- convertLineSeparators ( )
- startsWithChar ( )
- repeatSymbol ( )
- trimStart ( )
- startsWith ( )
- getShortName ( )
- startsWithIgnoreCase ( )
- containsIgnoreCase ( )
- toUpperCase ( )
- toLowerCase ( )
- indexOf ( )
- unquoteString ( )
- nullize ( )
- decapitalize ( )
- trimTrailing ( )
- unescapeXml ( )
- lineColToOffset ( )
- repeat ( )
- shortenTextWithEllipsis ( )
- endsWithIgnoreCase ( )
- contains ( )
- compare ( )
- tokenize ( )
- first ( )
- containsAnyChar ( )
- countNewLines ( )
- equalsIgnoreCase ( )
- pluralize ( )
- isJavaIdentifierPart ( )
- isWhiteSpace ( )
- isJavaIdentifierStart ( )
- indexOfIgnoreCase ( )
- endsWith ( )
- formatDuration ( )
- getPackageName ( )
- replaceChar ( )
- defaultIfEmpty ( )
- splitByLines ( )
- escapeStringCharacters ( )
- strip ( )
- getThrowableText ( )
- notNullizeIfEmpty ( )
- escapeXml ( )
- countChars ( )
- parseInt ( )
- equalsIgnoreWhitespaces ( )
- stripHtml ( )
- compareVersionNumbers ( )
- capitalizeWords ( )
- stringHashCode ( )
- offsetToLineNumber ( )
Related Classes
- java.util.Arrays
- java.io.File
- java.util.Collections
- java.util.regex.Pattern
- java.util.regex.Matcher
- javax.annotation.Nullable
- javax.annotation.Nonnull
- org.jetbrains.annotations.NotNull
- org.jetbrains.annotations.Nullable
- com.intellij.openapi.project.Project
- com.intellij.openapi.vfs.VirtualFile
- com.intellij.openapi.actionSystem.AnActionEvent
- com.intellij.openapi.application.ApplicationManager
- com.intellij.psi.PsiFile
- com.intellij.openapi.editor.Editor
- com.intellij.psi.PsiElement
- org.jdom.Element
- com.intellij.openapi.editor.Document
- org.jetbrains.annotations.NonNls
- com.intellij.openapi.ui.Messages
- com.intellij.openapi.util.TextRange
- com.intellij.openapi.actionSystem.DataContext
- com.intellij.openapi.module.Module
- com.intellij.util.ui.UIUtil
- com.intellij.util.IncorrectOperationException
Java Code Examples for com.intellij.openapi.util.text.StringUtil#notNullizeIfEmpty()
The following examples show how to use
com.intellij.openapi.util.text.StringUtil#notNullizeIfEmpty() .
You can vote up the ones you like or vote down the ones you don't like,
and go to the original project or source file by following the links above each example. You may check out the related API usage on the sidebar.
Example 1
Source File: EarlyAccessProgramConfigurable.java From consulo with Apache License 2.0 | 4 votes |
@Override public Component getListCellRendererComponent(JList list, Object value, int index, boolean isSelected, boolean cellHasFocus) { CheckBoxList checkBoxList = (CheckBoxList)list; EarlyAccessProgramDescriptor earlyAccessProgramDescriptor = (EarlyAccessProgramDescriptor)checkBoxList.getItemAt(index); JCheckBox checkbox = (JCheckBox)value; checkbox.setEnabled(list.isEnabled()); checkbox.setFocusPainted(false); checkbox.setBorderPainted(true); if (earlyAccessProgramDescriptor == null) { return checkbox; } else { checkbox.setEnabled(earlyAccessProgramDescriptor.isAvailable()); JPanel panel = new JPanel(new VerticalFlowLayout(VerticalFlowLayout.TOP, true, true)) { @Override public Dimension getPreferredSize() { Dimension size = super.getPreferredSize(); return new Dimension(Math.min(size.width, 200), size.height); } }; panel.setEnabled(earlyAccessProgramDescriptor.isAvailable()); JPanel topPanel = new JPanel(new BorderLayout()); topPanel.add(checkbox, BorderLayout.WEST); if (earlyAccessProgramDescriptor.isRestartRequired()) { JBLabel comp = new JBLabel("Restart required"); comp.setForeground(JBColor.GRAY); topPanel.add(comp, BorderLayout.EAST); } panel.add(topPanel); panel.setBorder(new CustomLineBorder(0, 0, 1, 0)); String description = StringUtil.notNullizeIfEmpty(earlyAccessProgramDescriptor.getDescription(), "Description is not available"); JTextPane textPane = new JTextPane(); textPane.setText(description); textPane.setEditable(false); if (!earlyAccessProgramDescriptor.isAvailable()) { textPane.setForeground(JBColor.GRAY); } panel.add(textPane); return panel; } }
Example 2
Source File: InspectionFilterAction.java From consulo with Apache License 2.0 | 4 votes |
public LanguageFilterAction(final Language language) { super(StringUtil.notNullizeIfEmpty(language.getDisplayName(), language.getID())); myLanguage = language; }