├── .editorconfig ├── .github ├── ISSUE_TEMPLATE │ ├── bug_report.md │ └── feature_request.md ├── dependabot.yml └── workflows │ ├── codeql-analysis.yml │ └── gradle.yml ├── .gitignore ├── LICENSE.md ├── README.md ├── RSyntaxTextArea ├── README.md ├── build.gradle └── src │ ├── main │ ├── dist │ │ └── readme.txt │ ├── java │ │ └── org │ │ │ └── fife │ │ │ ├── io │ │ │ ├── DocumentReader.java │ │ │ ├── UnicodeReader.java │ │ │ ├── UnicodeWriter.java │ │ │ └── package.html │ │ │ ├── print │ │ │ ├── RPrintUtilities.java │ │ │ └── package.html │ │ │ ├── ui │ │ │ ├── rsyntaxtextarea │ │ │ │ ├── AbstractJFlexCTokenMaker.java │ │ │ │ ├── AbstractJFlexTokenMaker.java │ │ │ │ ├── AbstractTokenMaker.java │ │ │ │ ├── AbstractTokenMakerFactory.java │ │ │ │ ├── ActiveLineRangeEvent.java │ │ │ │ ├── ActiveLineRangeListener.java │ │ │ │ ├── CodeTemplateManager.java │ │ │ │ ├── DefaultOccurrenceMarker.java │ │ │ │ ├── DefaultTokenFactory.java │ │ │ │ ├── DefaultTokenMakerFactory.java │ │ │ │ ├── DefaultTokenPainter.java │ │ │ │ ├── DefaultTokenPainterFactory.java │ │ │ │ ├── DocumentRange.java │ │ │ │ ├── ErrorStrip.java │ │ │ │ ├── FileFileLocation.java │ │ │ │ ├── FileLocation.java │ │ │ │ ├── FileTypeUtil.java │ │ │ │ ├── FoldingAwareIconRowHeader.java │ │ │ │ ├── HtmlOccurrenceMarker.java │ │ │ │ ├── HtmlUtil.java │ │ │ │ ├── LinkGenerator.java │ │ │ │ ├── LinkGeneratorResult.java │ │ │ │ ├── MarkOccurrencesSupport.java │ │ │ │ ├── MatchedBracketPopup.java │ │ │ │ ├── OccurrenceMarker.java │ │ │ │ ├── ParserManager.java │ │ │ │ ├── PopupWindowDecorator.java │ │ │ │ ├── RSTAView.java │ │ │ │ ├── RSyntaxDocument.java │ │ │ │ ├── RSyntaxTextArea.java │ │ │ │ ├── RSyntaxTextAreaDefaultInputMap.java │ │ │ │ ├── RSyntaxTextAreaEditorKit.java │ │ │ │ ├── RSyntaxTextAreaHighlighter.java │ │ │ │ ├── RSyntaxTextAreaUI.java │ │ │ │ ├── RSyntaxUtilities.java │ │ │ │ ├── RTfToText.java │ │ │ │ ├── RtfGenerator.java │ │ │ │ ├── SelectRegionLinkGeneratorResult.java │ │ │ │ ├── SquiggleUnderlineHighlightPainter.java │ │ │ │ ├── Style.java │ │ │ │ ├── StyledTextTransferable.java │ │ │ │ ├── SyntaxConstants.java │ │ │ │ ├── SyntaxScheme.java │ │ │ │ ├── SyntaxView.java │ │ │ │ ├── TextEditorPane.java │ │ │ │ ├── Theme.java │ │ │ │ ├── Token.java │ │ │ │ ├── TokenFactory.java │ │ │ │ ├── TokenImpl.java │ │ │ │ ├── TokenIterator.java │ │ │ │ ├── TokenMaker.java │ │ │ │ ├── TokenMakerBase.java │ │ │ │ ├── TokenMakerFactory.java │ │ │ │ ├── TokenMap.java │ │ │ │ ├── TokenOrientedView.java │ │ │ │ ├── TokenPainter.java │ │ │ │ ├── TokenPainterFactory.java │ │ │ │ ├── TokenTypes.java │ │ │ │ ├── TokenUtils.java │ │ │ │ ├── URLFileLocation.java │ │ │ │ ├── VisibleWhitespaceTokenPainter.java │ │ │ │ ├── WrappedSyntaxView.java │ │ │ │ ├── XmlOccurrenceMarker.java │ │ │ │ ├── focusabletip │ │ │ │ │ ├── FocusableTip.java │ │ │ │ │ ├── SizeGrip.java │ │ │ │ │ ├── TipUtil.java │ │ │ │ │ ├── TipWindow.java │ │ │ │ │ └── package.html │ │ │ │ ├── folding │ │ │ │ │ ├── CurlyFoldParser.java │ │ │ │ │ ├── DefaultFoldManager.java │ │ │ │ │ ├── Fold.java │ │ │ │ │ ├── FoldCollapser.java │ │ │ │ │ ├── FoldManager.java │ │ │ │ │ ├── FoldParser.java │ │ │ │ │ ├── FoldParserManager.java │ │ │ │ │ ├── FoldType.java │ │ │ │ │ ├── HtmlFoldParser.java │ │ │ │ │ ├── JsonFoldParser.java │ │ │ │ │ ├── LatexFoldParser.java │ │ │ │ │ ├── LinesWithContentFoldParser.java │ │ │ │ │ ├── LispFoldParser.java │ │ │ │ │ ├── NsisFoldParser.java │ │ │ │ │ ├── PythonFoldParser.java │ │ │ │ │ ├── XmlFoldParser.java │ │ │ │ │ ├── YamlFoldParser.java │ │ │ │ │ └── package.html │ │ │ │ ├── modes │ │ │ │ │ ├── AbstractMarkupTokenMaker.java │ │ │ │ │ ├── ActionScriptTokenMaker.flex │ │ │ │ │ ├── ActionScriptTokenMaker.java │ │ │ │ │ ├── Assembler6502TokenMaker.flex │ │ │ │ │ ├── Assembler6502TokenMaker.java │ │ │ │ │ ├── AssemblerX86TokenMaker.flex │ │ │ │ │ ├── AssemblerX86TokenMaker.java │ │ │ │ │ ├── BBCodeTokenMaker.flex │ │ │ │ │ ├── BBCodeTokenMaker.java │ │ │ │ │ ├── CPlusPlusTokenMaker.flex │ │ │ │ │ ├── CPlusPlusTokenMaker.java │ │ │ │ │ ├── CSSTokenMaker.flex │ │ │ │ │ ├── CSSTokenMaker.java │ │ │ │ │ ├── CSharpTokenMaker.flex │ │ │ │ │ ├── CSharpTokenMaker.java │ │ │ │ │ ├── CTokenMaker.flex │ │ │ │ │ ├── CTokenMaker.java │ │ │ │ │ ├── ClojureTokenMaker.flex │ │ │ │ │ ├── ClojureTokenMaker.java │ │ │ │ │ ├── CsvTokenMaker.flex │ │ │ │ │ ├── CsvTokenMaker.java │ │ │ │ │ ├── DTokenMaker.flex │ │ │ │ │ ├── DTokenMaker.java │ │ │ │ │ ├── DartTokenMaker.flex │ │ │ │ │ ├── DartTokenMaker.java │ │ │ │ │ ├── DelphiTokenMaker.flex │ │ │ │ │ ├── DelphiTokenMaker.java │ │ │ │ │ ├── DockerTokenMaker.flex │ │ │ │ │ ├── DockerTokenMaker.java │ │ │ │ │ ├── DtdTokenMaker.flex │ │ │ │ │ ├── DtdTokenMaker.java │ │ │ │ │ ├── FortranTokenMaker.flex │ │ │ │ │ ├── FortranTokenMaker.java │ │ │ │ │ ├── GoTokenMaker.flex │ │ │ │ │ ├── GoTokenMaker.java │ │ │ │ │ ├── GroovyTokenMaker.flex │ │ │ │ │ ├── GroovyTokenMaker.java │ │ │ │ │ ├── HTMLTokenMaker.flex │ │ │ │ │ ├── HTMLTokenMaker.java │ │ │ │ │ ├── HandlebarsTokenMaker.flex │ │ │ │ │ ├── HandlebarsTokenMaker.java │ │ │ │ │ ├── HostsTokenMaker.flex │ │ │ │ │ ├── HostsTokenMaker.java │ │ │ │ │ ├── HtaccessTokenMaker.flex │ │ │ │ │ ├── HtaccessTokenMaker.java │ │ │ │ │ ├── IniTokenMaker.flex │ │ │ │ │ ├── IniTokenMaker.java │ │ │ │ │ ├── JSPTokenMaker.flex │ │ │ │ │ ├── JSPTokenMaker.java │ │ │ │ │ ├── JavaScriptTokenMaker.flex │ │ │ │ │ ├── JavaScriptTokenMaker.java │ │ │ │ │ ├── JavaTokenMaker.flex │ │ │ │ │ ├── JavaTokenMaker.java │ │ │ │ │ ├── JshintrcTokenMaker.java │ │ │ │ │ ├── JsonTokenMaker.flex │ │ │ │ │ ├── JsonTokenMaker.java │ │ │ │ │ ├── KotlinTokenMaker.flex │ │ │ │ │ ├── KotlinTokenMaker.java │ │ │ │ │ ├── LatexTokenMaker.flex │ │ │ │ │ ├── LatexTokenMaker.java │ │ │ │ │ ├── LessTokenMaker.java │ │ │ │ │ ├── LispTokenMaker.flex │ │ │ │ │ ├── LispTokenMaker.java │ │ │ │ │ ├── LuaTokenMaker.flex │ │ │ │ │ ├── LuaTokenMaker.java │ │ │ │ │ ├── MakefileTokenMaker.flex │ │ │ │ │ ├── MakefileTokenMaker.java │ │ │ │ │ ├── MarkdownTokenMaker.flex │ │ │ │ │ ├── MarkdownTokenMaker.java │ │ │ │ │ ├── MxmlTokenMaker.flex │ │ │ │ │ ├── MxmlTokenMaker.java │ │ │ │ │ ├── NSISTokenMaker.flex │ │ │ │ │ ├── NSISTokenMaker.java │ │ │ │ │ ├── PHPTokenMaker.flex │ │ │ │ │ ├── PHPTokenMaker.java │ │ │ │ │ ├── PerlTokenMaker.flex │ │ │ │ │ ├── PerlTokenMaker.java │ │ │ │ │ ├── PlainTextTokenMaker.flex │ │ │ │ │ ├── PlainTextTokenMaker.java │ │ │ │ │ ├── PropertiesFileTokenMaker.flex │ │ │ │ │ ├── PropertiesFileTokenMaker.java │ │ │ │ │ ├── ProtoTokenMaker.flex │ │ │ │ │ ├── ProtoTokenMaker.java │ │ │ │ │ ├── PythonTokenMaker.flex │ │ │ │ │ ├── PythonTokenMaker.java │ │ │ │ │ ├── RubyTokenMaker.flex │ │ │ │ │ ├── RubyTokenMaker.java │ │ │ │ │ ├── RustTokenMaker.flex │ │ │ │ │ ├── RustTokenMaker.java │ │ │ │ │ ├── SASTokenMaker.flex │ │ │ │ │ ├── SASTokenMaker.java │ │ │ │ │ ├── SQLTokenMaker.flex │ │ │ │ │ ├── SQLTokenMaker.java │ │ │ │ │ ├── ScalaTokenMaker.flex │ │ │ │ │ ├── ScalaTokenMaker.java │ │ │ │ │ ├── TclTokenMaker.flex │ │ │ │ │ ├── TclTokenMaker.java │ │ │ │ │ ├── TypeScriptTokenMaker.flex │ │ │ │ │ ├── TypeScriptTokenMaker.java │ │ │ │ │ ├── UnixShellTokenMaker.java │ │ │ │ │ ├── VhdlTokenMaker.flex │ │ │ │ │ ├── VhdlTokenMaker.java │ │ │ │ │ ├── VisualBasicTokenMaker.flex │ │ │ │ │ ├── VisualBasicTokenMaker.java │ │ │ │ │ ├── WindowsBatchTokenMaker.java │ │ │ │ │ ├── XMLTokenMaker.flex │ │ │ │ │ ├── XMLTokenMaker.java │ │ │ │ │ ├── YamlTokenMaker.flex │ │ │ │ │ ├── YamlTokenMaker.java │ │ │ │ │ └── package.html │ │ │ │ ├── package.html │ │ │ │ ├── parser │ │ │ │ │ ├── AbstractParser.java │ │ │ │ │ ├── DefaultParseResult.java │ │ │ │ │ ├── DefaultParserNotice.java │ │ │ │ │ ├── ExtendedHyperlinkListener.java │ │ │ │ │ ├── ParseResult.java │ │ │ │ │ ├── Parser.java │ │ │ │ │ ├── ParserNotice.java │ │ │ │ │ ├── TaskTagParser.java │ │ │ │ │ ├── ToolTipInfo.java │ │ │ │ │ ├── XmlParser.java │ │ │ │ │ └── package.html │ │ │ │ └── templates │ │ │ │ │ ├── AbstractCodeTemplate.java │ │ │ │ │ ├── CodeTemplate.java │ │ │ │ │ ├── StaticCodeTemplate.java │ │ │ │ │ └── package.html │ │ │ └── rtextarea │ │ │ │ ├── AbstractGutterComponent.java │ │ │ │ ├── BackgroundPainterStrategy.java │ │ │ │ ├── BufferedImageBackgroundPainterStrategy.java │ │ │ │ ├── CaretStyle.java │ │ │ │ ├── ChangeableHighlightPainter.java │ │ │ │ ├── ChevronFoldIcon.java │ │ │ │ ├── ClipboardHistory.java │ │ │ │ ├── ClipboardHistoryPopup.java │ │ │ │ ├── ColorBackgroundPainterStrategy.java │ │ │ │ ├── ConfigurableCaret.java │ │ │ │ ├── ExpandedFoldRenderStrategy.java │ │ │ │ ├── FoldIndicator.java │ │ │ │ ├── FoldIndicatorIcon.java │ │ │ │ ├── FoldIndicatorStyle.java │ │ │ │ ├── FontUtil.java │ │ │ │ ├── Gutter.java │ │ │ │ ├── GutterIconInfo.java │ │ │ │ ├── IconGroup.java │ │ │ │ ├── IconRowEvent.java │ │ │ │ ├── IconRowHeader.java │ │ │ │ ├── IconRowListener.java │ │ │ │ ├── ImageBackgroundPainterStrategy.java │ │ │ │ ├── LineHighlightManager.java │ │ │ │ ├── LineNumberFormatter.java │ │ │ │ ├── LineNumberList.java │ │ │ │ ├── Macro.java │ │ │ │ ├── PlusMinusFoldIcon.java │ │ │ │ ├── RDocument.java │ │ │ │ ├── RDocumentCharSequence.java │ │ │ │ ├── RTADefaultInputMap.java │ │ │ │ ├── RTATextTransferHandler.java │ │ │ │ ├── RTextArea.java │ │ │ │ ├── RTextAreaBase.java │ │ │ │ ├── RTextAreaEditorKit.java │ │ │ │ ├── RTextAreaHighlighter.java │ │ │ │ ├── RTextAreaUI.java │ │ │ │ ├── RTextScrollPane.java │ │ │ │ ├── RUndoManager.java │ │ │ │ ├── RecordableTextAction.java │ │ │ │ ├── RegExReplaceInfo.java │ │ │ │ ├── SearchContext.java │ │ │ │ ├── SearchEngine.java │ │ │ │ ├── SearchResult.java │ │ │ │ ├── SmartHighlightPainter.java │ │ │ │ ├── ToolTipSupplier.java │ │ │ │ ├── VolatileImageBackgroundPainterStrategy.java │ │ │ │ └── package.html │ │ │ └── util │ │ │ ├── DynamicIntArray.java │ │ │ └── package.html │ └── resources │ │ ├── META-INF │ │ └── LICENSE │ │ └── org │ │ └── fife │ │ └── ui │ │ ├── rsyntaxtextarea │ │ ├── ErrorStrip.properties │ │ ├── ErrorStrip_ar.properties │ │ ├── ErrorStrip_de.properties │ │ ├── ErrorStrip_es.properties │ │ ├── ErrorStrip_fi.properties │ │ ├── ErrorStrip_fr.properties │ │ ├── ErrorStrip_hu.properties │ │ ├── ErrorStrip_in.properties │ │ ├── ErrorStrip_it.properties │ │ ├── ErrorStrip_ja.properties │ │ ├── ErrorStrip_ko.properties │ │ ├── ErrorStrip_nl.properties │ │ ├── ErrorStrip_pl.properties │ │ ├── ErrorStrip_pt.properties │ │ ├── ErrorStrip_pt_BR.properties │ │ ├── ErrorStrip_ru.properties │ │ ├── ErrorStrip_tr.properties │ │ ├── ErrorStrip_uk.properties │ │ ├── ErrorStrip_zh_CN.properties │ │ ├── ErrorStrip_zh_TW.properties │ │ ├── RSyntaxTextArea.properties │ │ ├── RSyntaxTextArea_ar.properties │ │ ├── RSyntaxTextArea_de.properties │ │ ├── RSyntaxTextArea_es.properties │ │ ├── RSyntaxTextArea_fi.properties │ │ ├── RSyntaxTextArea_fr.properties │ │ ├── RSyntaxTextArea_hu.properties │ │ ├── RSyntaxTextArea_in.properties │ │ ├── RSyntaxTextArea_it.properties │ │ ├── RSyntaxTextArea_ja.properties │ │ ├── RSyntaxTextArea_ko.properties │ │ ├── RSyntaxTextArea_nl.properties │ │ ├── RSyntaxTextArea_pl.properties │ │ ├── RSyntaxTextArea_pt.properties │ │ ├── RSyntaxTextArea_pt_BR.properties │ │ ├── RSyntaxTextArea_ru.properties │ │ ├── RSyntaxTextArea_tr.properties │ │ ├── RSyntaxTextArea_uk.properties │ │ ├── RSyntaxTextArea_zh_CN.properties │ │ ├── RSyntaxTextArea_zh_TW.properties │ │ ├── focusabletip │ │ │ ├── FocusableTip.properties │ │ │ ├── FocusableTip_ar.properties │ │ │ ├── FocusableTip_de.properties │ │ │ ├── FocusableTip_es.properties │ │ │ ├── FocusableTip_fi.properties │ │ │ ├── FocusableTip_fr.properties │ │ │ ├── FocusableTip_hu.properties │ │ │ ├── FocusableTip_in.properties │ │ │ ├── FocusableTip_it.properties │ │ │ ├── FocusableTip_ja.properties │ │ │ ├── FocusableTip_ko.properties │ │ │ ├── FocusableTip_nl.properties │ │ │ ├── FocusableTip_pl.properties │ │ │ ├── FocusableTip_pt.properties │ │ │ ├── FocusableTip_pt_BR.properties │ │ │ ├── FocusableTip_ru.properties │ │ │ ├── FocusableTip_tr.properties │ │ │ ├── FocusableTip_uk.properties │ │ │ ├── FocusableTip_zh_CN.properties │ │ │ └── FocusableTip_zh_TW.properties │ │ └── themes │ │ │ ├── dark.xml │ │ │ ├── default-alt.xml │ │ │ ├── default.xml │ │ │ ├── druid.xml │ │ │ ├── eclipse.xml │ │ │ ├── idea.xml │ │ │ ├── monokai.xml │ │ │ ├── theme.dtd │ │ │ └── vs.xml │ │ └── rtextarea │ │ ├── RTextArea.properties │ │ ├── RTextArea_ar.properties │ │ ├── RTextArea_de.properties │ │ ├── RTextArea_es.properties │ │ ├── RTextArea_fi.properties │ │ ├── RTextArea_fr.properties │ │ ├── RTextArea_hu.properties │ │ ├── RTextArea_in.properties │ │ ├── RTextArea_it.properties │ │ ├── RTextArea_ja.properties │ │ ├── RTextArea_ko.properties │ │ ├── RTextArea_nl.properties │ │ ├── RTextArea_pl.properties │ │ ├── RTextArea_pt.properties │ │ ├── RTextArea_pt_BR.properties │ │ ├── RTextArea_ru.properties │ │ ├── RTextArea_tr.properties │ │ ├── RTextArea_uk.properties │ │ ├── RTextArea_zh_CN.properties │ │ └── RTextArea_zh_TW.properties │ └── test │ ├── java │ └── org │ │ └── fife │ │ ├── TestUtil.java │ │ ├── io │ │ ├── DocumentReaderTest.java │ │ ├── UnicodeReaderTest.java │ │ └── UnicodeWriterTest.java │ │ ├── print │ │ └── RPrintUtilitiesTest.java │ │ ├── ui │ │ ├── SwingRunnerExtension.java │ │ ├── rsyntaxtextarea │ │ │ ├── AbstractJFlexCTokenMakerTest.java │ │ │ ├── AbstractRSyntaxTextAreaTest.java │ │ │ ├── AbstractTokenMakerTest.java │ │ │ ├── ActiveLineRangeEventTest.java │ │ │ ├── CodeTemplateManagerTest.java │ │ │ ├── DefaultOccurrenceMarkerTest.java │ │ │ ├── DefaultTokenPainterFactoryTest.java │ │ │ ├── DefaultTokenPainterTest.java │ │ │ ├── DocumentRangeTest.java │ │ │ ├── ErrorStripTest.java │ │ │ ├── FileLocationTest.java │ │ │ ├── FileTypeUtilTest.java │ │ │ ├── FoldingAwareIconRowHeaderTest.java │ │ │ ├── HtmlOccurrenceMarkerTest.java │ │ │ ├── HtmlUtilTest.java │ │ │ ├── MatchedBracketPopupTest.java │ │ │ ├── ParserManagerTest.java │ │ │ ├── PopupWindowDecoratorTest.java │ │ │ ├── RSyntaxDocumentTest.java │ │ │ ├── RSyntaxTextAreaChangeFoldStateActionTest.java │ │ │ ├── RSyntaxTextAreaCloseCurlyBraceActionTest.java │ │ │ ├── RSyntaxTextAreaCloseMarkupTagActionTest.java │ │ │ ├── RSyntaxTextAreaEditorKitBeginWordActionTest.java │ │ │ ├── RSyntaxTextAreaEditorKitChangeFoldStateActionTest.java │ │ │ ├── RSyntaxTextAreaEditorKitCloseCurlyBraceActionTest.java │ │ │ ├── RSyntaxTextAreaEditorKitCloseMarkupTagActionTest.java │ │ │ ├── RSyntaxTextAreaEditorKitCollapseAllCommentFoldsActionTest.java │ │ │ ├── RSyntaxTextAreaEditorKitCollapseAllFoldsActionTest.java │ │ │ ├── RSyntaxTextAreaEditorKitCopyCutAsStyledTextActionTest.java │ │ │ ├── RSyntaxTextAreaEditorKitDecreaseFontSizeActionTest.java │ │ │ ├── RSyntaxTextAreaEditorKitDecreaseIndentActionTest.java │ │ │ ├── RSyntaxTextAreaEditorKitDeletePrevWordActionTest.java │ │ │ ├── RSyntaxTextAreaEditorKitDumbCompleteWordActionTest.java │ │ │ ├── RSyntaxTextAreaEditorKitEndActionTest.java │ │ │ ├── RSyntaxTextAreaEditorKitEndWordActionTest.java │ │ │ ├── RSyntaxTextAreaEditorKitExpandAllFoldsActionTest.java │ │ │ ├── RSyntaxTextAreaEditorKitGoToMatchingBracketActionTest.java │ │ │ ├── RSyntaxTextAreaEditorKitIncreaseFontSizeActionTest.java │ │ │ ├── RSyntaxTextAreaEditorKitInsertBreakActionTest.java │ │ │ ├── RSyntaxTextAreaEditorKitInsertPairedCharacterActionTest.java │ │ │ ├── RSyntaxTextAreaEditorKitInsertQuoteActionTest.java │ │ │ ├── RSyntaxTextAreaEditorKitInsertTabActionTest.java │ │ │ ├── RSyntaxTextAreaEditorKitNextWordActionTest.java │ │ │ ├── RSyntaxTextAreaEditorKitPossiblyInsertTemplateActionTest.java │ │ │ ├── RSyntaxTextAreaEditorKitPreviousWordActionTest.java │ │ │ ├── RSyntaxTextAreaEditorKitSelectWordActionTest.java │ │ │ ├── RSyntaxTextAreaEditorKitTest.java │ │ │ ├── RSyntaxTextAreaEditorKitToggleCommentActionTest.java │ │ │ ├── RSyntaxTextAreaEditorKitToggleCurrentFoldActionTest.java │ │ │ ├── RSyntaxTextAreaTest.java │ │ │ ├── RSyntaxUtilitiesTest.java │ │ │ ├── RtfGeneratorTest.java │ │ │ ├── RtfToTextTest.java │ │ │ ├── SelectRegionLinkGeneratorResultTest.java │ │ │ ├── SquiggleUnderlineHighlightPainterTest.java │ │ │ ├── StyleTest.java │ │ │ ├── StyledTextTransferableTest.java │ │ │ ├── SyntaxSchemeTest.java │ │ │ ├── SyntaxViewTest.java │ │ │ ├── TextEditorPaneTest.java │ │ │ ├── ThemeTest.java │ │ │ ├── TokenImplTest.java │ │ │ ├── TokenIteratorTest.java │ │ │ ├── TokenMakerFactoryTest.java │ │ │ ├── TokenUtilsTest.java │ │ │ ├── URLFileLocationTest.java │ │ │ ├── VisibleWhitespaceTokenPainterTest.java │ │ │ ├── WrappedSyntaxViewTest.java │ │ │ ├── XmlOccurrenceMarkerTest.java │ │ │ ├── focusabletip │ │ │ │ ├── FocusableTipTest.java │ │ │ │ ├── SizeGripTest.java │ │ │ │ ├── TipUtilTest.java │ │ │ │ └── TipWindowTest.java │ │ │ ├── folding │ │ │ │ ├── CurlyFoldParserTest.java │ │ │ │ ├── FoldParserManagerTest.java │ │ │ │ ├── FoldTest.java │ │ │ │ ├── HtmlFoldParserTest.java │ │ │ │ ├── JsonFoldParserTest.java │ │ │ │ ├── LatexFoldParserTest.java │ │ │ │ ├── LinesWithContentFoldParserTest.java │ │ │ │ ├── LispFoldParserTest.java │ │ │ │ ├── NsisFoldParserTest.java │ │ │ │ ├── PythonFoldParserTest.java │ │ │ │ └── YamlFoldParserTest.java │ │ │ ├── modes │ │ │ │ ├── AbstractCDerivedTokenMakerTest.java │ │ │ │ ├── AbstractJFlexCTokenMakerCStyleInsertBreakActionTest.java │ │ │ │ ├── AbstractJFlexTokenMakerTest.java │ │ │ │ ├── AbstractTokenMakerTest.java │ │ │ │ ├── ActionScriptTokenMakerTest.java │ │ │ │ ├── Assembler6502TokenMakerTest.java │ │ │ │ ├── AssemblerX86TokenMakerTest.java │ │ │ │ ├── BBCodeTokenMakerTest.java │ │ │ │ ├── CPlusPlusTokenMakerTest.java │ │ │ │ ├── CSSTokenMakerTest.java │ │ │ │ ├── CSharpTokenMakerTest.java │ │ │ │ ├── CTokenMakerTest.java │ │ │ │ ├── ClojureTokenMakerTest.java │ │ │ │ ├── CsvTokenMakerTest.java │ │ │ │ ├── DTokenMakerTest.java │ │ │ │ ├── DartTokenMakerTest.java │ │ │ │ ├── DelphiTokenMakerTest.java │ │ │ │ ├── DockerTokenMakerTest.java │ │ │ │ ├── DtdTokenMakerTest.java │ │ │ │ ├── FortranTokenMakerTest.java │ │ │ │ ├── GoTokenMakerTest.java │ │ │ │ ├── GroovyTokenMakerTest.java │ │ │ │ ├── HTMLTokenMakerTest.java │ │ │ │ ├── HandlebarsTokenMakerTest.java │ │ │ │ ├── HostsTokenMakerTest.java │ │ │ │ ├── HtaccessTokenMakerTest.java │ │ │ │ ├── IniTokenMakerTest.java │ │ │ │ ├── JSPTokenMakerTest.java │ │ │ │ ├── JavaScriptTokenMakerTest.java │ │ │ │ ├── JavaTokenMakerTest.java │ │ │ │ ├── JshintrcTokenMakerTest.java │ │ │ │ ├── JsonTokenMakerTest.java │ │ │ │ ├── KotlinTokenMakerTest.java │ │ │ │ ├── LatexTokenMakerTest.java │ │ │ │ ├── LessTokenMakerTest.java │ │ │ │ ├── LispTokenMakerTest.java │ │ │ │ ├── LuaTokenMakerTest.java │ │ │ │ ├── MakefileTokenMakerTest.java │ │ │ │ ├── MarkdownTokenMakerTest.java │ │ │ │ ├── MxmlTokenMakerTest.java │ │ │ │ ├── NSISTokenMakerTest.java │ │ │ │ ├── PHPTokenMakerTest.java │ │ │ │ ├── PerlTokenMakerTest.java │ │ │ │ ├── PlainTextTokenMakerTest.java │ │ │ │ ├── PropertiesFileTokenMakerTest.java │ │ │ │ ├── ProtoTokenMakerTest.java │ │ │ │ ├── PythonTokenMakerTest.java │ │ │ │ ├── RubyTokenMakerTest.java │ │ │ │ ├── RustTokenMakerTest.java │ │ │ │ ├── SASTokenMakerTest.java │ │ │ │ ├── SQLTokenMakerTest.java │ │ │ │ ├── ScalaTokenMakerTest.java │ │ │ │ ├── TclTokenMakerTest.java │ │ │ │ ├── TypeScriptTokenMakerTest.java │ │ │ │ ├── UnixShellTokenMakerTest.java │ │ │ │ ├── VhdlTokenMakerTest.java │ │ │ │ ├── VisualBasicTokenMakerTest.java │ │ │ │ ├── WindowsBatchTokenMakerTest.java │ │ │ │ ├── XMLTokenMakerTest.java │ │ │ │ └── YamlTokenMakerTest.java │ │ │ ├── parser │ │ │ │ ├── AbstractParserTest.java │ │ │ │ ├── DefaultParseResultTest.java │ │ │ │ ├── DefaultParserNoticeTest.java │ │ │ │ ├── MockExtendedHyperlinkListener.java │ │ │ │ ├── MockParser.java │ │ │ │ ├── ParserNoticeLevelTest.java │ │ │ │ ├── TaskTagParserTest.java │ │ │ │ ├── ToolTipInfoTest.java │ │ │ │ └── XmlParserTest.java │ │ │ └── templates │ │ │ │ └── StaticCodeTemplateTest.java │ │ └── rtextarea │ │ │ ├── AbstractRTextAreaTest.java │ │ │ ├── BufferedImageBackgroundPainterStrategyTest.java │ │ │ ├── ChangeableHighlightPainterTest.java │ │ │ ├── ClipboardHistoryPopupTest.java │ │ │ ├── ConfigurableCaretTest.java │ │ │ ├── EmptyTestFoldIndicatorIcon.java │ │ │ ├── EmptyTestIcon.java │ │ │ ├── FoldIndicatorTest.java │ │ │ ├── FontUtilTest.java │ │ │ ├── GutterTest.java │ │ │ ├── IconGroupTest.java │ │ │ ├── IconRowEventTest.java │ │ │ ├── IconRowHeaderTest.java │ │ │ ├── LineHighlightManagerTest.java │ │ │ ├── LineNumberListTest.java │ │ │ ├── MacroTest.java │ │ │ ├── PlusMinusFoldIconTest.java │ │ │ ├── RDocumentCharSequenceTest.java │ │ │ ├── RDocumentTest.java │ │ │ ├── RTATextTransferHandlerTest.java │ │ │ ├── RTextAreaEditorKitBeepActionTest.java │ │ │ ├── RTextAreaEditorKitBeginActionTest.java │ │ │ ├── RTextAreaEditorKitBeginLineActionTest.java │ │ │ ├── RTextAreaEditorKitBeginRecordingMacroActionTest.java │ │ │ ├── RTextAreaEditorKitBeginWordActionTest.java │ │ │ ├── RTextAreaEditorKitClipboardHistoryActionTest.java │ │ │ ├── RTextAreaEditorKitCopyActionTest.java │ │ │ ├── RTextAreaEditorKitCutActionTest.java │ │ │ ├── RTextAreaEditorKitDecreaseFontSizeActionTest.java │ │ │ ├── RTextAreaEditorKitDefaultKeyTypedActionTest.java │ │ │ ├── RTextAreaEditorKitDeleteLineActionTest.java │ │ │ ├── RTextAreaEditorKitDeleteNextCharActionTest.java │ │ │ ├── RTextAreaEditorKitDeletePrevCharActionTest.java │ │ │ ├── RTextAreaEditorKitDeletePrevWordActionTest.java │ │ │ ├── RTextAreaEditorKitDeleteRestOfLineActionTest.java │ │ │ ├── RTextAreaEditorKitDumbCompleteWordActionTest.java │ │ │ ├── RTextAreaEditorKitEndActionTest.java │ │ │ ├── RTextAreaEditorKitEndLineActionTest.java │ │ │ ├── RTextAreaEditorKitEndRecordingMacroActionTest.java │ │ │ ├── RTextAreaEditorKitEndWordActionTest.java │ │ │ ├── RTextAreaEditorKitIncreaseFontSizeActionTest.java │ │ │ ├── RTextAreaEditorKitInsertBreakActionTest.java │ │ │ ├── RTextAreaEditorKitInsertContentActionTest.java │ │ │ ├── RTextAreaEditorKitInsertTabActionTest.java │ │ │ ├── RTextAreaEditorKitInvertSelectionCaseActionTest.java │ │ │ ├── RTextAreaEditorKitJoinLinesActionTest.java │ │ │ ├── RTextAreaEditorKitLineMoveActionTest.java │ │ │ ├── RTextAreaEditorKitLowerSelectionCaseActionTest.java │ │ │ ├── RTextAreaEditorKitNextBookmarkActionTest.java │ │ │ ├── RTextAreaEditorKitNextOccurrenceActionTest.java │ │ │ ├── RTextAreaEditorKitNextVisualPositionActionTest.java │ │ │ ├── RTextAreaEditorKitNextWordActionTest.java │ │ │ ├── RTextAreaEditorKitPageActionTest.java │ │ │ ├── RTextAreaEditorKitPasteActionTest.java │ │ │ ├── RTextAreaEditorKitPlaybackLastMacroActionTest.java │ │ │ ├── RTextAreaEditorKitPreviousOccurrenceActionTest.java │ │ │ ├── RTextAreaEditorKitPreviousWordActionTest.java │ │ │ ├── RTextAreaEditorKitRedoActionTest.java │ │ │ ├── RTextAreaEditorKitScrollActionTest.java │ │ │ ├── RTextAreaEditorKitSelectAllActionTest.java │ │ │ ├── RTextAreaEditorKitSelectLineActionTest.java │ │ │ ├── RTextAreaEditorKitSelectWordActionTest.java │ │ │ ├── RTextAreaEditorKitSetReadOnlyActionTest.java │ │ │ ├── RTextAreaEditorKitSetWritableActionTest.java │ │ │ ├── RTextAreaEditorKitTimeDateActionTest.java │ │ │ ├── RTextAreaEditorKitToggleBookmarkActionTest.java │ │ │ ├── RTextAreaEditorKitToggleTextModeActionTest.java │ │ │ ├── RTextAreaEditorKitUndoActionTest.java │ │ │ ├── RTextAreaEditorKitUnselectActionTest.java │ │ │ ├── RTextAreaEditorKitUpperSelectionCaseActionTest.java │ │ │ ├── RTextAreaEditorKitVerticalPageActionTest.java │ │ │ ├── RTextAreaHighlighterTest.java │ │ │ ├── RTextAreaTest.java │ │ │ ├── RTextAreaUITest.java │ │ │ ├── RTextScrollPaneTest.java │ │ │ ├── SearchContextTest.java │ │ │ ├── SearchEngineTest.java │ │ │ ├── SmartHighlightPainterTest.java │ │ │ └── VolatileImageBackgroundPainterStrategyTest.java │ │ └── util │ │ └── DynamicIntArrayTest.java │ └── resources │ └── org │ └── fife │ └── ui │ ├── rsyntaxtextarea │ ├── ThemeTest_theme1.xml │ ├── ThemeTest_theme1_noArmedBG.xml │ ├── ThemeTest_theme1_noLineNumbers_currentFG.xml │ ├── TokenIteratorTest_JavaBasic.txt │ └── TokenIteratorTest_UnterminatedJavadoc.txt │ └── rtextarea │ ├── SearchEngineTest.txt │ └── example-image.png ├── RSyntaxTextAreaDemo ├── README.md ├── build.gradle └── src │ └── main │ ├── java │ └── org │ │ └── fife │ │ └── ui │ │ └── rsyntaxtextarea │ │ └── demo │ │ ├── DemoRootPane.java │ │ ├── FindAndReplaceDemo.java │ │ ├── RSyntaxTextAreaDemoApp.java │ │ ├── SyntaxSchemeDemo.java │ │ └── package.html │ └── resources │ └── org │ └── fife │ └── ui │ └── rsyntaxtextarea │ └── demo │ ├── ActionScriptExample.txt │ ├── Assembler6502.txt │ ├── CExample.txt │ ├── CSharpExample.txt │ ├── ClojureExample.txt │ ├── CssExample.txt │ ├── DockerfileExample.txt │ ├── GoExample.txt │ ├── HandlebarsExample.txt │ ├── HostsExample.txt │ ├── HtmlExample.txt │ ├── IniExample.txt │ ├── JavaExample.txt │ ├── JavaScriptExample.txt │ ├── JsonExample.txt │ ├── JspExample.txt │ ├── KotlinExample.txt │ ├── LatexExample.txt │ ├── LessExample.txt │ ├── MarkdownExample.txt │ ├── NoneExample.txt │ ├── PerlExample.txt │ ├── PhpExample.txt │ ├── ProtoExample.txt │ ├── PythonExample.txt │ ├── RubyExample.txt │ ├── RustExample.txt │ ├── SQLExample.txt │ ├── TypeScriptExample.txt │ ├── VhdlExample.txt │ ├── XMLExample.txt │ ├── YamlExample.txt │ └── bookmark.png ├── build.gradle ├── config ├── checkstyle │ ├── checkstyle.xml │ ├── javaHeader.txt │ └── rstaSuppressions.xml └── spotbugs-exclude.xml ├── gradle.properties ├── gradle └── wrapper │ ├── gradle-wrapper.jar │ └── gradle-wrapper.properties ├── gradlew ├── gradlew.bat └── settings.gradle /.editorconfig: -------------------------------------------------------------------------------- 1 | [*.java] 2 | indent_style = tab 3 | indent_size = 4 4 | trim_trailing_whitespace = true 5 | max_line_length = 120 6 | -------------------------------------------------------------------------------- /.github/ISSUE_TEMPLATE/bug_report.md: -------------------------------------------------------------------------------- 1 | --- 2 | name: Bug report 3 | about: Report a bug in the library 4 | title: '' 5 | labels: bug 6 | assignees: '' 7 | 8 | --- 9 | 10 | **Description** 11 | A clear and concise description of what the bug is. 12 | 13 | **Steps to Reproduce** 14 | Specific steps to reproduce the behavior: 15 | 1. Go to '...' 16 | 2. Click on '....' 17 | 3. Scroll down to '....' 18 | 4. See error 19 | 20 | **Expected behavior** 21 | A clear and concise description of what you expected to happen. 22 | 23 | **Actual behavior** 24 | What actually happens 25 | 26 | **Screenshots** 27 | Add a screenshot if it helps explain the problem. 28 | 29 | **Java version** 30 | What version of Java are you running? 31 | 32 | **Additional context** 33 | Add any other context about the problem here. 34 | -------------------------------------------------------------------------------- /.github/ISSUE_TEMPLATE/feature_request.md: -------------------------------------------------------------------------------- 1 | --- 2 | name: Feature request 3 | about: Suggest an enhancement for this library 4 | title: '' 5 | labels: enhancement 6 | assignees: '' 7 | 8 | --- 9 | 10 | **Describe the solution you'd like** 11 | A clear and concise description of what you want to happen. 12 | 13 | **Are there any workarounds?** 14 | Are there any workarounds for folks while this feature is not yet implemented? 15 | 16 | **Additional context** 17 | Add any other context or screenshots about the feature request here. 18 | -------------------------------------------------------------------------------- /.github/dependabot.yml: -------------------------------------------------------------------------------- 1 | # Set update schedule for GitHub Actions 2 | version: 2 3 | updates: 4 | - package-ecosystem: "github-actions" 5 | directory: "/" 6 | schedule: 7 | # Check for updates to GitHub Actions every week 8 | interval: "weekly" 9 | -------------------------------------------------------------------------------- /.github/workflows/gradle.yml: -------------------------------------------------------------------------------- 1 | # This workflow will build a Java project with Gradle 2 | # For more information see: https://help.github.com/actions/language-and-framework-guides/building-and-testing-java-with-gradle 3 | 4 | name: Gradle Build 5 | 6 | on: 7 | push: 8 | branches: [ master ] 9 | pull_request: 10 | branches: [ master ] 11 | 12 | jobs: 13 | build: 14 | 15 | runs-on: ubuntu-latest 16 | 17 | strategy: 18 | matrix: 19 | java: [ '17', '21', '23' ] 20 | 21 | steps: 22 | - uses: actions/checkout@v4 23 | 24 | - name: Verify gradle wrapper 25 | uses: gradle/actions/wrapper-validation@v4 26 | if: matrix.java == '17' 27 | 28 | - name: Set up JDK ${{ matrix.java }} 29 | uses: actions/setup-java@v4 30 | with: 31 | java-version: ${{ matrix.java }} 32 | distribution: 'temurin' 33 | 34 | - name: Grant execute permission for gradlew 35 | run: chmod +x gradlew 36 | 37 | # Note: Assumes we're running on Ubuntu 38 | # https://github.com/actions/runner-images/blob/main/images/ubuntu/Ubuntu2404-Readme.md 39 | - name: Build with Gradle 40 | run: xvfb-run ./gradlew build jacocoTestReport -xsign -xpublish --warning-mode all 41 | 42 | - name: Submit coverage data to codecov 43 | uses: codecov/codecov-action@v5 44 | if: matrix.java == '17' 45 | with: 46 | token: ${{ secrets.CODECOV_TOKEN }} 47 | disable_search: true 48 | files: ./RSyntaxTextArea/build/reports/jacoco/test/jacocoTestReport.xml 49 | name: codecov 50 | -------------------------------------------------------------------------------- /.gitignore: -------------------------------------------------------------------------------- 1 | .idea 2 | *.iml 3 | rsyntaxtextarea_*.zip 4 | *.java~ 5 | build 6 | .gradle 7 | /.settings/ 8 | bin/ 9 | out/ 10 | -------------------------------------------------------------------------------- /LICENSE.md: -------------------------------------------------------------------------------- 1 | Copyright (c) 2021, Robert Futrell 2 | All rights reserved. 3 | 4 | Redistribution and use in source and binary forms, with or without 5 | modification, are permitted provided that the following conditions are met: 6 | 7 | * Redistributions of source code must retain the above copyright 8 | notice, this list of conditions and the following disclaimer. 9 | * Redistributions in binary form must reproduce the above copyright 10 | notice, this list of conditions and the following disclaimer in the 11 | documentation and/or other materials provided with the distribution. 12 | * Neither the name of the copyright holder nor the names of its contributors 13 | may be used to endorse or promote products derived from this software 14 | without specific prior written permission. 15 | 16 | THIS SOFTWARE IS PROVIDED BY THE COPYRIGHT HOLDERS AND CONTRIBUTORS "AS IS" AND 17 | ANY EXPRESS OR IMPLIED WARRANTIES, INCLUDING, BUT NOT LIMITED TO, THE IMPLIED 18 | WARRANTIES OF MERCHANTABILITY AND FITNESS FOR A PARTICULAR PURPOSE ARE 19 | DISCLAIMED. IN NO EVENT SHALL THE COPYRIGHT HOLDERS OR CONTRIBUTORS BE LIABLE FOR 20 | ANY DIRECT, INDIRECT, INCIDENTAL, SPECIAL, EXEMPLARY, OR CONSEQUENTIAL DAMAGES 21 | (INCLUDING, BUT NOT LIMITED TO, PROCUREMENT OF SUBSTITUTE GOODS OR SERVICES; 22 | LOSS OF USE, DATA, OR PROFITS; OR BUSINESS INTERRUPTION) HOWEVER CAUSED AND 23 | ON ANY THEORY OF LIABILITY, WHETHER IN CONTRACT, STRICT LIABILITY, OR TORT 24 | (INCLUDING NEGLIGENCE OR OTHERWISE) ARISING IN ANY WAY OUT OF THE USE OF THIS 25 | SOFTWARE, EVEN IF ADVISED OF THE POSSIBILITY OF SUCH DAMAGE. 26 | -------------------------------------------------------------------------------- /RSyntaxTextArea/README.md: -------------------------------------------------------------------------------- 1 | # RSyntaxTextArea 2 | This is the module containing the actual source code. 3 | -------------------------------------------------------------------------------- /RSyntaxTextArea/src/main/java/org/fife/io/package.html: -------------------------------------------------------------------------------- 1 | 2 | 3 | Utility I/O classes. 4 | 5 | 6 | -------------------------------------------------------------------------------- /RSyntaxTextArea/src/main/java/org/fife/print/package.html: -------------------------------------------------------------------------------- 1 | 2 | 3 | Utility methods for printing text in a JTextComponent. 4 | 5 | 6 | -------------------------------------------------------------------------------- /RSyntaxTextArea/src/main/java/org/fife/ui/rsyntaxtextarea/AbstractTokenMaker.java: -------------------------------------------------------------------------------- 1 | /* 2 | * 11/07/2004 3 | * 4 | * AbstractTokenMaker.java - An abstract implementation of TokenMaker. 5 | * 6 | * This library is distributed under a modified BSD license. See the included 7 | * LICENSE file for details. 8 | */ 9 | package org.fife.ui.rsyntaxtextarea; 10 | 11 | 12 | /** 13 | * An abstract implementation of the 14 | * {@link org.fife.ui.rsyntaxtextarea.TokenMaker} interface. It should 15 | * be overridden for every language for which you want to provide 16 | * syntax highlighting.

