AMAPstudio

User Tools


Differences

This shows you the differences between two versions of the page.

Link to this comparison view

Both sides previous revision Previous revision
Next revision
Previous revision
documentation:duplicatemodule [2018/04/24 13:03]
beudez
documentation:duplicatemodule [2018/04/24 13:07]
beudez
Line 12: Line 12:
  
 where:\\ where:\\
-- //package.name// is the package name of the initial module (module to duplicate stored in //​capsis4/​src//​ directory);​\\ +- //packagename// is the package name of the initial module (module to duplicate stored in //​capsis4/​src//​ directory);​\\ 
-- //new.package.name// and //new.prefix// are respectively the package name and the prefix of the new module (module to create in //​capsis4/​src//​ directory).+- //newpackagename// and //Newprefix// are respectively the package name and the prefix of the new module (module to create in //​capsis4/​src//​ directory).
  
 For example, the following command (on Linux/​MacOS):​ For example, the following command (on Linux/​MacOS):​
Line 25: Line 25:
 Notes:\\ Notes:\\
 - The creation of the new module requires to give new names to files (//.java// source files and //​.properties//​ translation files mainly) and classes contained in source files from the initial module.\\ - The creation of the new module requires to give new names to files (//.java// source files and //​.properties//​ translation files mainly) and classes contained in source files from the initial module.\\
-- Local variables of the initial module whose name begins with the prefix (with a lowercase first letter) are also renamed. Therefore, with the previous example, if the //​TraModel//​ class (stored in //​TraModel.java//​) contains the following instruction:​\\+- Local variables of the initial module whose name begins with the prefix (with a lowercase first letter) are also renamed.\\ 
 +Therefore, with the previous example, if the //​TraModel//​ class (stored in //​TraModel.java//​) contains the following instruction:​\\
 //TraScene traScene = (TraScene) step.getScene().getEvolutionBase();//​\\ //TraScene traScene = (TraScene) step.getScene().getEvolutionBase();//​\\
 then, the //​Tra2Model//​ class (stored in //​Tra2Model.java//​) will contain the following instruction:​\\ then, the //​Tra2Model//​ class (stored in //​Tra2Model.java//​) will contain the following instruction:​\\
 //Tra2Scene tra2Scene = (Tra2Scene) step.getScene().getEvolutionBase();//​\\ //Tra2Scene tra2Scene = (Tra2Scene) step.getScene().getEvolutionBase();//​\\
documentation/duplicatemodule.txt · Last modified: 2018/04/24 13:07 by beudez