Giter VIP home page Giter VIP logo

rstaui's Introduction

RSTAUI

Java Build Java Build

This is a library for adding the following dialogs to an application using RSyntaxTextArea as an editor:

  • Find Dialog
  • Replace Dialog
  • Find and Replace toolbars (à la Sublime Text)
  • Go to Line Dialog
  • Text File Properties Dialog (requires use of TextEditorPane)

Searching support is fully featured - regex searches, match case, whole word, searching forward and backward, mark all occurrences. Note that the actual searching functionality is handled in the RSyntaxTextArea project itself (see its SearchEngine class); this library just wraps that functionality in a UI.

Available in the Maven Central repository (com.fifesoft:rstaui:XXX). SNAPSHOT builds of the in-development, unreleased version are hosted on Sonatype.

RSTAUI is available under a modified BSD license. For more information, visit http://bobbylight.github.io/RSyntaxTextArea/.

Compiling

RSTAUI is built using Gradle. To compile the source, run all tests, and build the distribution jar, simply change into the project directory and run:

gradlew build --warning-mode all

Example Usage

A very simple example can be found in the RSTAUIDemoApp class included in this project.

Sister Projects

  • RSyntaxTextArea provides syntax highlighting, code folding, and many other features out-of-the-box.
  • AutoComplete - Adds code completion to RSyntaxTextArea (or any other JTextComponent).
  • RSTALanguageSupport - Code completion for RSTA for the following languages: Java, JavaScript, HTML, PHP, JSP, Perl, C, Unix Shell. Built on both RSTA and AutoComplete.
  • SpellChecker - Adds squiggle-underline spell checking to RSyntaxTextArea.

Getting Help

  • Add an issue on GitHub
  • Check the project's home page

rstaui's People

Contributors

bobbylight avatar kosivantsov avatar

Stargazers

 avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar

Watchers

 avatar  avatar  avatar  avatar  avatar

rstaui's Issues

AssistanceIconPanel/RegexAwareComboBox issues

This is really two separate issues, but they're kind of related, so I'll fix them at the same time.

  1. AssistanceIconPanel listens to a child JTextComponent in a JComboBox, if a combo box is the component being wrapped. On focus gained/lost of the text component, the assistance icon is shown/hidden. However, when the LookAndFeel changes, this child text component can also change. We should update our FocusListener so we keep behaving properly after runtime look and feel changes.
  2. When RegexAwareComboBox.setContentAssistImage(Image) is called, we should fire a ContentAssistable.ASSISTANCE_IMAGE event to ensure our displayed icon is properly updated.

xPath search

I love the find/replace toolbar! It saved me a lot of time having using it in my app!

I have an enhancement request, like the regex checkbox and searching, would it be difficult to put in a similar checkbox and function to evaluate xPath on a given XML document?

Mistranslation in the italian resource file

In the file <<RSTAUI/src/main/resources/org/fife/rsta/ui/search/Search_it.properties>> the item "Down" is definited as "Gi\u00e0" but this translation is wrong.
The correct translation is "Gi\u00F9".

Please modify it
Thank you

Does not export its Maven dependencies

Trying to use this in another project that is not itself using AutoComplete results in a crash due to a class not being found, because the project's pom.xml does not report its dependencies, as discussed in #16.

Wrong Event in Replace-All-Dialog

Hi guys,

in your ReplaceDialog-Class you always fire a replace-Event, not replaceAll:

Line 137: fireSearchEvent(SearchEvent.Type.REPLACE);

Wrap-around for search

Hi! I love this whole project, and I'm using it as the default editor in my OS!

Here's something I'd really want: A wrap-around for the search dialog (search above AND below caret). Not having that is just a pain.

Cheers :-)

Issues with ./gradlew install

Two issues prevent './gradlew install' from working:

  1. No group specified
  2. Signing should not be required

Signing of artifacts should still be required for uploading to Maven Central/Sonatype.

org.fife.rsta.ui.demo.RSTAUIDemoApp

Have an error during compilation:

    [javac] D:\RSTAUI\src\org\fife\rsta\ui\demo\RSTAUIDemoApp.java:187: error: cannot find symbol
    [javac]             else if (type == Type.MARK_ALL) {
    [javac]                                  ^
    [javac]   symbol:   variable MARK_ALL
    [javac]   location: class Type

Build is successful after change to:

        else if (type == SearchEvent.Type.MARK_ALL) {

Cannot compile

Running "gradle jar" on either the latest checked out git version or the latest release version (2.5.4) produces a large number of errors (symbol not found, package does not exist etc.)

Problems with find/replace dialogs

I have been using RSyntaxtTextArea for a while to give people the ability to edit snippets of Clojure in Beat Link Trigger, and now that my users are getting more ambitious in that regard, I am adopting RSTAUI as part of improving the editing experience. It’s going to be a great improvement of what is already a great editor!

I did run into what seem to be some small bugs in the Find and Replace dialogs, however, so I think I am going to omit those menu options for now, and just offer people the toolbars, which do seem to work fully, and are more compact anyway. But it might be nice to offer both options if you can fix these:

  • The Direction radio buttons in both dialogs don’t work. If I click Up, then it is selected, but when I hit the Find button it still searches in a downwards direction (and immediately switches back to having Down selected).

  • The Replace All button in the Replace dialog doesn’t work: adding logging to my SearchListener shows that it sends an ordinary REPLACE event instead of REPLACE_ALL.

Hopefully these might be easy fixes? But in any case, thanks so much for this wonderful set of libraries!

Recommend Projects

  • React photo React

    A declarative, efficient, and flexible JavaScript library for building user interfaces.

  • Vue.js photo Vue.js

    🖖 Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.

  • Typescript photo Typescript

    TypeScript is a superset of JavaScript that compiles to clean JavaScript output.

  • TensorFlow photo TensorFlow

    An Open Source Machine Learning Framework for Everyone

  • Django photo Django

    The Web framework for perfectionists with deadlines.

  • D3 photo D3

    Bring data to life with SVG, Canvas and HTML. 📊📈🎉

Recommend Topics

  • javascript

    JavaScript (JS) is a lightweight interpreted programming language with first-class functions.

  • web

    Some thing interesting about web. New door for the world.

  • server

    A server is a program made to process requests and deliver data to clients.

  • Machine learning

    Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.

  • Game

    Some thing interesting about game, make everyone happy.

Recommend Org

  • Facebook photo Facebook

    We are working to build community through open source technology. NB: members must have two-factor auth.

  • Microsoft photo Microsoft

    Open source projects and samples from Microsoft.

  • Google photo Google

    Google ❤️ Open Source for everyone.

  • D3 photo D3

    Data-Driven Documents codes.