mbien opened a new pull request, #7333:
URL: https://github.com/apache/netbeans/pull/7333

   extracted some fixes and improvement from a cleanup branch, would be cool if 
we could get this into NB 22 still.
   
   jackpot hint support improvements
   
    - `source-level` option does now understand the new java version scheme
    - use reasonable source level default
    - optional `%%` token allows marking the end of a test
    - register run-single action to hint file editor
    - log file parsing errors
   
   update declarative hint templates
   
    - register hint file templates and descriptions
    - add file icon
    - add template for hint tests
   
   demonstrates usecase for `%%` (without it, there couldn't be any space 
between test cases):
   
![image](https://github.com/apache/netbeans/assets/114367/bc968474-14fb-4c46-80e5-2047e4ff1e73)
   
   file templates:
   
![image](https://github.com/apache/netbeans/assets/114367/33b0e5ec-d897-4e34-bb25-60259facf43d)
   
   file icons:
   
![image](https://github.com/apache/netbeans/assets/114367/864809cb-0f47-4f7c-ae67-276fc7373b32)
   
   run file action in editor:
   
![image](https://github.com/apache/netbeans/assets/114367/1b19da35-ecb1-4d07-8d54-4d30bf261aa6)
   
   
   hint template:
   ```java
   <!description="Sample Inspection">
   
   // see https://netbeans.apache.org/jackpot/HintsFileFormat
   
   "use System.out for Hello World":
   System.err.println("Hello World!");
   =>
   System.out.println("Hello World!");
   ;;
   ```
   the hint test template matches to the hint template:
   ```java
   %%TestCase hint-test-case
   package test;
   public class TestClass {
       private static void foo() {
           System.err.println("Hello World!");
       }
   }
   %%=>
   ```


-- 
This is an automated message from the Apache Git Service.
To respond to the message, please log on to GitHub and use the
URL above to go to the specific comment.

To unsubscribe, e-mail: [email protected]

For queries about this service, please contact Infrastructure at:
[email protected]


---------------------------------------------------------------------
To unsubscribe, e-mail: [email protected]
For additional commands, e-mail: [email protected]

For further information about the NetBeans mailing lists, visit:
https://cwiki.apache.org/confluence/display/NETBEANS/Mailing+lists

Reply via email to