Skip to content

Conversation

@JaroslavTulach
Copy link

@JaroslavTulach JaroslavTulach commented Dec 7, 2021

HTML/Java API has recently released its 1.7.3 version which (among other) gives proper OSGi bundle names to its modules. Former generic module is now org.netbeans.html.presenters.spi. Time to upgrade.

When at it, I am also splitting the api.htmlui module to two parts. The goal is to move the JavaFX WebView based implementation into its own module and allow the API to be used without it. That's all built around HTMLViewerSpi interface. 40f460e adds a fallback implementation of the SPI interface that warns the user gracefully.

Also, to satisfy old @dbalek request, I am introducing OnSubmit callback that, allows validation of the state of the dialog before it is closed.

The commit c182fc3 modifies nbjunit module. I tried to use MockServices in TestNG without depending on JUnit4 and was getting linkage errors. Replacing the exceptions with java.lang.AssertionError fixes the problems.

This PR is the first in a line of others. The ultimate goal is to get Rich HTML UI for (now only for) VSCode Refactorings as outlined in #3349 into NetBeans and its VSCode extension.

@JaroslavTulach JaroslavTulach added the API Change [ci] enable extra API related tests label Dec 7, 2021
@JaroslavTulach JaroslavTulach added this to the NB13 milestone Dec 7, 2021
@JaroslavTulach JaroslavTulach self-assigned this Dec 8, 2021
Copy link
Contributor

@dbalek dbalek left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Proposed API looks fine to me.

Copy link
Contributor

@lkishalmi lkishalmi left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Well, skimming through, I've not found anything wrong with this.

Copy link
Member

@neilcsmith-net neilcsmith-net left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

As with @lkishalmi I have only skimmed through. Seems a good idea. I would happily see the back of all HTML dialogs in the IDE though!

@JaroslavTulach JaroslavTulach merged commit 9161609 into apache:master Dec 8, 2021
JaroslavTulach pushed a commit to JaroslavTulach/netbeans that referenced this pull request Dec 8, 2021
JaroslavTulach pushed a commit to JaroslavTulach/netbeans that referenced this pull request Dec 10, 2021
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

API Change [ci] enable extra API related tests

Projects

None yet

Development

Successfully merging this pull request may close these issues.

5 participants