17 | * 18 | * @see Token 19 | * 20 | * @author Robert Futrell 21 | * @version 0.2 22 | */ 23 | public abstract class AbstractTokenMaker extends TokenMakerBase { 24 | 25 | /** 26 | * Hash table of words to highlight and what token type they are. 27 | * The keys are the words to highlight, and their values are the 28 | * token types, for example, Token.RESERVED_WORD or 29 | * Token.FUNCTION. 30 | */ 31 | protected TokenMap wordsToHighlight; 32 | 33 | 34 | /** 35 | * Constructor. 36 | */ 37 | public AbstractTokenMaker() { 38 | wordsToHighlight = getWordsToHighlight(); 39 | } 40 | 41 | 42 | /** 43 | * Returns the words to highlight for this programming language. 44 | * 45 | * @return A TokenMap containing the words to highlight for 46 | * this programming language. 47 | */ 48 | public abstract TokenMap getWordsToHighlight(); 49 | 50 | 51 | /** 52 | * Removes the token last added from the linked list of tokens. The 53 | * programmer should never have to call this directly; it can be called 54 | * by subclasses of TokenMaker if necessary. 55 | */ 56 | public void removeLastToken() { 57 | if (previousToken==null) { 58 | firstToken = currentToken = null; 59 | } 60 | else { 61 | currentToken = previousToken; 62 | currentToken.setNextToken(null); 63 | } 64 | } 65 | 66 | 67 | } 68 | -------------------------------------------------------------------------------- /RSyntaxTextArea/src/main/java/org/fife/ui/rsyntaxtextarea/ActiveLineRangeEvent.java: -------------------------------------------------------------------------------- 1 | /* 2 | * 02/06/2011 3 | * 4 | * ActiveLineRangeEvent.java - Notifies listeners of an "active line range" 5 | * change in an RSyntaxTextArea. 6 | * 7 | * This library is distributed under a modified BSD license. See the included 8 | * LICENSE file for details. 9 | */ 10 | package org.fife.ui.rsyntaxtextarea; 11 | 12 | import java.util.EventObject; 13 | 14 | 15 | /** 16 | * The event fired by {@link RSyntaxTextArea}s when the active line range 17 | * changes. 18 | * 19 | * @author Robert Futrell 20 | * @version 1.0 21 | */ 22 | public class ActiveLineRangeEvent extends EventObject { 23 | 24 | private int min; 25 | private int max; 26 | 27 | 28 | /** 29 | * Constructor. 30 | * 31 | * @param source The text area. 32 | * @param min The first line in the active line range, or 33 | * -1 if the line range is being cleared. 34 | * @param max The last line in the active line range, or 35 | * -1 if the line range is being cleared. 36 | */ 37 | public ActiveLineRangeEvent(RSyntaxTextArea source, int min, int max) { 38 | super(source); 39 | this.min = min; 40 | this.max = max; 41 | } 42 | 43 | 44 | /** 45 | * Returns the last line in the active line range. 46 | * 47 | * @return The last line, or -1 if the range is being 48 | * cleared. 49 | * @see #getMin() 50 | */ 51 | public int getMax() { 52 | return max; 53 | } 54 | 55 | 56 | /** 57 | * Returns the first line in the active line range. 58 | * 59 | * @return The first line, or -1 if the range is being 60 | * cleared. 61 | * @see #getMax() 62 | */ 63 | public int getMin() { 64 | return min; 65 | } 66 | 67 | 68 | } 69 | -------------------------------------------------------------------------------- /RSyntaxTextArea/src/main/java/org/fife/ui/rsyntaxtextarea/ActiveLineRangeListener.java: -------------------------------------------------------------------------------- 1 | /* 2 | * 02/06/2011 3 | * 4 | * ActiveLineRangeListener.java - Listens for "active line range" changes 5 | * in an RSyntaxTextArea. 6 | * 7 | * This library is distributed under a modified BSD license. See the included 8 | * LICENSE file for details. 9 | */ 10 | package org.fife.ui.rsyntaxtextarea; 11 | 12 | import java.util.EventListener; 13 | 14 | 15 | /** 16 | * Listens for "active line range" events from an RSyntaxTextArea. 17 | * If a text area contains some semantic knowledge of the programming language 18 | * being edited, it may broadcast {@link ActiveLineRangeEvent}s whenever the 19 | * caret moves into a new "block" of code. Listeners can listen for these 20 | * events and respond accordingly.

21 | * 22 | * See the RSTALanguageSupport project at 23 | * 24 | * https://github.com/bobbylight/RSTALanguageSupport for some 25 | * LanguageSupport implementations that may broadcast these 26 | * events. Note that if an RSTA/LanguageSupport does not support broadcasting 27 | * these events, the listener will simply never receive any notifications. 28 | * 29 | * @author Robert Futrell 30 | * @version 1.0 31 | */ 32 | public interface ActiveLineRangeListener extends EventListener { 33 | 34 | 35 | /** 36 | * Called whenever the "active line range" changes. 37 | * 38 | * @param e Information about the line range change. If there is no longer 39 | * an "active line range," the "minimum" and "maximum" line values 40 | * should both be -1. 41 | */ 42 | void activeLineRangeChanged(ActiveLineRangeEvent e); 43 | 44 | 45 | } 46 | -------------------------------------------------------------------------------- /RSyntaxTextArea/src/main/java/org/fife/ui/rsyntaxtextarea/DefaultTokenPainterFactory.java: -------------------------------------------------------------------------------- 1 | /* 2 | * This library is distributed under a modified BSD license. See the included 3 | * LICENSE file for details. 4 | */ 5 | package org.fife.ui.rsyntaxtextarea; 6 | 7 | 8 | /** 9 | * Standard implementation of a token painter factory. 10 | * 11 | * @author Robert Futrell 12 | * @version 1.0 13 | * @see DefaultTokenPainter 14 | * @see VisibleWhitespaceTokenPainter 15 | */ 16 | public class DefaultTokenPainterFactory implements TokenPainterFactory { 17 | 18 | 19 | @Override 20 | public TokenPainter getTokenPainter(RSyntaxTextArea textArea) { 21 | return textArea.isWhitespaceVisible() ? new VisibleWhitespaceTokenPainter() : 22 | new DefaultTokenPainter(); 23 | } 24 | 25 | 26 | } 27 | -------------------------------------------------------------------------------- /RSyntaxTextArea/src/main/java/org/fife/ui/rsyntaxtextarea/LinkGenerator.java: -------------------------------------------------------------------------------- 1 | /* 2 | * 02/16/2012 3 | * 4 | * This library is distributed under a modified BSD license. See the included 5 | * LICENSE file for details. 6 | */ 7 | package org.fife.ui.rsyntaxtextarea; 8 | 9 | 10 | /** 11 | * Generates hyperlinks in a document. If one of these is installed on an 12 | * RSyntaxTextArea it is queried when the mouse is moved and 13 | * hyperlinks are enabled. If the user is not hovering over a "real" hyperlink 14 | * (e.g. "https://www.google.com"), the link generator is asked if a text region 15 | * at the mouse position should be considered a hyperlink. If so, a result 16 | * object is returned, describing exactly what region of text is the link, and 17 | * where it goes to.

18 | * 19 | * This interface is typically used by applications providing advanced support 20 | * for programming languages, such as IDEs. For example, an implementation of 21 | * this class could identify the token under the mouse position as a "variable," 22 | * and the hyperlink returned would select the variable's declaration in the 23 | * document. 24 | * 25 | * @author Robert Futrell 26 | * @version 1.0 27 | */ 28 | public interface LinkGenerator { 29 | 30 | 31 | /** 32 | * If a region of text under the mouse position should be considered a 33 | * hyperlink, a result object is returned. This object describes what 34 | * region of text is the link, and what action to perform if the link is 35 | * clicked. 36 | * 37 | * @param textArea The text component. 38 | * @param offs The offset in the document under the mouse position. 39 | * @return The link information, or null if no link is at the 40 | * specified offset. 41 | */ 42 | LinkGeneratorResult isLinkAtOffset(RSyntaxTextArea textArea, int offs); 43 | 44 | 45 | } 46 | -------------------------------------------------------------------------------- /RSyntaxTextArea/src/main/java/org/fife/ui/rsyntaxtextarea/LinkGeneratorResult.java: -------------------------------------------------------------------------------- 1 | /* 2 | * 02/16/2012 3 | * 4 | * This library is distributed under a modified BSD license. See the included 5 | * LICENSE file for details. 6 | */ 7 | package org.fife.ui.rsyntaxtextarea; 8 | 9 | import javax.swing.event.HyperlinkEvent; 10 | 11 | 12 | /** 13 | * A result object from a {@link LinkGenerator}. Implementations of this class 14 | * specify what action to execute when the user clicks on the "link" specified 15 | * by the LinkGenerator. Typically, this will do something like 16 | * select another region of text in the document (the declaration of the 17 | * variable at the mouse position), or open another file in the parent 18 | * application, etc. 19 | * 20 | * @author Robert Futrell 21 | * @version 1.0 22 | * @see SelectRegionLinkGeneratorResult 23 | */ 24 | public interface LinkGeneratorResult { 25 | 26 | 27 | /** 28 | * Executes the action associated with this object. This method is called 29 | * when the user clicks on the hyperlinked range of text in the editor.

30 | * 31 | * If the result is a URL to open, a standard hyperlink event can be 32 | * returned. Alternatively, {@code null} can be returned and the action 33 | * performed in this method itself. 34 | * 35 | * @return The hyperlink event to broadcast from the text area, or 36 | * null if the action's behavior occurs in this method 37 | * directly. If a hyperlink event is returned, it should have type 38 | * {@code HyperlinkEvent.EventType#ACTIVATED} to denote the fact 39 | * that the link was clicked. 40 | */ 41 | HyperlinkEvent execute(); 42 | 43 | 44 | /** 45 | * Returns the starting offset of the link specified by the parent 46 | * LinkGenerator. 47 | * 48 | * @return The offset. 49 | */ 50 | int getSourceOffset(); 51 | 52 | 53 | } 54 | -------------------------------------------------------------------------------- /RSyntaxTextArea/src/main/java/org/fife/ui/rsyntaxtextarea/SelectRegionLinkGeneratorResult.java: -------------------------------------------------------------------------------- 1 | /* 2 | * 02/16/2012 3 | * 4 | * This library is distributed under a modified BSD license. See the included 5 | * LICENSE file for details. 6 | */ 7 | package org.fife.ui.rsyntaxtextarea; 8 | 9 | import javax.swing.event.HyperlinkEvent; 10 | 11 | 12 | /** 13 | * A link generator result that selects a region of text in the text area. 14 | * This will typically be used by IDE-style applications, to provide support 15 | * for "linking" the use of a variable in a document to its declaration. 16 | * 17 | * @author Robert Futrell 18 | * @version 1.0 19 | * @see LinkGenerator 20 | */ 21 | public class SelectRegionLinkGeneratorResult implements LinkGeneratorResult { 22 | 23 | private RSyntaxTextArea textArea; 24 | private int sourceOffset; 25 | private int selStart; 26 | private int selEnd; 27 | 28 | 29 | public SelectRegionLinkGeneratorResult(RSyntaxTextArea textArea, 30 | int sourceOffset, int selStart, int selEnd) { 31 | this.textArea = textArea; 32 | this.sourceOffset = sourceOffset; 33 | this.selStart = selStart; 34 | this.selEnd = selEnd; 35 | } 36 | 37 | 38 | /** 39 | * Selects the text in the text area. 40 | */ 41 | @Override 42 | public HyperlinkEvent execute() { 43 | textArea.select(selStart, selEnd); 44 | return null; 45 | } 46 | 47 | 48 | @Override 49 | public int getSourceOffset() { 50 | return sourceOffset; 51 | } 52 | 53 | 54 | } 55 | -------------------------------------------------------------------------------- /RSyntaxTextArea/src/main/java/org/fife/ui/rsyntaxtextarea/TokenPainterFactory.java: -------------------------------------------------------------------------------- 1 | /* 2 | * This library is distributed under a modified BSD license. See the included 3 | * LICENSE file for details. 4 | */ 5 | package org.fife.ui.rsyntaxtextarea; 6 | 7 | 8 | /** 9 | * Returns the {@link TokenPainter} to use for a text area. 10 | * 11 | * @author Robert Futrell 12 | * @version 1.0 13 | */ 14 | public interface TokenPainterFactory { 15 | 16 | 17 | /** 18 | * Returns the text area to use. 19 | * 20 | * @param textArea The text area. 21 | * @return The token painter. 22 | */ 23 | TokenPainter getTokenPainter(RSyntaxTextArea textArea); 24 | 25 | 26 | } 27 | -------------------------------------------------------------------------------- /RSyntaxTextArea/src/main/java/org/fife/ui/rsyntaxtextarea/focusabletip/package.html: -------------------------------------------------------------------------------- 1 | 2 | 3 | An implementation of a focusable tooltip. 4 | 5 | 6 | -------------------------------------------------------------------------------- /RSyntaxTextArea/src/main/java/org/fife/ui/rsyntaxtextarea/folding/FoldParser.java: -------------------------------------------------------------------------------- 1 | /* 2 | * 10/08/2011 3 | * 4 | * FoldParser.java - Locates folds in an RSyntaxTextArea instance. 5 | * 6 | * This library is distributed under a modified BSD license. See the included 7 | * LICENSE file for details. 8 | */ 9 | package org.fife.ui.rsyntaxtextarea.folding; 10 | 11 | import java.util.List; 12 | 13 | import org.fife.ui.rsyntaxtextarea.RSyntaxTextArea; 14 | 15 | 16 | /** 17 | * Locates folds in a document. If you are implementing a language that has 18 | * sections of source code that can be logically "folded," you can create an 19 | * instance of this interface that locates those regions and represents them 20 | * as {@link Fold}s. RSyntaxTextArea knows how to take it from 21 | * there and implement code folding in the editor. 22 | * 23 | * @author Robert Futrell 24 | * @version 1.0 25 | * @see CurlyFoldParser 26 | * @see XmlFoldParser 27 | */ 28 | public interface FoldParser { 29 | 30 | 31 | /** 32 | * Returns a list of all folds in the text area. 33 | * 34 | * @param textArea The text area whose contents should be analyzed. 35 | * @return The list of folds. If this method returns null, 36 | * it is treated as if no folds were found. 37 | */ 38 | List getFolds(RSyntaxTextArea textArea); 39 | 40 | 41 | } 42 | -------------------------------------------------------------------------------- /RSyntaxTextArea/src/main/java/org/fife/ui/rsyntaxtextarea/folding/LinesWithContentFoldParser.java: -------------------------------------------------------------------------------- 1 | /* 2 | * This library is distributed under a modified BSD license. See the included 3 | * LICENSE file for details. 4 | */ 5 | package org.fife.ui.rsyntaxtextarea.folding; 6 | 7 | import org.fife.ui.rsyntaxtextarea.RSyntaxTextArea; 8 | import org.fife.ui.rsyntaxtextarea.Token; 9 | import org.fife.ui.rsyntaxtextarea.TokenUtils; 10 | 11 | import javax.swing.text.BadLocationException; 12 | import java.util.ArrayList; 13 | import java.util.List; 14 | 15 | 16 | /** 17 | * A fold parser that considers any contiguous group of lines without a blank 18 | * line to be a "block" of code. Useful for languages that don't have the 19 | * concept of code blocks, such as assembly languages. 20 | * 21 | * @author Robert Futrell 22 | * @version 1.0 23 | */ 24 | public class LinesWithContentFoldParser implements FoldParser { 25 | 26 | 27 | @Override 28 | public List getFolds(RSyntaxTextArea textArea) { 29 | 30 | List folds = new ArrayList<>(); 31 | 32 | Fold fold = null; 33 | int lineCount = textArea.getLineCount(); 34 | 35 | try { 36 | 37 | for (int line=0; line < lineCount; line++) { 38 | 39 | Token t = textArea.getTokenListForLine(line); 40 | 41 | if (!TokenUtils.isBlankOrAllWhiteSpaceWithoutComments(t)) { 42 | 43 | // A line with content after blank lines 44 | if (fold == null) { 45 | fold = new Fold(FoldType.CODE, textArea, t.getOffset()); 46 | folds.add(fold); 47 | } 48 | } 49 | else if (fold != null) { 50 | // Null tokens have nonsensical offsets for some reason 51 | fold.setEndOffset(textArea.getLineStartOffset(line) - 1); 52 | if (fold.isOnSingleLine()) { 53 | folds.remove(folds.size()-1); 54 | } 55 | fold = null; 56 | } 57 | } 58 | } catch (BadLocationException ble) { // Should never happen 59 | ble.printStackTrace(); 60 | } 61 | 62 | return folds; 63 | } 64 | } 65 | -------------------------------------------------------------------------------- /RSyntaxTextArea/src/main/java/org/fife/ui/rsyntaxtextarea/folding/LispFoldParser.java: -------------------------------------------------------------------------------- 1 | /* 2 | * 08/08/2012 3 | * 4 | * LispFoldParser.java - Fold parser for Lisp and related languages. 5 | * 6 | * This library is distributed under a modified BSD license. See the included 7 | * LICENSE file for details. 8 | */ 9 | package org.fife.ui.rsyntaxtextarea.folding; 10 | 11 | import org.fife.ui.rsyntaxtextarea.Token; 12 | 13 | 14 | /** 15 | * Fold parser for Lisp and related languages. 16 | * 17 | * @author Robert Futrell 18 | * @version 1.0 19 | */ 20 | public class LispFoldParser extends CurlyFoldParser { 21 | 22 | 23 | @Override 24 | public boolean isLeftCurly(Token t) { 25 | return t.isSingleChar(Token.SEPARATOR, '('); 26 | } 27 | 28 | 29 | @Override 30 | public boolean isRightCurly(Token t) { 31 | return t.isSingleChar(Token.SEPARATOR, ')'); 32 | } 33 | 34 | 35 | } 36 | -------------------------------------------------------------------------------- /RSyntaxTextArea/src/main/java/org/fife/ui/rsyntaxtextarea/folding/package.html: -------------------------------------------------------------------------------- 1 | 2 | 3 | Code folding functionality. 4 | 5 | 6 | -------------------------------------------------------------------------------- /RSyntaxTextArea/src/main/java/org/fife/ui/rsyntaxtextarea/modes/AbstractMarkupTokenMaker.java: -------------------------------------------------------------------------------- 1 | /* 2 | * 10/03/2009 3 | * 4 | * AbstractMarkupTokenMaker.java - Base class for token makers for markup 5 | * languages. 6 | * 7 | * This library is distributed under a modified BSD license. See the included 8 | * LICENSE file for details. 9 | */ 10 | package org.fife.ui.rsyntaxtextarea.modes; 11 | 12 | import org.fife.ui.rsyntaxtextarea.AbstractJFlexTokenMaker; 13 | 14 | 15 | /** 16 | * Base class for token makers for markup languages. 17 | * 18 | * @author Robert Futrell 19 | * @version 1.0 20 | */ 21 | public abstract class AbstractMarkupTokenMaker extends AbstractJFlexTokenMaker { 22 | 23 | 24 | /** 25 | * Returns whether markup close tags should be completed. 26 | * 27 | * @return Whether closing markup tags are to be completed. 28 | */ 29 | public abstract boolean getCompleteCloseTags(); 30 | 31 | 32 | @Override 33 | public String[] getLineCommentStartAndEnd(int languageIndex) { 34 | return new String[] { "" }; 35 | } 36 | 37 | 38 | /** 39 | * Overridden to return true. 40 | * 41 | * @return true always. 42 | */ 43 | @Override 44 | public final boolean isMarkupLanguage() { 45 | return true; 46 | } 47 | 48 | 49 | } 50 | -------------------------------------------------------------------------------- /RSyntaxTextArea/src/main/java/org/fife/ui/rsyntaxtextarea/modes/JshintrcTokenMaker.java: -------------------------------------------------------------------------------- 1 | /* 2 | * 03/15/2015 3 | * 4 | * JshintrcTokenMaker.java - Scanner for .jshintrc files. 5 | * 6 | * This library is distributed under a modified BSD license. See the included 7 | * LICENSE file for details. 8 | */ 9 | package org.fife.ui.rsyntaxtextarea.modes; 10 | 11 | 12 | /** 13 | * Scanner for .jshintrc files. This is equivalent to JSON with C-style 14 | * end-of-line comments. 15 | * 16 | * @author Robert Futrell 17 | * @version 1.0 18 | */ 19 | public class JshintrcTokenMaker extends JsonTokenMaker { 20 | 21 | 22 | /** 23 | * Constructor; overridden to enable highlighting of EOL comments. 24 | */ 25 | public JshintrcTokenMaker() { 26 | setHighlightEolComments(true); 27 | } 28 | 29 | 30 | } 31 | -------------------------------------------------------------------------------- /RSyntaxTextArea/src/main/java/org/fife/ui/rsyntaxtextarea/modes/LessTokenMaker.java: -------------------------------------------------------------------------------- 1 | /* 2 | * 08/23/2015 3 | * 4 | * This library is distributed under a modified BSD license. See the included 5 | * LICENSE file for details. 6 | */ 7 | package org.fife.ui.rsyntaxtextarea.modes; 8 | 9 | import org.fife.ui.rsyntaxtextarea.TokenTypes; 10 | 11 | 12 | /** 13 | * Scanner for Less files. 14 | * 15 | * @author Robert Futrell 16 | * @version 1.0 17 | */ 18 | public class LessTokenMaker extends CSSTokenMaker { 19 | 20 | 21 | /** 22 | * Constructor; overridden to enable the niceties added by Less. 23 | */ 24 | public LessTokenMaker() { 25 | setHighlightingLess(true); 26 | } 27 | 28 | 29 | @Override 30 | public String[] getLineCommentStartAndEnd(int languageIndex) { 31 | return new String[] { "//", null }; 32 | } 33 | 34 | 35 | @Override 36 | public boolean getMarkOccurrencesOfTokenType(int type) { 37 | return type == TokenTypes.VARIABLE || 38 | super.getMarkOccurrencesOfTokenType(type); 39 | } 40 | 41 | 42 | } 43 | -------------------------------------------------------------------------------- /RSyntaxTextArea/src/main/java/org/fife/ui/rsyntaxtextarea/modes/package.html: -------------------------------------------------------------------------------- 1 | 2 | 3 | Scanners that tokenize source in RSyntaxTextArea. 4 | 5 | 6 | -------------------------------------------------------------------------------- /RSyntaxTextArea/src/main/java/org/fife/ui/rsyntaxtextarea/package.html: -------------------------------------------------------------------------------- 1 | 2 | 3 | A syntax-highlighting text editor. 4 | 5 | 6 | -------------------------------------------------------------------------------- /RSyntaxTextArea/src/main/java/org/fife/ui/rsyntaxtextarea/parser/ExtendedHyperlinkListener.java: -------------------------------------------------------------------------------- 1 | /* 2 | * 07/31/2009 3 | * 4 | * ExtendedHyperlinkListener.java - A hyperlink event from a FocusableTip. 5 | * 6 | * This library is distributed under a modified BSD license. See the included 7 | * LICENSE file for details. 8 | */ 9 | package org.fife.ui.rsyntaxtextarea.parser; 10 | 11 | import java.util.EventListener; 12 | 13 | import javax.swing.event.HyperlinkEvent; 14 | 15 | import org.fife.ui.rsyntaxtextarea.RSyntaxTextArea; 16 | 17 | 18 | /** 19 | * Listens for hyperlink events from 20 | * {@link org.fife.ui.rsyntaxtextarea.focusabletip.FocusableTip}s. In addition 21 | * to the link event, the text area that the tip is for is also received, which 22 | * allows the listener to modify the displayed content, if desired. 23 | * 24 | * @author Robert Futrell 25 | * @version 1.0 26 | */ 27 | public interface ExtendedHyperlinkListener extends EventListener { 28 | 29 | 30 | /** 31 | * Called when a link in a 32 | * {@link org.fife.ui.rsyntaxtextarea.focusabletip.FocusableTip} is clicked. 33 | * 34 | * @param textArea The text area displaying the tip. 35 | * @param e The event. 36 | */ 37 | void linkClicked(RSyntaxTextArea textArea, HyperlinkEvent e); 38 | 39 | 40 | } 41 | -------------------------------------------------------------------------------- /RSyntaxTextArea/src/main/java/org/fife/ui/rsyntaxtextarea/parser/package.html: -------------------------------------------------------------------------------- 1 | 2 | 3 | Interfaces for parsing text in RSyntaxTextAreas and identifying errors, 4 | warnings, etc. Implementations of the Parser interface 5 | are notified when the document has been modified, so they can add 6 | squiggle-underline markers to instances of RSTA to signify code errors and 7 | other important snippets. 8 | 9 | 10 | -------------------------------------------------------------------------------- /RSyntaxTextArea/src/main/java/org/fife/ui/rsyntaxtextarea/templates/package.html: -------------------------------------------------------------------------------- 1 | 2 | 3 | Facilitates adding code templates to an RSyntaxTextArea. 4 | 5 | 6 | -------------------------------------------------------------------------------- /RSyntaxTextArea/src/main/java/org/fife/ui/rtextarea/BackgroundPainterStrategy.java: -------------------------------------------------------------------------------- 1 | /* 2 | * 01/22/2005 3 | * 4 | * BackgroundPainterStrategy.java - Renders an RTextAreaBase's background 5 | * using some strategy. 6 | * 7 | * This library is distributed under a modified BSD license. See the included 8 | * LICENSE file for details. 9 | */ 10 | package org.fife.ui.rtextarea; 11 | 12 | import java.awt.Graphics; 13 | import java.awt.Rectangle; 14 | 15 | 16 | /** 17 | * Interface for classes that paint the background of an 18 | * RTextAreaBase. The Strategy pattern is used for this 19 | * object because the background can be painted as a solid color, as 20 | * an image, and possibly other ways (gradients, animated images, etc.). 21 | * When a method to change the background of an RTextAreaBase 22 | * instance is called (such as setBackground, 23 | * setBackgroundImage or setBackgroundObject), 24 | * the correct strategy is then created and used to paint its background. 25 | * 26 | * @author Robert Futrell 27 | * @version 0.1 28 | * @see org.fife.ui.rtextarea.ImageBackgroundPainterStrategy 29 | * @see org.fife.ui.rtextarea.ColorBackgroundPainterStrategy 30 | */ 31 | public interface BackgroundPainterStrategy { 32 | 33 | 34 | /** 35 | * Paints the background. 36 | * 37 | * @param g The graphics context. 38 | * @param bounds The bounds of the object whose background we're 39 | * painting. 40 | */ 41 | void paint(Graphics g, Rectangle bounds); 42 | 43 | 44 | } 45 | -------------------------------------------------------------------------------- /RSyntaxTextArea/src/main/java/org/fife/ui/rtextarea/CaretStyle.java: -------------------------------------------------------------------------------- 1 | /* 2 | * 04/23/2014 3 | * 4 | * This library is distributed under a modified BSD license. See the included 5 | * LICENSE file for details. 6 | */ 7 | package org.fife.ui.rtextarea; 8 | 9 | 10 | /** 11 | * Provides various ways to render a caret such as {@link ConfigurableCaret}.. 12 | *

13 | * Supported renderings include: 14 | * 15 | *

    16 | *
  1. As a vertical line (like DefaultCaret)
  2. 17 | *
  3. As a slightly thicker vertical line (like Eclipse)
  4. 18 | *
  5. As an underline
  6. 19 | *
  7. As a "block caret"
  8. 20 | *
  9. As a rectangle around the current character
  10. 21 | *
22 | * 23 | * @author Robert Futrell 24 | * @version 1.0 25 | */ 26 | public enum CaretStyle { 27 | 28 | VERTICAL_LINE_STYLE, 29 | 30 | UNDERLINE_STYLE, 31 | 32 | BLOCK_STYLE, 33 | 34 | BLOCK_BORDER_STYLE, 35 | 36 | THICK_VERTICAL_LINE_STYLE 37 | 38 | } 39 | -------------------------------------------------------------------------------- /RSyntaxTextArea/src/main/java/org/fife/ui/rtextarea/ChevronFoldIcon.java: -------------------------------------------------------------------------------- 1 | /* 2 | * This library is distributed under a modified BSD license. See the included 3 | * LICENSE file for details. 4 | */ 5 | package org.fife.ui.rtextarea; 6 | 7 | import java.awt.*; 8 | import java.awt.geom.Path2D; 9 | 10 | 11 | /** 12 | * A fold icon represented by a chevron. 13 | * 14 | * @author Robert Futrell 15 | * @version 1.0 16 | * @see PlusMinusFoldIcon 17 | */ 18 | class ChevronFoldIcon extends FoldIndicatorIcon { 19 | 20 | ChevronFoldIcon(boolean collapsed) { 21 | super(collapsed); 22 | } 23 | 24 | /** 25 | * Creates a closed path for the given points. 26 | */ 27 | private Path2D createPath(double... points) { 28 | Path2D path = new Path2D.Float(); 29 | path.moveTo(points[0], points[1]); 30 | for (int i = 2; i < points.length; i += 2) { 31 | path.lineTo(points[i], points[i + 1]); 32 | } 33 | path.closePath(); 34 | return path; 35 | } 36 | 37 | @Override 38 | public int getIconHeight() { 39 | return 11; 40 | } 41 | 42 | @Override 43 | public int getIconWidth() { 44 | return 11; 45 | } 46 | 47 | @Override 48 | public void paintIcon(Component c, Graphics g, int x, int y) { 49 | 50 | FoldIndicator fi = (FoldIndicator)c; 51 | Color fg = c.getForeground(); 52 | if (isArmed() && fi.getArmedForeground() != null) { 53 | fg = fi.getArmedForeground(); 54 | } 55 | 56 | int width = getIconWidth(); 57 | int height = getIconHeight(); 58 | Graphics2D g2d = (Graphics2D)g.create(); 59 | 60 | try { 61 | 62 | g2d.setRenderingHint(RenderingHints.KEY_ANTIALIASING, 63 | RenderingHints.VALUE_ANTIALIAS_ON); 64 | g2d.setColor(fg); 65 | g2d.translate(x, y); 66 | if (!isCollapsed()) { 67 | g2d.rotate(Math.toRadians(90), width / 2f, height / 2f); 68 | } 69 | g2d.fill(createPath(3, 1, 3, 2.5, 6, 5.5, 3, 8.5, 3, 10, 4.5, 10, 9, 5.5, 4.5, 1)); 70 | } finally { 71 | g2d.dispose(); 72 | } 73 | } 74 | 75 | } 76 | -------------------------------------------------------------------------------- /RSyntaxTextArea/src/main/java/org/fife/ui/rtextarea/ExpandedFoldRenderStrategy.java: -------------------------------------------------------------------------------- 1 | /* 2 | * This library is distributed under a modified BSD license. See the included 3 | * LICENSE file for details. 4 | */ 5 | package org.fife.ui.rtextarea; 6 | 7 | 8 | /** 9 | * The strategy to use when rendering expanded folds in the gutter. 10 | * 11 | * @author Robert Futrell 12 | * @version 1.0 13 | */ 14 | public enum ExpandedFoldRenderStrategy { 15 | 16 | /** 17 | * Always render expanded folds. 18 | */ 19 | ALWAYS, 20 | 21 | /** 22 | * Only render expanded folds when the mouse is hovered over the gutter. 23 | */ 24 | ON_HOVER 25 | } 26 | -------------------------------------------------------------------------------- /RSyntaxTextArea/src/main/java/org/fife/ui/rtextarea/FoldIndicatorIcon.java: -------------------------------------------------------------------------------- 1 | /* 2 | * This library is distributed under a modified BSD license. See the included 3 | * LICENSE file for details. 4 | */ 5 | package org.fife.ui.rtextarea; 6 | 7 | import javax.swing.*; 8 | 9 | 10 | /** 11 | * A base class for icons in a {@code FoldIndicator}. 12 | * 13 | * @author Robert Futrell 14 | * @version 1.0 15 | */ 16 | public abstract class FoldIndicatorIcon implements Icon { 17 | 18 | private final boolean collapsed; 19 | private boolean armed; 20 | 21 | 22 | /** 23 | * Constructor. 24 | * 25 | * @param collapsed Whether this icon is for a collapsed fold. 26 | */ 27 | protected FoldIndicatorIcon(boolean collapsed) { 28 | this.collapsed = collapsed; 29 | } 30 | 31 | 32 | /** 33 | * Whether this fold is armed. 34 | * 35 | * @return Whether this fold is armed. 36 | * @see #setArmed(boolean) 37 | */ 38 | protected boolean isArmed() { 39 | return armed; 40 | } 41 | 42 | 43 | /** 44 | * Returns whether this fold is collapsed. 45 | * 46 | * @return Whether this fold is collapsed. 47 | */ 48 | protected boolean isCollapsed() { 49 | return collapsed; 50 | } 51 | 52 | 53 | /** 54 | * Toggles whether this fold is armed. 55 | * 56 | * @param armed Whether this fold is armed. 57 | * @see #isArmed() 58 | */ 59 | protected void setArmed(boolean armed) { 60 | this.armed = armed; 61 | } 62 | } 63 | -------------------------------------------------------------------------------- /RSyntaxTextArea/src/main/java/org/fife/ui/rtextarea/FoldIndicatorStyle.java: -------------------------------------------------------------------------------- 1 | /* 2 | * This library is distributed under a modified BSD license. See the included 3 | * LICENSE file for details. 4 | */ 5 | package org.fife.ui.rtextarea; 6 | 7 | 8 | /** 9 | * Different rendering styles for the fold indicator inside a {@code Gutter}. 10 | * 11 | * @author Robert Futrell 12 | * @version 1.0 13 | */ 14 | public enum FoldIndicatorStyle { 15 | 16 | /** 17 | * Fold icons are rendered as +/- symbols in boxes. When the user hovers 18 | * over an expanded fold's icon, a line is drawn to indicate the range 19 | * of lines in the editor that belong to that fold's region. 20 | */ 21 | CLASSIC, 22 | 23 | /** 24 | * Fold icons are rendered as a chevron indicating the fold's 25 | * collapsed or expanded state. There is no visual indication of 26 | * a fold's line range. 27 | */ 28 | MODERN 29 | } 30 | -------------------------------------------------------------------------------- /RSyntaxTextArea/src/main/java/org/fife/ui/rtextarea/GutterIconInfo.java: -------------------------------------------------------------------------------- 1 | /* 2 | * 02/19/2009 3 | * 4 | * GutterIconInfo.java - Information about an Icon in a Gutter. 5 | * 6 | * This library is distributed under a modified BSD license. See the included 7 | * LICENSE file for details. 8 | */ 9 | package org.fife.ui.rtextarea; 10 | 11 | import javax.swing.Icon; 12 | 13 | 14 | /** 15 | * Information about an icon displayed in a {@link Gutter}. Instances of this 16 | * class are returned by {@link Gutter#addLineTrackingIcon(int, Icon)} and 17 | * {@link Gutter#addOffsetTrackingIcon(int, Icon)}. They can later be used 18 | * in calls to {@link Gutter#removeTrackingIcon(GutterIconInfo)} to be 19 | * individually removed. 20 | * 21 | * @author Robert Futrell 22 | * @version 1.0 23 | * @see Gutter 24 | */ 25 | public interface GutterIconInfo { 26 | 27 | 28 | /** 29 | * Returns the icon being rendered. 30 | * 31 | * @return The icon being rendered. 32 | */ 33 | Icon getIcon(); 34 | 35 | 36 | /** 37 | * Returns the offset that is being tracked. The line of this offset is 38 | * where the icon is rendered. This offset may change as the user types 39 | * to track the new location of the marked offset. 40 | * 41 | * @return The offset being tracked. 42 | */ 43 | int getMarkedOffset(); 44 | 45 | 46 | /** 47 | * Returns the tool tip to display when the mouse hovers over this icon. 48 | * 49 | * @return The tool tip to display. 50 | */ 51 | String getToolTip(); 52 | 53 | } 54 | -------------------------------------------------------------------------------- /RSyntaxTextArea/src/main/java/org/fife/ui/rtextarea/IconRowEvent.java: -------------------------------------------------------------------------------- 1 | /* 2 | * 02/09/2025 3 | * 4 | * IconRowEvent.java - Event for IconRowHeader. 5 | * 6 | * This library is distributed under a modified BSD license. See the included 7 | * LICENSE file for details. 8 | */ 9 | 10 | package org.fife.ui.rtextarea; 11 | 12 | import java.util.EventObject; 13 | 14 | /** 15 | * Defines an event pertaining to changes in a {@link IconRowHeader}. 16 | * 17 | * @author roger1337 18 | * @version 3.5.4 19 | * @see IconRowHeader 20 | */ 21 | public class IconRowEvent extends EventObject { 22 | 23 | 24 | /** 25 | * Information about the icon associated with the event. 26 | */ 27 | protected GutterIconInfo iconInfo; 28 | 29 | /** 30 | * The line at which the event took place. 31 | */ 32 | protected int line; 33 | 34 | public IconRowEvent(Object source, GutterIconInfo iconInfo, int line) { 35 | super(source); 36 | this.iconInfo = iconInfo; 37 | this.line = line; 38 | } 39 | 40 | /** 41 | * Returns the icon associated with the event. 42 | * 43 | * @return The icon associated with the event. 44 | */ 45 | public GutterIconInfo getIconInfo() { 46 | return iconInfo; 47 | } 48 | 49 | /** 50 | * Returns the line associated with the event. 51 | * 52 | * @return The line associated with the event. 53 | */ 54 | public int getLine() { 55 | return line; 56 | } 57 | } 58 | -------------------------------------------------------------------------------- /RSyntaxTextArea/src/main/java/org/fife/ui/rtextarea/IconRowListener.java: -------------------------------------------------------------------------------- 1 | /* 2 | * 02/09/2025 3 | * 4 | * IconRowListener.java - Interface for an object that listens for changes in IconRowHeader. 5 | * 6 | * This library is distributed under a modified BSD license. See the included 7 | * LICENSE file for details. 8 | */ 9 | 10 | package org.fife.ui.rtextarea; 11 | 12 | import java.util.EventListener; 13 | 14 | 15 | /** 16 | * Defines an interface for an object that listens to changes in a {@link IconRowHeader}. 17 | * 18 | * @author roger1337 19 | * @version 3.5.4 20 | * @see IconRowHeader 21 | */ 22 | public interface IconRowListener extends EventListener { 23 | 24 | /** 25 | * Method that is called when a bookmark is added. 26 | * 27 | * @param e an IconRowEvent describing the changes to the IconRowHeader 28 | * @see IconRowHeader#toggleBookmark(int) 29 | */ 30 | void bookmarkAdded(IconRowEvent e); 31 | 32 | /** 33 | * Method that is called when a bookmark is removed. 34 | * 35 | * @param e an IconRowEvent describing the changes to the IconRowHeader 36 | * @see IconRowHeader#toggleBookmark(int) 37 | */ 38 | void bookmarkRemoved(IconRowEvent e); 39 | 40 | } 41 | -------------------------------------------------------------------------------- /RSyntaxTextArea/src/main/java/org/fife/ui/rtextarea/LineNumberFormatter.java: -------------------------------------------------------------------------------- 1 | /* 2 | * 29/07/2023 3 | * 4 | * LineNumber - Format line numbers into a comprehensible String. 5 | * 6 | * This library is distributed under a modified BSD license. See the included 7 | * LICENSE file for details. 8 | */ 9 | package org.fife.ui.rtextarea; 10 | 11 | /** 12 | * Formats line numbers into a comprehensible String to be 13 | * displayed to the user. 14 | * 15 | * @author Mino260806 16 | */ 17 | public interface LineNumberFormatter { 18 | /** 19 | * Formats the given line number into a String. 20 | * 21 | * @param lineNumber the line number 22 | * @return the formatted line number 23 | */ 24 | String format(int lineNumber); 25 | 26 | /** 27 | * Returns the maximum number of characters of any string returned 28 | * by {@link #format} provided a certain maximum line number. 29 | * 30 | * @param maxLineNumber the maximum line number 31 | * @return the maximum length 32 | */ 33 | int getMaxLength(int maxLineNumber); 34 | } 35 | -------------------------------------------------------------------------------- /RSyntaxTextArea/src/main/java/org/fife/ui/rtextarea/PlusMinusFoldIcon.java: -------------------------------------------------------------------------------- 1 | /* 2 | * This library is distributed under a modified BSD license. See the included 3 | * LICENSE file for details. 4 | */ 5 | package org.fife.ui.rtextarea; 6 | 7 | import java.awt.*; 8 | 9 | /** 10 | * The default +/- icon for expanding and collapsing folds. 11 | * 12 | * @author Robert Futrell 13 | * @version 1.0 14 | * @see ChevronFoldIcon 15 | */ 16 | class PlusMinusFoldIcon extends FoldIndicatorIcon { 17 | 18 | PlusMinusFoldIcon(boolean collapsed) { 19 | super(collapsed); 20 | } 21 | 22 | @Override 23 | public int getIconHeight() { 24 | return 8; 25 | } 26 | 27 | @Override 28 | public int getIconWidth() { 29 | return 8; 30 | } 31 | 32 | @Override 33 | public void paintIcon(Component c, Graphics g, int x, int y) { 34 | 35 | FoldIndicator fi = (FoldIndicator)c; 36 | Color fg = fi.getForeground(); 37 | Color bg = fi.getFoldIconBackground(); 38 | if (isArmed()) { 39 | if (fi.getArmedForeground() != null) { 40 | fg = fi.getArmedForeground(); 41 | } 42 | if (fi.getFoldIconArmedBackground() != null) { 43 | bg = fi.getFoldIconArmedBackground(); 44 | } 45 | } 46 | 47 | g.setColor(bg); 48 | g.fillRect(x, y, 8, 8); 49 | 50 | g.setColor(fg); 51 | g.drawRect(x, y, 8, 8); 52 | g.drawLine(x + 2, y + 4, x + 2 + 4, y + 4); 53 | if (isCollapsed()) { 54 | g.drawLine(x + 4, y + 2, x + 4, y + 6); 55 | } 56 | } 57 | 58 | } 59 | -------------------------------------------------------------------------------- /RSyntaxTextArea/src/main/java/org/fife/ui/rtextarea/RDocument.java: -------------------------------------------------------------------------------- 1 | /* 2 | * 06/30/2012 3 | * 4 | * RDocument.java - Document class used by RTextAreas. 5 | * 6 | * This library is distributed under a modified BSD license. See the included 7 | * LICENSE file for details. 8 | */ 9 | package org.fife.ui.rtextarea; 10 | 11 | import javax.swing.text.BadLocationException; 12 | import javax.swing.text.GapContent; 13 | import javax.swing.text.PlainDocument; 14 | 15 | 16 | /** 17 | * The document implementation used by instances of RTextArea. 18 | * 19 | * @author Robert Futrell 20 | * @version 1.0 21 | */ 22 | public class RDocument extends PlainDocument { 23 | 24 | 25 | /** 26 | * Constructor. 27 | */ 28 | public RDocument() { 29 | super(new RGapContent()); 30 | } 31 | 32 | 33 | /** 34 | * Returns the character in the document at the specified offset. 35 | * 36 | * @param offset The offset of the character. 37 | * @return The character. 38 | * @throws BadLocationException If the offset is invalid. 39 | */ 40 | public char charAt(int offset) throws BadLocationException { 41 | return ((RGapContent)getContent()).charAt(offset); 42 | } 43 | 44 | 45 | /** 46 | * Document content that provides fast access to individual characters. 47 | */ 48 | private static final class RGapContent extends GapContent { 49 | 50 | protected char charAt(int offset) throws BadLocationException { 51 | if (offset<0 || offset>=length()) { 52 | throw new BadLocationException("Invalid offset", offset); 53 | } 54 | int g0 = getGapStart(); 55 | char[] array = (char[]) getArray(); 56 | if (offsetToolTipSupplier can create tool tip text for an RTextArea 17 | * on its behalf. A text area will check its ToolTipSupplier for a 18 | * tool tip before calling the super class's implementation of 19 | * {@link RTextArea#getToolTipText()}. This allows 20 | * applications to intercept tool tip events and provide the text for a tool 21 | * tip without subclassing RTextArea. 22 | * 23 | * @author Robert Futrell 24 | * @version 1.0 25 | */ 26 | public interface ToolTipSupplier { 27 | 28 | 29 | /** 30 | * Returns the tool tip text to display for a given mouse event. 31 | * 32 | * @param textArea The text area. 33 | * @param e The mouse event. 34 | * @return The tool tip, or null if none. 35 | */ 36 | String getToolTipText(RTextArea textArea, MouseEvent e); 37 | 38 | 39 | } 40 | -------------------------------------------------------------------------------- /RSyntaxTextArea/src/main/java/org/fife/ui/rtextarea/package.html: -------------------------------------------------------------------------------- 1 | 2 | 3 | A single-font text editor with many custom features. 4 | 5 | 6 | -------------------------------------------------------------------------------- /RSyntaxTextArea/src/main/java/org/fife/util/package.html: -------------------------------------------------------------------------------- 1 | 2 | 3 | General utility classes. 4 | 5 | 6 | -------------------------------------------------------------------------------- /RSyntaxTextArea/src/main/resources/META-INF/LICENSE: -------------------------------------------------------------------------------- 1 | Copyright (c) 2021, Robert Futrell 2 | All rights reserved. 3 | 4 | Redistribution and use in source and binary forms, with or without 5 | modification, are permitted provided that the following conditions are met: 6 | * Redistributions of source code must retain the above copyright 7 | notice, this list of conditions and the following disclaimer. 8 | * Redistributions in binary form must reproduce the above copyright 9 | notice, this list of conditions and the following disclaimer in the 10 | documentation and/or other materials provided with the distribution. 11 | * Neither the name of the copyright holder nor the names of its contributors 12 | may be used to endorse or promote products derived from this software 13 | without specific prior written permission. 14 | 15 | THIS SOFTWARE IS PROVIDED BY THE COPYRIGHT HOLDERS AND CONTRIBUTORS "AS IS" AND 16 | ANY EXPRESS OR IMPLIED WARRANTIES, INCLUDING, BUT NOT LIMITED TO, THE IMPLIED 17 | WARRANTIES OF MERCHANTABILITY AND FITNESS FOR A PARTICULAR PURPOSE ARE 18 | DISCLAIMED. IN NO EVENT SHALL THE COPYRIGHT HOLDERS OR CONTRIBUTORS BE LIABLE FOR 19 | ANY DIRECT, INDIRECT, INCIDENTAL, SPECIAL, EXEMPLARY, OR CONSEQUENTIAL DAMAGES 20 | (INCLUDING, BUT NOT LIMITED TO, PROCUREMENT OF SUBSTITUTE GOODS OR SERVICES; 21 | LOSS OF USE, DATA, OR PROFITS; OR BUSINESS INTERRUPTION) HOWEVER CAUSED AND 22 | ON ANY THEORY OF LIABILITY, WHETHER IN CONTRACT, STRICT LIABILITY, OR TORT 23 | (INCLUDING NEGLIGENCE OR OTHERWISE) ARISING IN ANY WAY OUT OF THE USE OF THIS 24 | SOFTWARE, EVEN IF ADVISED OF THE POSSIBILITY OF SUCH DAMAGE. 25 | -------------------------------------------------------------------------------- /RSyntaxTextArea/src/main/resources/org/fife/ui/rsyntaxtextarea/ErrorStrip.properties: -------------------------------------------------------------------------------- 1 | Line=Line: {0} 2 | MultipleMarkers=Multiple markers at this line: 3 | OccurrenceOf=Occurrence of "{0}" 4 | -------------------------------------------------------------------------------- /RSyntaxTextArea/src/main/resources/org/fife/ui/rsyntaxtextarea/ErrorStrip_ar.properties: -------------------------------------------------------------------------------- 1 | Line=Line: {0} 2 | MultipleMarkers=\u0647\u0646\u0627\u0643 \u0639\u062f\u0629 \u062a\u062d\u062f\u064a\u062f\u0627\u062a \u0641\u064a \u0647\u0630\u0627 \u0627\u0644\u0633\u0637\u0631: 3 | OccurrenceOf=\u0639\u062f\u062f \u0645\u0631\u0627\u062a \u062d\u062f\u0648\u062b"{0}" 4 | -------------------------------------------------------------------------------- /RSyntaxTextArea/src/main/resources/org/fife/ui/rsyntaxtextarea/ErrorStrip_de.properties: -------------------------------------------------------------------------------- 1 | Line=Zeile: {0} 2 | MultipleMarkers=Mehrere Marker auf dieser Zeile: 3 | OccurrenceOf=Vorkommen von "{0}" 4 | -------------------------------------------------------------------------------- /RSyntaxTextArea/src/main/resources/org/fife/ui/rsyntaxtextarea/ErrorStrip_es.properties: -------------------------------------------------------------------------------- 1 | Line=Linea: {0} 2 | MultipleMarkers=M\u00faltiples marcadores en esta linea: 3 | OccurrenceOf=Ocurrencia de "{0}" 4 | -------------------------------------------------------------------------------- /RSyntaxTextArea/src/main/resources/org/fife/ui/rsyntaxtextarea/ErrorStrip_fi.properties: -------------------------------------------------------------------------------- 1 | Line=Rivi: {0} 2 | MultipleMarkers=T\u00e4ll\u00e4 rivill\u00e4 on useita merkkej\u00e4: 3 | OccurrenceOf=N\u00e4kyviss\u00e4 on {0} 4 | -------------------------------------------------------------------------------- /RSyntaxTextArea/src/main/resources/org/fife/ui/rsyntaxtextarea/ErrorStrip_fr.properties: -------------------------------------------------------------------------------- 1 | Line=Ligne: {0} 2 | MultipleMarkers=Plusieurs rep\u00e8res sur cette ligne: 3 | OccurrenceOf=Pr\u00e9sence de "{0}" 4 | -------------------------------------------------------------------------------- /RSyntaxTextArea/src/main/resources/org/fife/ui/rsyntaxtextarea/ErrorStrip_hu.properties: -------------------------------------------------------------------------------- 1 | Line=Sor: {0} 2 | MultipleMarkers=T\u00f6bb jel\u00f6l\u0151 ebben a sorban: 3 | OccurrenceOf=A(z) "{0}" el\u0151fordul\u00e1sa 4 | -------------------------------------------------------------------------------- /RSyntaxTextArea/src/main/resources/org/fife/ui/rsyntaxtextarea/ErrorStrip_in.properties: -------------------------------------------------------------------------------- 1 | Line=Line: {0} 2 | MultipleMarkers=Multiple markers at this line: 3 | OccurrenceOf=Occurrence of "{0}" 4 | -------------------------------------------------------------------------------- /RSyntaxTextArea/src/main/resources/org/fife/ui/rsyntaxtextarea/ErrorStrip_it.properties: -------------------------------------------------------------------------------- 1 | Line=Linea: {0} 2 | MultipleMarkers=Multipli punti a questa linea: 3 | OccurrenceOf=Occorrenze di "{0}" 4 | -------------------------------------------------------------------------------- /RSyntaxTextArea/src/main/resources/org/fife/ui/rsyntaxtextarea/ErrorStrip_ja.properties: -------------------------------------------------------------------------------- 1 | Line=\u884c: {0} 2 | MultipleMarkers=\u3053\u306e\u884c\u306e\u4e2d\u306b\u3044\u304f\u3064\u306e\u30de\u30fc\u30ab\u30fc\u306f\u3042\u308a\u307e\u3059: 3 | OccurrenceOf=\u51fa\u73fe\u56de\u6570 "{0}" 4 | -------------------------------------------------------------------------------- /RSyntaxTextArea/src/main/resources/org/fife/ui/rsyntaxtextarea/ErrorStrip_ko.properties: -------------------------------------------------------------------------------- 1 | Line=\ud589: {0} 2 | MultipleMarkers=\uc774 \ud589\uc5d0 \ubcf5\uc218\uc758 \ub9c8\ucee4 \uc874\uc7ac: 3 | OccurrenceOf="{0}" \ubc1c\uc0dd 4 | -------------------------------------------------------------------------------- /RSyntaxTextArea/src/main/resources/org/fife/ui/rsyntaxtextarea/ErrorStrip_nl.properties: -------------------------------------------------------------------------------- 1 | Line=Regel: {0} 2 | MultipleMarkers=Meerdere markeringen op deze regel: 3 | OccurrenceOf=Aantal keren "{0}" 4 | -------------------------------------------------------------------------------- /RSyntaxTextArea/src/main/resources/org/fife/ui/rsyntaxtextarea/ErrorStrip_pl.properties: -------------------------------------------------------------------------------- 1 | Line=Linia: {0} 2 | MultipleMarkers=Wiele znacznik w tej linii: 3 | OccurrenceOf=Wyst\u0119powanie "{0}" 4 | -------------------------------------------------------------------------------- /RSyntaxTextArea/src/main/resources/org/fife/ui/rsyntaxtextarea/ErrorStrip_pt.properties: -------------------------------------------------------------------------------- 1 | Line=Linha: {0} 2 | MultipleMarkers=M\u00faltiplos marcadores nesta linha: 3 | OccurrenceOf=Ocorr\u00eancia de "{0}" 4 | -------------------------------------------------------------------------------- /RSyntaxTextArea/src/main/resources/org/fife/ui/rsyntaxtextarea/ErrorStrip_pt_BR.properties: -------------------------------------------------------------------------------- 1 | Line=Linha: {0} 2 | MultipleMarkers=M\u00faltiplos marcadores nesta linha: 3 | OccurrenceOf=Ocorr\u00eancia de: "{0}" 4 | -------------------------------------------------------------------------------- /RSyntaxTextArea/src/main/resources/org/fife/ui/rsyntaxtextarea/ErrorStrip_ru.properties: -------------------------------------------------------------------------------- 1 | Line=\u0421\u0442\u0440\u043e\u043a\u0430: {0} 2 | MultipleMarkers=\u041d\u0435\u0441\u043a\u043e\u043b\u044c\u043a\u043e \u043c\u0430\u0440\u043a\u0435\u0440\u043e\u0432 \u0432 \u044d\u0442\u043e\u0439 \u0441\u0442\u0440\u043e\u043a\u0435: 3 | OccurrenceOf=\u0412\u043e\u0437\u043d\u0438\u043a\u043d\u043e\u0432\u0435\u043d\u0438\u0435 "{0}" 4 | -------------------------------------------------------------------------------- /RSyntaxTextArea/src/main/resources/org/fife/ui/rsyntaxtextarea/ErrorStrip_tr.properties: -------------------------------------------------------------------------------- 1 | Line=Sat\u0131r: {0} 2 | MultipleMarkers=Bu sat\u0131rda birden fazla i\u015faret\u00e7i: 3 | OccurrenceOf="{0}"\u0131n bulunmas\u0131 4 | -------------------------------------------------------------------------------- /RSyntaxTextArea/src/main/resources/org/fife/ui/rsyntaxtextarea/ErrorStrip_uk.properties: -------------------------------------------------------------------------------- 1 | Line=\u0420\u044f\u0434\u043e\u043a: {0} 2 | MultipleMarkers=\u041a\u0456\u043b\u044c\u043a\u0430 \u043c\u0430\u0440\u043a\u0435\u0440\u0456\u0432 \u0443 \u0446\u044c\u043e\u043c\u0443 \u0440\u044f\u0434\u043a\u0443: 3 | OccurrenceOf=\u0412\u0438\u043f\u0430\u0434\u043e\u043a \u0432\u0436\u0438\u0432\u0430\u043d\u043d\u044f \u00ab{0}\u00bb 4 | -------------------------------------------------------------------------------- /RSyntaxTextArea/src/main/resources/org/fife/ui/rsyntaxtextarea/ErrorStrip_zh_CN.properties: -------------------------------------------------------------------------------- 1 | Line=\u884c\uff1a{0} 2 | MultipleMarkers=\u8fd9\u884c\u6709\u591a\u4e2a\u6807\u8bb0\uff1a 3 | OccurrenceOf=\u51fa\u73b0\u201c{0}\u201d 4 | -------------------------------------------------------------------------------- /RSyntaxTextArea/src/main/resources/org/fife/ui/rsyntaxtextarea/ErrorStrip_zh_TW.properties: -------------------------------------------------------------------------------- 1 | Line=Line: {0} 2 | MultipleMarkers=Multiple markers at this line: 3 | OccurrenceOf=Occurrence of "{0}" 4 | -------------------------------------------------------------------------------- /RSyntaxTextArea/src/main/resources/org/fife/ui/rsyntaxtextarea/RSyntaxTextArea.properties: -------------------------------------------------------------------------------- 1 | ContextMenu.Folding=Folding 2 | 3 | Action.ToggleCurrentFold.Name=Toggle Current Fold 4 | Action.ToggleCurrentFold.Mnemonic=F 5 | Action.ToggleCurrentFold.Desc=Toggles the fold at the caret position. 6 | Action.CollapseAllFolds.Name=Collapse All Folds 7 | Action.CollapseAllFolds.Mnemonic=O 8 | Action.CollapseAllFolds.Desc=Collapses all folds. 9 | Action.CollapseCommentFolds.Name=Collapse All Comments 10 | Action.CollapseCommentFolds.Mnemonic=C 11 | Action.CollapseCommentFolds.Desc=Collapses all comment folds. 12 | Action.ExpandAllFolds.Name=Expand All Folds 13 | Action.ExpandAllFolds.Mnemonic=E 14 | Action.ExpandAllFolds.Desc=Expands all folds. 15 | -------------------------------------------------------------------------------- /RSyntaxTextArea/src/main/resources/org/fife/ui/rsyntaxtextarea/RSyntaxTextArea_ar.properties: -------------------------------------------------------------------------------- 1 | ContextMenu.Folding=\u0637\u0648\u064a 2 | 3 | Action.ToggleCurrentFold.Name=\u063a\u064a\u0651\u0631 \u0648\u0636\u0639\u064a\u0629 \u0627\u0644\u0637\u0648\u064a\u0629 \u0627\u0644\u062d\u0627\u0644\u064a\u0629 4 | Action.ToggleCurrentFold.Mnemonic=F 5 | Action.ToggleCurrentFold.Desc=\u0645\u0646 \u0623\u062c\u0644 \u062a\u063a\u064a\u064a\u0631 \u0648\u0636\u0639\u064a\u0629 \u0627\u0644\u0637\u0648\u064a\u0629 \u0641\u064a \u0645\u0648\u0642\u0639 \u0627\u0644\u0645\u0624\u0634\u0631 \u0627\u0644\u062d\u0627\u0644\u064a 6 | Action.CollapseAllFolds.Name=\u0642\u0644\u0635 \u062c\u0645\u064a\u0639 \u0627\u0644\u0637\u064a\u0627\u062a 7 | Action.CollapseAllFolds.Mnemonic=O 8 | Action.CollapseAllFolds.Desc=\u0645\u0646 \u0623\u062c\u0644 \u062a\u0642\u0644\u064a\u0635 \u062c\u0645\u064a\u0639 \u0627\u0644\u0637\u064a\u0627\u062a 9 | Action.CollapseCommentFolds.Name=\u0642\u0644\u0635 \u062c\u0645\u064a\u0639 \u0627\u0644\u062a\u0639\u0644\u064a\u0642\u0627\u062a 10 | Action.CollapseCommentFolds.Mnemonic=C 11 | Action.CollapseCommentFolds.Desc=\u0645\u0646 \u0623\u062c\u0644 \u062a\u0642\u0644\u064a\u0635 \u062c\u0645\u064a\u0639 \u0637\u064a\u0627\u062a \u0627\u0644\u062a\u0639\u0644\u064a\u0642\u0627\u062a 12 | Action.ExpandAllFolds.Name=\u0648\u0633\u0639 \u062c\u0645\u064a\u0639 \u0627\u0644\u0637\u064a\u0627\u062a 13 | Action.ExpandAllFolds.Mnemonic=E 14 | Action.ExpandAllFolds.Desc=\u0645\u0646 \u0623\u062c\u0644 \u062a\u0648\u0633\u064a\u0639 \u062c\u0645\u064a\u0639 \u0627\u0644\u0637\u064a\u0627\u062a. 15 | -------------------------------------------------------------------------------- /RSyntaxTextArea/src/main/resources/org/fife/ui/rsyntaxtextarea/RSyntaxTextArea_de.properties: -------------------------------------------------------------------------------- 1 | ContextMenu.Folding=Falten 2 | 3 | Action.ToggleCurrentFold.Name=Aktuelle Faltung umschalten 4 | Action.ToggleCurrentFold.Mnemonic=H 5 | Action.ToggleCurrentFold.Desc=Schaltet die Faltung an der Position des Textcursors um. 6 | Action.CollapseAllFolds.Name=Alle Faltungen zuklappen 7 | Action.CollapseAllFolds.Mnemonic=F 8 | Action.CollapseAllFolds.Desc=Klappt alle Faltungen zu. 9 | Action.CollapseCommentFolds.Name=Alle Kommentare zuklappen 10 | Action.CollapseCommentFolds.Mnemonic=K 11 | Action.CollapseCommentFolds.Desc=Klappt alle Kommentarfaltungen zu. 12 | Action.ExpandAllFolds.Name=Alle Faltungen aufklappen 13 | Action.ExpandAllFolds.Mnemonic=E 14 | Action.ExpandAllFolds.Desc=Klappt alle Faltungen auf. 15 | -------------------------------------------------------------------------------- /RSyntaxTextArea/src/main/resources/org/fife/ui/rsyntaxtextarea/RSyntaxTextArea_es.properties: -------------------------------------------------------------------------------- 1 | ContextMenu.Folding=Folding 2 | 3 | Action.ToggleCurrentFold.Name=Ver Fold (solapa) actual 4 | Action.ToggleCurrentFold.Mnemonic=F 5 | Action.ToggleCurrentFold.Desc=Mostrar el fold en la posici\u00f3n del cursor 6 | Action.CollapseAllFolds.Name=Ocultar todos los folds 7 | Action.CollapseAllFolds.Mnemonic=O 8 | Action.CollapseAllFolds.Desc=Oculta todos los folds 9 | Action.CollapseCommentFolds.Name=Ocultar todos los comentarios 10 | Action.CollapseCommentFolds.Mnemonic=C 11 | Action.CollapseCommentFolds.Desc=Oculta todos los comentarios 12 | Action.ExpandAllFolds.Name=Expandir todos las solapas (folds) 13 | Action.ExpandAllFolds.Mnemonic=E 14 | Action.ExpandAllFolds.Desc=Expande todas las solapas (folds) 15 | -------------------------------------------------------------------------------- /RSyntaxTextArea/src/main/resources/org/fife/ui/rsyntaxtextarea/RSyntaxTextArea_fi.properties: -------------------------------------------------------------------------------- 1 | ContextMenu.Folding=Koodin kutistaminen 2 | 3 | Action.ToggleCurrentFold.Name=Kutistus p\u00e4\u00e4lle / pois p\u00e4\u00e4lt\u00e4 4 | Action.ToggleCurrentFold.Mnemonic=P 5 | Action.ToggleCurrentFold.Desc=Laittaa kohdistimen kohdalla olevan kutistuksen p\u00e4\u00e4lle / pois p\u00e4\u00e4lt\u00e4. 6 | Action.CollapseAllFolds.Name=Kutista kaikki mahdollinen 7 | Action.CollapseAllFolds.Mnemonic=O 8 | Action.CollapseAllFolds.Desc=Kutistaa kaikki mahdolliset kohdat. 9 | Action.CollapseCommentFolds.Name=Piilota kaikki kommentit 10 | Action.CollapseCommentFolds.Mnemonic=K 11 | Action.CollapseCommentFolds.Desc=Kutistaa kaikki kommentit. 12 | Action.ExpandAllFolds.Name=Laajenna kaikki 13 | Action.ExpandAllFolds.Mnemonic=L 14 | Action.ExpandAllFolds.Desc=Tuo kaikki kutistetut p\u00e4tk\u00e4t takaisin n\u00e4kyviin. 15 | -------------------------------------------------------------------------------- /RSyntaxTextArea/src/main/resources/org/fife/ui/rsyntaxtextarea/RSyntaxTextArea_fr.properties: -------------------------------------------------------------------------------- 1 | ContextMenu.Folding=Pliage 2 | 3 | Action.ToggleCurrentFold.Name=Active ou d\u00e9sactive le pli actuel 4 | Action.ToggleCurrentFold.Mnemonic=F 5 | Action.ToggleCurrentFold.Desc=Active ou d\u00e9sactive le pli \u00e0 la position du curseur. 6 | Action.CollapseAllFolds.Name=Comprimer tous les plis 7 | Action.CollapseAllFolds.Mnemonic=O 8 | Action.CollapseAllFolds.Desc=Comprime tous les plis. 9 | Action.CollapseCommentFolds.Name=Comprimer tous les commentaires 10 | Action.CollapseCommentFolds.Mnemonic=C 11 | Action.CollapseCommentFolds.Desc=Comprime tous les plis commentaires. 12 | Action.ExpandAllFolds.Name=D\u00e9comprimer tous les plis 13 | Action.ExpandAllFolds.Mnemonic=E 14 | Action.ExpandAllFolds.Desc=D\u00e9comprime tous les plis. 15 | -------------------------------------------------------------------------------- /RSyntaxTextArea/src/main/resources/org/fife/ui/rsyntaxtextarea/RSyntaxTextArea_hu.properties: -------------------------------------------------------------------------------- 1 | ContextMenu.Folding=\u00d6sszevon\u00e1s 2 | 3 | Action.ToggleCurrentFold.Name=A jelenlegi \u00f6sszevon\u00e1s megjelen\u00edt\u00e9se/rejt\u00e9se. 4 | Action.ToggleCurrentFold.Mnemonic=F 5 | Action.ToggleCurrentFold.Desc=Megjelen\u00edti, illetve elt\u00fcnteti az \u00f6sszevon\u00e1st a kurzor poz\u00edci\u00f3j\u00e1ban. 6 | Action.CollapseAllFolds.Name=\u00d6sszevon\u00e1sok rejt\u00e9se. 7 | Action.CollapseAllFolds.Mnemonic=O 8 | Action.CollapseAllFolds.Desc=\u00d6sszevon\u00e1sok rejt\u00e9se. 9 | Action.CollapseCommentFolds.Name=Az \u00f6sszes megjegyz\u00e9s elrejt\u00e9se 10 | Action.CollapseCommentFolds.Mnemonic=C 11 | Action.CollapseCommentFolds.Desc=Megjegyz\u00e9s \u00f6sszevon\u00e1sok rejt\u00e9se. 12 | Action.ExpandAllFolds.Name=\u00d6sszevon\u00e1sok kiterjeszt\u00e9se 13 | Action.ExpandAllFolds.Mnemonic=E 14 | Action.ExpandAllFolds.Desc=\u00d6sszevon\u00e1sok kiterjeszt\u00e9se. 15 | -------------------------------------------------------------------------------- /RSyntaxTextArea/src/main/resources/org/fife/ui/rsyntaxtextarea/RSyntaxTextArea_in.properties: -------------------------------------------------------------------------------- 1 | ContextMenu.Folding=Folding 2 | 3 | Action.ToggleCurrentFold.Name=Toggle Current Fold 4 | Action.ToggleCurrentFold.Mnemonic=F 5 | Action.ToggleCurrentFold.Desc=Toggles the fold at the caret position. 6 | Action.CollapseAllFolds.Name=Collapse All Folds 7 | Action.CollapseAllFolds.Mnemonic=O 8 | Action.CollapseAllFolds.Desc=Collapses all folds. 9 | Action.CollapseCommentFolds.Name=Collapse All Comments 10 | Action.CollapseCommentFolds.Mnemonic=C 11 | Action.CollapseCommentFolds.Desc=Collapses all comment folds. 12 | Action.ExpandAllFolds.Name=Expand All Folds 13 | Action.ExpandAllFolds.Mnemonic=E 14 | Action.ExpandAllFolds.Desc=Expands all folds. 15 | -------------------------------------------------------------------------------- /RSyntaxTextArea/src/main/resources/org/fife/ui/rsyntaxtextarea/RSyntaxTextArea_it.properties: -------------------------------------------------------------------------------- 1 | ContextMenu.Folding=Folding 2 | 3 | Action.ToggleCurrentFold.Name=Imposta il fold corrente 4 | Action.ToggleCurrentFold.Mnemonic=F 5 | Action.ToggleCurrentFold.Desc=Imposta il fold alla posizione corrente. 6 | Action.CollapseAllFolds.Name=Raggruppa tutti i fold 7 | Action.CollapseAllFolds.Mnemonic=O 8 | Action.CollapseAllFolds.Desc=Raggruppa tutti i fold. 9 | Action.CollapseCommentFolds.Name=Raggruppa tutti i commenti 10 | Action.CollapseCommentFolds.Mnemonic=C 11 | Action.CollapseCommentFolds.Desc=Raggruppa tutti i commenti. 12 | Action.ExpandAllFolds.Name=Espandi tutti i fold 13 | Action.ExpandAllFolds.Mnemonic=E 14 | Action.ExpandAllFolds.Desc=Espandi tutti i fold. 15 | -------------------------------------------------------------------------------- /RSyntaxTextArea/src/main/resources/org/fife/ui/rsyntaxtextarea/RSyntaxTextArea_ja.properties: -------------------------------------------------------------------------------- 1 | ContextMenu.Folding=\u30d5\u30a9\u30eb\u30c7\u30a3\u30f3\u30b0 2 | 3 | Action.ToggleCurrentFold.Name=\u30ad\u30e3\u30ec\u30c3\u30c8\u5074\u306e\u30d5\u30a9\u30eb\u30c9\u3092\u30c8\u30b0\u30eb\u3059\u308b\u3002 4 | Action.ToggleCurrentFold.Mnemonic=F 5 | Action.ToggleCurrentFold.Desc=\u30ad\u30e3\u30ec\u30c3\u30c8\u5074\u306e\u30d5\u30a9\u30eb\u30c9\u3092\u30c8\u30b0\u30eb\u3059\u308b\u3002 6 | Action.CollapseAllFolds.Name=\u5168\u3066\u306e\u30d5\u30a9\u30eb\u30c9\u3092\u6298\u308a\u305f\u305f\u3080 7 | Action.CollapseAllFolds.Mnemonic=O 8 | Action.CollapseAllFolds.Desc=\u5168\u3066\u306e\u3075\u3049\u308b\u3069\u3092\u6298\u308a\u305f\u305f\u3080 9 | Action.CollapseCommentFolds.Name=\u5168\u3066\u306e\u30b3\u30e1\u30f3\u30c8\u306e\u30d5\u30a9\u30eb\u30c9\u3092\u6298\u308a\u305f\u305f\u3080 10 | Action.CollapseCommentFolds.Mnemonic=C 11 | Action.CollapseCommentFolds.Desc=\u5168\u3066\u306e\u30b3\u30e1\u30f3\u30c8\u306e\u30d5\u30a9\u30eb\u30c9\u3092\u6298\u308a\u305f\u305f\u3080 12 | Action.ExpandAllFolds.Name=\u5168\u3066\u306e\u30d5\u30a9\u30eb\u30c9\u3092\u5c55\u958b\u3059\u308b 13 | Action.ExpandAllFolds.Mnemonic=E 14 | Action.ExpandAllFolds.Desc=\u5168\u3066\u306e\u30d5\u30a9\u30eb\u30c9\u3092\u5c55\u958b\u3059\u308b 15 | -------------------------------------------------------------------------------- /RSyntaxTextArea/src/main/resources/org/fife/ui/rsyntaxtextarea/RSyntaxTextArea_ko.properties: -------------------------------------------------------------------------------- 1 | ContextMenu.Folding=\ucf54\ub4dc \uac10\ucd94\uae30 2 | 3 | Action.ToggleCurrentFold.Name=\ud604\uc7ac \ucf54\ub4dc \uac10\ucd94\uae30 \ud1a0\uae00 4 | Action.ToggleCurrentFold.Mnemonic=F 5 | Action.ToggleCurrentFold.Desc=\uce90\ub7ff \uc704\uce58\uc5d0\uc11c \ucf54\ub4dc \uac10\ucd94\uae30\ub97c \ud1a0\uae00\ud569\ub2c8\ub2e4. 6 | Action.CollapseAllFolds.Name=\ubaa8\ub4e0 \ucf54\ub4dc \uac10\ucd94\uae30 \uc811\uae30 7 | Action.CollapseAllFolds.Mnemonic=O 8 | Action.CollapseAllFolds.Desc=\ubaa8\ub4e0 \ucf54\ub4dc \uac10\ucd94\uae30\ub97c \uc811\uc2b5\ub2c8\ub2e4. 9 | Action.CollapseCommentFolds.Name=\ubaa8\ub4e0 \uc8fc\uc11d \uac10\ucd94\uae30 \uc811\uae30 10 | Action.CollapseCommentFolds.Mnemonic=C 11 | Action.CollapseCommentFolds.Desc=\ubaa8\ub4e0 \uc8fc\uc11d \uac10\ucd94\uae30\ub97c \uc811\uc2b5\ub2c8\ub2e4. 12 | Action.ExpandAllFolds.Name=\ubaa8\ub4e0 \ucf54\ub4dc \uac10\ucd94\uae30 \ud3bc\uce58\uae30 13 | Action.ExpandAllFolds.Mnemonic=E 14 | Action.ExpandAllFolds.Desc=\ubaa8\ub4e0 \ucf54\ub4dc \uac10\ucd94\uae30\ub97c \ud3bc\uce69\ub2c8\ub2e4. 15 | -------------------------------------------------------------------------------- /RSyntaxTextArea/src/main/resources/org/fife/ui/rsyntaxtextarea/RSyntaxTextArea_nl.properties: -------------------------------------------------------------------------------- 1 | ContextMenu.Folding=Samenvouwen 2 | 3 | Action.ToggleCurrentFold.Name=Huidig samenvouwen schakelen 4 | Action.ToggleCurrentFold.Mnemonic=F 5 | Action.ToggleCurrentFold.Desc=Schakelt het samenvouwen op de positie van de caret. 6 | Action.CollapseAllFolds.Name=Alles samenvouwen 7 | Action.CollapseAllFolds.Mnemonic=O 8 | Action.CollapseAllFolds.Desc=Vouwt alles samen. 9 | Action.CollapseCommentFolds.Name=Alle opmerkingen samenvouwen 10 | Action.CollapseCommentFolds.Mnemonic=C 11 | Action.CollapseCommentFolds.Desc=Vouwt alle opmerkingen samen. 12 | Action.ExpandAllFolds.Name=Alles uitklappen 13 | Action.ExpandAllFolds.Mnemonic=E 14 | Action.ExpandAllFolds.Desc=Vouwt alles uit. 15 | -------------------------------------------------------------------------------- /RSyntaxTextArea/src/main/resources/org/fife/ui/rsyntaxtextarea/RSyntaxTextArea_pl.properties: -------------------------------------------------------------------------------- 1 | ContextMenu.Folding=Zwijanie 2 | 3 | Action.ToggleCurrentFold.Name=Reguluj zwini\u0119cie 4 | Action.ToggleCurrentFold.Mnemonic=F 5 | Action.ToggleCurrentFold.Desc=Ustawia zwini\u0119cie na pozycji karetki. 6 | Action.CollapseAllFolds.Name=Zwi\u0144 wszystkie zwini\u0119cia 7 | Action.CollapseAllFolds.Mnemonic=O 8 | Action.CollapseAllFolds.Desc=Zwija wszystkie zwini\u0119cia. 9 | Action.CollapseCommentFolds.Name=Zwi\u0144 wszystkie komentarze 10 | Action.CollapseCommentFolds.Mnemonic=C 11 | Action.CollapseCommentFolds.Desc=Zwija wszystkie zwini\u0119cia z komentarzami. 12 | Action.ExpandAllFolds.Name=Rozwi\u0144 zwini\u0119cia 13 | Action.ExpandAllFolds.Mnemonic=E 14 | Action.ExpandAllFolds.Desc=Rozwija wszystkie zwini\u0119cia. 15 | 16 | -------------------------------------------------------------------------------- /RSyntaxTextArea/src/main/resources/org/fife/ui/rsyntaxtextarea/RSyntaxTextArea_pt.properties: -------------------------------------------------------------------------------- 1 | ContextMenu.Folding=Dobragem 2 | 3 | Action.ToggleCurrentFold.Name=Alternar dobra actual 4 | Action.ToggleCurrentFold.Mnemonic=Z 5 | Action.ToggleCurrentFold.Desc=Alterna a dobragem na posi\u00e7\u00e3o do cursor. 6 | Action.CollapseAllFolds.Name=Colapsar todas as dobras 7 | Action.CollapseAllFolds.Mnemonic=A 8 | Action.CollapseAllFolds.Desc=Colapsa todas as dobras. 9 | Action.CollapseCommentFolds.Name=Colapsar todos os coment\u00e1rios 10 | Action.CollapseCommentFolds.Mnemonic=C 11 | Action.CollapseCommentFolds.Desc=Colapsa todas as dobras de coment\u00e1rios. 12 | Action.ExpandAllFolds.Name=Expandir todas as dobras 13 | Action.ExpandAllFolds.Mnemonic=X 14 | Action.ExpandAllFolds.Desc=Expande todas as dobras. 15 | -------------------------------------------------------------------------------- /RSyntaxTextArea/src/main/resources/org/fife/ui/rsyntaxtextarea/RSyntaxTextArea_pt_BR.properties: -------------------------------------------------------------------------------- 1 | ContextMenu.Folding=Dobramento de c\u00f3digo 2 | 3 | Action.ToggleCurrentFold.Name=Alternar o dobramento atual 4 | Action.ToggleCurrentFold.Mnemonic=F 5 | Action.ToggleCurrentFold.Desc=Alterna o dobramento na posi\u00e7\u00e3o do cursor. 6 | Action.CollapseAllFolds.Name=Recolher o dobramento de c\u00f3digo 7 | Action.CollapseAllFolds.Mnemonic=O 8 | Action.CollapseAllFolds.Desc=Recolher o dobramento de c\u00f3digo. 9 | Action.CollapseCommentFolds.Name=Recolher o dobramento de coment\u00e1rios 10 | Action.CollapseCommentFolds.Mnemonic=C 11 | Action.CollapseCommentFolds.Desc=Recolher o dobramento de coment\u00e1rios. 12 | Action.ExpandAllFolds.Name=Expandir o dobramento de c\u00f3digo 13 | Action.ExpandAllFolds.Mnemonic=E 14 | Action.ExpandAllFolds.Desc=Expandir o dobramento de c\u00f3digo. 15 | -------------------------------------------------------------------------------- /RSyntaxTextArea/src/main/resources/org/fife/ui/rsyntaxtextarea/RSyntaxTextArea_ru.properties: -------------------------------------------------------------------------------- 1 | ContextMenu.Folding=\u0421\u0432\u043e\u0440\u0430\u0447\u0438\u0432\u0430\u043d\u0438\u0435 2 | 3 | Action.ToggleCurrentFold.Name=\u041f\u0435\u0440\u0435\u043a\u043b\u044e\u0447\u0438\u0442\u044c \u0442\u0435\u043a\u0443\u0449\u0438\u0439 \u0431\u043b\u043e\u043a 4 | Action.ToggleCurrentFold.Mnemonic=F 5 | Action.ToggleCurrentFold.Desc=\u041f\u0435\u0440\u0435\u043a\u043b\u044e\u0447\u0435\u043d\u0438\u0435 \u0431\u043b\u043e\u043a\u0430 \u043d\u0430 \u043f\u043e\u0437\u0438\u0446\u0438\u044e \u043a\u0443\u0440\u0441\u043e\u0440\u0430 6 | Action.CollapseAllFolds.Name=\u0421\u0432\u0435\u0440\u043d\u0443\u0442\u044c \u0432\u0441\u0435 \u0431\u043b\u043e\u043a\u0438 7 | Action.CollapseAllFolds.Mnemonic=O 8 | Action.CollapseAllFolds.Desc=\u0421\u0432\u043e\u0440\u0430\u0447\u0438\u0432\u0430\u043d\u0438\u0435 \u0432\u0441\u0435\u0445 \u0431\u043b\u043e\u043a\u043e\u0432 9 | Action.CollapseCommentFolds.Name=\u0421\u0432\u0435\u0440\u043d\u0443\u0442\u044c \u0432\u0441\u0435 \u043a\u043e\u043c\u043c\u0435\u043d\u0442\u0430\u0440\u0438\u0438 10 | Action.CollapseCommentFolds.Mnemonic=C 11 | Action.CollapseCommentFolds.Desc=\u0421\u0432\u043e\u0440\u0430\u0447\u0438\u0432\u0430\u043d\u0438\u0435 \u0432\u0441\u0435\u0445 \u043a\u043e\u043c\u043c\u0435\u043d\u0442\u0430\u0440\u0438\u0435\u0432 \u0431\u043b\u043e\u043a\u0430 12 | Action.ExpandAllFolds.Name=\u0420\u0430\u0437\u0432\u0435\u0440\u043d\u0443\u0442\u044c \u0432\u0441\u0435 \u0431\u043b\u043e\u043a\u0438 13 | Action.ExpandAllFolds.Mnemonic=E 14 | Action.ExpandAllFolds.Desc=\u0420\u0430\u0437\u0432\u0435\u0440\u0442\u044b\u0432\u0430\u043d\u0438\u0435 \u0432\u0441\u0435\u0445 \u0431\u043b\u043e\u043a\u043e\u0432 15 | -------------------------------------------------------------------------------- /RSyntaxTextArea/src/main/resources/org/fife/ui/rsyntaxtextarea/RSyntaxTextArea_tr.properties: -------------------------------------------------------------------------------- 1 | ContextMenu.Folding=Katlama 2 | 3 | Action.ToggleCurrentFold.Name=\u015eu Anki Kat\u0131 Geni\u015flet/Katla 4 | Action.ToggleCurrentFold.Mnemonic=F 5 | Action.ToggleCurrentFold.Desc=\u0130\u015faret\u00e7inin bulundu\u011fu kat\u0131 geni\u015fletir/katlar. 6 | Action.CollapseAllFolds.Name=T\u00fcm Katlar\u0131 Katla 7 | Action.CollapseAllFolds.Mnemonic=O 8 | Action.CollapseAllFolds.Desc=T\u00fcm katlar\u0131 katlar. 9 | Action.CollapseCommentFolds.Name=T\u00fcm Yorumlar\u0131 Katla 10 | Action.CollapseCommentFolds.Mnemonic=C 11 | Action.CollapseCommentFolds.Desc=T\u00fcm yorumlar\u0131 katlar. 12 | Action.ExpandAllFolds.Name=T\u00fcm Katlar\u0131 Geni\u015flet 13 | Action.ExpandAllFolds.Mnemonic=E 14 | Action.ExpandAllFolds.Desc=T\u00fcm katlar\u0131 geni\u015fletir. 15 | -------------------------------------------------------------------------------- /RSyntaxTextArea/src/main/resources/org/fife/ui/rsyntaxtextarea/RSyntaxTextArea_uk.properties: -------------------------------------------------------------------------------- 1 | ContextMenu.Folding=\u0417\u0433\u043e\u0440\u0442\u0430\u043d\u043d\u044f 2 | 3 | Action.ToggleCurrentFold.Name=\u0417\u0433\u043e\u0440\u043d\u0443\u0442\u0438/\u0440\u043e\u0437\u0433\u043e\u0440\u043d\u0443\u0442\u0438 \u043f\u043e\u0442\u043e\u0447\u043d\u0438\u0439 \u0431\u043b\u043e\u043a 4 | Action.ToggleCurrentFold.Mnemonic=\u0411 5 | Action.ToggleCurrentFold.Desc=\u0417\u0433\u043e\u0440\u0442\u0430\u043d\u043d\u044f \u0430\u0431\u043e \u0440\u043e\u0437\u0433\u043e\u0440\u0442\u0430\u043d\u043d\u044f \u043d\u0430 \u043c\u0456\u0441\u0446\u0456 \u0442\u0435\u043a\u0441\u0442\u043e\u0432\u043e\u0433\u043e \u043a\u0443\u0440\u0441\u043e\u0440\u0430. 6 | Action.CollapseAllFolds.Name=\u0417\u0433\u043e\u0440\u043d\u0443\u0442\u0438 \u0432\u0441\u0435 7 | Action.CollapseAllFolds.Mnemonic=\u0412 8 | Action.CollapseAllFolds.Desc=\u0417\u0433\u043e\u0440\u0442\u0430\u043d\u043d\u044f \u0432\u0441\u0456\u0445 \u0431\u043b\u043e\u043a\u0456\u0432. 9 | Action.CollapseCommentFolds.Name=\u0417\u0433\u043e\u0440\u043d\u0443\u0442\u0438 \u0432\u0441\u0456 \u043a\u043e\u043c\u0435\u043d\u0442\u0430\u0440\u0456 10 | Action.CollapseCommentFolds.Mnemonic=\u041a 11 | Action.CollapseCommentFolds.Desc=\u0417\u0433\u043e\u0440\u0442\u0430\u043d\u043d\u044f \u0443\u0441\u0456\u0445 \u0431\u043b\u043e\u043a\u0456\u0432 \u0437 \u043a\u043e\u043c\u0435\u043d\u0442\u0430\u0440\u044f\u043c\u0438. 12 | Action.ExpandAllFolds.Name=\u0420\u043e\u0437\u0433\u043e\u0440\u043d\u0443\u0442\u0438 \u0432\u0441\u0435 13 | Action.ExpandAllFolds.Mnemonic=\u0420 14 | Action.ExpandAllFolds.Desc=\u0420\u043e\u0437\u0433\u043e\u0440\u0442\u0430\u043d\u043d\u044f \u0432\u0441\u0456\u0445 \u0431\u043b\u043e\u043a\u0456\u0432. 15 | -------------------------------------------------------------------------------- /RSyntaxTextArea/src/main/resources/org/fife/ui/rsyntaxtextarea/RSyntaxTextArea_zh_CN.properties: -------------------------------------------------------------------------------- 1 | ContextMenu.Folding=\u6298\u53e0 2 | 3 | Action.ToggleCurrentFold.Name=\u5207\u6362\u5f53\u524d\u6298\u53e0 4 | Action.ToggleCurrentFold.Mnemonic=F 5 | Action.ToggleCurrentFold.Desc=\u5728\u8131\u5b57\u7b26\u4f4d\u7f6e\u5207\u6362\u6298\u53e0\u3002 6 | Action.CollapseAllFolds.Name=\u6536\u8d77\u6240\u6709\u6298\u53e0 7 | Action.CollapseAllFolds.Mnemonic=O 8 | Action.CollapseAllFolds.Desc=\u6536\u8d77\u6240\u6709\u6298\u53e0\u3002 9 | Action.CollapseCommentFolds.Name=\u6536\u8d77\u6240\u6709\u6ce8\u91ca 10 | Action.CollapseCommentFolds.Mnemonic=C 11 | Action.CollapseCommentFolds.Desc=\u6536\u8d77\u6240\u6709\u6ce8\u91ca\u6298\u53e0\u3002 12 | Action.ExpandAllFolds.Name=\u5c55\u5f00\u6240\u6709\u6298\u53e0 13 | Action.ExpandAllFolds.Mnemonic=E 14 | Action.ExpandAllFolds.Desc=\u5c55\u5f00\u6240\u6709\u6298\u53e0\u3002 15 | -------------------------------------------------------------------------------- /RSyntaxTextArea/src/main/resources/org/fife/ui/rsyntaxtextarea/RSyntaxTextArea_zh_TW.properties: -------------------------------------------------------------------------------- 1 | ContextMenu.Folding=Folding 2 | 3 | Action.ToggleCurrentFold.Name=Toggle Current Fold 4 | Action.ToggleCurrentFold.Mnemonic=F 5 | Action.ToggleCurrentFold.Desc=Toggles the fold at the caret position. 6 | Action.CollapseAllFolds.Name=Collapse All Folds 7 | Action.CollapseAllFolds.Mnemonic=O 8 | Action.CollapseAllFolds.Desc=Collapses all folds. 9 | Action.CollapseCommentFolds.Name=Collapse All Comments 10 | Action.CollapseCommentFolds.Mnemonic=C 11 | Action.CollapseCommentFolds.Desc=Collapses all comment folds. 12 | Action.ExpandAllFolds.Name=Expand All Folds 13 | Action.ExpandAllFolds.Mnemonic=E 14 | Action.ExpandAllFolds.Desc=Expands all folds. 15 | -------------------------------------------------------------------------------- /RSyntaxTextArea/src/main/resources/org/fife/ui/rsyntaxtextarea/focusabletip/FocusableTip.properties: -------------------------------------------------------------------------------- 1 | FocusHotkey=Press 'F2' for focus 2 | -------------------------------------------------------------------------------- /RSyntaxTextArea/src/main/resources/org/fife/ui/rsyntaxtextarea/focusabletip/FocusableTip_ar.properties: -------------------------------------------------------------------------------- 1 | FocusHotkey=\u0627\u0636\u063a\u0637 'F2' \u0645\u0646 \u0627\u062c\u0644 \u0627\u0644\u062a\u0631\u0643\u064a\u0632 2 | -------------------------------------------------------------------------------- /RSyntaxTextArea/src/main/resources/org/fife/ui/rsyntaxtextarea/focusabletip/FocusableTip_de.properties: -------------------------------------------------------------------------------- 1 | FocusHotkey=Dr\u00fccken Sie 'F2' zum Fokussieren 2 | -------------------------------------------------------------------------------- /RSyntaxTextArea/src/main/resources/org/fife/ui/rsyntaxtextarea/focusabletip/FocusableTip_es.properties: -------------------------------------------------------------------------------- 1 | FocusHotkey=Presionar 'F2' para enfocar 2 | -------------------------------------------------------------------------------- /RSyntaxTextArea/src/main/resources/org/fife/ui/rsyntaxtextarea/focusabletip/FocusableTip_fi.properties: -------------------------------------------------------------------------------- 1 | FocusHotkey=Kohdista painamalla F2 2 | -------------------------------------------------------------------------------- /RSyntaxTextArea/src/main/resources/org/fife/ui/rsyntaxtextarea/focusabletip/FocusableTip_fr.properties: -------------------------------------------------------------------------------- 1 | FocusHotkey=Appuyer sur 'F2' pour d\u00c3\u00a9placer le focus 2 | -------------------------------------------------------------------------------- /RSyntaxTextArea/src/main/resources/org/fife/ui/rsyntaxtextarea/focusabletip/FocusableTip_hu.properties: -------------------------------------------------------------------------------- 1 | FocusHotkey=Nyomja meg az 'F2' billenty\u0171t a f\u00f3kuszba \u00e1ll\u00edt\u00e1shoz 2 | -------------------------------------------------------------------------------- /RSyntaxTextArea/src/main/resources/org/fife/ui/rsyntaxtextarea/focusabletip/FocusableTip_in.properties: -------------------------------------------------------------------------------- 1 | FocusHotkey=Press 'F2' for focus 2 | -------------------------------------------------------------------------------- /RSyntaxTextArea/src/main/resources/org/fife/ui/rsyntaxtextarea/focusabletip/FocusableTip_it.properties: -------------------------------------------------------------------------------- 1 | FocusHotkey=Premi 'F2' per il focus 2 | -------------------------------------------------------------------------------- /RSyntaxTextArea/src/main/resources/org/fife/ui/rsyntaxtextarea/focusabletip/FocusableTip_ja.properties: -------------------------------------------------------------------------------- 1 | FocusHotkey=\u30d5\u30a9\u30fc\u30ab\u30b9\u3092\u53d6\u5f97\u3059\u308b\u306b\u306f\u300c\uff26\uff12\u300d\u3092\u62bc\u3057\u3066\u304f\u3060\u3055\u3044\u3002 2 | -------------------------------------------------------------------------------- /RSyntaxTextArea/src/main/resources/org/fife/ui/rsyntaxtextarea/focusabletip/FocusableTip_ko.properties: -------------------------------------------------------------------------------- 1 | FocusHotkey=\ud3ec\ucee4\uc2a4\ub97c \uc8fc\ub824\uba74 'F2'\ub97c \ub204\ub974\uc138\uc694 2 | -------------------------------------------------------------------------------- /RSyntaxTextArea/src/main/resources/org/fife/ui/rsyntaxtextarea/focusabletip/FocusableTip_nl.properties: -------------------------------------------------------------------------------- 1 | FocusHotkey=Druk op 'F2' voor focus 2 | -------------------------------------------------------------------------------- /RSyntaxTextArea/src/main/resources/org/fife/ui/rsyntaxtextarea/focusabletip/FocusableTip_pl.properties: -------------------------------------------------------------------------------- 1 | FocusHotkey=Naci\u015bnij 'F2' aby wy\u015bwietli\u0107 2 | -------------------------------------------------------------------------------- /RSyntaxTextArea/src/main/resources/org/fife/ui/rsyntaxtextarea/focusabletip/FocusableTip_pt.properties: -------------------------------------------------------------------------------- 1 | FocusHotkey=Prima "F2" para foco 2 | -------------------------------------------------------------------------------- /RSyntaxTextArea/src/main/resources/org/fife/ui/rsyntaxtextarea/focusabletip/FocusableTip_pt_BR.properties: -------------------------------------------------------------------------------- 1 | FocusHotkey=Aperte 'F2' para focar 2 | -------------------------------------------------------------------------------- /RSyntaxTextArea/src/main/resources/org/fife/ui/rsyntaxtextarea/focusabletip/FocusableTip_ru.properties: -------------------------------------------------------------------------------- 1 | FocusHotkey=\u041d\u0430\u0436\u0430\u0442\u044c 'F2' \u0434\u043b\u044f \u0444\u043e\u043a\u0443\u0441\u0438\u0440\u043e\u0432\u043a\u0438 2 | -------------------------------------------------------------------------------- /RSyntaxTextArea/src/main/resources/org/fife/ui/rsyntaxtextarea/focusabletip/FocusableTip_tr.properties: -------------------------------------------------------------------------------- 1 | FocusHotkey=Odaklanmak i\u00e7in 'F2'e bas\u0131n\u0131z 2 | -------------------------------------------------------------------------------- /RSyntaxTextArea/src/main/resources/org/fife/ui/rsyntaxtextarea/focusabletip/FocusableTip_uk.properties: -------------------------------------------------------------------------------- 1 | FocusHotkey=\u0414\u043b\u044f \u0444\u043e\u043a\u0443\u0441\u0443\u0432\u0430\u043d\u043d\u044f \u043d\u0430\u0442\u0438\u0441\u043d\u0456\u0442\u044c \u043a\u043b\u0430\u0432\u0456\u0448\u0443 F2 2 | -------------------------------------------------------------------------------- /RSyntaxTextArea/src/main/resources/org/fife/ui/rsyntaxtextarea/focusabletip/FocusableTip_zh_CN.properties: -------------------------------------------------------------------------------- 1 | FocusHotkey=\u6309\u201c F2\u201d\u6765\u83b7\u5f97\u7126\u70b9 2 | -------------------------------------------------------------------------------- /RSyntaxTextArea/src/main/resources/org/fife/ui/rsyntaxtextarea/focusabletip/FocusableTip_zh_TW.properties: -------------------------------------------------------------------------------- 1 | FocusHotkey=Press 'F2' for focus 2 | -------------------------------------------------------------------------------- /RSyntaxTextArea/src/main/resources/org/fife/ui/rtextarea/RTextArea.properties: -------------------------------------------------------------------------------- 1 | Action.Copy.Mnemonic=C 2 | Action.Copy.Name=Copy 3 | Action.Copy.Desc=Copies current selection to the clipboard. 4 | 5 | Action.Cut.Mnemonic=T 6 | Action.Cut.Name=Cut 7 | Action.Cut.Desc=Removes current selection and places it on the clipboard. 8 | 9 | Action.Delete.Mnemonic=D 10 | Action.Delete.Name=Delete 11 | Action.Delete.Desc=Removes current selection. 12 | 13 | Action.Paste.Mnemonic=P 14 | Action.Paste.Name=Paste 15 | Action.Paste.Desc=Places text on clipboard at current location in text file. 16 | 17 | Action.SelectAll.Mnemonic=A 18 | Action.SelectAll.Name=Select All 19 | Action.SelectAll.Desc=Selects all text in current text document. 20 | 21 | Action.Undo.Mnemonic=U 22 | Action.Undo.Name=Undo 23 | Action.CantUndo.Name=Can't Undo 24 | Action.Undo.Desc=Takes back the last action. 25 | 26 | Action.Redo.Mnemonic=R 27 | Action.Redo.Name=Redo 28 | Action.CantRedo.Name=Can't Redo 29 | Action.Redo.Desc=Re-applies the last action undone. 30 | 31 | Action.ClipboardHistory.Mnemonic=H 32 | Action.ClipboardHistory.Name=Paste from History 33 | Action.ClipboardHistory.Desc=Choose what text to paste from text recently on the clipboard. 34 | Action.ClipboardHistory.Popup.Label=Clipboard History: 35 | -------------------------------------------------------------------------------- /RSyntaxTextArea/src/main/resources/org/fife/ui/rtextarea/RTextArea_de.properties: -------------------------------------------------------------------------------- 1 | Action.Copy.Mnemonic=K 2 | Action.Copy.Name=Kopieren 3 | Action.Copy.Desc=Kopiert die aktuelle Auswahl in die Zwischenablage. 4 | 5 | Action.Cut.Mnemonic=S 6 | Action.Cut.Name=Ausschneiden 7 | Action.Cut.Desc=Entfernt die aktuelle Auswahl und platziert sie in die Zwischenablage. 8 | 9 | Action.Delete.Mnemonic=L 10 | Action.Delete.Name=L\u00f6schen 11 | Action.Delete.Desc=Entfernt die aktuelle Auswahl. 12 | 13 | Action.Paste.Mnemonic=E 14 | Action.Paste.Name=Einf\u00fcgen 15 | Action.Paste.Desc=Platziert den in der Zwischenablage befindlichen Text an der aktuellen Position in der Textdatei. 16 | 17 | Action.SelectAll.Mnemonic=A 18 | Action.SelectAll.Name=Alles markieren 19 | Action.SelectAll.Desc=Markiert den gesamten Text im aktuellen Textdokument. 20 | 21 | Action.Undo.Mnemonic=R 22 | Action.Undo.Name=R\u00fcckg\u00e4ngig 23 | Action.CantUndo.Name=R\u00fcckg\u00e4ngig nicht m\u00f6glich 24 | Action.Undo.Desc=Nimmt die letzte Aktion zur\u00fcck. 25 | 26 | Action.Redo.Mnemonic=W 27 | Action.Redo.Name=Wiederholen 28 | Action.CantRedo.Name=Wiederholen nicht m\u00f6glich 29 | Action.Redo.Desc=Wendet die zuletzt r\u00fcckg\u00e4ngig gemachte Aktion erneut an. 30 | 31 | Action.ClipboardHistory.Mnemonic=V 32 | Action.ClipboardHistory.Name=Aus dem Verlauf einf\u00fcgen 33 | Action.ClipboardHistory.Desc=W\u00e4hlen Sie, welcher Text von den k\u00fcrzlich kopierten Texten aus der Zwischenablage eingef\u00fcgt werden soll. 34 | Action.ClipboardHistory.Popup.Label=Zwischenablage-Verlauf: 35 | -------------------------------------------------------------------------------- /RSyntaxTextArea/src/main/resources/org/fife/ui/rtextarea/RTextArea_es.properties: -------------------------------------------------------------------------------- 1 | Action.Copy.Mnemonic=C 2 | Action.Copy.Name=Copiar 3 | Action.Copy.Desc=Copia la selecci\u00f3n actual en el portapapeles. 4 | 5 | Action.Cut.Mnemonic=T 6 | Action.Cut.Name=Cortar 7 | Action.Cut.Desc=Elimina la selecci\u00f3n actual y la p\u00f3ne en el portapapeles. 8 | 9 | Action.Delete.Mnemonic=D 10 | Action.Delete.Name=Eliminar 11 | Action.Delete.Desc=Elimina la selecci\u00f3n actual. 12 | 13 | Action.Paste.Mnemonic=P 14 | Action.Paste.Name=Pegar 15 | Action.Paste.Desc=P\u00f3ne el texto del portapapeles en la posici\u00f3n actual del archivo de texto. 16 | 17 | Action.SelectAll.Mnemonic=A 18 | Action.SelectAll.Name=Seleccionar todo 19 | Action.SelectAll.Desc=Selecciona todo el texto en el documento de texto actual. 20 | 21 | Action.Undo.Mnemonic=U 22 | Action.Undo.Name=Deshacer 23 | Action.CantUndo.Name=No se puede deshacer 24 | Action.Undo.Desc=Deshace la \u00faltima acci\u00f3n. 25 | 26 | Action.Redo.Mnemonic=R 27 | Action.Redo.Name=Rehacer 28 | Action.CantRedo.Name=No se puede rehacer 29 | Action.Redo.Desc=Rehace la \u00faltima acci\u00f3n deshecha. 30 | 31 | Action.ClipboardHistory.Mnemonic=H 32 | Action.ClipboardHistory.Name=Paste from History 33 | Action.ClipboardHistory.Desc=Choose what text to paste from text recently on the clipboard. 34 | Action.ClipboardHistory.Popup.Label=Clipboard History: 35 | -------------------------------------------------------------------------------- /RSyntaxTextArea/src/main/resources/org/fife/ui/rtextarea/RTextArea_fi.properties: -------------------------------------------------------------------------------- 1 | Action.Copy.Mnemonic=K 2 | Action.Copy.Name=Kopioi 3 | Action.Copy.Desc=Kopioi nykyisen valinnan leikep\u00f6yd\u00e4lle. 4 | 5 | Action.Cut.Mnemonic=L 6 | Action.Cut.Name=Leikkaa 7 | Action.Cut.Desc=Poistaa nykyisen valinnan ja laittaa sen leikep\u00f6yd\u00e4lle. 8 | 9 | Action.Delete.Mnemonic=P 10 | Action.Delete.Name=Poista 11 | Action.Delete.Desc=Poistaa nykyisen valinnan. 12 | 13 | Action.Paste.Mnemonic=T 14 | Action.Paste.Name=Liit\u00e4 15 | Action.Paste.Desc=Liitt\u00e4\u00e4 leikep\u00f6yd\u00e4n tekstin tekstitiedoston nykyiseen kohtaan. 16 | 17 | Action.SelectAll.Mnemonic=V 18 | Action.SelectAll.Name=Valitse kaikki 19 | Action.SelectAll.Desc=Valitsee kaiken tekstin nykyisess\u00e4 tiedostossa. 20 | 21 | Action.Undo.Mnemonic=M 22 | Action.Undo.Name=Kumoa 23 | Action.CantUndo.Name=Ei voi kumota 24 | Action.Undo.Desc=Kumoaa viime toiminnon. 25 | 26 | Action.Redo.Mnemonic=S 27 | Action.Redo.Name=Toista 28 | Action.CantRedo.Name=Ei voi toistaa 29 | Action.Redo.Desc=K\u00e4ytt\u00e4\u00e4 viimeksi kumottua toimintoa uudelleen. 30 | 31 | Action.ClipboardHistory.Mnemonic=H 32 | Action.ClipboardHistory.Name=Liit\u00e4 historiasta 33 | Action.ClipboardHistory.Desc=Valitse, mik\u00e4 leikep\u00f6yd\u00e4lle viimeksi laitetuista teksteist\u00e4 liitet\u00e4\u00e4n. 34 | Action.ClipboardHistory.Popup.Label=Leikep\u00f6yd\u00e4n historia: 35 | -------------------------------------------------------------------------------- /RSyntaxTextArea/src/main/resources/org/fife/ui/rtextarea/RTextArea_fr.properties: -------------------------------------------------------------------------------- 1 | Action.Copy.Mnemonic=C 2 | Action.Copy.Name=Copier 3 | Action.Copy.Desc=Copie la s\u00e9lection dans le presse-papiers. 4 | 5 | Action.Cut.Mnemonic=T 6 | Action.Cut.Name=Couper 7 | Action.Cut.Desc=Coupe la s\u00e9lection et la place dans le presse-papiers. 8 | 9 | Action.Delete.Mnemonic=D 10 | Action.Delete.Name=Effacer 11 | Action.Delete.Desc=Efface la s\u00e9lection. 12 | 13 | Action.Paste.Mnemonic=P 14 | Action.Paste.Name=Coller 15 | Action.Paste.Desc=Insert le contenu du presse-papiers \u00e0 l'emplacement courant. 16 | 17 | Action.SelectAll.Mnemonic=A 18 | Action.SelectAll.Name=S\u00e9lectionner tout 19 | Action.SelectAll.Desc=S\u00e9lectionne tout le texte du document courant. 20 | 21 | Action.Undo.Mnemonic=U 22 | Action.Undo.Name=Annuler 23 | Action.CantUndo.Name=Annuler 24 | Action.Undo.Desc=Annule la derni\u00e8re action. 25 | 26 | Action.Redo.Mnemonic=R 27 | Action.Redo.Name=Refaire 28 | Action.CantRedo.Name=R\u00e9tablir 29 | Action.Redo.Desc=R\u00e9p\u00e8te la derni\u00e8re action annul\u00e9e. 30 | 31 | Action.ClipboardHistory.Mnemonic=H 32 | Action.ClipboardHistory.Name=Coller depuis l'historique 33 | Action.ClipboardHistory.Desc=Choisissez le texte \u00e0 coller \u00e0 partir du texte r\u00e9cemment pr\u00e9sent dans le presse-papiers. 34 | Action.ClipboardHistory.Popup.Label=Historique du presse-papiers : 35 | -------------------------------------------------------------------------------- /RSyntaxTextArea/src/main/resources/org/fife/ui/rtextarea/RTextArea_hu.properties: -------------------------------------------------------------------------------- 1 | Action.Copy.Mnemonic=C 2 | Action.Copy.Name=M\u00e1sol\u00e1s 3 | Action.Copy.Desc=A jelenleg kiv\u00e1lasztott r\u00e9sz m\u00e1sol\u00e1sa a v\u00e1g\u00f3lapra 4 | 5 | Action.Cut.Mnemonic=T 6 | Action.Cut.Name=Kiv\u00e1g\u00e1s 7 | Action.Cut.Desc=A jelenleg kijel\u00f6lt r\u00e9sz elt\u00e1vol\u00edt\u00e1sa \u00e9s v\u00e1g\u00f3lapra helyez\u00e9se. 8 | 9 | Action.Delete.Mnemonic=D 10 | Action.Delete.Name=T\u00f6rl\u00e9s 11 | Action.Delete.Desc=A jelenleg kijel\u00f6lt r\u00e9sz elt\u00e1vol\u00edt\u00e1sa. 12 | 13 | Action.Paste.Mnemonic=P 14 | Action.Paste.Name=Beilleszt\u00e9s 15 | Action.Paste.Desc=A sz\u00f6veges f\u00e1jl jelenlegi hely\u00e9n l\u00e9v\u0151 sz\u00f6veg v\u00e1g\u00f3lapra helyez\u00e9se. 16 | 17 | Action.SelectAll.Mnemonic=A 18 | Action.SelectAll.Name=Az \u00f6sszes kijel\u00f6l\u00e9se 19 | Action.SelectAll.Desc=Az \u00f6sszes sz\u00f6veg kijel\u00f6l\u00e9se a jelenlegi dokumentumban. 20 | 21 | Action.Undo.Mnemonic=U 22 | Action.Undo.Name=Visszavon\u00e1s 23 | Action.CantUndo.Name=Nem vonhat\u00f3 vissza 24 | Action.Undo.Desc=Az utols\u00f3 m\u0171velet visszavon\u00e1sa 25 | 26 | Action.Redo.Mnemonic=R 27 | Action.Redo.Name=Ism\u00e9telt v\u00e9grehajt\u00e1s 28 | Action.CantRedo.Name=Nem hajthat\u00f3 v\u00e9gre \u00fajra 29 | Action.Redo.Desc=Az utolj\u00e1ra visszavont m\u0171velet ism\u00e9telt alkalmaz\u00e1sa. 30 | 31 | Action.ClipboardHistory.Mnemonic=H 32 | Action.ClipboardHistory.Name=Paste from History 33 | Action.ClipboardHistory.Desc=Choose what text to paste from text recently on the clipboard. 34 | Action.ClipboardHistory.Popup.Label=Clipboard History: 35 | -------------------------------------------------------------------------------- /RSyntaxTextArea/src/main/resources/org/fife/ui/rtextarea/RTextArea_in.properties: -------------------------------------------------------------------------------- 1 | Action.Copy.Mnemonic=C 2 | Action.Copy.Name=Salin 3 | Action.Copy.Desc=Salin current selection ke clipboard. 4 | 5 | Action.Cut.Mnemonic=T 6 | Action.Cut.Name=Cut 7 | Action.Cut.Desc=Hapus current selection dan letakkan dalam clipboard. 8 | 9 | Action.Delete.Mnemonic=D 10 | Action.Delete.Name=Hapus 11 | Action.Delete.Desc=Hapus current selection. 12 | 13 | Action.Paste.Mnemonic=P 14 | Action.Paste.Name=Paste 15 | Action.Paste.Desc=Letakkan text pada clipboard di lokasi saat ini dalam text file. 16 | 17 | Action.SelectAll.Mnemonic=A 18 | Action.SelectAll.Name=Pilih Semua 19 | Action.SelectAll.Desc=Pilih semua text dalam dokumen text saat ini. 20 | 21 | Action.Undo.Mnemonic=U 22 | Action.Undo.Name=Undo 23 | Action.CantUndo.Name=Tidak Dapat Undo 24 | Action.Undo.Desc=Kembali ke aksi terakhir. 25 | 26 | Action.Redo.Mnemonic=R 27 | Action.Redo.Name=Redo 28 | Action.CantRedo.Name=Tidak dapat Redo 29 | Action.Redo.Desc=Ulangi aksi terakhir yang di-undone. 30 | 31 | Action.ClipboardHistory.Mnemonic=H 32 | Action.ClipboardHistory.Name=Paste from History 33 | Action.ClipboardHistory.Desc=Choose what text to paste from text recently on the clipboard. 34 | Action.ClipboardHistory.Popup.Label=Clipboard History: 35 | -------------------------------------------------------------------------------- /RSyntaxTextArea/src/main/resources/org/fife/ui/rtextarea/RTextArea_it.properties: -------------------------------------------------------------------------------- 1 | Action.Copy.Mnemonic=C 2 | Action.Copy.Name=Copia 3 | Action.Copy.Desc=Copia la selezione corrente negli appunti. 4 | 5 | Action.Cut.Mnemonic=T 6 | Action.Cut.Name=Taglia 7 | Action.Cut.Desc=Rimuove la selezione corrente e la memorizza negli appunti. 8 | 9 | Action.Delete.Mnemonic=E 10 | Action.Delete.Name=Elimina 11 | Action.Delete.Desc=Rimuove la selezione corrente. 12 | 13 | Action.Paste.Mnemonic=I 14 | Action.Paste.Name=Incolla 15 | Action.Paste.Desc=Inserisce il testo presente negli appunti nella posizione corrente nel file di testo. 16 | 17 | Action.SelectAll.Mnemonic=E 18 | Action.SelectAll.Name=Seleziona tutto 19 | Action.SelectAll.Desc=Seleziona tutto il testo nel documento corrente. 20 | 21 | Action.Undo.Mnemonic=U 22 | Action.Undo.Name=Annulla 23 | Action.CantUndo.Name=Impossibile annullare 24 | Action.Undo.Desc=Annulla l'ultima azione. 25 | 26 | Action.Redo.Mnemonic=R 27 | Action.Redo.Name=Ripeti 28 | Action.CantRedo.Name=Impossibile ripristinare 29 | Action.Redo.Desc=Riapplica l'ultima azione annullata. 30 | 31 | Action.ClipboardHistory.Mnemonic=H 32 | Action.ClipboardHistory.Name=Paste from History 33 | Action.ClipboardHistory.Desc=Choose what text to paste from text recently on the clipboard. 34 | Action.ClipboardHistory.Popup.Label=Clipboard History: 35 | -------------------------------------------------------------------------------- /RSyntaxTextArea/src/main/resources/org/fife/ui/rtextarea/RTextArea_ko.properties: -------------------------------------------------------------------------------- 1 | Action.Copy.Mnemonic=C 2 | Action.Copy.Name=\ubcf5\uc0ac\ud558\uae30 3 | Action.Copy.Desc=\ud604\uc7ac \uc120\ud0dd\ub41c \ud14d\uc2a4\ud2b8\ub97c \ud074\ub9bd\ubcf4\ub4dc\ub85c \ubcf5\uc0ac\ud569\ub2c8\ub2e4. 4 | 5 | Action.Cut.Mnemonic=T 6 | Action.Cut.Name=\uc798\ub77c\ub0b4\uae30 7 | Action.Cut.Desc=\ud604\uc7ac \uc120\ud0dd\ub41c \ud14d\uc2a4\ud2b8\ub97c \ud074\ub9bd\ubcf4\ub4dc\ub85c \ubcf5\uc0ac\ud558\uace0 \uc0ad\uc81c\ud569\ub2c8\ub2e4. 8 | 9 | Action.Delete.Mnemonic=D 10 | Action.Delete.Name=\uc9c0\uc6b0\uae30 11 | Action.Delete.Desc=\ud604\uc7ac \uc120\ud0dd\ub41c \ud14d\uc2a4\ud2b8\ub97c \uc0ad\uc81c\ud569\ub2c8\ub2e4. 12 | 13 | Action.Paste.Mnemonic=P 14 | Action.Paste.Name=\ubd99\uc5ec\ub123\uae30 15 | Action.Paste.Desc=\ud074\ub9bd\ubcf4\ub4dc\uc5d0 \uc788\ub294 \ud14d\uc2a4\ud2b8\ub97c \ud604\uc7ac\uc758 \uc704\uce58\uc5d0 \ubd99\uc785\ub2c8\ub2e4. 16 | 17 | Action.SelectAll.Mnemonic=A 18 | Action.SelectAll.Name=\uc804\uccb4 \uc120\ud0dd 19 | Action.SelectAll.Desc=\ud604\uc7ac \ud14d\uc2a4\ud2b8 \ubb38\uc11c\uc758 \ubaa8\ub4e0 \ud14d\uc2a4\ud2b8\ub97c \uc120\ud0dd\ud569\ub2c8\ub2e4. 20 | 21 | Action.Undo.Mnemonic=U 22 | Action.Undo.Name=\ub418\ub3cc\ub9ac\uae30 23 | Action.CantUndo.Name=\ub418\ub3cc\ub9b4 \uc218 \uc5c6\uc74c 24 | Action.Undo.Desc=\ub9c8\uc9c0\ub9c9 \ub3d9\uc791\uc744 \ucde8\uc18c\ud569\ub2c8\ub2e4. 25 | 26 | Action.Redo.Mnemonic=R 27 | Action.Redo.Name=\ub2e4\uc2dc\ud558\uae30 28 | Action.CantRedo.Name=\ub2e4\uc2dc \ud560\uc218 \uc5c6\uc74c 29 | Action.Redo.Desc=\ub418\ub3cc\ub9b0 \ub3d9\uc791\uc744 \ub2e4\uc2dc \uc801\uc6a9\ud569\ub2c8\ub2e4. 30 | 31 | Action.ClipboardHistory.Mnemonic=H 32 | Action.ClipboardHistory.Name=Paste from History 33 | Action.ClipboardHistory.Desc=Choose what text to paste from text recently on the clipboard. 34 | Action.ClipboardHistory.Popup.Label=Clipboard History: 35 | -------------------------------------------------------------------------------- /RSyntaxTextArea/src/main/resources/org/fife/ui/rtextarea/RTextArea_nl.properties: -------------------------------------------------------------------------------- 1 | Action.Copy.Mnemonic=C 2 | Action.Copy.Name=Kopi\u00ebren 3 | Action.Copy.Desc=Kopieert de huidige selectie naar het prikbord. 4 | 5 | Action.Cut.Mnemonic=X 6 | Action.Cut.Name=Knippen 7 | Action.Cut.Desc=Haalt de huidige selectie weg en plaatst het op het prikbord 8 | 9 | Action.Delete.Mnemonic=V 10 | Action.Delete.Name=Verwijderen 11 | Action.Delete.Desc=Verwijdert de huidige selectie. 12 | 13 | Action.Paste.Mnemonic=P 14 | Action.Paste.Name=Plakken 15 | Action.Paste.Desc=Plaatst tekst van het prikbord op de huidige locatie in het tekstbestand. 16 | 17 | Action.SelectAll.Mnemonic=A 18 | Action.SelectAll.Name=Alles selecteren 19 | Action.SelectAll.Desc=Selecteert alle tekst in het huidige document. 20 | 21 | Action.Undo.Mnemonic=U 22 | Action.Undo.Name=Undo 23 | Action.CantUndo.Name=Ongedaan maken niet mogelijk 24 | Action.Undo.Desc=Haalt de laatste actie terug. 25 | 26 | Action.Redo.Mnemonic=R 27 | Action.Redo.Name=Redo 28 | Action.CantRedo.Name=Opnieuw uitvoeren niet mogelijk 29 | Action.Redo.Desc=Herhaalt de laatste teruggehaalde actie. 30 | 31 | Action.ClipboardHistory.Mnemonic=H 32 | Action.ClipboardHistory.Name=Plakken uit geschiedenis 33 | Action.ClipboardHistory.Desc=Kies welke tekst, vanuit de recent op het prikbord geplaatste tekst, moet worden geplakt. 34 | Action.ClipboardHistory.Popup.Label=Gschiedenis prikbord: 35 | -------------------------------------------------------------------------------- /RSyntaxTextArea/src/main/resources/org/fife/ui/rtextarea/RTextArea_pl.properties: -------------------------------------------------------------------------------- 1 | Action.Copy.Mnemonic=C 2 | Action.Copy.Name=Kopiuj 3 | Action.Copy.Desc=Kopiuje zaznaczenie do schowka. 4 | 5 | Action.Cut.Mnemonic=T 6 | Action.Cut.Name=Wytnij 7 | Action.Cut.Desc=Wycina zaznaczenie i umieszcza je w schowku. 8 | 9 | Action.Delete.Mnemonic=D 10 | Action.Delete.Name=Usu\u0144 11 | Action.Delete.Desc=Usuwa zaznaczenie. 12 | 13 | Action.Paste.Mnemonic=P 14 | Action.Paste.Name=Wklej 15 | Action.Paste.Desc=Wkleja zawarto\u015b\u0107 schowka w aktualnej pozycji. 16 | 17 | Action.SelectAll.Mnemonic=A 18 | Action.SelectAll.Name=Zaznacz wszystko 19 | Action.SelectAll.Desc=Zaznacza ca\u0142y tekst w otwartym dokumencie. 20 | 21 | Action.Undo.Mnemonic=U 22 | Action.Undo.Name=Cofnij 23 | Action.CantUndo.Name=Nie mo\u017cna cofn\u0105\u0107 24 | Action.Undo.Desc=Cofa ostatni\u0105 akcj\u0119. 25 | 26 | Action.Redo.Mnemonic=R 27 | Action.Redo.Name=Przywr\u00f3\u0107 28 | Action.CantRedo.Name=Nie mo\u017cna przywr\u00f3ci\u0107 29 | Action.Redo.Desc=Przywraca stan sprzed cofni\u0119cia akcji. 30 | 31 | Action.ClipboardHistory.Mnemonic=H 32 | Action.ClipboardHistory.Name=Paste from History 33 | Action.ClipboardHistory.Desc=Choose what text to paste from text recently on the clipboard. 34 | Action.ClipboardHistory.Popup.Label=Clipboard History: 35 | -------------------------------------------------------------------------------- /RSyntaxTextArea/src/main/resources/org/fife/ui/rtextarea/RTextArea_pt.properties: -------------------------------------------------------------------------------- 1 | Action.Copy.Mnemonic=C 2 | Action.Copy.Name=Copiar 3 | Action.Copy.Desc=Copia a selec\u00e7\u00e3o actual para a \u00e1rea de transfer\u00eancia. 4 | 5 | Action.Cut.Mnemonic=T 6 | Action.Cut.Name=Cortar 7 | Action.Cut.Desc=Retira a selec\u00e7\u00e3o actual e coloca-a na \u00e1rea de transfer\u00eancia. 8 | 9 | Action.Delete.Mnemonic=B 10 | Action.Delete.Name=Eliminar 11 | Action.Delete.Desc=Remove a selec\u00e7\u00e3o actual. 12 | 13 | Action.Paste.Mnemonic=S 14 | Action.Paste.Name=Colar 15 | Action.Paste.Desc=Coloca o texto na \u00e1rea de transfer\u00eancia no local actual no ficheiro de texto. 16 | 17 | Action.SelectAll.Mnemonic=U 18 | Action.SelectAll.Name=Seleccionar tudo 19 | Action.SelectAll.Desc=Selecciona todo o texto no documento de texto actual. 20 | 21 | Action.Undo.Mnemonic=C 22 | Action.Undo.Name=Desfazer 23 | Action.CantUndo.Name=Imposs\u00edvel desfazer 24 | Action.Undo.Desc=Retira a \u00faltima ac\u00e7\u00e3o. 25 | 26 | Action.Redo.Mnemonic=T 27 | Action.Redo.Name=Refazer 28 | Action.CantRedo.Name=Imposs\u00edvel refazer 29 | Action.Redo.Desc=Re-aplica a \u00faltima ac\u00e7\u00e3o desfeita. 30 | 31 | Action.ClipboardHistory.Mnemonic=H 32 | Action.ClipboardHistory.Name=Colar do hist\u00f3rico 33 | Action.ClipboardHistory.Desc=Escolha que texto colar do texto recentemente na \u00e1rea de transfer\u00eancia. 34 | Action.ClipboardHistory.Popup.Label=Hist\u00f3rico da \u00e1rea de transfer\u00eancia: 35 | -------------------------------------------------------------------------------- /RSyntaxTextArea/src/main/resources/org/fife/ui/rtextarea/RTextArea_pt_BR.properties: -------------------------------------------------------------------------------- 1 | Action.Copy.Mnemonic=C 2 | Action.Copy.Name=Copiar 3 | Action.Copy.Desc=Copia o texto selecionado para a \u00e1rea de transfer\u00eancia. 4 | 5 | Action.Cut.Mnemonic=T 6 | Action.Cut.Name=Recortar 7 | Action.Cut.Desc=Remove o texto selecionado e o coloca na \u00e1rea de transfer\u00eancia. 8 | 9 | Action.Delete.Mnemonic=D 10 | Action.Delete.Name=Excluir 11 | Action.Delete.Desc=Remove o texto selecionado. 12 | 13 | Action.Paste.Mnemonic=P 14 | Action.Paste.Name=Colar 15 | Action.Paste.Desc=Coloca o texto da \u00e1rea de transfer\u00eancia na posi\u00e7\u00e3o atual do arquivo. 16 | 17 | Action.SelectAll.Mnemonic=A 18 | Action.SelectAll.Name=Selecionar Tudo 19 | Action.SelectAll.Desc=Seleciona todo o texto no documento de texto atual. 20 | 21 | Action.Undo.Mnemonic=U 22 | Action.Undo.Name=Desfazer 23 | Action.CantUndo.Name=Imposs\u00edvel Desfazer 24 | Action.Undo.Desc=Desfaz a \u00faltima a\u00e7\u00e3o. 25 | 26 | Action.Redo.Mnemonic=R 27 | Action.Redo.Name=Refazer 28 | Action.CantRedo.Name=Imposs\u00edvel Refazer 29 | Action.Redo.Desc=Refaz a \u00faltima a\u00e7\u00e3o desfeita. 30 | 31 | Action.ClipboardHistory.Mnemonic=H 32 | Action.ClipboardHistory.Name=Paste from History 33 | Action.ClipboardHistory.Desc=Choose what text to paste from text recently on the clipboard. 34 | Action.ClipboardHistory.Popup.Label=Clipboard History: 35 | -------------------------------------------------------------------------------- /RSyntaxTextArea/src/main/resources/org/fife/ui/rtextarea/RTextArea_tr.properties: -------------------------------------------------------------------------------- 1 | Action.Copy.Mnemonic=K 2 | Action.Copy.Name=Kopyala 3 | Action.Copy.Desc=Secileni ClipBoarda Kopyalar. 4 | 5 | Action.Cut.Mnemonic=X 6 | Action.Cut.Name=Kes 7 | Action.Cut.Desc=Secileni Kaldirip ClipBoarda Yerlestirir. 8 | 9 | Action.Delete.Mnemonic=S 10 | Action.Delete.Name=Sil 11 | Action.Delete.Desc=Secileni Kaldir. 12 | 13 | Action.Paste.Mnemonic=Y 14 | Action.Paste.Name=Yapistir 15 | Action.Paste.Desc=Metni Metin Dosyasindaki Su Anki Yere Yapistir. 16 | 17 | Action.SelectAll.Mnemonic=T 18 | Action.SelectAll.Name=Tumunu Sec 19 | Action.SelectAll.Desc=Metin Belgesindeki Butun Metini Secer. 20 | 21 | Action.Undo.Mnemonic=U 22 | Action.Undo.Name=Geri Al 23 | Action.CantUndo.Name=Geri Alinamaz 24 | Action.Undo.Desc=Son Eylemi Geri Alir. 25 | 26 | Action.Redo.Mnemonic=R 27 | Action.Redo.Name=Tekrar Yap 28 | Action.CantRedo.Name=Yeniden Yapilamaz 29 | Action.Redo.Desc=Geri Alinan Eylemi Yeniden Uygular. 30 | 31 | Action.ClipboardHistory.Mnemonic=H 32 | Action.ClipboardHistory.Name=Paste from History 33 | Action.ClipboardHistory.Desc=Choose what text to paste from text recently on the clipboard. 34 | Action.ClipboardHistory.Popup.Label=Clipboard History: 35 | -------------------------------------------------------------------------------- /RSyntaxTextArea/src/main/resources/org/fife/ui/rtextarea/RTextArea_zh_CN.properties: -------------------------------------------------------------------------------- 1 | Action.Copy.Mnemonic=C 2 | Action.Copy.Name=\u590d\u5236 3 | Action.Copy.Desc=\u5c06\u5f53\u524d\u9009\u4e2d\u7684\u5185\u5bb9\u590d\u5236\u5230\u526a\u8d34\u677f\u3002 4 | 5 | Action.Cut.Mnemonic=T 6 | Action.Cut.Name=\u526a\u5207 7 | Action.Cut.Desc=\u5220\u9664\u5f53\u524d\u9009\u4e2d\u7684\u5185\u5bb9\u540c\u65f6\u5c06\u5176\u653e\u5230\u526a\u8d34\u677f\u4e2d\u3002 8 | 9 | Action.Delete.Mnemonic=D 10 | Action.Delete.Name=\u5220\u9664 11 | Action.Delete.Desc=\u5220\u9664\u5f53\u524d\u9009\u4e2d\u7684\u5185\u5bb9\u3002 12 | 13 | Action.Paste.Mnemonic=P 14 | Action.Paste.Name=\u7c98\u8d34 15 | Action.Paste.Desc=\u5c06\u526a\u8d34\u677f\u4e2d\u7684\u6587\u672c\u653e\u5728\u6587\u672c\u6587\u4ef6\u7684\u5f53\u524d\u4f4d\u7f6e\u4e0a\u3002 16 | 17 | Action.SelectAll.Mnemonic=A 18 | Action.SelectAll.Name=\u5168\u9009 19 | Action.SelectAll.Desc=\u9009\u62e9\u5f53\u524d\u6587\u672c\u6587\u6863\u4e2d\u7684\u6240\u6709\u6587\u672c\u3002 20 | 21 | Action.Undo.Mnemonic=U 22 | Action.Undo.Name=\u64a4\u6d88 23 | Action.CantUndo.Name=\u65e0\u6cd5\u64a4\u6d88 24 | Action.Undo.Desc=\u6536\u56de\u4e0a\u4e00\u4e2a\u64cd\u4f5c\u3002 25 | 26 | Action.Redo.Mnemonic=R 27 | Action.Redo.Name=\u6062\u590d 28 | Action.CantRedo.Name=\u65e0\u6cd5\u6062\u590d 29 | Action.Redo.Desc=\u91cd\u65b0\u5e94\u7528\u4e0a\u6b21\u64a4\u6d88\u7684\u64cd\u4f5c\u3002 30 | 31 | Action.ClipboardHistory.Mnemonic=H 32 | Action.ClipboardHistory.Name=\u4ece\u5386\u53f2\u8bb0\u5f55\u7c98\u8d34 33 | Action.ClipboardHistory.Desc=\u4ece\u6700\u8fd1\u5728\u526a\u8d34\u677f\u4e0a\u7684\u6587\u672c\u4e2d\u9009\u62e9\u8981\u7c98\u8d34\u7684\u6587\u672c\u3002 34 | Action.ClipboardHistory.Popup.Label=\u526a\u8d34\u677f\u5386\u53f2\u8bb0\u5f55\uff1a 35 | -------------------------------------------------------------------------------- /RSyntaxTextArea/src/main/resources/org/fife/ui/rtextarea/RTextArea_zh_TW.properties: -------------------------------------------------------------------------------- 1 | Action.Copy.Mnemonic=C 2 | Action.Copy.Name=\u8907\u88fd 3 | Action.Copy.Desc=\u62f7\u8c9d\u73fe\u9078\u9805\u5165\u526a\u8cbc\u677f. 4 | 5 | Action.Cut.Mnemonic=T 6 | Action.Cut.Name=\u526a\u5207 7 | Action.Cut.Desc=\u522a\u9664\u9078\u64c7\u4e26\u653e\u5165\u526a\u8cbc\u677f. 8 | 9 | Action.Delete.Mnemonic=D 10 | Action.Delete.Name=\u522a\u9664 11 | Action.Delete.Desc=\u522a\u9664\u7576\u524d\u9078\u9805. 12 | 13 | Action.Paste.Mnemonic=P 14 | Action.Paste.Name=\u7c98\u8cbc 15 | Action.Paste.Desc=\u5c07\u526a\u8cbc\u677f\u4e2d\u7684\u6587\u672c\u653e\u5165\u7576\u524d\u4f4d\u7f6e. 16 | 17 | Action.SelectAll.Mnemonic=A 18 | Action.SelectAll.Name=\u5168\u9078 19 | Action.SelectAll.Desc=\u5168\u9078\u73fe\u6a94\u6848\u6240\u6709\u6587\u5b57. 20 | 21 | Action.Undo.Mnemonic=U 22 | Action.Undo.Name=Undo 23 | Action.CantUndo.Name=\u7121\u6cd5\u64a4\u92b7 24 | Action.Undo.Desc=\u53d6\u6d88\u6700\u5f8c\u4e00\u6b21\u884c\u52d5. 25 | 26 | Action.Redo.Mnemonic=R 27 | Action.Redo.Name=Redo 28 | Action.CantRedo.Name=\u7121\u6cd5\u91cd\u505a 29 | Action.Redo.Desc=\u91cd\u8907\u6700\u5f8c\u53d6\u6d88\u7684\u884c\u52d5. 30 | 31 | Action.ClipboardHistory.Mnemonic=H 32 | Action.ClipboardHistory.Name=Paste from History 33 | Action.ClipboardHistory.Desc=Choose what text to paste from text recently on the clipboard. 34 | Action.ClipboardHistory.Popup.Label=Clipboard History: 35 | -------------------------------------------------------------------------------- /RSyntaxTextArea/src/test/java/org/fife/ui/SwingRunnerExtension.java: -------------------------------------------------------------------------------- 1 | /* 2 | * This library is distributed under a modified BSD license. See the included 3 | * LICENSE file for details. 4 | */ 5 | package org.fife.ui; 6 | 7 | import java.lang.reflect.Method; 8 | import java.util.concurrent.atomic.AtomicReference; 9 | import javax.swing.SwingUtilities; 10 | 11 | import org.junit.jupiter.api.extension.ExtensionContext; 12 | import org.junit.jupiter.api.extension.InvocationInterceptor; 13 | import org.junit.jupiter.api.extension.ReflectiveInvocationContext; 14 | 15 | 16 | /** 17 | * Runs Swing unit tests on the EDT. 18 | * 19 | * @author Robert Futrell 20 | * @version 1.0 21 | */ 22 | public class SwingRunnerExtension implements InvocationInterceptor { 23 | 24 | @Override 25 | public void interceptTestMethod(InvocationInterceptor.Invocation invocation, 26 | ReflectiveInvocationContext invocationContext, 27 | ExtensionContext extensionContext) throws Throwable { 28 | 29 | AtomicReference throwable = new AtomicReference<>(); 30 | 31 | SwingUtilities.invokeAndWait(() -> { 32 | try { 33 | invocation.proceed(); 34 | } catch (Throwable t) { 35 | throwable.set(t); 36 | } 37 | }); 38 | Throwable t = throwable.get(); 39 | if (t != null) { 40 | throw t; 41 | } 42 | } 43 | } 44 | -------------------------------------------------------------------------------- /RSyntaxTextArea/src/test/java/org/fife/ui/rsyntaxtextarea/ActiveLineRangeEventTest.java: -------------------------------------------------------------------------------- 1 | /* 2 | * This library is distributed under a modified BSD license. See the included 3 | * LICENSE file for details. 4 | */ 5 | package org.fife.ui.rsyntaxtextarea; 6 | 7 | import org.junit.jupiter.api.Assertions; 8 | import org.junit.jupiter.api.Test; 9 | 10 | 11 | /** 12 | * Unit tests for the {@code ActiveLineRangeEvent} class. 13 | * 14 | * @author Robert Futrell 15 | * @version 1.0 16 | */ 17 | class ActiveLineRangeEventTest { 18 | 19 | 20 | @Test 21 | void testHappyPath() { 22 | RSyntaxTextArea textArea = new RSyntaxTextArea(); 23 | ActiveLineRangeEvent e = new ActiveLineRangeEvent(textArea, 1, 2); 24 | Assertions.assertEquals(1, e.getMin()); 25 | Assertions.assertEquals(2, e.getMax()); 26 | } 27 | } 28 | -------------------------------------------------------------------------------- /RSyntaxTextArea/src/test/java/org/fife/ui/rsyntaxtextarea/DefaultTokenPainterFactoryTest.java: -------------------------------------------------------------------------------- 1 | /* 2 | * This library is distributed under a modified BSD license. See the included 3 | * LICENSE file for details. 4 | */ 5 | package org.fife.ui.rsyntaxtextarea; 6 | 7 | import org.junit.jupiter.api.Assertions; 8 | import org.junit.jupiter.api.BeforeEach; 9 | import org.junit.jupiter.api.Test; 10 | 11 | 12 | /** 13 | * Unit tests for the {@link DefaultTokenPainterFactory} class. 14 | * 15 | * @author Robert Futrell 16 | * @version 1.0 17 | */ 18 | class DefaultTokenPainterFactoryTest extends AbstractRSyntaxTextAreaTest { 19 | 20 | private RSyntaxTextArea textArea; 21 | private DefaultTokenPainterFactory factory; 22 | 23 | 24 | @BeforeEach 25 | void setUp() { 26 | textArea = createTextArea(); 27 | factory = new DefaultTokenPainterFactory(); 28 | } 29 | 30 | 31 | @Test 32 | void testGetTokenPainter_dontShowWhitespace() { 33 | Assertions.assertEquals(DefaultTokenPainter.class, 34 | factory.getTokenPainter(textArea).getClass()); 35 | } 36 | 37 | 38 | @Test 39 | void testGetTokenPainter_showWhitespace() { 40 | textArea.setWhitespaceVisible(true); 41 | Assertions.assertEquals(VisibleWhitespaceTokenPainter.class, 42 | factory.getTokenPainter(textArea).getClass()); 43 | } 44 | } 45 | -------------------------------------------------------------------------------- /RSyntaxTextArea/src/test/java/org/fife/ui/rsyntaxtextarea/PopupWindowDecoratorTest.java: -------------------------------------------------------------------------------- 1 | /* 2 | * This library is distributed under a modified BSD license. See the included 3 | * LICENSE file for details. 4 | */ 5 | package org.fife.ui.rsyntaxtextarea; 6 | 7 | 8 | import org.junit.jupiter.api.Assertions; 9 | import org.junit.jupiter.api.Test; 10 | 11 | import javax.swing.*; 12 | 13 | /** 14 | * Unit tests for the {@code PopupWindowDecorator} class. 15 | * 16 | * @author Robert Futrell 17 | * @version 1.0 18 | */ 19 | class PopupWindowDecoratorTest { 20 | 21 | 22 | @Test 23 | void testGetSet() { 24 | 25 | PopupWindowDecorator decorator = new PopupWindowDecorator() { 26 | @Override 27 | public void decorate(JWindow window) { 28 | // Do nothing (comment for Sonar) 29 | } 30 | }; 31 | 32 | Assertions.assertNull(PopupWindowDecorator.get()); 33 | PopupWindowDecorator.set(decorator); 34 | Assertions.assertEquals(decorator, PopupWindowDecorator.get()); 35 | } 36 | } 37 | -------------------------------------------------------------------------------- /RSyntaxTextArea/src/test/java/org/fife/ui/rsyntaxtextarea/RSyntaxTextAreaEditorKitSelectWordActionTest.java: -------------------------------------------------------------------------------- 1 | /* 2 | * This library is distributed under a modified BSD license. See the included 3 | * LICENSE file for details. 4 | */ 5 | package org.fife.ui.rsyntaxtextarea; 6 | 7 | import org.fife.ui.SwingRunnerExtension; 8 | import org.junit.jupiter.api.Assertions; 9 | import org.junit.jupiter.api.Test; 10 | import org.junit.jupiter.api.extension.ExtendWith; 11 | 12 | import javax.swing.text.DefaultEditorKit; 13 | import java.awt.event.ActionEvent; 14 | 15 | 16 | /** 17 | * Unit tests for the {@link RSyntaxTextAreaEditorKit.SelectWordAction} class. 18 | * 19 | * @author Robert Futrell 20 | * @version 1.0 21 | */ 22 | @ExtendWith(SwingRunnerExtension.class) 23 | class RSyntaxTextAreaEditorKitSelectWordActionTest { 24 | 25 | 26 | @Test 27 | void testActionPerformedImpl() { 28 | 29 | RSyntaxTextArea textArea = new RSyntaxTextArea("line 1\nline 2\nline 3"); 30 | textArea.setCaretPosition(8); 31 | 32 | ActionEvent e = new ActionEvent(textArea, 0, "command"); 33 | new RSyntaxTextAreaEditorKit.SelectWordAction().actionPerformedImpl(e, textArea); 34 | 35 | Assertions.assertEquals(7, textArea.getSelectionStart()); 36 | Assertions.assertEquals(11, textArea.getSelectionEnd()); 37 | Assertions.assertEquals(11, textArea.getCaretPosition()); 38 | } 39 | 40 | 41 | @Test 42 | void testGetMacroID() { 43 | Assertions.assertEquals(DefaultEditorKit.selectWordAction, 44 | new RSyntaxTextAreaEditorKit.SelectWordAction().getMacroID()); 45 | } 46 | } 47 | -------------------------------------------------------------------------------- /RSyntaxTextArea/src/test/java/org/fife/ui/rsyntaxtextarea/RSyntaxTextAreaEditorKitTest.java: -------------------------------------------------------------------------------- 1 | /* 2 | * This library is distributed under a modified BSD license. See the included 3 | * LICENSE file for details. 4 | */ 5 | package org.fife.ui.rsyntaxtextarea; 6 | 7 | import org.fife.ui.SwingRunnerExtension; 8 | import org.junit.jupiter.api.Assertions; 9 | import org.junit.jupiter.api.Test; 10 | import org.junit.jupiter.api.extension.ExtendWith; 11 | 12 | 13 | /** 14 | * Unit tests for the {@code RSyntaxTextAreaEditorKit} class. 15 | * 16 | * @author Robert Futrell 17 | * @version 1.0 18 | */ 19 | @ExtendWith(SwingRunnerExtension.class) 20 | class RSyntaxTextAreaEditorKitTest { 21 | 22 | @Test 23 | void testCreateDefaultDocument() { 24 | RSyntaxTextAreaEditorKit kit = new RSyntaxTextAreaEditorKit(); 25 | Assertions.assertInstanceOf(RSyntaxDocument.class, kit.createDefaultDocument()); 26 | } 27 | 28 | @Test 29 | void testGetString_validString() { 30 | Assertions.assertNotNull(RSyntaxTextAreaEditorKit.getString("ContextMenu.Folding")); 31 | } 32 | } 33 | -------------------------------------------------------------------------------- /RSyntaxTextArea/src/test/java/org/fife/ui/rsyntaxtextarea/SelectRegionLinkGeneratorResultTest.java: -------------------------------------------------------------------------------- 1 | /* 2 | * This library is distributed under a modified BSD license. See the included 3 | * LICENSE file for details. 4 | */ 5 | package org.fife.ui.rsyntaxtextarea; 6 | 7 | import org.fife.ui.SwingRunnerExtension; 8 | import org.junit.jupiter.api.Assertions; 9 | import org.junit.jupiter.api.Test; 10 | import org.junit.jupiter.api.extension.ExtendWith; 11 | 12 | /** 13 | * Unit tests for the {@link SelectRegionLinkGeneratorResult} class. 14 | * 15 | * @author Robert Futrell 16 | * @version 1.0 17 | */ 18 | @ExtendWith(SwingRunnerExtension.class) 19 | class SelectRegionLinkGeneratorResultTest extends AbstractRSyntaxTextAreaTest { 20 | 21 | 22 | @Test 23 | void testExecute() { 24 | 25 | RSyntaxTextArea textArea = createTextArea("01234567890"); 26 | SelectRegionLinkGeneratorResult result = 27 | new SelectRegionLinkGeneratorResult(textArea, 0, 3, 7); 28 | result.execute(); 29 | 30 | Assertions.assertEquals(3, textArea.getSelectionStart()); 31 | Assertions.assertEquals(7, textArea.getSelectionEnd()); 32 | } 33 | 34 | 35 | @Test 36 | void testGetSourceOffset() { 37 | 38 | RSyntaxTextArea textArea = createTextArea("01234567890"); 39 | SelectRegionLinkGeneratorResult result = 40 | new SelectRegionLinkGeneratorResult(textArea, 9, 3, 7); 41 | Assertions.assertEquals(9, result.getSourceOffset()); 42 | } 43 | 44 | 45 | } 46 | -------------------------------------------------------------------------------- /RSyntaxTextArea/src/test/java/org/fife/ui/rsyntaxtextarea/StyledTextTransferableTest.java: -------------------------------------------------------------------------------- 1 | /* 2 | * This library is distributed under a modified BSD license. See the included 3 | * LICENSE file for details. 4 | */ 5 | package org.fife.ui.rsyntaxtextarea; 6 | 7 | 8 | import org.junit.jupiter.api.Assertions; 9 | import org.junit.jupiter.api.Test; 10 | 11 | import java.awt.datatransfer.DataFlavor; 12 | 13 | /** 14 | * Unit tests for the {@link StyledTextTransferable} class. 15 | * 16 | * @author Robert Futrell 17 | * @version 1.0 18 | */ 19 | class StyledTextTransferableTest { 20 | 21 | 22 | @Test 23 | void testGetDataFlavors() { 24 | byte[] rtfBytes = {}; 25 | StyledTextTransferable t = new StyledTextTransferable("", "foo", rtfBytes); 26 | Assertions.assertEquals(4, t.getTransferDataFlavors().length); 27 | } 28 | 29 | 30 | @Test 31 | void testIsDataFlavorSupported_true() { 32 | byte[] rtfBytes = {}; 33 | StyledTextTransferable t = new StyledTextTransferable("", "foo", rtfBytes); 34 | Assertions.assertTrue(t.isDataFlavorSupported(DataFlavor.fragmentHtmlFlavor)); 35 | Assertions.assertTrue(t.isDataFlavorSupported(new DataFlavor("text/rtf", "RTF"))); 36 | Assertions.assertTrue(t.isDataFlavorSupported(DataFlavor.stringFlavor)); 37 | } 38 | 39 | 40 | @Test 41 | void testIsDataFlavorSupported_false() { 42 | byte[] rtfBytes = {}; 43 | StyledTextTransferable t = new StyledTextTransferable("", "foo", rtfBytes); 44 | Assertions.assertFalse(t.isDataFlavorSupported(DataFlavor.imageFlavor)); 45 | } 46 | } 47 | -------------------------------------------------------------------------------- /RSyntaxTextArea/src/test/java/org/fife/ui/rsyntaxtextarea/URLFileLocationTest.java: -------------------------------------------------------------------------------- 1 | /* 2 | * This library is distributed under a modified BSD license. See the included 3 | * LICENSE file for details. 4 | */ 5 | package org.fife.ui.rsyntaxtextarea; 6 | 7 | import org.junit.jupiter.api.Assertions; 8 | import org.junit.jupiter.api.Test; 9 | 10 | 11 | /** 12 | * Unit tests for the {@link URLFileLocation} class. 13 | * 14 | * @author Robert Futrell 15 | * @version 1.0 16 | */ 17 | class URLFileLocationTest { 18 | 19 | 20 | @Test 21 | void testGetActualLastModified() { 22 | String url = "https://google.com"; 23 | FileLocation loc = FileLocation.create(url); 24 | Assertions.assertInstanceOf(URLFileLocation.class, loc); 25 | Assertions.assertEquals(TextEditorPane.LAST_MODIFIED_UNKNOWN, loc.getActualLastModified()); 26 | } 27 | 28 | 29 | @Test 30 | void testGetFileFullPath() { 31 | String url = "https://google.com"; 32 | FileLocation loc = FileLocation.create(url); 33 | Assertions.assertInstanceOf(URLFileLocation.class, loc); 34 | Assertions.assertEquals(url, loc.getFileFullPath()); 35 | } 36 | 37 | 38 | @Test 39 | void testGetFileName() { 40 | String url = "https://google.com"; 41 | FileLocation loc = FileLocation.create(url); 42 | Assertions.assertInstanceOf(URLFileLocation.class, loc); 43 | Assertions.assertEquals("", loc.getFileName()); 44 | } 45 | 46 | 47 | @Test 48 | void testIsLocal_https() { 49 | String url = "https://google.com"; 50 | FileLocation loc = FileLocation.create(url); 51 | Assertions.assertInstanceOf(URLFileLocation.class, loc); 52 | Assertions.assertFalse(loc.isLocal()); 53 | } 54 | 55 | 56 | @Test 57 | void testIsLocalAndExists() { 58 | String url = "https://google.com"; 59 | FileLocation loc = FileLocation.create(url); 60 | Assertions.assertInstanceOf(URLFileLocation.class, loc); 61 | Assertions.assertFalse(loc.isLocalAndExists()); 62 | } 63 | 64 | 65 | } 66 | -------------------------------------------------------------------------------- /RSyntaxTextArea/src/test/java/org/fife/ui/rsyntaxtextarea/focusabletip/SizeGripTest.java: -------------------------------------------------------------------------------- 1 | /* 2 | * This library is distributed under a modified BSD license. See the included 3 | * LICENSE file for details. 4 | */ 5 | package org.fife.ui.rsyntaxtextarea.focusabletip; 6 | 7 | import org.fife.ui.SwingRunnerExtension; 8 | import org.fife.ui.rsyntaxtextarea.AbstractRSyntaxTextAreaTest; 9 | import org.junit.jupiter.api.Test; 10 | import org.junit.jupiter.api.extension.ExtendWith; 11 | 12 | import java.awt.*; 13 | 14 | 15 | /** 16 | * Unit tests for the {@link SizeGrip} class. 17 | * 18 | * @author Robert Futrell 19 | * @version 1.0 20 | */ 21 | @ExtendWith(SwingRunnerExtension.class) 22 | class SizeGripTest extends AbstractRSyntaxTextAreaTest { 23 | 24 | 25 | @Test 26 | void testPaintComponent_ltr() { 27 | SizeGrip grip = new SizeGrip(); 28 | grip.paintComponent(createTestGraphics()); 29 | } 30 | 31 | 32 | @Test 33 | void testPaintComponent_rtl() { 34 | SizeGrip grip = new SizeGrip(); 35 | grip.applyComponentOrientation(ComponentOrientation.RIGHT_TO_LEFT); 36 | grip.paintComponent(createTestGraphics()); 37 | } 38 | 39 | 40 | @Test 41 | void testPaintComponent_osx() { 42 | 43 | String osName = System.getProperty("os.name"); 44 | System.setProperty("os.name", "OS X"); 45 | 46 | try { 47 | SizeGrip grip = new SizeGrip(); 48 | grip.applyComponentOrientation(ComponentOrientation.RIGHT_TO_LEFT); 49 | grip.paintComponent(createTestGraphics()); 50 | } finally { 51 | System.setProperty("os.name", osName); 52 | } 53 | } 54 | } 55 | -------------------------------------------------------------------------------- /RSyntaxTextArea/src/test/java/org/fife/ui/rsyntaxtextarea/folding/LatexFoldParserTest.java: -------------------------------------------------------------------------------- 1 | /* 2 | * This library is distributed under a modified BSD license. See the included 3 | * LICENSE file for details. 4 | */ 5 | package org.fife.ui.rsyntaxtextarea.folding; 6 | 7 | import org.fife.ui.rsyntaxtextarea.RSyntaxTextArea; 8 | import org.fife.ui.rsyntaxtextarea.SyntaxConstants; 9 | import org.junit.jupiter.api.Assertions; 10 | import org.junit.jupiter.api.Test; 11 | 12 | import java.util.List; 13 | 14 | 15 | /** 16 | * Unit tests for the {@link LatexFoldParser} class. 17 | * 18 | * @author Robert Futrell 19 | * @version 1.0 20 | */ 21 | class LatexFoldParserTest { 22 | 23 | @Test 24 | void testGetFolds_happyPath() { 25 | 26 | String code = 27 | "\\documentclass[12pt]{article}\n" + 28 | "\\usepackage{lingmacros}\n" + 29 | "\\usepackage{tree-dvips}\n" + 30 | "\\begin{document}\n" + 31 | "\n" + 32 | "\\section*{Notes for My Paper}\n" + 33 | "\n" + 34 | "Don't forget to include examples of topicalization.\n" + 35 | "They look like this:\n" + 36 | "\n" + 37 | "\\end{document}"; 38 | 39 | RSyntaxTextArea textArea = new RSyntaxTextArea(code); 40 | textArea.setSyntaxEditingStyle(SyntaxConstants.SYNTAX_STYLE_LATEX); 41 | 42 | FoldParser parser = new LatexFoldParser(); 43 | List folds = parser.getFolds(textArea); 44 | 45 | Assertions.assertEquals(1, folds.size()); 46 | 47 | Fold firstFold = folds.get(0); 48 | Assertions.assertEquals(FoldType.CODE, firstFold.getFoldType()); 49 | Assertions.assertEquals(code.indexOf("\\begin"), firstFold.getStartOffset()); 50 | Assertions.assertEquals(code.lastIndexOf("\\end"), firstFold.getEndOffset()); 51 | 52 | Assertions.assertEquals(0, firstFold.getChildCount()); 53 | } 54 | } 55 | -------------------------------------------------------------------------------- /RSyntaxTextArea/src/test/java/org/fife/ui/rsyntaxtextarea/folding/LinesWithContentFoldParserTest.java: -------------------------------------------------------------------------------- 1 | /* 2 | * This library is distributed under a modified BSD license. See the included 3 | * LICENSE file for details. 4 | */ 5 | package org.fife.ui.rsyntaxtextarea.folding; 6 | 7 | import org.fife.ui.rsyntaxtextarea.RSyntaxTextArea; 8 | import org.fife.ui.rsyntaxtextarea.SyntaxConstants; 9 | import org.junit.jupiter.api.Assertions; 10 | import org.junit.jupiter.api.Test; 11 | 12 | import java.util.List; 13 | 14 | 15 | /** 16 | * Unit tests for the {@link LinesWithContentFoldParser} class. 17 | * 18 | * @author Robert Futrell 19 | * @version 1.0 20 | */ 21 | class LinesWithContentFoldParserTest { 22 | 23 | @Test 24 | void testHappyPath() { 25 | 26 | String code = "; this is a block of code\n" + 27 | "LDA #$01\n" + 28 | "STA $0200\n" + 29 | "LDA #$05\n" + 30 | "\n" + 31 | "; a single line of content is ignored\n" + 32 | "\n" + 33 | "LDA #$01\n" + 34 | "STA $0200\n" + 35 | "LDA #$05"; 36 | 37 | RSyntaxTextArea textArea = new RSyntaxTextArea(code); 38 | textArea.setSyntaxEditingStyle(SyntaxConstants.SYNTAX_STYLE_ASSEMBLER_6502); 39 | 40 | LinesWithContentFoldParser parser = new LinesWithContentFoldParser(); 41 | List folds = parser.getFolds(textArea); 42 | 43 | Assertions.assertEquals(2, folds.size()); 44 | 45 | Fold firstFold = folds.get(0); 46 | Assertions.assertEquals(FoldType.CODE, firstFold.getFoldType()); 47 | Assertions.assertEquals(0, firstFold.getStartOffset()); 48 | // End of fold is the end of hte last line containing content 49 | Assertions.assertEquals(code.indexOf("\n\n"), firstFold.getEndOffset()); 50 | 51 | Fold secondFold = folds.get(1); 52 | Assertions.assertEquals(FoldType.CODE, secondFold.getFoldType()); 53 | Assertions.assertEquals(code.lastIndexOf("\n\n") + 2, secondFold.getStartOffset()); 54 | Assertions.assertEquals(Integer.MAX_VALUE, secondFold.getEndOffset()); 55 | } 56 | } 57 | -------------------------------------------------------------------------------- /RSyntaxTextArea/src/test/java/org/fife/ui/rsyntaxtextarea/folding/LispFoldParserTest.java: -------------------------------------------------------------------------------- 1 | /* 2 | * This library is distributed under a modified BSD license. See the included 3 | * LICENSE file for details. 4 | */ 5 | package org.fife.ui.rsyntaxtextarea.folding; 6 | 7 | import org.fife.ui.rsyntaxtextarea.*; 8 | import org.junit.jupiter.api.Assertions; 9 | import org.junit.jupiter.api.Test; 10 | 11 | 12 | /** 13 | * Unit tests for the {@link LispFoldParser} class. 14 | * 15 | * @author Robert Futrell 16 | * @version 1.0 17 | */ 18 | class LispFoldParserTest extends CurlyFoldParserTest { 19 | 20 | @Test 21 | void testIsLeftCurly() { 22 | LispFoldParser parser = new LispFoldParser(); 23 | Token t = new TokenImpl("(".toCharArray(), 0, 0, 0, TokenTypes.SEPARATOR, 0); 24 | Assertions.assertTrue(parser.isLeftCurly(t)); 25 | } 26 | 27 | @Test 28 | void testIsRightCurly() { 29 | LispFoldParser parser = new LispFoldParser(); 30 | Token t = new TokenImpl(")".toCharArray(), 0, 0, 0, TokenTypes.SEPARATOR, 0); 31 | Assertions.assertTrue(parser.isRightCurly(t)); 32 | } 33 | } 34 | -------------------------------------------------------------------------------- /RSyntaxTextArea/src/test/java/org/fife/ui/rsyntaxtextarea/modes/AbstractCDerivedTokenMakerTest.java: -------------------------------------------------------------------------------- 1 | /* 2 | * 06/05/2016 3 | * 4 | * This library is distributed under a modified BSD license. See the included 5 | * LICENSE file for details. 6 | */ 7 | package org.fife.ui.rsyntaxtextarea.modes; 8 | 9 | import org.fife.ui.rsyntaxtextarea.TokenMaker; 10 | import org.junit.jupiter.api.Assertions; 11 | import org.junit.jupiter.api.Test; 12 | 13 | 14 | /** 15 | * Utility classes for unit tests for TokenMaker implementations. 16 | * 17 | * @author Robert Futrell 18 | * @version 1.0 19 | */ 20 | abstract class AbstractCDerivedTokenMakerTest extends AbstractJFlexTokenMakerTest { 21 | 22 | 23 | /** 24 | * Overridden to assert {@code true} for the default language index. If 25 | * subclasses have additional sub-languages, they should override this method. 26 | */ 27 | @Test 28 | @Override 29 | protected void testCommon_getCurlyBracesDenoteCodeBlocks() { 30 | TokenMaker tm = createTokenMaker(); 31 | Assertions.assertTrue(tm.getCurlyBracesDenoteCodeBlocks(0)); 32 | } 33 | 34 | 35 | /** 36 | * Overridden to verify that indentation of the next line is done after curly braces 37 | * and open parens for the default language index. 38 | */ 39 | @Test 40 | @Override 41 | protected void testCommon_getShouldIndentNextLineAfter() { 42 | testCommonHelper_getShouldIndentNextLineAfterCurliesAndParensForLanguageIndex(0); 43 | } 44 | } 45 | -------------------------------------------------------------------------------- /RSyntaxTextArea/src/test/java/org/fife/ui/rsyntaxtextarea/modes/LatexTokenMakerTest.java: -------------------------------------------------------------------------------- 1 | /* 2 | * 09/20/2016 3 | * 4 | * This library is distributed under a modified BSD license. See the included 5 | * LICENSE file for details. 6 | */ 7 | package org.fife.ui.rsyntaxtextarea.modes; 8 | 9 | import javax.swing.text.Segment; 10 | 11 | import org.fife.ui.rsyntaxtextarea.Token; 12 | import org.fife.ui.rsyntaxtextarea.TokenMaker; 13 | import org.fife.ui.rsyntaxtextarea.TokenTypes; 14 | import org.junit.jupiter.api.Assertions; 15 | import org.junit.jupiter.api.Test; 16 | 17 | 18 | /** 19 | * Unit tests for the {@link LatexTokenMaker} class. 20 | * 21 | * @author Robert Futrell 22 | * @version 1.0 23 | */ 24 | class LatexTokenMakerTest extends AbstractJFlexTokenMakerTest { 25 | 26 | 27 | @Override 28 | protected TokenMaker createTokenMaker() { 29 | return new LatexTokenMaker(); 30 | } 31 | 32 | 33 | @Test 34 | void testEolComments() { 35 | assertAllTokensOfType(TokenTypes.COMMENT_EOL, 36 | "% Hello world" 37 | ); 38 | } 39 | 40 | 41 | @Test 42 | void testEolComments_escapedPercentNotAComment() { 43 | String code = "\\% not-comment"; 44 | Segment segment = createSegment(code); 45 | TokenMaker tm = createTokenMaker(); 46 | Token token = tm.getTokenList(segment, TokenTypes.NULL, 0); 47 | Assertions.assertTrue(token.isSingleChar(TokenTypes.SEPARATOR, '\\')); 48 | token = token.getNextToken(); 49 | Assertions.assertTrue(token.isSingleChar(TokenTypes.IDENTIFIER, '%')); 50 | } 51 | 52 | 53 | @Test 54 | public void testCommon_GetLineCommentStartAndEnd() { 55 | String[] startAndEnd = createTokenMaker().getLineCommentStartAndEnd(0); 56 | Assertions.assertEquals("%", startAndEnd[0]); 57 | Assertions.assertNull(startAndEnd[1]); 58 | } 59 | } 60 | -------------------------------------------------------------------------------- /RSyntaxTextArea/src/test/java/org/fife/ui/rsyntaxtextarea/parser/AbstractParserTest.java: -------------------------------------------------------------------------------- 1 | /* 2 | * 10/03/2015 3 | * 4 | * This library is distributed under a modified BSD license. See the included 5 | * LICENSE file for details. 6 | */ 7 | package org.fife.ui.rsyntaxtextarea.parser; 8 | 9 | import org.junit.jupiter.api.Assertions; 10 | import org.junit.jupiter.api.Test; 11 | 12 | 13 | /** 14 | * Unit test for the {@link AbstractParser} class. 15 | * 16 | * @author Robert Futrell 17 | * @version 1.0 18 | */ 19 | class AbstractParserTest { 20 | 21 | 22 | @Test 23 | void testGetHyperlinkListener() { 24 | 25 | MockParser parser = new MockParser(); 26 | Assertions.assertNull(parser.getHyperlinkListener()); 27 | 28 | ExtendedHyperlinkListener ehl = new MockExtendedHyperlinkListener(); 29 | parser.setHyperlinkListener(ehl); 30 | Assertions.assertEquals(ehl, parser.getHyperlinkListener()); 31 | 32 | } 33 | 34 | 35 | @Test 36 | void testGetImageBase_default() { 37 | MockParser parser = new MockParser(); 38 | Assertions.assertNull(parser.getImageBase()); 39 | } 40 | 41 | 42 | @Test 43 | void testIsEnabled() { 44 | MockParser parser = new MockParser(); 45 | Assertions.assertTrue(parser.isEnabled()); 46 | parser.setEnabled(false); 47 | Assertions.assertFalse(parser.isEnabled()); 48 | } 49 | 50 | 51 | @Test 52 | void testSetEnabled() { 53 | MockParser parser = new MockParser(); 54 | Assertions.assertTrue(parser.isEnabled()); 55 | parser.setEnabled(false); 56 | Assertions.assertFalse(parser.isEnabled()); 57 | } 58 | 59 | 60 | @Test 61 | void testSetHyperlinkListener() { 62 | 63 | MockParser parser = new MockParser(); 64 | Assertions.assertNull(parser.getHyperlinkListener()); 65 | 66 | ExtendedHyperlinkListener ehl = new MockExtendedHyperlinkListener(); 67 | parser.setHyperlinkListener(ehl); 68 | Assertions.assertEquals(ehl, parser.getHyperlinkListener()); 69 | 70 | } 71 | 72 | 73 | } 74 | -------------------------------------------------------------------------------- /RSyntaxTextArea/src/test/java/org/fife/ui/rsyntaxtextarea/parser/MockExtendedHyperlinkListener.java: -------------------------------------------------------------------------------- 1 | /* 2 | * 10/03/2015 3 | * 4 | * This library is distributed under a modified BSD license. See the included 5 | * LICENSE file for details. 6 | */ 7 | package org.fife.ui.rsyntaxtextarea.parser; 8 | 9 | import javax.swing.event.HyperlinkEvent; 10 | 11 | import org.fife.ui.rsyntaxtextarea.RSyntaxTextArea; 12 | 13 | 14 | /** 15 | * A mock implementation of {@link ExtendedHyperlinkListener} for unit 16 | * testing. 17 | * 18 | * @author Robert Futrell 19 | * @version 1.0 20 | * @see ExtendedHyperlinkListener 21 | */ 22 | class MockExtendedHyperlinkListener implements ExtendedHyperlinkListener { 23 | 24 | @Override 25 | public void linkClicked(RSyntaxTextArea textArea, HyperlinkEvent e) { 26 | // Do nothing 27 | } 28 | 29 | 30 | } 31 | -------------------------------------------------------------------------------- /RSyntaxTextArea/src/test/java/org/fife/ui/rsyntaxtextarea/parser/MockParser.java: -------------------------------------------------------------------------------- 1 | /* 2 | * 10/03/2015 3 | * 4 | * This library is distributed under a modified BSD license. See the included 5 | * LICENSE file for details. 6 | */ 7 | package org.fife.ui.rsyntaxtextarea.parser; 8 | 9 | import org.fife.ui.rsyntaxtextarea.RSyntaxDocument; 10 | 11 | 12 | /** 13 | * A mock parser implementation for use in unit tests. 14 | * 15 | * @author Robert Futrell 16 | * @version 1.0 17 | */ 18 | class MockParser extends AbstractParser { 19 | 20 | private DefaultParseResult result; 21 | 22 | 23 | MockParser() { 24 | result = new DefaultParseResult(this); 25 | } 26 | 27 | 28 | @Override 29 | public ParseResult parse(RSyntaxDocument doc, String style) { 30 | return result; 31 | } 32 | 33 | 34 | } 35 | -------------------------------------------------------------------------------- /RSyntaxTextArea/src/test/java/org/fife/ui/rsyntaxtextarea/parser/ParserNoticeLevelTest.java: -------------------------------------------------------------------------------- 1 | /* 2 | * 10/03/2015 3 | * 4 | * This library is distributed under a modified BSD license. See the included 5 | * LICENSE file for details. 6 | */ 7 | package org.fife.ui.rsyntaxtextarea.parser; 8 | 9 | import org.fife.ui.rsyntaxtextarea.parser.ParserNotice.Level; 10 | import org.junit.jupiter.api.Assertions; 11 | import org.junit.jupiter.api.Test; 12 | 13 | 14 | /** 15 | * Unit tests for the {@link Level} class. 16 | * 17 | * @author Robert Futrell 18 | * @version 1.0 19 | */ 20 | class ParserNoticeLevelTest { 21 | 22 | 23 | @Test 24 | void testGetNumericValue() { 25 | Assertions.assertEquals(0, Level.ERROR.getNumericValue()); 26 | Assertions.assertEquals(1, Level.WARNING.getNumericValue()); 27 | Assertions.assertEquals(2, Level.INFO.getNumericValue()); 28 | } 29 | 30 | 31 | @Test 32 | void testIsEqualToOrWorseThan() { 33 | 34 | Assertions.assertTrue(Level.ERROR.isEqualToOrWorseThan(Level.ERROR)); 35 | Assertions.assertTrue(Level.ERROR.isEqualToOrWorseThan(Level.WARNING)); 36 | Assertions.assertTrue(Level.ERROR.isEqualToOrWorseThan(Level.INFO)); 37 | 38 | Assertions.assertFalse(Level.WARNING.isEqualToOrWorseThan(Level.ERROR)); 39 | Assertions.assertTrue(Level.WARNING.isEqualToOrWorseThan(Level.WARNING)); 40 | Assertions.assertTrue(Level.WARNING.isEqualToOrWorseThan(Level.INFO)); 41 | 42 | Assertions.assertFalse(Level.INFO.isEqualToOrWorseThan(Level.ERROR)); 43 | Assertions.assertFalse(Level.INFO.isEqualToOrWorseThan(Level.WARNING)); 44 | Assertions.assertTrue(Level.INFO.isEqualToOrWorseThan(Level.INFO)); 45 | 46 | } 47 | 48 | 49 | } 50 | -------------------------------------------------------------------------------- /RSyntaxTextArea/src/test/java/org/fife/ui/rtextarea/AbstractRTextAreaTest.java: -------------------------------------------------------------------------------- 1 | /* 2 | * This library is distributed under a modified BSD license. See the included 3 | * LICENSE file for details. 4 | */ 5 | package org.fife.ui.rtextarea; 6 | 7 | 8 | import java.awt.*; 9 | import java.awt.image.BufferedImage; 10 | 11 | /** 12 | * A base class for unit tests that need to create {@code RTextArea}s. 13 | * 14 | * @author Robert Futrell 15 | * @version 1.0 16 | */ 17 | public abstract class AbstractRTextAreaTest { 18 | 19 | 20 | protected static Graphics2D createTestGraphics() { 21 | return createTestGraphics(80, 80); 22 | } 23 | 24 | 25 | protected static Graphics2D createTestGraphics(int width, int height) { 26 | Graphics2D g = new BufferedImage(width, height, BufferedImage.TYPE_INT_ARGB). 27 | createGraphics(); 28 | g.setClip(0, 0, width, height); 29 | return g; 30 | } 31 | } 32 | -------------------------------------------------------------------------------- /RSyntaxTextArea/src/test/java/org/fife/ui/rtextarea/ClipboardHistoryPopupTest.java: -------------------------------------------------------------------------------- 1 | /* 2 | * This library is distributed under a modified BSD license. See the included 3 | * LICENSE file for details. 4 | */ 5 | package org.fife.ui.rtextarea; 6 | 7 | import org.fife.ui.SwingRunnerExtension; 8 | import org.fife.ui.rsyntaxtextarea.AbstractRSyntaxTextAreaTest; 9 | import org.fife.ui.rsyntaxtextarea.RSyntaxTextArea; 10 | import org.junit.jupiter.api.*; 11 | import org.junit.jupiter.api.extension.ExtendWith; 12 | 13 | import javax.swing.*; 14 | import java.awt.*; 15 | import java.util.Arrays; 16 | 17 | 18 | /** 19 | * Unit tests for the {@link ClipboardHistoryPopup} class. 20 | * 21 | * @author Robert Futrell 22 | * @version 1.0 23 | */ 24 | @ExtendWith(SwingRunnerExtension.class) 25 | class ClipboardHistoryPopupTest extends AbstractRSyntaxTextAreaTest { 26 | 27 | private JFrame frame; 28 | private RSyntaxTextArea textArea; 29 | 30 | 31 | @BeforeEach 32 | void setUp() { 33 | 34 | Assumptions.assumeFalse(GraphicsEnvironment.isHeadless()); 35 | 36 | frame = new JFrame(); 37 | textArea = createTextArea(); 38 | frame.add(textArea); 39 | // Must force a size for tests to work in xvfb in CI environment 40 | frame.setSize(new Dimension(300, 300));//pack(); 41 | frame.setVisible(true); 42 | } 43 | 44 | 45 | @Test 46 | void testGetPreferredSize() { 47 | Assertions.assertNotNull(new ClipboardHistoryPopup(frame, textArea).getPreferredSize()); 48 | } 49 | 50 | 51 | @Test 52 | void testSetContents() { 53 | new ClipboardHistoryPopup(frame, textArea).setContents(Arrays.asList( 54 | "one", "two", "three" 55 | )); 56 | } 57 | } 58 | -------------------------------------------------------------------------------- /RSyntaxTextArea/src/test/java/org/fife/ui/rtextarea/EmptyTestFoldIndicatorIcon.java: -------------------------------------------------------------------------------- 1 | /* 2 | * This library is distributed under a modified BSD license. See the included 3 | * LICENSE file for details. 4 | */ 5 | package org.fife.ui.rtextarea; 6 | 7 | import java.awt.*; 8 | 9 | /** 10 | * An empty fold icon for test purposes. 11 | */ 12 | class EmptyTestFoldIndicatorIcon extends FoldIndicatorIcon { 13 | 14 | protected EmptyTestFoldIndicatorIcon(boolean collapsed) { 15 | super(collapsed); 16 | } 17 | 18 | @Override 19 | public void paintIcon(Component c, Graphics g, int x, int y) { 20 | // Do nothing - comment for Sonar 21 | } 22 | 23 | @Override 24 | public int getIconWidth() { 25 | return 0; 26 | } 27 | 28 | @Override 29 | public int getIconHeight() { 30 | return 0; 31 | } 32 | } 33 | -------------------------------------------------------------------------------- /RSyntaxTextArea/src/test/java/org/fife/ui/rtextarea/EmptyTestIcon.java: -------------------------------------------------------------------------------- 1 | /* 2 | * This library is distributed under a modified BSD license. See the included 3 | * LICENSE file for details. 4 | */ 5 | package org.fife.ui.rtextarea; 6 | 7 | import javax.swing.*; 8 | import java.awt.*; 9 | 10 | /** 11 | * A dummy icon implementation for test purposes. 12 | * 13 | * @author Robert Futrell 14 | * @version 1.0 15 | */ 16 | public class EmptyTestIcon implements Icon { 17 | 18 | @Override 19 | public void paintIcon(Component c, Graphics g, int x, int y) { 20 | } 21 | 22 | @Override 23 | public int getIconWidth() { 24 | return 0; 25 | } 26 | 27 | @Override 28 | public int getIconHeight() { 29 | return 0; 30 | } 31 | 32 | } 33 | -------------------------------------------------------------------------------- /RSyntaxTextArea/src/test/java/org/fife/ui/rtextarea/IconRowEventTest.java: -------------------------------------------------------------------------------- 1 | /* 2 | * This library is distributed under a modified BSD license. See the included 3 | * LICENSE file for details. 4 | */ 5 | 6 | package org.fife.ui.rtextarea; 7 | 8 | import org.junit.jupiter.api.Assertions; 9 | import org.junit.jupiter.api.Test; 10 | 11 | import javax.swing.*; 12 | 13 | /** 14 | * Unit tests for the {@link IconRowEvent} class. 15 | * 16 | * @author roger1337 17 | * @version 3.5.4 18 | */ 19 | public class IconRowEventTest { 20 | 21 | @Test 22 | void testIconRowEvent_verify() { 23 | int line = 1; 24 | int markedOffset = 2; 25 | Icon icon = new ImageIcon(); 26 | String tooltip = "Hello"; 27 | Object source = new Object(); 28 | 29 | GutterIconInfo info = new GutterIconInfo() { 30 | @Override 31 | public Icon getIcon() { 32 | return icon; 33 | } 34 | 35 | @Override 36 | public int getMarkedOffset() { 37 | return markedOffset; 38 | } 39 | 40 | @Override 41 | public String getToolTip() { 42 | return tooltip; 43 | } 44 | }; 45 | 46 | IconRowEvent event = new IconRowEvent(source, info, line); 47 | 48 | Assertions.assertEquals(line, event.getLine()); 49 | Assertions.assertEquals(tooltip, event.getIconInfo().getToolTip()); 50 | Assertions.assertEquals(markedOffset, event.getIconInfo().getMarkedOffset()); 51 | Assertions.assertEquals(icon, event.getIconInfo().getIcon()); 52 | Assertions.assertEquals(source, event.getSource()); 53 | } 54 | } 55 | -------------------------------------------------------------------------------- /RSyntaxTextArea/src/test/java/org/fife/ui/rtextarea/PlusMinusFoldIconTest.java: -------------------------------------------------------------------------------- 1 | /* 2 | * This library is distributed under a modified BSD license. See the included 3 | * LICENSE file for details. 4 | */ 5 | package org.fife.ui.rtextarea; 6 | 7 | import org.fife.ui.SwingRunnerExtension; 8 | import org.fife.ui.rsyntaxtextarea.AbstractRSyntaxTextAreaTest; 9 | import org.junit.jupiter.api.Assertions; 10 | import org.junit.jupiter.api.Test; 11 | import org.junit.jupiter.api.extension.ExtendWith; 12 | 13 | import java.awt.*; 14 | 15 | 16 | /** 17 | * Unit tests for the {@code PlusMinusFoldIcon} class. 18 | * 19 | * @author Robert Futrell 20 | * @version 1.0 21 | */ 22 | @ExtendWith(SwingRunnerExtension.class) 23 | class PlusMinusFoldIconTest extends AbstractRSyntaxTextAreaTest { 24 | 25 | 26 | @Test 27 | void testGetIconHeight() { 28 | Assertions.assertEquals(8, new PlusMinusFoldIcon(true).getIconHeight()); 29 | } 30 | 31 | 32 | @Test 33 | void testGetIconWidth() { 34 | Assertions.assertEquals(8, new PlusMinusFoldIcon(true).getIconWidth()); 35 | } 36 | 37 | 38 | @Test 39 | void testPaintIcon_collapsed_armed() { 40 | PlusMinusFoldIcon icon = new PlusMinusFoldIcon(true); 41 | icon.setArmed(true); 42 | FoldIndicator fi = new FoldIndicator(createTextArea()); 43 | fi.setFoldIconArmedBackground(Color.GREEN); 44 | icon.paintIcon(fi, createTestGraphics(), 0, 0); 45 | } 46 | 47 | 48 | @Test 49 | void testPaintIcon_notCollapsed_notArmed() { 50 | PlusMinusFoldIcon icon = new PlusMinusFoldIcon(false); 51 | icon.setArmed(false); 52 | icon.paintIcon(new FoldIndicator(createTextArea()), createTestGraphics(), 0, 0); 53 | } 54 | } 55 | -------------------------------------------------------------------------------- /RSyntaxTextArea/src/test/java/org/fife/ui/rtextarea/RTextAreaEditorKitBeepActionTest.java: -------------------------------------------------------------------------------- 1 | /* 2 | * This library is distributed under a modified BSD license. See the included 3 | * LICENSE file for details. 4 | */ 5 | package org.fife.ui.rtextarea; 6 | 7 | import org.junit.jupiter.api.Assertions; 8 | import org.junit.jupiter.api.Test; 9 | 10 | 11 | /** 12 | * Unit tests for the {@link RTextAreaEditorKit.BeepAction} class. 13 | * 14 | * @author Robert Futrell 15 | * @version 1.0 16 | */ 17 | class RTextAreaEditorKitBeepActionTest { 18 | 19 | 20 | @Test 21 | void testActionPerformedImpl() { 22 | new RTextAreaEditorKit.BeepAction().actionPerformedImpl(null, null); 23 | } 24 | 25 | 26 | @Test 27 | void testGetMacroID() { 28 | Assertions.assertEquals(RTextAreaEditorKit.beepAction, new RTextAreaEditorKit.BeepAction().getMacroID()); 29 | } 30 | } 31 | -------------------------------------------------------------------------------- /RSyntaxTextArea/src/test/java/org/fife/ui/rtextarea/RTextAreaEditorKitBeginActionTest.java: -------------------------------------------------------------------------------- 1 | /* 2 | * This library is distributed under a modified BSD license. See the included 3 | * LICENSE file for details. 4 | */ 5 | package org.fife.ui.rtextarea; 6 | 7 | import org.junit.jupiter.api.Assertions; 8 | import org.junit.jupiter.api.Test; 9 | 10 | 11 | /** 12 | * Unit tests for the {@link RTextAreaEditorKit.BeginAction} class. 13 | * 14 | * @author Robert Futrell 15 | * @version 1.0 16 | */ 17 | class RTextAreaEditorKitBeginActionTest extends AbstractRTextAreaTest { 18 | 19 | 20 | @Test 21 | void testActionPerformedImpl_select() { 22 | 23 | RTextArea textArea = new RTextArea("Hello world"); 24 | textArea.setCaretPosition(3); 25 | 26 | RTextAreaEditorKit.BeginAction action = new RTextAreaEditorKit.BeginAction("begin", true); 27 | action.actionPerformedImpl(null, textArea); 28 | 29 | Assertions.assertEquals(0, textArea.getSelectionStart()); 30 | Assertions.assertEquals(3, textArea.getSelectionEnd()); 31 | } 32 | 33 | 34 | @Test 35 | void testActionPerformedImpl_noSelect() { 36 | 37 | RTextArea textArea = new RTextArea("Hello world"); 38 | textArea.setCaretPosition(3); 39 | 40 | RTextAreaEditorKit.BeginAction action = new RTextAreaEditorKit.BeginAction("begin", false); 41 | action.actionPerformedImpl(null, textArea); 42 | 43 | Assertions.assertEquals(0, textArea.getSelectionStart()); 44 | Assertions.assertEquals(0, textArea.getSelectionEnd()); 45 | } 46 | 47 | 48 | @Test 49 | void testGetMacroID() { 50 | Assertions.assertEquals("begin", new RTextAreaEditorKit.BeginAction("begin", false).getMacroID()); 51 | } 52 | } 53 | -------------------------------------------------------------------------------- /RSyntaxTextArea/src/test/java/org/fife/ui/rtextarea/RTextAreaEditorKitBeginRecordingMacroActionTest.java: -------------------------------------------------------------------------------- 1 | /* 2 | * This library is distributed under a modified BSD license. See the included 3 | * LICENSE file for details. 4 | */ 5 | package org.fife.ui.rtextarea; 6 | 7 | import org.junit.jupiter.api.Assertions; 8 | import org.junit.jupiter.api.Test; 9 | 10 | 11 | /** 12 | * Unit tests for the {@link RTextAreaEditorKit.BeginRecordingMacroAction} class. 13 | * 14 | * @author Robert Futrell 15 | * @version 1.0 16 | */ 17 | class RTextAreaEditorKitBeginRecordingMacroActionTest { 18 | 19 | 20 | @Test 21 | void testConstructor_multiArg() { 22 | RTextAreaEditorKit.BeginRecordingMacroAction action = new RTextAreaEditorKit.BeginRecordingMacroAction( 23 | "recordMacro", null, "Description", 0, null); 24 | Assertions.assertEquals("recordMacro", action.getName()); 25 | Assertions.assertEquals("Description", action.getDescription()); 26 | } 27 | 28 | 29 | @Test 30 | void testActionPerformedImpl() { 31 | 32 | Assertions.assertFalse(RTextArea.isRecordingMacro()); // Sanity check 33 | 34 | RTextAreaEditorKit.BeginRecordingMacroAction action = new RTextAreaEditorKit.BeginRecordingMacroAction(); 35 | 36 | try { 37 | action.actionPerformedImpl(null, new RTextArea()); 38 | Assertions.assertTrue(RTextArea.isRecordingMacro()); 39 | } finally { 40 | RTextArea.endRecordingMacro(); 41 | } 42 | } 43 | 44 | 45 | @Test 46 | void testGetMacroID() { 47 | Assertions.assertEquals(RTextAreaEditorKit.rtaBeginRecordingMacroAction, 48 | new RTextAreaEditorKit.BeginRecordingMacroAction().getMacroID()); 49 | } 50 | 51 | 52 | @Test 53 | void testIsRecordable() { 54 | RTextAreaEditorKit.BeginRecordingMacroAction action = new RTextAreaEditorKit.BeginRecordingMacroAction(); 55 | Assertions.assertFalse(action.isRecordable()); 56 | } 57 | } 58 | -------------------------------------------------------------------------------- /RSyntaxTextArea/src/test/java/org/fife/ui/rtextarea/RTextAreaEditorKitBeginWordActionTest.java: -------------------------------------------------------------------------------- 1 | /* 2 | * This library is distributed under a modified BSD license. See the included 3 | * LICENSE file for details. 4 | */ 5 | package org.fife.ui.rtextarea; 6 | 7 | import org.junit.jupiter.api.Assertions; 8 | import org.junit.jupiter.api.Test; 9 | 10 | 11 | /** 12 | * Unit tests for the {@link RTextAreaEditorKit.BeginWordAction} class. 13 | * 14 | * @author Robert Futrell 15 | * @version 1.0 16 | */ 17 | class RTextAreaEditorKitBeginWordActionTest { 18 | 19 | 20 | @Test 21 | void testActionPerformedImpl_noSelect() { 22 | 23 | String text = "word word word"; 24 | RTextArea textArea = new RTextArea(text); 25 | textArea.setCaretPosition(12); 26 | 27 | RTextAreaEditorKit.BeginWordAction action = new RTextAreaEditorKit.BeginWordAction("name", false); 28 | 29 | action.actionPerformedImpl(null, textArea); 30 | Assertions.assertEquals(10, textArea.getSelectionStart()); 31 | Assertions.assertEquals(10, textArea.getSelectionEnd()); 32 | 33 | } 34 | 35 | 36 | @Test 37 | void testActionPerformedImpl_select() { 38 | 39 | String text = "word word word"; 40 | RTextArea textArea = new RTextArea(text); 41 | textArea.setCaretPosition(12); 42 | 43 | RTextAreaEditorKit.BeginWordAction action = new RTextAreaEditorKit.BeginWordAction("name", true); 44 | 45 | action.actionPerformedImpl(null, textArea); 46 | Assertions.assertEquals(10, textArea.getSelectionStart()); 47 | Assertions.assertEquals(12, textArea.getSelectionEnd()); 48 | 49 | } 50 | 51 | 52 | @Test 53 | void testGetMacroID() { 54 | Assertions.assertEquals("begin", new RTextAreaEditorKit.BeginWordAction("begin", false).getMacroID()); 55 | } 56 | } 57 | -------------------------------------------------------------------------------- /RSyntaxTextArea/src/test/java/org/fife/ui/rtextarea/RTextAreaEditorKitClipboardHistoryActionTest.java: -------------------------------------------------------------------------------- 1 | /* 2 | * This library is distributed under a modified BSD license. See the included 3 | * LICENSE file for details. 4 | */ 5 | package org.fife.ui.rtextarea; 6 | 7 | import org.junit.jupiter.api.Assertions; 8 | import org.junit.jupiter.api.Test; 9 | 10 | 11 | /** 12 | * Unit tests for the {@link RTextAreaEditorKit.ClipboardHistoryAction} class. 13 | * 14 | * @author Robert Futrell 15 | * @version 1.0 16 | */ 17 | class RTextAreaEditorKitClipboardHistoryActionTest { 18 | 19 | 20 | @Test 21 | void testGetMacroID() { 22 | Assertions.assertEquals(RTextAreaEditorKit.clipboardHistoryAction, 23 | new RTextAreaEditorKit.ClipboardHistoryAction().getMacroID()); 24 | } 25 | } 26 | -------------------------------------------------------------------------------- /RSyntaxTextArea/src/test/java/org/fife/ui/rtextarea/RTextAreaEditorKitCopyActionTest.java: -------------------------------------------------------------------------------- 1 | /* 2 | * This library is distributed under a modified BSD license. See the included 3 | * LICENSE file for details. 4 | */ 5 | package org.fife.ui.rtextarea; 6 | 7 | import org.junit.jupiter.api.Assertions; 8 | import org.junit.jupiter.api.Test; 9 | 10 | 11 | /** 12 | * Unit tests for the {@link RTextAreaEditorKit.CopyAction} class. 13 | * 14 | * @author Robert Futrell 15 | * @version 1.0 16 | */ 17 | class RTextAreaEditorKitCopyActionTest { 18 | 19 | 20 | @Test 21 | void testConstructor_multiArg() { 22 | RTextAreaEditorKit.CopyAction action = new RTextAreaEditorKit.CopyAction( 23 | "copy", null, "Description", 0, null); 24 | Assertions.assertEquals("copy", action.getName()); 25 | Assertions.assertEquals("Description", action.getDescription()); 26 | } 27 | 28 | 29 | @Test 30 | void testActionPerformedImpl() { 31 | 32 | RTextArea textArea = new RTextArea("Hello world"); 33 | textArea.setSelectionStart(2); 34 | textArea.setSelectionEnd(9); 35 | 36 | RTextAreaEditorKit.CopyAction action = new RTextAreaEditorKit.CopyAction(); 37 | action.actionPerformedImpl(null, textArea); 38 | 39 | } 40 | 41 | 42 | @Test 43 | void testGetMacroID() { 44 | Assertions.assertEquals(RTextAreaEditorKit.copyAction, 45 | new RTextAreaEditorKit.CopyAction().getMacroID()); 46 | } 47 | } 48 | -------------------------------------------------------------------------------- /RSyntaxTextArea/src/test/java/org/fife/ui/rtextarea/RTextAreaEditorKitCutActionTest.java: -------------------------------------------------------------------------------- 1 | /* 2 | * This library is distributed under a modified BSD license. See the included 3 | * LICENSE file for details. 4 | */ 5 | package org.fife.ui.rtextarea; 6 | 7 | import org.junit.jupiter.api.Assertions; 8 | import org.junit.jupiter.api.Test; 9 | 10 | 11 | /** 12 | * Unit tests for the {@link RTextAreaEditorKit.CutAction} class. 13 | * 14 | * @author Robert Futrell 15 | * @version 1.0 16 | */ 17 | class RTextAreaEditorKitCutActionTest { 18 | 19 | 20 | @Test 21 | void testConstructor_multiArg() { 22 | RTextAreaEditorKit.CutAction action = new RTextAreaEditorKit.CutAction( 23 | "cut", null, "Description", 0, null); 24 | Assertions.assertEquals("cut", action.getName()); 25 | Assertions.assertEquals("Description", action.getDescription()); 26 | } 27 | 28 | 29 | @Test 30 | void testActionPerformedImpl() { 31 | 32 | RTextArea textArea = new RTextArea("Hello world"); 33 | textArea.setSelectionStart(2); 34 | textArea.setSelectionEnd(9); 35 | 36 | RTextAreaEditorKit.CutAction action = new RTextAreaEditorKit.CutAction(); 37 | action.actionPerformedImpl(null, textArea); 38 | 39 | } 40 | 41 | 42 | @Test 43 | void testGetMacroID() { 44 | Assertions.assertEquals(RTextAreaEditorKit.cutAction, 45 | new RTextAreaEditorKit.CutAction().getMacroID()); 46 | } 47 | } 48 | -------------------------------------------------------------------------------- /RSyntaxTextArea/src/test/java/org/fife/ui/rtextarea/RTextAreaEditorKitDefaultKeyTypedActionTest.java: -------------------------------------------------------------------------------- 1 | /* 2 | * This library is distributed under a modified BSD license. See the included 3 | * LICENSE file for details. 4 | */ 5 | package org.fife.ui.rtextarea; 6 | 7 | import org.junit.jupiter.api.Assertions; 8 | import org.junit.jupiter.api.Test; 9 | 10 | 11 | /** 12 | * Unit tests for the {@link RTextAreaEditorKit.DefaultKeyTypedAction} class. 13 | * 14 | * @author Robert Futrell 15 | * @version 1.0 16 | */ 17 | class RTextAreaEditorKitDefaultKeyTypedActionTest { 18 | 19 | 20 | @Test 21 | void testGetMacroID() { 22 | Assertions.assertEquals(RTextAreaEditorKit.defaultKeyTypedAction, 23 | new RTextAreaEditorKit.DefaultKeyTypedAction().getMacroID()); 24 | } 25 | } 26 | -------------------------------------------------------------------------------- /RSyntaxTextArea/src/test/java/org/fife/ui/rtextarea/RTextAreaEditorKitEndActionTest.java: -------------------------------------------------------------------------------- 1 | /* 2 | * This library is distributed under a modified BSD license. See the included 3 | * LICENSE file for details. 4 | */ 5 | package org.fife.ui.rtextarea; 6 | 7 | import org.fife.ui.SwingRunnerExtension; 8 | import org.junit.jupiter.api.Assertions; 9 | import org.junit.jupiter.api.Test; 10 | import org.junit.jupiter.api.extension.ExtendWith; 11 | 12 | import java.awt.event.ActionEvent; 13 | 14 | 15 | /** 16 | * Unit tests for the {@link RTextAreaEditorKit.EndAction} class. 17 | * 18 | * @author Robert Futrell 19 | * @version 1.0 20 | */ 21 | @ExtendWith(SwingRunnerExtension.class) 22 | class RTextAreaEditorKitEndActionTest { 23 | 24 | 25 | @Test 26 | void testActionPerformedImpl_selectFalse() { 27 | 28 | String text = "line 1\nline 2\nline 3"; 29 | RTextArea textArea = new RTextArea(text); 30 | 31 | ActionEvent e = new ActionEvent(textArea, 0, "command"); 32 | new RTextAreaEditorKit.EndAction("foo", false).actionPerformedImpl(e, textArea); 33 | 34 | Assertions.assertEquals(text.length(), textArea.getCaretPosition()); 35 | Assertions.assertNull(textArea.getSelectedText()); 36 | } 37 | 38 | 39 | @Test 40 | void testActionPerformedImpl_selectTrue() { 41 | 42 | String text = "line 1\nline 2\nline 3"; 43 | RTextArea textArea = new RTextArea(text); 44 | textArea.setCaretPosition(0); 45 | 46 | ActionEvent e = new ActionEvent(textArea, 0, "command"); 47 | new RTextAreaEditorKit.EndAction("foo", true).actionPerformedImpl(e, textArea); 48 | 49 | Assertions.assertEquals(text.length(), textArea.getCaretPosition()); 50 | Assertions.assertNotNull(textArea.getSelectedText()); 51 | } 52 | 53 | 54 | @Test 55 | void testGetMacroID() { 56 | Assertions.assertEquals("foo", 57 | new RTextAreaEditorKit.EndAction("foo", false).getMacroID()); 58 | } 59 | } 60 | -------------------------------------------------------------------------------- /RSyntaxTextArea/src/test/java/org/fife/ui/rtextarea/RTextAreaEditorKitEndRecordingMacroActionTest.java: -------------------------------------------------------------------------------- 1 | /* 2 | * This library is distributed under a modified BSD license. See the included 3 | * LICENSE file for details. 4 | */ 5 | package org.fife.ui.rtextarea; 6 | 7 | import org.junit.jupiter.api.Assertions; 8 | import org.junit.jupiter.api.Test; 9 | 10 | 11 | /** 12 | * Unit tests for the {@link RTextAreaEditorKit.EndRecordingMacroAction} class. 13 | * 14 | * @author Robert Futrell 15 | * @version 1.0 16 | */ 17 | class RTextAreaEditorKitEndRecordingMacroActionTest { 18 | 19 | 20 | @Test 21 | void testConstructor_multiArg() { 22 | RTextAreaEditorKit.EndRecordingMacroAction action = new RTextAreaEditorKit.EndRecordingMacroAction( 23 | "name", null, "Description", 0, null); 24 | Assertions.assertEquals("name", action.getName()); 25 | Assertions.assertEquals("Description", action.getDescription()); 26 | } 27 | 28 | 29 | @Test 30 | void testActionPerformedImpl() { 31 | 32 | RTextAreaEditorKit.EndRecordingMacroAction action = new RTextAreaEditorKit.EndRecordingMacroAction(); 33 | 34 | RTextArea.beginRecordingMacro(); 35 | Assertions.assertTrue(RTextArea.isRecordingMacro()); // Sanity check 36 | 37 | try { 38 | action.actionPerformedImpl(null, new RTextArea()); 39 | Assertions.assertFalse(RTextArea.isRecordingMacro()); 40 | } finally { 41 | RTextArea.endRecordingMacro(); 42 | } 43 | } 44 | 45 | 46 | @Test 47 | void testGetMacroID() { 48 | Assertions.assertEquals(RTextAreaEditorKit.rtaEndRecordingMacroAction, 49 | new RTextAreaEditorKit.EndRecordingMacroAction().getMacroID()); 50 | } 51 | 52 | 53 | @Test 54 | void testIsRecordable() { 55 | RTextAreaEditorKit.EndRecordingMacroAction action = new RTextAreaEditorKit.EndRecordingMacroAction(); 56 | Assertions.assertFalse(action.isRecordable()); 57 | } 58 | } 59 | -------------------------------------------------------------------------------- /RSyntaxTextArea/src/test/java/org/fife/ui/rtextarea/RTextAreaEditorKitEndWordActionTest.java: -------------------------------------------------------------------------------- 1 | /* 2 | * This library is distributed under a modified BSD license. See the included 3 | * LICENSE file for details. 4 | */ 5 | package org.fife.ui.rtextarea; 6 | 7 | import org.junit.jupiter.api.Assertions; 8 | import org.junit.jupiter.api.Test; 9 | 10 | 11 | /** 12 | * Unit tests for the {@link RTextAreaEditorKit.EndWordAction} class. 13 | * 14 | * @author Robert Futrell 15 | * @version 1.0 16 | */ 17 | class RTextAreaEditorKitEndWordActionTest { 18 | 19 | 20 | @Test 21 | void testActionPerformedImpl_noSelect() { 22 | 23 | String text = "word word word"; 24 | RTextArea textArea = new RTextArea(text); 25 | textArea.setCaretPosition(6); 26 | 27 | RTextAreaEditorKit.EndWordAction action = new RTextAreaEditorKit.EndWordAction("name", false); 28 | 29 | action.actionPerformedImpl(null, textArea); 30 | Assertions.assertEquals(9, textArea.getSelectionStart()); 31 | Assertions.assertEquals(9, textArea.getSelectionEnd()); 32 | 33 | } 34 | 35 | 36 | @Test 37 | void testActionPerformedImpl_select() { 38 | 39 | String text = "word word word"; 40 | RTextArea textArea = new RTextArea(text); 41 | textArea.setCaretPosition(6); 42 | 43 | RTextAreaEditorKit.EndWordAction action = new RTextAreaEditorKit.EndWordAction("name", true); 44 | 45 | action.actionPerformedImpl(null, textArea); 46 | Assertions.assertEquals(6, textArea.getSelectionStart()); 47 | Assertions.assertEquals(9, textArea.getSelectionEnd()); 48 | 49 | } 50 | 51 | 52 | @Test 53 | void testGetMacroID() { 54 | Assertions.assertEquals("end", new RTextAreaEditorKit.EndWordAction("end", false).getMacroID()); 55 | } 56 | } 57 | -------------------------------------------------------------------------------- /RSyntaxTextArea/src/test/java/org/fife/ui/rtextarea/RTextAreaEditorKitInsertContentActionTest.java: -------------------------------------------------------------------------------- 1 | /* 2 | * This library is distributed under a modified BSD license. See the included 3 | * LICENSE file for details. 4 | */ 5 | package org.fife.ui.rtextarea; 6 | 7 | import org.fife.ui.SwingRunnerExtension; 8 | import org.junit.jupiter.api.Assertions; 9 | import org.junit.jupiter.api.Test; 10 | import org.junit.jupiter.api.extension.ExtendWith; 11 | 12 | import javax.swing.text.DefaultEditorKit; 13 | import java.awt.event.ActionEvent; 14 | 15 | 16 | /** 17 | * Unit tests for the {@link RTextAreaEditorKit.InsertContentAction} class. 18 | * 19 | * @author Robert Futrell 20 | * @version 1.0 21 | */ 22 | @ExtendWith(SwingRunnerExtension.class) 23 | class RTextAreaEditorKitInsertContentActionTest { 24 | 25 | 26 | @Test 27 | void testActionPerformedImpl_notEnabled() { 28 | 29 | RTextArea textArea = new RTextArea("hello world"); 30 | textArea.setCaretPosition(textArea.getText().indexOf(' ')); 31 | textArea.setEnabled(false); 32 | 33 | ActionEvent e = new ActionEvent(textArea, 0, "new-content"); 34 | new RTextAreaEditorKit.InsertContentAction().actionPerformedImpl(e, textArea); 35 | 36 | Assertions.assertEquals("hello world", textArea.getText()); 37 | } 38 | 39 | 40 | @Test 41 | void testActionPerformedImpl_happyPath() { 42 | 43 | RTextArea textArea = new RTextArea("hello world"); 44 | textArea.setCaretPosition(textArea.getText().indexOf(' ')); 45 | 46 | ActionEvent e = new ActionEvent(textArea, 0, "new-content"); 47 | new RTextAreaEditorKit.InsertContentAction().actionPerformedImpl(e, textArea); 48 | 49 | Assertions.assertEquals("hellonew-content world", textArea.getText()); 50 | } 51 | 52 | 53 | @Test 54 | void testGetMacroID() { 55 | Assertions.assertEquals(DefaultEditorKit.insertContentAction, 56 | new RTextAreaEditorKit.InsertContentAction().getMacroID()); 57 | } 58 | } 59 | -------------------------------------------------------------------------------- /RSyntaxTextArea/src/test/java/org/fife/ui/rtextarea/RTextAreaEditorKitInvertSelectionCaseActionTest.java: -------------------------------------------------------------------------------- 1 | /* 2 | * This library is distributed under a modified BSD license. See the included 3 | * LICENSE file for details. 4 | */ 5 | package org.fife.ui.rtextarea; 6 | 7 | import org.fife.ui.SwingRunnerExtension; 8 | import org.junit.jupiter.api.Assertions; 9 | import org.junit.jupiter.api.Test; 10 | import org.junit.jupiter.api.extension.ExtendWith; 11 | 12 | import java.awt.event.ActionEvent; 13 | 14 | 15 | /** 16 | * Unit tests for the {@link RTextAreaEditorKit.InvertSelectionCaseAction} class. 17 | * 18 | * @author Robert Futrell 19 | * @version 1.0 20 | */ 21 | @ExtendWith(SwingRunnerExtension.class) 22 | class RTextAreaEditorKitInvertSelectionCaseActionTest { 23 | 24 | 25 | @Test 26 | void testActionPerformedImpl_notEnabled() { 27 | 28 | RTextArea textArea = new RTextArea("hello world"); 29 | textArea.setSelectionStart(2); 30 | textArea.setSelectionEnd(5); 31 | textArea.setEnabled(false); 32 | 33 | ActionEvent e = new ActionEvent(textArea, 0, "command"); 34 | new RTextAreaEditorKit.InvertSelectionCaseAction().actionPerformedImpl(e, textArea); 35 | 36 | Assertions.assertEquals("hello world", textArea.getText()); 37 | } 38 | 39 | 40 | @Test 41 | void testActionPerformedImpl_happyPath() { 42 | 43 | RTextArea textArea = new RTextArea("helLo world"); 44 | textArea.setSelectionStart(2); 45 | textArea.setSelectionEnd(5); 46 | 47 | ActionEvent e = new ActionEvent(textArea, 0, "command"); 48 | new RTextAreaEditorKit.InvertSelectionCaseAction().actionPerformedImpl(e, textArea); 49 | 50 | Assertions.assertEquals("heLlO world", textArea.getText()); 51 | } 52 | 53 | 54 | @Test 55 | void testGetMacroID() { 56 | Assertions.assertEquals(RTextAreaEditorKit.rtaInvertSelectionCaseAction, 57 | new RTextAreaEditorKit.InvertSelectionCaseAction().getMacroID()); 58 | } 59 | } 60 | -------------------------------------------------------------------------------- /RSyntaxTextArea/src/test/java/org/fife/ui/rtextarea/RTextAreaEditorKitLowerSelectionCaseActionTest.java: -------------------------------------------------------------------------------- 1 | /* 2 | * This library is distributed under a modified BSD license. See the included 3 | * LICENSE file for details. 4 | */ 5 | package org.fife.ui.rtextarea; 6 | 7 | import org.fife.ui.SwingRunnerExtension; 8 | import org.junit.jupiter.api.Assertions; 9 | import org.junit.jupiter.api.Test; 10 | import org.junit.jupiter.api.extension.ExtendWith; 11 | 12 | import java.awt.event.ActionEvent; 13 | 14 | 15 | /** 16 | * Unit tests for the {@link RTextAreaEditorKit.LowerSelectionCaseAction} class. 17 | * 18 | * @author Robert Futrell 19 | * @version 1.0 20 | */ 21 | @ExtendWith(SwingRunnerExtension.class) 22 | class RTextAreaEditorKitLowerSelectionCaseActionTest { 23 | 24 | 25 | @Test 26 | void testActionPerformedImpl_notEnabled() { 27 | 28 | RTextArea textArea = new RTextArea("HELLO WORLD"); 29 | textArea.setSelectionStart(2); 30 | textArea.setSelectionEnd(5); 31 | textArea.setEnabled(false); 32 | 33 | ActionEvent e = new ActionEvent(textArea, 0, "command"); 34 | new RTextAreaEditorKit.LowerSelectionCaseAction().actionPerformedImpl(e, textArea); 35 | 36 | Assertions.assertEquals("HELLO WORLD", textArea.getText()); 37 | } 38 | 39 | 40 | @Test 41 | void testActionPerformedImpl_happyPath() { 42 | 43 | RTextArea textArea = new RTextArea("HELLO WORLD"); 44 | textArea.setSelectionStart(2); 45 | textArea.setSelectionEnd(5); 46 | 47 | ActionEvent e = new ActionEvent(textArea, 0, "command"); 48 | new RTextAreaEditorKit.LowerSelectionCaseAction().actionPerformedImpl(e, textArea); 49 | 50 | Assertions.assertEquals("HEllo WORLD", textArea.getText()); 51 | } 52 | 53 | 54 | @Test 55 | void testGetMacroID() { 56 | Assertions.assertEquals(RTextAreaEditorKit.rtaLowerSelectionCaseAction, 57 | new RTextAreaEditorKit.LowerSelectionCaseAction().getMacroID()); 58 | } 59 | } 60 | -------------------------------------------------------------------------------- /RSyntaxTextArea/src/test/java/org/fife/ui/rtextarea/RTextAreaEditorKitPasteActionTest.java: -------------------------------------------------------------------------------- 1 | /* 2 | * This library is distributed under a modified BSD license. See the included 3 | * LICENSE file for details. 4 | */ 5 | package org.fife.ui.rtextarea; 6 | 7 | import org.fife.ui.SwingRunnerExtension; 8 | import org.junit.jupiter.api.Assertions; 9 | import org.junit.jupiter.api.Assumptions; 10 | import org.junit.jupiter.api.Test; 11 | import org.junit.jupiter.api.extension.ExtendWith; 12 | 13 | import javax.swing.text.DefaultEditorKit; 14 | import java.awt.*; 15 | import java.awt.datatransfer.StringSelection; 16 | import java.awt.event.ActionEvent; 17 | 18 | 19 | /** 20 | * Unit tests for the {@link RTextAreaEditorKit.PasteAction} class. 21 | * 22 | * @author Robert Futrell 23 | * @version 1.0 24 | */ 25 | @ExtendWith(SwingRunnerExtension.class) 26 | class RTextAreaEditorKitPasteActionTest extends AbstractRTextAreaTest { 27 | 28 | 29 | @Test 30 | void testConstructor_multiArg() { 31 | RTextAreaEditorKit.PasteAction action = new RTextAreaEditorKit.PasteAction( 32 | "name", null, "Description", 0, null); 33 | Assertions.assertEquals("name", action.getName()); 34 | Assertions.assertEquals("Description", action.getDescription()); 35 | } 36 | 37 | 38 | @Test 39 | void testActionPerformedImpl() { 40 | 41 | Assumptions.assumeFalse(GraphicsEnvironment.isHeadless()); 42 | 43 | RTextArea textArea = new RTextArea(); 44 | 45 | Toolkit.getDefaultToolkit().getSystemClipboard().setContents(new StringSelection("foo"), null); 46 | 47 | ActionEvent e = new ActionEvent(textArea, 0, "foo"); 48 | new RTextAreaEditorKit.PasteAction().actionPerformedImpl(e, textArea); 49 | 50 | Assertions.assertEquals("foo", textArea.getText()); 51 | } 52 | 53 | 54 | @Test 55 | void testGetMacroID() { 56 | Assertions.assertEquals(DefaultEditorKit.pasteAction, 57 | new RTextAreaEditorKit.PasteAction().getMacroID()); 58 | } 59 | } 60 | -------------------------------------------------------------------------------- /RSyntaxTextArea/src/test/java/org/fife/ui/rtextarea/RTextAreaEditorKitRedoActionTest.java: -------------------------------------------------------------------------------- 1 | /* 2 | * This library is distributed under a modified BSD license. See the included 3 | * LICENSE file for details. 4 | */ 5 | package org.fife.ui.rtextarea; 6 | 7 | import org.fife.ui.SwingRunnerExtension; 8 | import org.junit.jupiter.api.Assertions; 9 | import org.junit.jupiter.api.Test; 10 | import org.junit.jupiter.api.extension.ExtendWith; 11 | 12 | import java.awt.event.ActionEvent; 13 | 14 | 15 | /** 16 | * Unit tests for the {@link RTextAreaEditorKit.RedoAction} class. 17 | * 18 | * @author Robert Futrell 19 | * @version 1.0 20 | */ 21 | @ExtendWith(SwingRunnerExtension.class) 22 | class RTextAreaEditorKitRedoActionTest { 23 | 24 | 25 | @Test 26 | void testConstructor_multiArg() { 27 | RTextAreaEditorKit.RedoAction action = new RTextAreaEditorKit.RedoAction( 28 | "name", null, "Description", 0, null); 29 | Assertions.assertEquals("name", action.getName()); 30 | Assertions.assertEquals("Description", action.getDescription()); 31 | } 32 | 33 | 34 | @Test 35 | void testActionPerformedImpl() { 36 | 37 | RTextArea textArea = new RTextArea(); 38 | textArea.append("foo"); 39 | 40 | ActionEvent e = new ActionEvent(textArea, 0, "command"); 41 | new RTextAreaEditorKit.UndoAction().actionPerformedImpl(e, textArea); 42 | new RTextAreaEditorKit.RedoAction().actionPerformedImpl(e, textArea); 43 | 44 | Assertions.assertEquals("foo", textArea.getText()); 45 | Assertions.assertTrue(textArea.canUndo()); 46 | Assertions.assertFalse(textArea.canRedo()); 47 | } 48 | 49 | 50 | @Test 51 | void testGetMacroID() { 52 | Assertions.assertEquals(RTextAreaEditorKit.rtaRedoAction, 53 | new RTextAreaEditorKit.RedoAction().getMacroID()); 54 | } 55 | } 56 | -------------------------------------------------------------------------------- /RSyntaxTextArea/src/test/java/org/fife/ui/rtextarea/RTextAreaEditorKitScrollActionTest.java: -------------------------------------------------------------------------------- 1 | /* 2 | * This library is distributed under a modified BSD license. See the included 3 | * LICENSE file for details. 4 | */ 5 | package org.fife.ui.rtextarea; 6 | 7 | import org.fife.ui.SwingRunnerExtension; 8 | import org.junit.jupiter.api.Assertions; 9 | import org.junit.jupiter.api.Test; 10 | import org.junit.jupiter.api.extension.ExtendWith; 11 | 12 | import java.awt.event.ActionEvent; 13 | 14 | 15 | /** 16 | * Unit tests for the {@link RTextAreaEditorKit.ScrollAction} class. 17 | * 18 | * @author Robert Futrell 19 | * @version 1.0 20 | */ 21 | @ExtendWith(SwingRunnerExtension.class) 22 | class RTextAreaEditorKitScrollActionTest { 23 | 24 | 25 | @Test 26 | void testActionPerformedImpl() { 27 | 28 | RTextArea textArea = new RTextArea("foo"); 29 | new RTextScrollPane(textArea); // Needed for the test 30 | 31 | ActionEvent e = new ActionEvent(textArea, 0, "command"); 32 | new RTextAreaEditorKit.ScrollAction("scroll", 1).actionPerformedImpl(e, textArea); 33 | 34 | // Not sure how to verify 35 | } 36 | 37 | 38 | @Test 39 | void testGetMacroID() { 40 | Assertions.assertEquals("scroll", 41 | new RTextAreaEditorKit.ScrollAction("scroll", 1).getMacroID()); 42 | } 43 | } 44 | -------------------------------------------------------------------------------- /RSyntaxTextArea/src/test/java/org/fife/ui/rtextarea/RTextAreaEditorKitSelectAllActionTest.java: -------------------------------------------------------------------------------- 1 | /* 2 | * This library is distributed under a modified BSD license. See the included 3 | * LICENSE file for details. 4 | */ 5 | package org.fife.ui.rtextarea; 6 | 7 | import org.fife.ui.SwingRunnerExtension; 8 | import org.junit.jupiter.api.Assertions; 9 | import org.junit.jupiter.api.Test; 10 | import org.junit.jupiter.api.extension.ExtendWith; 11 | 12 | import javax.swing.text.DefaultEditorKit; 13 | import java.awt.event.ActionEvent; 14 | 15 | 16 | /** 17 | * Unit tests for the {@link RTextAreaEditorKit.SelectAllAction} class. 18 | * 19 | * @author Robert Futrell 20 | * @version 1.0 21 | */ 22 | @ExtendWith(SwingRunnerExtension.class) 23 | class RTextAreaEditorKitSelectAllActionTest { 24 | 25 | 26 | @Test 27 | void testConstructor_multiArg() { 28 | RTextAreaEditorKit.SelectAllAction action = new RTextAreaEditorKit.SelectAllAction( 29 | "name", null, "Description", 0, null); 30 | Assertions.assertEquals("name", action.getName()); 31 | Assertions.assertEquals("Description", action.getDescription()); 32 | } 33 | 34 | 35 | @Test 36 | void testActionPerformedImpl_noSelection() { 37 | 38 | RTextArea textArea = new RTextArea("line 1\nline 2\nline 3"); 39 | 40 | ActionEvent e = new ActionEvent(textArea, 0, "command"); 41 | new RTextAreaEditorKit.SelectAllAction().actionPerformedImpl(e, textArea); 42 | 43 | Assertions.assertEquals(0, textArea.getSelectionStart()); 44 | Assertions.assertEquals(textArea.getText().length(), textArea.getSelectionEnd()); 45 | Assertions.assertEquals(textArea.getText().length(), textArea.getCaretPosition()); 46 | } 47 | 48 | 49 | @Test 50 | void testGetMacroID() { 51 | Assertions.assertEquals(DefaultEditorKit.selectAllAction, 52 | new RTextAreaEditorKit.SelectAllAction().getMacroID()); 53 | } 54 | } 55 | -------------------------------------------------------------------------------- /RSyntaxTextArea/src/test/java/org/fife/ui/rtextarea/RTextAreaEditorKitSelectLineActionTest.java: -------------------------------------------------------------------------------- 1 | /* 2 | * This library is distributed under a modified BSD license. See the included 3 | * LICENSE file for details. 4 | */ 5 | package org.fife.ui.rtextarea; 6 | 7 | import org.fife.ui.SwingRunnerExtension; 8 | import org.junit.jupiter.api.Assertions; 9 | import org.junit.jupiter.api.Test; 10 | import org.junit.jupiter.api.extension.ExtendWith; 11 | 12 | import javax.swing.text.DefaultEditorKit; 13 | import java.awt.event.ActionEvent; 14 | 15 | 16 | /** 17 | * Unit tests for the {@link RTextAreaEditorKit.SelectLineAction} class. 18 | * 19 | * @author Robert Futrell 20 | * @version 1.0 21 | */ 22 | @ExtendWith(SwingRunnerExtension.class) 23 | class RTextAreaEditorKitSelectLineActionTest extends AbstractRTextAreaTest { 24 | 25 | 26 | @Test 27 | void testActionPerformedImpl_noSelection() { 28 | 29 | RTextArea textArea = new RTextArea("line 1\nline 2\nline 3"); 30 | textArea.setBounds(0, 0, 80, 80); 31 | textArea.setCaretPosition(textArea.getText().indexOf('2')); 32 | 33 | ActionEvent e = new ActionEvent(textArea, 0, "command"); 34 | new RTextAreaEditorKit.SelectLineAction().actionPerformedImpl(e, textArea); 35 | 36 | Assertions.assertEquals(7, textArea.getSelectionStart()); 37 | Assertions.assertEquals(13, textArea.getSelectionEnd()); 38 | Assertions.assertEquals(13, textArea.getCaretPosition()); 39 | } 40 | 41 | 42 | @Test 43 | void testGetMacroID() { 44 | Assertions.assertEquals(DefaultEditorKit.selectLineAction, 45 | new RTextAreaEditorKit.SelectLineAction().getMacroID()); 46 | } 47 | } 48 | -------------------------------------------------------------------------------- /RSyntaxTextArea/src/test/java/org/fife/ui/rtextarea/RTextAreaEditorKitSelectWordActionTest.java: -------------------------------------------------------------------------------- 1 | /* 2 | * This library is distributed under a modified BSD license. See the included 3 | * LICENSE file for details. 4 | */ 5 | package org.fife.ui.rtextarea; 6 | 7 | import org.fife.ui.SwingRunnerExtension; 8 | import org.junit.jupiter.api.Assertions; 9 | import org.junit.jupiter.api.Test; 10 | import org.junit.jupiter.api.extension.ExtendWith; 11 | 12 | import javax.swing.text.DefaultEditorKit; 13 | import java.awt.event.ActionEvent; 14 | 15 | 16 | /** 17 | * Unit tests for the {@link RTextAreaEditorKit.SelectWordAction} class. 18 | * 19 | * @author Robert Futrell 20 | * @version 1.0 21 | */ 22 | @ExtendWith(SwingRunnerExtension.class) 23 | class RTextAreaEditorKitSelectWordActionTest { 24 | 25 | 26 | @Test 27 | void testActionPerformedImpl() { 28 | 29 | RTextArea textArea = new RTextArea("line 1\nline 2\nline 3"); 30 | textArea.setCaretPosition(8); 31 | 32 | ActionEvent e = new ActionEvent(textArea, 0, "command"); 33 | new RTextAreaEditorKit.SelectWordAction().actionPerformedImpl(e, textArea); 34 | 35 | Assertions.assertEquals(7, textArea.getSelectionStart()); 36 | Assertions.assertEquals(11, textArea.getSelectionEnd()); 37 | Assertions.assertEquals(11, textArea.getCaretPosition()); 38 | } 39 | 40 | 41 | @Test 42 | void testGetMacroID() { 43 | Assertions.assertEquals(DefaultEditorKit.selectWordAction, 44 | new RTextAreaEditorKit.SelectWordAction().getMacroID()); 45 | } 46 | } 47 | -------------------------------------------------------------------------------- /RSyntaxTextArea/src/test/java/org/fife/ui/rtextarea/RTextAreaEditorKitSetReadOnlyActionTest.java: -------------------------------------------------------------------------------- 1 | /* 2 | * This library is distributed under a modified BSD license. See the included 3 | * LICENSE file for details. 4 | */ 5 | package org.fife.ui.rtextarea; 6 | 7 | import org.fife.ui.SwingRunnerExtension; 8 | import org.junit.jupiter.api.Assertions; 9 | import org.junit.jupiter.api.Test; 10 | import org.junit.jupiter.api.extension.ExtendWith; 11 | 12 | import javax.swing.text.DefaultEditorKit; 13 | import java.awt.event.ActionEvent; 14 | 15 | 16 | /** 17 | * Unit tests for the {@link RTextAreaEditorKit.SetReadOnlyAction} class. 18 | * 19 | * @author Robert Futrell 20 | * @version 1.0 21 | */ 22 | @ExtendWith(SwingRunnerExtension.class) 23 | class RTextAreaEditorKitSetReadOnlyActionTest { 24 | 25 | 26 | @Test 27 | void testActionPerformedImpl() { 28 | 29 | RTextArea textArea = new RTextArea(); 30 | Assertions.assertTrue(textArea.isEditable()); 31 | 32 | ActionEvent e = new ActionEvent(textArea, 0, "command"); 33 | new RTextAreaEditorKit.SetReadOnlyAction().actionPerformedImpl(e, textArea); 34 | 35 | Assertions.assertFalse(textArea.isEditable()); 36 | } 37 | 38 | 39 | @Test 40 | void testGetMacroID() { 41 | Assertions.assertEquals(DefaultEditorKit.readOnlyAction, 42 | new RTextAreaEditorKit.SetReadOnlyAction().getMacroID()); 43 | } 44 | 45 | 46 | @Test 47 | void testIsRecordable() { 48 | RTextAreaEditorKit.SetReadOnlyAction a = new RTextAreaEditorKit.SetReadOnlyAction(); 49 | Assertions.assertFalse(a.isRecordable()); 50 | } 51 | } 52 | -------------------------------------------------------------------------------- /RSyntaxTextArea/src/test/java/org/fife/ui/rtextarea/RTextAreaEditorKitSetWritableActionTest.java: -------------------------------------------------------------------------------- 1 | /* 2 | * This library is distributed under a modified BSD license. See the included 3 | * LICENSE file for details. 4 | */ 5 | package org.fife.ui.rtextarea; 6 | 7 | import org.fife.ui.SwingRunnerExtension; 8 | import org.junit.jupiter.api.Assertions; 9 | import org.junit.jupiter.api.Test; 10 | import org.junit.jupiter.api.extension.ExtendWith; 11 | 12 | import javax.swing.text.DefaultEditorKit; 13 | import java.awt.event.ActionEvent; 14 | 15 | 16 | /** 17 | * Unit tests for the {@link RTextAreaEditorKit.SetWritableAction} class. 18 | * 19 | * @author Robert Futrell 20 | * @version 1.0 21 | */ 22 | @ExtendWith(SwingRunnerExtension.class) 23 | class RTextAreaEditorKitSetWritableActionTest { 24 | 25 | 26 | @Test 27 | void testActionPerformedImpl() { 28 | 29 | RTextArea textArea = new RTextArea(); 30 | textArea.setEditable(false); 31 | 32 | ActionEvent e = new ActionEvent(textArea, 0, "command"); 33 | new RTextAreaEditorKit.SetWritableAction().actionPerformedImpl(e, textArea); 34 | 35 | Assertions.assertTrue(textArea.isEditable()); 36 | } 37 | 38 | 39 | @Test 40 | void testGetMacroID() { 41 | Assertions.assertEquals(DefaultEditorKit.writableAction, 42 | new RTextAreaEditorKit.SetWritableAction().getMacroID()); 43 | } 44 | 45 | 46 | @Test 47 | void testIsRecordable() { 48 | RTextAreaEditorKit.SetWritableAction a = new RTextAreaEditorKit.SetWritableAction(); 49 | Assertions.assertFalse(a.isRecordable()); 50 | } 51 | } 52 | -------------------------------------------------------------------------------- /RSyntaxTextArea/src/test/java/org/fife/ui/rtextarea/RTextAreaEditorKitTimeDateActionTest.java: -------------------------------------------------------------------------------- 1 | /* 2 | * This library is distributed under a modified BSD license. See the included 3 | * LICENSE file for details. 4 | */ 5 | package org.fife.ui.rtextarea; 6 | 7 | import org.fife.ui.SwingRunnerExtension; 8 | import org.junit.jupiter.api.Assertions; 9 | import org.junit.jupiter.api.Test; 10 | import org.junit.jupiter.api.extension.ExtendWith; 11 | 12 | import java.awt.event.ActionEvent; 13 | 14 | 15 | /** 16 | * Unit tests for the {@link RTextAreaEditorKit.TimeDateAction} class. 17 | * 18 | * @author Robert Futrell 19 | * @version 1.0 20 | */ 21 | @ExtendWith(SwingRunnerExtension.class) 22 | class RTextAreaEditorKitTimeDateActionTest { 23 | 24 | 25 | @Test 26 | void testConstructor_multiArg() { 27 | RTextAreaEditorKit.TimeDateAction action = new RTextAreaEditorKit.TimeDateAction( 28 | "name", null, "Description", 0, null); 29 | Assertions.assertEquals("name", action.getName()); 30 | Assertions.assertEquals("Description", action.getDescription()); 31 | } 32 | 33 | 34 | @Test 35 | void testActionPerformedImpl() { 36 | 37 | RTextArea textArea = new RTextArea(); 38 | 39 | ActionEvent e = new ActionEvent(textArea, 0, "command"); 40 | new RTextAreaEditorKit.TimeDateAction().actionPerformedImpl(e, textArea); 41 | 42 | Assertions.assertTrue(textArea.getText().length() > 0); 43 | } 44 | 45 | 46 | @Test 47 | void testActionPerformedImpl_notEditable() { 48 | 49 | RTextArea textArea = new RTextArea(); 50 | textArea.setEditable(false); 51 | 52 | ActionEvent e = new ActionEvent(textArea, 0, "command"); 53 | new RTextAreaEditorKit.TimeDateAction().actionPerformedImpl(e, textArea); 54 | 55 | Assertions.assertEquals(0, textArea.getText().length()); 56 | } 57 | 58 | 59 | @Test 60 | void testGetMacroID() { 61 | Assertions.assertEquals(RTextAreaEditorKit.rtaTimeDateAction, 62 | new RTextAreaEditorKit.TimeDateAction().getMacroID()); 63 | } 64 | } 65 | -------------------------------------------------------------------------------- /RSyntaxTextArea/src/test/java/org/fife/ui/rtextarea/RTextAreaEditorKitToggleBookmarkActionTest.java: -------------------------------------------------------------------------------- 1 | /* 2 | * This library is distributed under a modified BSD license. See the included 3 | * LICENSE file for details. 4 | */ 5 | package org.fife.ui.rtextarea; 6 | 7 | import org.fife.ui.SwingRunnerExtension; 8 | import org.junit.jupiter.api.Assertions; 9 | import org.junit.jupiter.api.Test; 10 | import org.junit.jupiter.api.extension.ExtendWith; 11 | 12 | import java.awt.event.ActionEvent; 13 | 14 | 15 | /** 16 | * Unit tests for the {@link RTextAreaEditorKit.ToggleBookmarkAction} class. 17 | * 18 | * @author Robert Futrell 19 | * @version 1.0 20 | */ 21 | @ExtendWith(SwingRunnerExtension.class) 22 | class RTextAreaEditorKitToggleBookmarkActionTest { 23 | 24 | 25 | @Test 26 | void testActionPerformedImpl() { 27 | 28 | RTextArea textArea = new RTextArea("line 1\nline 2\nline 3"); 29 | textArea.setCaretPosition(textArea.getText().indexOf('2')); 30 | RTextScrollPane sp = new RTextScrollPane(textArea); 31 | Gutter gutter = sp.getGutter(); 32 | 33 | gutter.setBookmarkingEnabled(true); 34 | gutter.setBookmarkIcon(new EmptyTestIcon()); 35 | 36 | ActionEvent e = new ActionEvent(textArea, 0, "command"); 37 | new RTextAreaEditorKit.ToggleBookmarkAction().actionPerformedImpl(e, textArea); 38 | 39 | Assertions.assertEquals(1, gutter.getBookmarks().length); 40 | } 41 | 42 | 43 | @Test 44 | void testGetMacroID() { 45 | Assertions.assertEquals(RTextAreaEditorKit.rtaToggleBookmarkAction, 46 | new RTextAreaEditorKit.ToggleBookmarkAction().getMacroID()); 47 | } 48 | } 49 | -------------------------------------------------------------------------------- /RSyntaxTextArea/src/test/java/org/fife/ui/rtextarea/RTextAreaEditorKitToggleTextModeActionTest.java: -------------------------------------------------------------------------------- 1 | /* 2 | * This library is distributed under a modified BSD license. See the included 3 | * LICENSE file for details. 4 | */ 5 | package org.fife.ui.rtextarea; 6 | 7 | import org.fife.ui.SwingRunnerExtension; 8 | import org.junit.jupiter.api.Assertions; 9 | import org.junit.jupiter.api.Test; 10 | import org.junit.jupiter.api.extension.ExtendWith; 11 | 12 | import java.awt.event.ActionEvent; 13 | 14 | 15 | /** 16 | * Unit tests for the {@link RTextAreaEditorKit.ToggleTextModeAction} class. 17 | * 18 | * @author Robert Futrell 19 | * @version 1.0 20 | */ 21 | @ExtendWith(SwingRunnerExtension.class) 22 | class RTextAreaEditorKitToggleTextModeActionTest { 23 | 24 | 25 | @Test 26 | void testActionPerformedImpl() { 27 | 28 | RTextArea textArea = new RTextArea("line 1\nline 2\nline 3"); 29 | Assertions.assertEquals(RTextArea.INSERT_MODE, textArea.getTextMode()); 30 | 31 | // Toggle to overwrite 32 | ActionEvent e = new ActionEvent(textArea, 0, "command"); 33 | new RTextAreaEditorKit.ToggleTextModeAction().actionPerformedImpl(e, textArea); 34 | Assertions.assertEquals(RTextArea.OVERWRITE_MODE, textArea.getTextMode()); 35 | 36 | // And back to insert 37 | new RTextAreaEditorKit.ToggleTextModeAction().actionPerformedImpl(e, textArea); 38 | Assertions.assertEquals(RTextArea.INSERT_MODE, textArea.getTextMode()); 39 | } 40 | 41 | 42 | @Test 43 | void testGetMacroID() { 44 | Assertions.assertEquals(RTextAreaEditorKit.rtaToggleTextModeAction, 45 | new RTextAreaEditorKit.ToggleTextModeAction().getMacroID()); 46 | } 47 | } 48 | -------------------------------------------------------------------------------- /RSyntaxTextArea/src/test/java/org/fife/ui/rtextarea/RTextAreaEditorKitUndoActionTest.java: -------------------------------------------------------------------------------- 1 | /* 2 | * This library is distributed under a modified BSD license. See the included 3 | * LICENSE file for details. 4 | */ 5 | package org.fife.ui.rtextarea; 6 | 7 | import org.fife.ui.SwingRunnerExtension; 8 | import org.junit.jupiter.api.Assertions; 9 | import org.junit.jupiter.api.Test; 10 | import org.junit.jupiter.api.extension.ExtendWith; 11 | 12 | import java.awt.event.ActionEvent; 13 | 14 | 15 | /** 16 | * Unit tests for the {@link RTextAreaEditorKit.UndoAction} class. 17 | * 18 | * @author Robert Futrell 19 | * @version 1.0 20 | */ 21 | @ExtendWith(SwingRunnerExtension.class) 22 | class RTextAreaEditorKitUndoActionTest { 23 | 24 | 25 | @Test 26 | void testConstructor_multiArg() { 27 | RTextAreaEditorKit.UndoAction action = new RTextAreaEditorKit.UndoAction( 28 | "name", null, "Description", 0, null); 29 | Assertions.assertEquals("name", action.getName()); 30 | Assertions.assertEquals("Description", action.getDescription()); 31 | } 32 | 33 | 34 | @Test 35 | void testActionPerformedImpl() { 36 | 37 | RTextArea textArea = new RTextArea(); 38 | textArea.append("foo"); 39 | 40 | ActionEvent e = new ActionEvent(textArea, 0, "command"); 41 | new RTextAreaEditorKit.UndoAction().actionPerformedImpl(e, textArea); 42 | 43 | Assertions.assertTrue(textArea.getText().isEmpty()); 44 | Assertions.assertFalse(textArea.canUndo()); 45 | Assertions.assertTrue(textArea.canRedo()); 46 | } 47 | 48 | 49 | @Test 50 | void testGetMacroID() { 51 | Assertions.assertEquals(RTextAreaEditorKit.rtaUndoAction, 52 | new RTextAreaEditorKit.UndoAction().getMacroID()); 53 | } 54 | } 55 | -------------------------------------------------------------------------------- /RSyntaxTextArea/src/test/java/org/fife/ui/rtextarea/RTextAreaEditorKitUnselectActionTest.java: -------------------------------------------------------------------------------- 1 | /* 2 | * This library is distributed under a modified BSD license. See the included 3 | * LICENSE file for details. 4 | */ 5 | package org.fife.ui.rtextarea; 6 | 7 | import org.fife.ui.SwingRunnerExtension; 8 | import org.junit.jupiter.api.Assertions; 9 | import org.junit.jupiter.api.Test; 10 | import org.junit.jupiter.api.extension.ExtendWith; 11 | 12 | import java.awt.event.ActionEvent; 13 | 14 | 15 | /** 16 | * Unit tests for the {@link RTextAreaEditorKit.UnselectAction} class. 17 | * 18 | * @author Robert Futrell 19 | * @version 1.0 20 | */ 21 | @ExtendWith(SwingRunnerExtension.class) 22 | class RTextAreaEditorKitUnselectActionTest { 23 | 24 | 25 | @Test 26 | void testActionPerformedImpl() { 27 | 28 | RTextArea textArea = new RTextArea(); 29 | textArea.append("foo"); 30 | textArea.selectAll(); 31 | 32 | ActionEvent e = new ActionEvent(textArea, 0, "command"); 33 | new RTextAreaEditorKit.UnselectAction().actionPerformedImpl(e, textArea); 34 | 35 | Assertions.assertEquals(3, textArea.getCaretPosition()); 36 | Assertions.assertNull(textArea.getSelectedText()); 37 | } 38 | 39 | 40 | @Test 41 | void testGetMacroID() { 42 | Assertions.assertEquals(RTextAreaEditorKit.rtaUnselectAction, 43 | new RTextAreaEditorKit.UnselectAction().getMacroID()); 44 | } 45 | } 46 | -------------------------------------------------------------------------------- /RSyntaxTextArea/src/test/java/org/fife/ui/rtextarea/RTextAreaEditorKitUpperSelectionCaseActionTest.java: -------------------------------------------------------------------------------- 1 | /* 2 | * This library is distributed under a modified BSD license. See the included 3 | * LICENSE file for details. 4 | */ 5 | package org.fife.ui.rtextarea; 6 | 7 | import org.fife.ui.SwingRunnerExtension; 8 | import org.junit.jupiter.api.Assertions; 9 | import org.junit.jupiter.api.Test; 10 | import org.junit.jupiter.api.extension.ExtendWith; 11 | 12 | import java.awt.event.ActionEvent; 13 | 14 | 15 | /** 16 | * Unit tests for the {@link RTextAreaEditorKit.UpperSelectionCaseAction} class. 17 | * 18 | * @author Robert Futrell 19 | * @version 1.0 20 | */ 21 | @ExtendWith(SwingRunnerExtension.class) 22 | class RTextAreaEditorKitUpperSelectionCaseActionTest { 23 | 24 | 25 | @Test 26 | void testActionPerformedImpl_notEnabled() { 27 | 28 | RTextArea textArea = new RTextArea("hello World"); 29 | textArea.setSelectionStart(2); 30 | textArea.setSelectionEnd(8); 31 | textArea.setEnabled(false); 32 | 33 | ActionEvent e = new ActionEvent(textArea, 0, "command"); 34 | new RTextAreaEditorKit.UpperSelectionCaseAction().actionPerformedImpl(e, textArea); 35 | 36 | Assertions.assertEquals("hello World", textArea.getText()); 37 | } 38 | 39 | 40 | @Test 41 | void testActionPerformedImpl_happyPath() { 42 | 43 | RTextArea textArea = new RTextArea("hello World"); 44 | textArea.setSelectionStart(2); 45 | textArea.setSelectionEnd(8); 46 | 47 | ActionEvent e = new ActionEvent(textArea, 0, "command"); 48 | new RTextAreaEditorKit.UpperSelectionCaseAction().actionPerformedImpl(e, textArea); 49 | 50 | Assertions.assertEquals("heLLO WOrld", textArea.getText()); 51 | } 52 | 53 | 54 | @Test 55 | void testGetMacroID() { 56 | Assertions.assertEquals(RTextAreaEditorKit.rtaUpperSelectionCaseAction, 57 | new RTextAreaEditorKit.UpperSelectionCaseAction().getMacroID()); 58 | } 59 | } 60 | -------------------------------------------------------------------------------- /RSyntaxTextArea/src/test/resources/org/fife/ui/rsyntaxtextarea/TokenIteratorTest_JavaBasic.txt: -------------------------------------------------------------------------------- 1 | package test.clazz; 2 | 3 | 4 | /** 5 | * Class comment. 6 | */ 7 | public class Test { 8 | 9 | public int getValue() { 10 | return 3; 11 | } 12 | 13 | } 14 | 15 | -------------------------------------------------------------------------------- /RSyntaxTextArea/src/test/resources/org/fife/ui/rsyntaxtextarea/TokenIteratorTest_UnterminatedJavadoc.txt: -------------------------------------------------------------------------------- 1 | /** 2 | * Hello world 3 | * @param foo A parameter 4 | * @return Some value -------------------------------------------------------------------------------- /RSyntaxTextArea/src/test/resources/org/fife/ui/rtextarea/SearchEngineTest.txt: -------------------------------------------------------------------------------- 1 | How much wood wOuld a woodChuck chUck, if a woodchuck could chuck wOod? -------------------------------------------------------------------------------- /RSyntaxTextArea/src/test/resources/org/fife/ui/rtextarea/example-image.png: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/bobbylight/RSyntaxTextArea/c629b3daf3d3fa3d991354a5218d99601a56a629/RSyntaxTextArea/src/test/resources/org/fife/ui/rtextarea/example-image.png -------------------------------------------------------------------------------- /RSyntaxTextAreaDemo/README.md: -------------------------------------------------------------------------------- 1 | This is a set of simple demo applications for 2 | [RSyntaxTextArea](https://github.com/bobbylight/RSyntaxTextArea). 3 | 4 | ## Demos 5 | 6 | ### RSyntaxTextAreaDemoApp 7 | This is a simple demo application that shows off the syntax highlighting 8 | and code folding capabilities for several languages. 9 | It also allows you to toggle between the baked-in editor themes 10 | as well as several other basic options. 11 | 12 | ### FindAndReplaceDemo 13 | A _very_ basic demo of the built-in search/replace functionality. 14 | If you want Find and Replace dialogs for free that integrate 15 | with RSTA, check out the 16 | [RSTAUI](https://github.com/bobbylight/RSTAUI) sister project. 17 | 18 | ### SyntaxSchemeDemo 19 | Shows how to modify the fonts and colors used. 20 | 21 | 22 | ## Getting Help 23 | 24 | * Add an issue on GitHub 25 | * Peruse [the wiki](https://github.com/bobbylight/RSyntaxTextArea/wiki) 26 | * Check the project's [home page](http://bobbylight.github.io/RSyntaxTextArea/) 27 | 28 | -------------------------------------------------------------------------------- /RSyntaxTextAreaDemo/build.gradle: -------------------------------------------------------------------------------- 1 | plugins { 2 | id 'application' 3 | id 'base' 4 | } 5 | 6 | base { 7 | archivesName = 'rstademo' 8 | } 9 | 10 | 11 | dependencies { 12 | implementation project(':RSyntaxTextArea') 13 | } 14 | 15 | application { 16 | mainClass.set('org.fife.ui.rsyntaxtextarea.demo.RSyntaxTextAreaDemoApp') 17 | } 18 | -------------------------------------------------------------------------------- /RSyntaxTextAreaDemo/src/main/java/org/fife/ui/rsyntaxtextarea/demo/RSyntaxTextAreaDemoApp.java: -------------------------------------------------------------------------------- 1 | package org.fife.ui.rsyntaxtextarea.demo; 2 | 3 | import java.awt.Toolkit; 4 | import javax.swing.*; 5 | 6 | 7 | /** 8 | * Standalone version of the demo. 9 | * 10 | * @author Robert Futrell 11 | * @version 1.0 12 | */ 13 | public final class RSyntaxTextAreaDemoApp extends JFrame { 14 | 15 | 16 | private RSyntaxTextAreaDemoApp() { 17 | setRootPane(new DemoRootPane()); 18 | setDefaultCloseOperation(WindowConstants.EXIT_ON_CLOSE); 19 | setTitle("RSyntaxTextArea Demo Application"); 20 | pack(); 21 | } 22 | 23 | 24 | public static void main(String[] args) { 25 | SwingUtilities.invokeLater(() -> { 26 | try { 27 | UIManager.setLookAndFeel(UIManager. 28 | getSystemLookAndFeelClassName()); 29 | } catch (Exception e) { 30 | e.printStackTrace(); // Never happens 31 | } 32 | Toolkit.getDefaultToolkit().setDynamicLayout(true); 33 | new RSyntaxTextAreaDemoApp().setVisible(true); 34 | }); 35 | } 36 | 37 | 38 | } 39 | -------------------------------------------------------------------------------- /RSyntaxTextAreaDemo/src/main/java/org/fife/ui/rsyntaxtextarea/demo/package.html: -------------------------------------------------------------------------------- 1 | 2 | 3 | A demo application (desktop and applet) of RSyntaxTextArea. 4 | 5 | 6 | -------------------------------------------------------------------------------- /RSyntaxTextAreaDemo/src/main/resources/org/fife/ui/rsyntaxtextarea/demo/ActionScriptExample.txt: -------------------------------------------------------------------------------- 1 | package 2 | { 3 | import flash.display.Sprite; 4 | import flash.events.Event; 5 | import flash.display.Graphics; 6 | /** 7 | * ... 8 | * @author how-to-code.com 9 | */ 10 | public class Main extends Sprite 11 | { 12 | private var button:Sprite; 13 | 14 | public function Main():void 15 | { 16 | //Create a new instance of a Sprite to act as the button graphic. 17 | button = new Sprite(); 18 | 19 | //Set the color of the button graphic 20 | button.graphics.beginFill(0xFFCC00); 21 | 22 | //Set the X,Y, Width, and Height of the button graphic 23 | button.graphics.drawRect(0, 0, 200, 200); 24 | 25 | //Apply the fill 26 | button.graphics.endFill(); 27 | 28 | //Add Button Sprite to stage 29 | this.addChild(button); 30 | } 31 | } 32 | } -------------------------------------------------------------------------------- /RSyntaxTextAreaDemo/src/main/resources/org/fife/ui/rsyntaxtextarea/demo/Assembler6502.txt: -------------------------------------------------------------------------------- 1 | ; This is a program 2 | LDA #$01 3 | STA $0200 4 | LDA #$05 5 | STA $0201 6 | LDA #$08 7 | STA $0202 8 | 9 | LDA #$01 10 | STA $0200 11 | LDA #$05 12 | STA $0201 13 | LDA #$08 14 | STA $0202 15 | -------------------------------------------------------------------------------- /RSyntaxTextAreaDemo/src/main/resources/org/fife/ui/rsyntaxtextarea/demo/CExample.txt: -------------------------------------------------------------------------------- 1 | #include 2 | 3 | /* Canonical "Hello world!" example */ 4 | int main(int argc, char **argv) 5 | { 6 | printf("Hello, world!\n"); 7 | return 0; 8 | } 9 | -------------------------------------------------------------------------------- /RSyntaxTextAreaDemo/src/main/resources/org/fife/ui/rsyntaxtextarea/demo/CSharpExample.txt: -------------------------------------------------------------------------------- 1 | using System; 2 | 3 | namespace HelloWorld 4 | { 5 | class Program 6 | { 7 | // Program entry point 8 | static void Main(string[] args) 9 | { 10 | Console.WriteLine("Hello World!"); 11 | } 12 | } 13 | } 14 | -------------------------------------------------------------------------------- /RSyntaxTextAreaDemo/src/main/resources/org/fife/ui/rsyntaxtextarea/demo/ClojureExample.txt: -------------------------------------------------------------------------------- 1 | ;trumped-up example 2 | (defn argcount 3 | ([] 0) 4 | ([x] 1) 5 | ([x y] 2) 6 | ([x y & more] (+ (argcount x y) (count more)))) 7 | -------------------------------------------------------------------------------- /RSyntaxTextAreaDemo/src/main/resources/org/fife/ui/rsyntaxtextarea/demo/CssExample.txt: -------------------------------------------------------------------------------- 1 | @media print { 2 | foo: bar; 3 | } 4 | 5 | @the-border: 1px; 6 | @base-color: #111; 7 | @red: #842210; 8 | 9 | #header { 10 | color: @base-color * 3; 11 | border-left: @the-border; 12 | border-right: @the-border * 3; 13 | .bar { 14 | background: lighten(red, 10%); 15 | } 16 | } 17 | #footer { 18 | color: @base-color + #003300; 19 | border-color: desaturate(@red, 0%); 20 | } -------------------------------------------------------------------------------- /RSyntaxTextAreaDemo/src/main/resources/org/fife/ui/rsyntaxtextarea/demo/DockerfileExample.txt: -------------------------------------------------------------------------------- 1 | FROM ubuntu 2 | MAINTAINER Kimbro Staken 3 | 4 | RUN apt-get install -y python-software-properties python 5 | RUN add-apt-repository ppa:chris-lea/node.js 6 | RUN echo "deb http://us.archive.ubuntu.com/ubuntu/ precise universe" >> /etc/apt/sources.list 7 | RUN apt-get update 8 | RUN apt-get install -y nodejs 9 | #RUN apt-get install -y nodejs=0.6.12~dfsg1-1ubuntu1 10 | RUN mkdir /var/www 11 | 12 | ADD app.js /var/www/app.js 13 | 14 | CMD ["/usr/bin/node", "/var/www/app.js"] 15 | -------------------------------------------------------------------------------- /RSyntaxTextAreaDemo/src/main/resources/org/fife/ui/rsyntaxtextarea/demo/HandlebarsExample.txt: -------------------------------------------------------------------------------- 1 | {{> header}} 2 | 3 | {{#each records }} 4 | {{#if valid}} 5 |
6 | {{else}} 7 |
8 | {{/if}} 9 | 10 | {{! This is a comment for a raw block }} 11 | {{{raw}}} 12 | 13 | {{outer-helper (inner-helper 'abc') 'def'}} 14 | 15 | {{!-- This is another comment, this one for a sub-expression --}} 16 | {{#if (equal user.status "busy")}} 17 |

{{name}} is busy.

18 | {{else}} 19 |

{{name}} is not busy.

20 | {{/if}} 21 | {{/each}} 22 | 23 | {{! Whitespace control }} 24 | {{#each nav ~}} 25 | 26 | {{~#if test}} 27 | {{~title}} 28 | {{~^~}} 29 | Empty 30 | {{~/if~}} 31 | 32 | {{~/each}} 33 | -------------------------------------------------------------------------------- /RSyntaxTextAreaDemo/src/main/resources/org/fife/ui/rsyntaxtextarea/demo/HostsExample.txt: -------------------------------------------------------------------------------- 1 | # Example hosts file 2 | # 3 | # This file contains the mappings of IP addresses to host names. Each 4 | # entry should be kept on an individual line. The IP address should 5 | # be placed in the first column followed by the corresponding host name. 6 | # The IP address and the host name should be separated by at least one 7 | # space. 8 | # 9 | # Additionally, comments (such as these) may be inserted on individual 10 | # lines or following the machine name denoted by a '#' symbol. 11 | # 12 | # For example: 13 | # 14 | # 102.54.94.97 rhino.acme.com # source server 15 | # 38.25.63.10 x.acme.com # x client host 16 | 17 | 127.0.0.1 localhost 18 | 10.23.57.48 my.host your.host 19 | -------------------------------------------------------------------------------- /RSyntaxTextAreaDemo/src/main/resources/org/fife/ui/rsyntaxtextarea/demo/HtmlExample.txt: -------------------------------------------------------------------------------- 1 | 2 | 3 | 4 | 11 | 12 | 13 | 14 | 15 |

Hello world!

16 | 17 | 18 | 19 | 21 | 22 | 23 | 24 | 25 | 26 | 27 | 28 | 29 |
20 | onetwothree
value 1value 2value 3
30 | 31 | 32 | 33 | 34 | -------------------------------------------------------------------------------- /RSyntaxTextAreaDemo/src/main/resources/org/fife/ui/rsyntaxtextarea/demo/IniExample.txt: -------------------------------------------------------------------------------- 1 | # EditorConfig is awesome: http://EditorConfig.org 2 | 3 | # top-most EditorConfig file 4 | root = true 5 | 6 | # Unix-style newlines with a newline ending every file 7 | [*] 8 | end_of_line = lf 9 | insert_final_newline = true 10 | 11 | # Matches multiple files with brace expansion notation 12 | # Set default charset 13 | [*.{js,py}] 14 | charset = utf-8 15 | 16 | # 4 space indentation 17 | [*.py] 18 | indent_style = space 19 | indent_size = 4 20 | 21 | # Tab indentation (no size specified) 22 | [Makefile] 23 | indent_style = tab 24 | 25 | # Indentation override for all JS under lib directory 26 | [lib/**.js] 27 | indent_style = space 28 | indent_size = 2 29 | 30 | # Matches the exact files either package.json or .travis.yml 31 | [{package.json,.travis.yml}] 32 | indent_style = space 33 | indent_size = 2 -------------------------------------------------------------------------------- /RSyntaxTextAreaDemo/src/main/resources/org/fife/ui/rsyntaxtextarea/demo/JavaExample.txt: -------------------------------------------------------------------------------- 1 | package com.mycompany.demo; 2 | 3 | /** 4 | * An example class. 5 | * 6 | * @author Your Name 7 | * http://www.example.com 8 | */ 9 | // ligatures: ## <> => ++ ~~ <= >= <=> ->> 10 | ligatures: ## <> => ++ ~~ <= >= <=> ->> 11 | public class ExampleCode { 12 | 13 | private int value; 14 | 15 | /** 16 | * Creates a new ExampleCode. 17 | * 18 | * @param value A value to use in the example. 19 | */ 20 | public ExampleCode(int value) { 21 | this.value = value; 22 | } 23 | 24 | public void doWork() { 25 | // Very important work gets done here. 26 | System.out.println("My value is: \"" + value + "\""); 27 | } 28 | 29 | public static void main(String[] args) { 30 | ExampleCode example = new ExampleCode(5); 31 | example.doWork(); 32 | } 33 | 34 | } 35 | -------------------------------------------------------------------------------- /RSyntaxTextAreaDemo/src/main/resources/org/fife/ui/rsyntaxtextarea/demo/JavaScriptExample.txt: -------------------------------------------------------------------------------- 1 | var x = 42; 2 | let y = 43; 3 | const z = 44; 4 | var str = 'Hello world'; 5 | var str2 = "Hello world"; 6 | const name = 'Steve'; 7 | 8 | // This is a comment 9 | console.log(`string text line 1 10 | string text line 2 11 | My name is ${name}, what's your's?`); 12 | -------------------------------------------------------------------------------- /RSyntaxTextAreaDemo/src/main/resources/org/fife/ui/rsyntaxtextarea/demo/JsonExample.txt: -------------------------------------------------------------------------------- 1 | { 2 | "celebrities": [ 3 | { 4 | "name": "George Clooney", 5 | "dob": "1961-05-06T00:00:00", 6 | "profession": "actor" 7 | }, 8 | { 9 | "name": "Christina Applegate", 10 | "dob": "1971-11-25T00:00:00", 11 | "profession": "actor" 12 | } 13 | ] 14 | } 15 | -------------------------------------------------------------------------------- /RSyntaxTextAreaDemo/src/main/resources/org/fife/ui/rsyntaxtextarea/demo/JspExample.txt: -------------------------------------------------------------------------------- 1 | <%@ page errorPage="myerror.jsp" %> 2 | <%@ page import="com.foo.bar" %> 3 | 4 | 5 | 6 | <%! int serverInstanceVariable = 1;%> 7 | 8 | <% int localStackBasedVariable = 1; %> 9 | 10 | 11 | 12 | 19 | -------------------------------------------------------------------------------- /RSyntaxTextAreaDemo/src/main/resources/org/fife/ui/rsyntaxtextarea/demo/KotlinExample.txt: -------------------------------------------------------------------------------- 1 | fun foo() { 2 | 3 | if (x) { 4 | val x: String = 'hi'; 5 | const y: Array = 'yes'; 6 | java.lang.ArrayIndexOutOfBoundsException 7 | } 8 | } 9 | -------------------------------------------------------------------------------- /RSyntaxTextAreaDemo/src/main/resources/org/fife/ui/rsyntaxtextarea/demo/LatexExample.txt: -------------------------------------------------------------------------------- 1 | \documentclass[12pt]{article} 2 | \usepackage{lingmacros} 3 | \usepackage{tree-dvips} 4 | \begin{document} 5 | 6 | \section*{Notes for My Paper} 7 | 8 | Don't forget to include examples of topicalization. 9 | They look like this: 10 | 11 | {\small 12 | \enumsentence{Topicalization from sentential subject:\\ 13 | \shortex{7}{a John$_i$ [a & kltukl & [el & 14 | {\bf l-}oltoir & er & ngii$_i$ & a Mary]]} 15 | { & {\bf R-}clear & {\sc comp} & 16 | {\bf IR}.{\sc 3s}-love & P & him & } 17 | {John, (it's) clear that Mary loves (him).}} 18 | } 19 | 20 | \subsection*{How to handle topicalization} 21 | 22 | I'll just assume a tree structure like (\ex{1}). 23 | 24 | {\small 25 | \enumsentence{Structure of A$'$ Projections:\\ [2ex] 26 | \begin{tabular}[t]{cccc} 27 | & \node{i}{CP}\\ [2ex] 28 | \node{ii}{Spec} & &\node{iii}{C$'$}\\ [2ex] 29 | &\node{iv}{C} & & \node{v}{SAgrP} 30 | \end{tabular} 31 | \nodeconnect{i}{ii} 32 | \nodeconnect{i}{iii} 33 | \nodeconnect{iii}{iv} 34 | \nodeconnect{iii}{v} 35 | } 36 | } 37 | 38 | \subsection*{Mood} 39 | 40 | Mood changes when there is a topic, as well as when 41 | there is WH-movement. \emph{Irrealis} is the mood when 42 | there is a non-subject topic or WH-phrase in Comp. 43 | \emph{Realis} is the mood when there is a subject topic 44 | or WH-phrase. 45 | 46 | \end{document} 47 | -------------------------------------------------------------------------------- /RSyntaxTextAreaDemo/src/main/resources/org/fife/ui/rsyntaxtextarea/demo/LessExample.txt: -------------------------------------------------------------------------------- 1 | @media print { 2 | foo: bar; 3 | } 4 | 5 | @the-border: 1px; 6 | @base-color: #111; 7 | @red: #842210; 8 | 9 | #header { // Stuff for the header 10 | color: @base-color * 3; 11 | border-left: @the-border; 12 | border-right: @the-border * 3; 13 | .bar { 14 | background: lighten(red, 10%); 15 | } 16 | } 17 | #footer { 18 | color: @base-color + #003300; 19 | border-color: desaturate(@red, 0%); 20 | } 21 | -------------------------------------------------------------------------------- /RSyntaxTextAreaDemo/src/main/resources/org/fife/ui/rsyntaxtextarea/demo/MarkdownExample.txt: -------------------------------------------------------------------------------- 1 | # Heading 1 2 | 3 | ## Heading 2 4 | This is markdown. 5 | This is **bold**, this is __bold__ too. 6 | This is *italicized*, this is _italicized_ too. 7 | This is ***bold-and-italicized***, and this ___as well___. 8 | This sentence has some `code in` it. 9 | For more information visit [this link](https://fifesoft.com). 10 | You can also view ![this image](/images/image.jpg title text). 11 | Here is some ~~strikethrough text~~, do you like it? 12 | Problem: test_file.html 13 | --- 14 | 15 | ``` 16 | preformatted 17 | block 18 | ``` 19 | 20 | Yet *another* comment. 21 | 22 | 23 | 24 | ```javascript 25 | preformatted 26 | block 27 | ``` 28 | 29 | > This is a 30 | >block quote 31 | 32 | * Unordered 1 33 | * Unordered 2 34 | * Sub-item 1 35 | 36 | > Nested block quote 37 | 38 | * Sub-item 2 39 | * Unordered 3 40 | 41 | 1. Ordered 1 42 | 2. Ordered 2 43 | 1. Sub-item 1 44 | 2. Sub-item 2 45 | 3. Ordered 3 46 | 47 |

Hello world!

48 | 49 |
<%= toStringOrBlank( "expanded inline data " + 1 ) %>
50 | 51 | 52 | 53 | 54 | 55 |
value 1value 2value 3
56 | -------------------------------------------------------------------------------- /RSyntaxTextAreaDemo/src/main/resources/org/fife/ui/rsyntaxtextarea/demo/NoneExample.txt: -------------------------------------------------------------------------------- 1 | unnötig unnötig unnötig unnötig unnötig unnötig unnötig unnötig unnötig unnötig unnötig unnötig unnötig unnötig unnötig unnötig unnötig unnötig unnötig unnötig unnötig unnötig unnötig unnötig unnötig unnötig unnötig unnötig unnötig unnötig unnötig unnötig unnötig unnötig unnötig unnötig unnötig unnötig unnötig unnötig unnötig unnötig unnötig unnötig unnötig unnötig unnötig unnötig unnötig unnötig unnötig unnötig unnötig unnötig unnötig unnötig unnötig unnötig unnötig unnötig 2 | -------------------------------------------------------------------------------- /RSyntaxTextAreaDemo/src/main/resources/org/fife/ui/rsyntaxtextarea/demo/PerlExample.txt: -------------------------------------------------------------------------------- 1 | #!/usr/local/bin/perl 2 | use strict; 3 | 4 | print "Hello world!\n"; 5 | 6 | # Simple regular expression recognition 7 | my $name = "Fred"; 8 | my $text = "A complicated regex example from $name"; 9 | $text =~ s/complicated/simple/; 10 | print "Text: $text\n"; 11 | -------------------------------------------------------------------------------- /RSyntaxTextAreaDemo/src/main/resources/org/fife/ui/rsyntaxtextarea/demo/PhpExample.txt: -------------------------------------------------------------------------------- 1 | 2 | 3 | 4 | 11 | 12 | 13 | 14 | 19 | 20 |

Hello world!

21 | 22 | 23 | 24 | 26 | 27 | 28 | 29 | 30 | 31 | 32 | 33 | 34 |
25 | onetwothree
value 1value 2value 3
35 | 36 | 37 | 38 | 39 | -------------------------------------------------------------------------------- /RSyntaxTextAreaDemo/src/main/resources/org/fife/ui/rsyntaxtextarea/demo/ProtoExample.txt: -------------------------------------------------------------------------------- 1 | syntax = "proto3"; 2 | package tutorial; 3 | 4 | import "google/protobuf/timestamp.proto"; 5 | 6 | option java_multiple_files = true; 7 | option java_package = "com.example.tutorial.protos"; 8 | option java_outer_classname = "AddressBookProtos"; 9 | 10 | option csharp_namespace = "Google.Protobuf.Examples.AddressBook"; 11 | 12 | option go_package = "github.com/protocolbuffers/protobuf/examples/go/tutorialpb"; 13 | 14 | message Person { 15 | string name = 1; 16 | int32 id = 2; // Unique ID number for this person. 17 | string email = 3; 18 | 19 | enum PhoneType { 20 | MOBILE = 0; 21 | HOME = 1; 22 | WORK = 2; 23 | } 24 | 25 | message PhoneNumber { 26 | string number = 1; 27 | PhoneType type = 2; 28 | } 29 | 30 | repeated PhoneNumber phones = 4; 31 | 32 | google.protobuf.Timestamp last_updated = 5; 33 | } 34 | 35 | // Our address book file is just one of these. 36 | message AddressBook { 37 | repeated Person people = 1; 38 | } 39 | -------------------------------------------------------------------------------- /RSyntaxTextAreaDemo/src/main/resources/org/fife/ui/rsyntaxtextarea/demo/PythonExample.txt: -------------------------------------------------------------------------------- 1 | import random 2 | from string import ASCII_UPPERCASE 3 | from abc import ABCMeta, abstractmethod 4 | 5 | 6 | def someFunction(argument, argument2, *args): 7 | for i in range(100): 8 | for j in range(10): 9 | x = 0 10 | while True do: 11 | x += 1 12 | if x > 10: 13 | break 14 | else: 15 | continue 16 | 17 | class Specification(metaclass=ABCMeta): 18 | @property 19 | @abstractmethod 20 | def regex(self): 21 | """ 22 | Regex used to match whatever this specification cares about. Can contain other 23 | useful groups, but _must_ contain a named group with the same name as the token, 24 | below 25 | """ 26 | pass 27 | 28 | @staticmethod 29 | def random(chars = 10): 30 | return "".join(random.choice(ASCII_UPPERCASE) for _ in range(chars)) 31 | -------------------------------------------------------------------------------- /RSyntaxTextAreaDemo/src/main/resources/org/fife/ui/rsyntaxtextarea/demo/RubyExample.txt: -------------------------------------------------------------------------------- 1 | # The Greeter class 2 | class Greeter 3 | def initialize(name) 4 | @name = name.capitalize 5 | end 6 | 7 | def salute 8 | puts "Hello #{@name}!" 9 | end 10 | end 11 | 12 | # Create a new object 13 | g = Greeter.new("world") 14 | 15 | # Output "Hello World!" 16 | g.salute 17 | -------------------------------------------------------------------------------- /RSyntaxTextAreaDemo/src/main/resources/org/fife/ui/rsyntaxtextarea/demo/RustExample.txt: -------------------------------------------------------------------------------- 1 | fn main() { 2 | let width1 = 30; 3 | let height1 = 50; 4 | 5 | println!( 6 | "The area of the rectangle is {} square pixels.", 7 | area(width1, height1) 8 | ); 9 | } 10 | 11 | fn area(width: u32, height: u32) -> u32 { 12 | width * height 13 | } 14 | -------------------------------------------------------------------------------- /RSyntaxTextAreaDemo/src/main/resources/org/fife/ui/rsyntaxtextarea/demo/SQLExample.txt: -------------------------------------------------------------------------------- 1 | SELECT * 2 | FROM Book 3 | WHERE price > 100.00 4 | ORDER BY title; 5 | -------------------------------------------------------------------------------- /RSyntaxTextAreaDemo/src/main/resources/org/fife/ui/rsyntaxtextarea/demo/TypeScriptExample.txt: -------------------------------------------------------------------------------- 1 | module foo { 2 | 3 | export class Greeter { 4 | 5 | constructor(public greeting: string) { 6 | } 7 | 8 | greet(): string { 9 | return "

" + this.greeting + "

"; 10 | } 11 | }; 12 | 13 | // This is a comment 14 | let greeter: Greeter = new Greeter("Hello, world!"); 15 | document.body.innerHTML = greeter.greet(); 16 | 17 | const name: string = 'Steve'; 18 | console.log(`string text line 1 19 | My name is ${name}, what's your's?`); 20 | } 21 | -------------------------------------------------------------------------------- /RSyntaxTextAreaDemo/src/main/resources/org/fife/ui/rsyntaxtextarea/demo/VhdlExample.txt: -------------------------------------------------------------------------------- 1 | -- An VHDL example file. 2 | -- @author DOUDOU DIAWARA 3 | 4 | ----------------------------------------------------------------------------------------------------------------------------------- 5 | -- Design : Multiplexer 4x1 6 | -- Function : Mux that selects one of several data inputs and forwards it to the output. 7 | ----------------------------------------------------------------------------------------------------------------------------------- 8 | 9 | 10 | library IEEE; 11 | use IEEE.std_logic_1164.all; 12 | use IEEE.numeric_std.all; 13 | 14 | entity Mux4_1 is 15 | generic (DataWidth : natural := 8); 16 | port( 17 | input0,input1,input2,input3 : in std_logic_vector(DataWidth-1 downto 0); 18 | sel : in std_logic_vector( 1 downto 0); 19 | output : out std_logic_vector(DataWidth-1 downto 0) 20 | ); 21 | end entity Mux4_1; 22 | 23 | architecture behaviour of Mux4_1 is 24 | 25 | begin 26 | with sel select 27 | output <= input0 when "00", 28 | input1 when "01", 29 | input2 when "10", 30 | input3 when "11", 31 | (others => '0') when others; 32 | 33 | end architecture behaviour; -------------------------------------------------------------------------------- /RSyntaxTextAreaDemo/src/main/resources/org/fife/ui/rsyntaxtextarea/demo/XMLExample.txt: -------------------------------------------------------------------------------- 1 | 2 | 3 | 4 | 5 | 6 | How to Win at Life 7 | Donald Trump 8 | 2004 9 | 10 | 11 | 12 | Coding for Dummies 13 | Nikhil Abraham 14 | 2015 15 | 16 | 17 | 18 | -------------------------------------------------------------------------------- /RSyntaxTextAreaDemo/src/main/resources/org/fife/ui/rsyntaxtextarea/demo/YamlExample.txt: -------------------------------------------------------------------------------- 1 | # sequencer protocols for Laser eye surgery 2 | --- 3 | - step: &id001 # defines anchor label &id001 4 | instrument: Lasik 2000 5 | pulseEnergy: 5.4 6 | pulseDuration: 12 7 | repetition: 1000 8 | spotSize: "1mm" 9 | 10 | - step: &id002 11 | instrument: Lasik 2000 12 | pulseEnergy: 5.0 13 | pulseDuration: 10 14 | repetition: 500 15 | spotSize: '2mm' 16 | - step: *id001 # refers to the first step (with anchor &id001) 17 | - step: *id002 # refers to the second step 18 | - step: 19 | <<: *id001 20 | spotSize: 2mm # redefines just this key, refers rest from &id001 21 | - step: *id002 -------------------------------------------------------------------------------- /RSyntaxTextAreaDemo/src/main/resources/org/fife/ui/rsyntaxtextarea/demo/bookmark.png: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/bobbylight/RSyntaxTextArea/c629b3daf3d3fa3d991354a5218d99601a56a629/RSyntaxTextAreaDemo/src/main/resources/org/fife/ui/rsyntaxtextarea/demo/bookmark.png -------------------------------------------------------------------------------- /config/checkstyle/javaHeader.txt: -------------------------------------------------------------------------------- 1 | /* 2 | -------------------------------------------------------------------------------- /config/checkstyle/rstaSuppressions.xml: -------------------------------------------------------------------------------- 1 | 2 | 3 | 6 | 7 | 8 | 9 | 10 | 11 | 12 | 13 | 14 | 15 | 16 | 17 | 18 | 19 | 20 | 21 | 22 | -------------------------------------------------------------------------------- /config/spotbugs-exclude.xml: -------------------------------------------------------------------------------- 1 | 2 | 3 | 4 | 5 | 6 | 7 | 8 | 9 | 10 | 11 | 12 | 13 | 14 | 15 | 16 | 17 | 18 | 19 | 20 | 21 | 22 | -------------------------------------------------------------------------------- /gradle.properties: -------------------------------------------------------------------------------- 1 | # Note that Maven- and signing-related properties are in /gradle.properties 2 | javaLanguageVersion=8 3 | osgiRequiredCompatibility=1.8 4 | version=3.6.1-SNAPSHOT 5 | 6 | # Ugh, see https://github.com/gradle/gradle/issues/11308 7 | systemProp.org.gradle.internal.publish.checksums.insecure=true 8 | -------------------------------------------------------------------------------- /gradle/wrapper/gradle-wrapper.jar: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/bobbylight/RSyntaxTextArea/c629b3daf3d3fa3d991354a5218d99601a56a629/gradle/wrapper/gradle-wrapper.jar -------------------------------------------------------------------------------- /gradle/wrapper/gradle-wrapper.properties: -------------------------------------------------------------------------------- 1 | distributionBase=GRADLE_USER_HOME 2 | distributionPath=wrapper/dists 3 | distributionUrl=https\://services.gradle.org/distributions/gradle-8.13-bin.zip 4 | networkTimeout=10000 5 | validateDistributionUrl=true 6 | zipStoreBase=GRADLE_USER_HOME 7 | zipStorePath=wrapper/dists 8 | -------------------------------------------------------------------------------- /settings.gradle: -------------------------------------------------------------------------------- 1 | rootProject.name = 'RSyntaxTextArea' 2 | 3 | include 'RSyntaxTextArea', 'RSyntaxTextAreaDemo' 4 | --------------------------------------------------------------------------------