本文整理匯總了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;
}