Project

General

Profile

fix-method-names-inconsistency.diff

Vladimir Tsichevski, 05/20/2022 04:39 PM

Download (3.3 KB)

View differences:

rules/convert/methods_attributes.rules 2022-05-20 19:47:20 +0000
4105 4105
               </rule>
4106 4106

  
4107 4107
               <rule>ftype == prog.kw_mov_a_t
4108
                  <action>methodText = "moveAfterTab"</action>
4108
                  <action>methodText = "moveAfterTabItem"</action>
4109 4109
               </rule>
4110 4110

  
4111 4111
               <!-- UI method support -->
src/com/goldencode/p2j/ui/CommonFrame.java 2022-05-20 19:49:41 +0000
3292 3292
    *
3293 3293
    * @return  <code>true</code> if operation was successful.
3294 3294
    */
3295
   public boolean moveAfterTab(GenericWidget<?> widget);
3295
   public boolean moveAfterTabItem(GenericWidget<?> widget);
3296 3296

  
3297 3297
   /**
3298 3298
    * Executes the validation tests for every supported field-level widget
src/com/goldencode/p2j/ui/CommonWidget.java 2022-05-20 19:51:26 +0000
766 766
    * @return  <code>true</code> if operation was successful.
767 767
    */
768 768
   @LegacyMethod(name = "MOVE-AFTER-TAB-ITEM")
769
   public logical moveAfterTab(CommonWidget widget);
769
   public logical moveAfterTabItem(CommonWidget widget);
770 770

  
771 771
   /**
772 772
    * This method implements MOVE-AFTER-TAB function.
......
777 777
    * @return  <code>true</code> if operation was successful.
778 778
    */
779 779
   @LegacyMethod(name = "MOVE-AFTER-TAB-ITEM")
780
   public logical moveAfterTab(handle widget);
780
   public logical moveAfterTabItem(handle widget);
781 781

  
782 782
   /**
783 783
    * This method implements MOVE-TO-BOTTOM function.
src/com/goldencode/p2j/ui/GenericFrame.java 2022-05-20 19:49:41 +0000
8343 8343
    * @return  <code>true</code> if operation was successful.
8344 8344
    */
8345 8345
   @Override
8346
   public boolean moveAfterTab(GenericWidget<?> widget)
8346
   public boolean moveAfterTabItem(GenericWidget<?> widget)
8347 8347
   {
8348 8348
      UnimplementedFeature.missing("MOVE-AFTER-TAB method not implemented");
8349 8349
      return false;
src/com/goldencode/p2j/ui/GenericWidget.java 2022-05-20 19:51:27 +0000
3471 3471
    * @return  <code>true</code> if operation was successful.
3472 3472
    */
3473 3473
   @Override
3474
   public logical moveAfterTab(CommonWidget widget)
3474
   public logical moveAfterTabItem(CommonWidget widget)
3475 3475
   {
3476 3476
      if (!getParent().equals(widget.getParent()))
3477 3477
      {
......
3497 3497
    * @return  <code>true</code> if operation was successful.
3498 3498
    */
3499 3499
   @Override
3500
   public logical moveAfterTab(handle widget)
3500
   public logical moveAfterTabItem(handle widget)
3501 3501
   {
3502 3502
      if (widget == null || !widget._isValid() || widget.isUnknown())
3503 3503
      {
......
3508 3508
         return new logical(false);
3509 3509
      }
3510 3510
      
3511
      return moveAfterTab(widget.unwrapWidget());
3511
      return moveAfterTabItem(widget.unwrapWidget());
3512 3512
   }
3513 3513

  
3514 3514
   /**