Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Hide exceptions stack traces in simple NetBeans Platform based apps #97

Closed
wants to merge 1 commit into from
Closed

Hide exceptions stack traces in simple NetBeans Platform based apps #97

wants to merge 1 commit into from

Conversation

AlexFalappa
Copy link
Contributor

This PR "suppresses" the stacktraces logged by plugin when it tries to apply LAF tweaks by reflection and it does not find the java classes.
This scenario is frequent if you build simple applications based on the NetBeans Rich-Client Platform as those apps do not start with all NetBeans modules.

After applying the PR the log messages of the plugin in a typical NetBeans Platform application are reduced to:

...
INFO [com.revivius.nb.darcula.DarculaLFCustoms]: Could not tweak Darcula Look and Feel in the following classes:
    org.netbeans.modules.web.core.syntax.completion.api.JspCompletionItem (java.lang.ClassNotFoundException)
    org.netbeans.modules.editor.search.SearchBar (java.lang.ClassNotFoundException)
    org.netbeans.editor.GlyphGutter (java.lang.ClassNotFoundException)
    org.netbeans.modules.html.editor.api.completion.HtmlCompletionItem$Tag (java.lang.ClassNotFoundException)
    org.netbeans.modules.form.layoutdesign.LayoutPainter (java.lang.ClassNotFoundException)
    org.netbeans.modules.db.sql.editor.completion.SQLCompletionItem (java.lang.ClassNotFoundException)
    org.netbeans.modules.csl.editor.completion.GsfCompletionItem$CompletionFormatter (java.lang.ClassNotFoundException)
...
INFO [com.revivius.nb.darcula.Installer]: Cannot get the current editor colors profile (java.lang.ClassNotFoundException).
...

Fixes #96 and #69

@AlexFalappa
Copy link
Contributor Author

Should also fix #158

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

ClassNotFoundException at IDE start
1 participant