![JAR search and dependency download from the Maven repository](/logo.png)
org.fife.rsta.ac.css.BasicCssCompletion Maven / Gradle / Ivy
Go to download
Show more of this group Show more artifacts with this name
Show all versions of languagesupport Show documentation
Show all versions of languagesupport Show documentation
A library adding code completion and other advanced features for Java, JavaScript, Perl, and other languages to RSyntaxTextArea.
The newest version!
/*
* 12/04/2013
*
* Copyright (C) 2013 Robert Futrell
* robert_futrell at users.sourceforge.net
* http://fifesoft.com/rsyntaxtextarea
*
* This library is distributed under a modified BSD license. See the included
* LICENSE.md file for details.
*/
package org.fife.rsta.ac.css;
import javax.swing.Icon;
import org.fife.ui.autocomplete.BasicCompletion;
import org.fife.ui.autocomplete.CompletionProvider;
/**
* A basic completion type for CSS code completion. Basically just a
* {@link BasicCompletion} with a key for the icon for this completion type.
*
* @author Robert Futrell
* @version 1.0
*/
class BasicCssCompletion extends BasicCompletion {
private String iconKey;
BasicCssCompletion(CompletionProvider provider, String value,
String iconKey) {
super(provider, value);
this.iconKey = iconKey;
}
@Override
public Icon getIcon() {
return IconFactory.get().getIcon(iconKey);
}
}
© 2015 - 2025 Weber Informatics LLC | Privacy Policy