Versions Compared

Key

  • This line was added.
  • This line was removed.
  • Formatting was changed.

Anchor
A18.3.2
A18.3.2
We first create a package named 'com.example.pmsquare' for the plugin classes. This is done by right clicking the 'src/main/java' folder and selecting new->package

Anchor
F496
F496
Figure 489496: create a package named 'com.example.pmsquare' for the plugin classes



Image Added

...

Anchor

...

F497
Image Removed
F497
Figure 490497: Write com.example.pmsquare in the dialog that appears

Anchor
F498
F498
Figure 491498: Remember to have the “Compact Empty Middle Packages” unchecked in the view settings  , so that you can see the tree structure

Anchor
F499
F499
Figure 492499: On the PMSsquare folder now right click again to create a java class called PMSquare


Image Added

Anchor
 
F500
Image Removed
F500
Figure 493500: create a java class called PMSquare

...


Figure 494

Anchor
F501
F501
Figure 501: Make PMSquare class implement PropagationModelPlugin
(and auto implement the needed methods

Anchor
F502
F502
Figure 495502: Press ALT + enter (on PC)

...


Anchor
F503
F503
Figure 496503: Select “implement methods” to auto implement the interface

Anchor
F504
F504
Figure 497504: Results of the auto implementation

 

...