本文整理匯總了Java中org.fife.ui.rsyntaxtextarea.RSyntaxTextArea.putClientProperty方法的典型用法代碼示例。如果您正苦於以下問題:Java RSyntaxTextArea.putClientProperty方法的具體用法?Java RSyntaxTextArea.putClientProperty怎麽用?Java RSyntaxTextArea.putClientProperty使用的例子?那麽, 這裏精選的方法代碼示例或許可以為您提供幫助。您也可以進一步了解該方法所在類org.fife.ui.rsyntaxtextarea.RSyntaxTextArea
的用法示例。
在下文中一共展示了RSyntaxTextArea.putClientProperty方法的5個代碼示例,這些例子默認根據受歡迎程度排序。您可以為喜歡或者感覺有用的代碼點讚,您的評價將有助於係統推薦出更棒的Java代碼示例。
示例1: uninstall
import org.fife.ui.rsyntaxtextarea.RSyntaxTextArea; //導入方法依賴的package包/類
/**
* {@inheritDoc}
*/
public void uninstall(RSyntaxTextArea textArea) {
uninstallImpl(textArea);
JavaParser parser = getParser(textArea);
Info info = (Info)parserToInfoMap.remove(parser);
if (info!=null) { // Should always be true
parser.removePropertyChangeListener(
JavaParser.PROPERTY_COMPILATION_UNIT, info);
}
textArea.removeParser(parser);
textArea.putClientProperty(PROPERTY_LANGUAGE_PARSER, null);
textArea.setToolTipSupplier(null);
Object listener = textArea.getClientProperty(PROPERTY_LISTENER);
if (listener instanceof Listener) { // Should always be true
((Listener)listener).uninstall();
textArea.putClientProperty(PROPERTY_LISTENER, null);
}
uninstallKeyboardShortcuts(textArea);
textArea.setLinkGenerator(null);
}
示例2: uninstall
import org.fife.ui.rsyntaxtextarea.RSyntaxTextArea; //導入方法依賴的package包/類
@Override
public void uninstall(RSyntaxTextArea textArea) {
uninstallImpl(textArea);
ZScriptParser parser = getParser(textArea);
Info info = parserToInfoMap.remove(parser);
if (info!=null) { // Should always be true
parser.removePropertyChangeListener(
ZScriptParser.PROPERTY_AST, info);
info.scopeListener.uninstall();
}
if (parser!=null) {
textArea.removeParser(parser);
}
textArea.putClientProperty(PROPERTY_LANGUAGE_PARSER, null);
textArea.setLinkGenerator(null);
}
示例3: install
import org.fife.ui.rsyntaxtextarea.RSyntaxTextArea; //導入方法依賴的package包/類
/**
* {@inheritDoc}
*/
public void install(RSyntaxTextArea textArea) {
JavaCompletionProvider p = new JavaCompletionProvider(jarManager);
// Can't use createAutoCompletion(), as Java's is "special."
AutoCompletion ac = new JavaAutoCompletion(p, textArea);
ac.setListCellRenderer(new JavaCellRenderer());
ac.setAutoCompleteEnabled(isAutoCompleteEnabled());
ac.setAutoActivationEnabled(isAutoActivationEnabled());
ac.setAutoActivationDelay(getAutoActivationDelay());
ac.setExternalURLHandler(new JavadocUrlHandler());
ac.setParameterAssistanceEnabled(isParameterAssistanceEnabled());
ac.setParamChoicesRenderer(new JavaParamListCellRenderer());
ac.setShowDescWindow(getShowDescWindow());
ac.install(textArea);
installImpl(textArea, ac);
textArea.setToolTipSupplier(p);
Listener listener = new Listener(textArea);
textArea.putClientProperty(PROPERTY_LISTENER, listener);
JavaParser parser = new JavaParser(textArea);
textArea.putClientProperty(PROPERTY_LANGUAGE_PARSER, parser);
textArea.addParser(parser);
textArea.setToolTipSupplier(p);
Info info = new Info(textArea, p, parser);
parserToInfoMap.put(parser, info);
installKeyboardShortcuts(textArea);
textArea.setLinkGenerator(new JavaLinkGenerator(this));
}
示例4: installSupport
import org.fife.ui.rsyntaxtextarea.RSyntaxTextArea; //導入方法依賴的package包/類
/**
* Installs language support on an RSTA depending on its syntax style.
*
* @param textArea The text area to install language support on.
* @see #uninstallSupport(RSyntaxTextArea)
*/
private void installSupport(RSyntaxTextArea textArea) {
String style = textArea.getSyntaxEditingStyle();
LanguageSupport support = getSupportFor(style);
if (support!=null) {
support.install(textArea);
}
textArea.putClientProperty(LANGUAGE_SUPPORT_PROPERTY, support);
}
示例5: install
import org.fife.ui.rsyntaxtextarea.RSyntaxTextArea; //導入方法依賴的package包/類
@Override
public void install(RSyntaxTextArea textArea) {
ZScriptCompletionProvider provider = new ZScriptCompletionProvider();
// We use a custom auto-completion.
//AutoCompletion ac = createAutoCompletion(provider);
AutoCompletion ac = new ZScriptAutoCompletion(provider, textArea);
ac.setListCellRenderer(getDefaultCompletionCellRenderer());
ac.setAutoCompleteEnabled(isAutoCompleteEnabled());
ac.setAutoActivationEnabled(isAutoActivationEnabled());
ac.setAutoActivationDelay(getAutoActivationDelay());
ac.setParameterAssistanceEnabled(isParameterAssistanceEnabled());
ac.setShowDescWindow(getShowDescWindow());
// ac.setParamChoicesRenderer(ac.getListCellRenderer());
ac.install(textArea);
installImpl(textArea, ac);
textArea.setToolTipSupplier(provider);
ZScriptScopeListener scopeListener = new ZScriptScopeListener(textArea);
ZScriptParser parser = new ZScriptParser();
textArea.addParser(parser);
textArea.putClientProperty(PROPERTY_LANGUAGE_PARSER, parser);
Info info = new Info(textArea, provider, parser, scopeListener);
parserToInfoMap.put(parser, info);
installKeyboardShortcuts(textArea);
textArea.setLinkGenerator(new ZScriptLinkGenerator(this));
}