本文整理汇总了Java中org.fife.ui.rsyntaxtextarea.RSyntaxTextArea.getClientProperty方法的典型用法代码示例。如果您正苦于以下问题:Java RSyntaxTextArea.getClientProperty方法的具体用法?Java RSyntaxTextArea.getClientProperty怎么用?Java RSyntaxTextArea.getClientProperty使用的例子?那么恭喜您, 这里精选的方法代码示例或许可以为您提供帮助。您也可以进一步了解该方法所在类org.fife.ui.rsyntaxtextarea.RSyntaxTextArea
的用法示例。
在下文中一共展示了RSyntaxTextArea.getClientProperty方法的6个代码示例,这些例子默认根据受欢迎程度排序。您可以为喜欢或者感觉有用的代码点赞,您的评价将有助于系统推荐出更棒的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: install
import org.fife.ui.rsyntaxtextarea.RSyntaxTextArea; //导入方法依赖的package包/类
public void install(RSyntaxTextArea textArea) {
LanguageSupport support =
(LanguageSupport)textArea.getClientProperty("org.fife.rsta.ac.LanguageSupport");
if (support!=null) {
support.uninstall(textArea);
}
super.install(textArea);
}
示例3: install
import org.fife.ui.rsyntaxtextarea.RSyntaxTextArea; //导入方法依赖的package包/类
@Override
public void install(RSyntaxTextArea textArea) {
//remove javascript support and replace with Rhino support
LanguageSupport support = (LanguageSupport) textArea.getClientProperty("org.fife.rsta.ac.LanguageSupport");
if (support != null) {
support.uninstall(textArea);
}
super.install(textArea);
getAutoCompletionFor(textArea).setAutoCompleteSingleChoices(false);
}
示例4: getParser
import org.fife.ui.rsyntaxtextarea.RSyntaxTextArea; //导入方法依赖的package包/类
/**
* Returns the Java parser running on a text area with this Java language
* support installed.
*
* @param textArea The text area.
* @return The Java parser. This will be <code>null</code> if the text
* area does not have this <tt>JavaLanguageSupport</tt> installed.
*/
public JavaParser getParser(RSyntaxTextArea textArea) {
// Could be a parser for another language.
Object parser = textArea.getClientProperty(PROPERTY_LANGUAGE_PARSER);
if (parser instanceof JavaParser) {
return (JavaParser)parser;
}
return null;
}
示例5: uninstallSupport
import org.fife.ui.rsyntaxtextarea.RSyntaxTextArea; //导入方法依赖的package包/类
/**
* Uninstalls the language support on an RSyntaxTextArea, if any.
*
* @param textArea The text area.
* @see #installSupport(RSyntaxTextArea)
*/
private void uninstallSupport(RSyntaxTextArea textArea) {
LanguageSupport support = (LanguageSupport)textArea.getClientProperty(
LANGUAGE_SUPPORT_PROPERTY);
if (support!=null) {
support.uninstall(textArea);
}
}
示例6: getParser
import org.fife.ui.rsyntaxtextarea.RSyntaxTextArea; //导入方法依赖的package包/类
/**
* Returns the ZScript parser running on a text area with this ZScript
* language support installed.
*
* @param textArea The text area.
* @return The ZScript parser. This will be <code>null</code> if the text
* area does not have this <tt>ZSCriptLanguageSupport</tt>
* installed.
*/
public ZScriptParser getParser(RSyntaxTextArea textArea) {
// Could be a parser for another language.
Object parser = textArea.getClientProperty(PROPERTY_LANGUAGE_PARSER);
if (parser instanceof ZScriptParser) {
return (ZScriptParser)parser;
}
return null;
}