Last active
December 11, 2015 00:39
-
-
Save olivier-schmitt/4518482 to your computer and use it in GitHub Desktop.
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
package mynewspaper.netbeans.completion.lang; | |
import java.util.ArrayList; | |
import java.util.List; | |
import org.netbeans.spi.editor.completion.xhtml.api.CompletionItemData; | |
import org.netbeans.spi.editor.completion.xhtml.api.CompletionItemDataProvider; | |
/** | |
* | |
* @author oschmitt | |
*/ | |
public class LangCompletionItemDataProvider implements CompletionItemDataProvider { | |
@Override | |
public List<CompletionItemData> getDatas(String query) { | |
List<CompletionItemData> result = new ArrayList<CompletionItemData>(); | |
result.add(new CompletionItemData("en","English")); | |
result.add(new CompletionItemData("es","Spanish")); | |
result.add(new CompletionItemData("fr","French")); | |
result.add(new CompletionItemData("it","Italian")); | |
return result; | |
} | |
} |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment