|
IDE4Romulus Eclipse for Roma <Meta> Framework v.2.1.0 This component has been developed by Imola Informatica in cooperation with the University of L'Aquila, Department of Computer Science, Master in Web Technologies. The Roma <Meta> Framework actually supported is the v.2.1.0. For older version see below.
User Guide |
|||||||||||
<?xml version="1.0" encoding="UTF-8" standalone="no"?> <class xmlns="http://www.romaframework.org/xml/roma" xmlns:xsd="http://www.w3.org/2001/XMLSchema-instance" xsd:schemaLocation="http://www.romaframework.org/xml/roma http:// www.romaframework.org/schema/roma.xsd"> <fields> <field name="field1"> | <?xml version="1.0" encoding="UTF-8" standalone="no"?> <class xmlns="http://www.romaframework.org/xml/roma" xmlns:xsd="http://www.w3.org/2001/XMLSchema-instance" xsd:schemaLocation="http://www.romaframework.org/xml/roma http:// www.romaframework.org/schema/roma.xsd"> <fields> <field name="field1NEW"> |
@CoreClass(orderFields = "field1 field2 field3", orderActions = "doSomething") public class ClassA implements ComposedEntity<ClassB>{ @ViewField(selectionField = "entity.field1") protected int field1; → field1NEW protected int field2; protected int field3; | @CoreClass(orderFields = "field1NEW field2 field3", orderActions = "doSomething") public class ClassA implements ComposedEntity<ClassB>{ @ViewField(selectionField = "entity.field1") protected int field1NEW; protected int field2; protected int field3; |
method name refactoring
<?xml version="1.0" encoding="UTF-8" standalone="no"?> <class xmlns="http://www.romaframework.org/xml/roma" xmlns:xsd="http://www.w3.org/2001/XMLSchema-instance" xsd:schemaLocation="http://www.romaframework.org/xml/roma http:// www.romaframework.org/schema/roma.xsd"> <actions> <action name="doSomething"> | <?xml version="1.0" encoding="UTF-8" standalone="no"?> <class xmlns="http://www.romaframework.org/xml/roma" xmlns:xsd="http://www.w3.org/2001/XMLSchema-instance" xsd:schemaLocation="http://www.romaframework.org/xml/roma http:// www.romaframework.org/schema/roma.xsd"> <actions> <action name="doSomethingNEW"> |
@CoreClass(orderFields = "field1 field2 field3", orderActions = "doSomething") public class ClassA implements ComposedEntity<ClassB>{ @ViewField(selectionField = "entity.field1") protected int field1; protected int field2; protected int field3; public void doSomething(){} → doSomethingNEW | @CoreClass(orderFields = "field1NEW field2 field3", orderActions = "doSomethingNEW") public class ClassA implements ComposedEntity<ClassB>{ @ViewField(selectionField = "entity.field1") protected int field1; protected int field2; protected int field3; public void doSomethingNEW(){} |
In addition to the previous renaming features, the plug-in permits the renaming of the changed fields associated with the interface ComposedEntity.
public class ClassB { private String field1; → field1NEW private String field2; private String field3;
... }
@CoreClass(orderFields = "field1 field2 field3", orderActions = "doSomething") public class ClassA implements ComposedEntity<ClassB>{ @ViewField(selectionField = "entity.field1") protected int field1; protected int field2; protected int field3;
|
@CoreClass(orderFields = "field1 field2 field3", orderActions = "doSomething") public class ClassA implements ComposedEntity<ClassB>{ @ViewField(selectionField = "entity.field1NEW") protected int field1; protected int field2; protected int field3;
|
IDE4Romulus Eclipse Plugin also permits integration with ATP [http://www.ict-romulus.eu/web/atp4romulus].
There are two new button in the Romulus menu on the Eclipse interface:
In order to generate default persistence for the domain class, it is possible to right click on domain classes and choose command Generate Default Class Persistence in the Romulus menu.
The command will create the nodes that correspond to the field of the domain class. The customization of the xml file is delegated to the user.
It is possible to generate default I18N entries, right clicking on a domain class and choosing from the Romulus menu, the Generate Default I18N command:
Automatically, it will create the keys for fields and methods declared on the class. The user has only do personalize the entries for each key and each lenguage.
Software Requirements and Dependencies
In order to use the Roma Framework plugin for Eclipse, the following software products must be present in the environment:
Java 6 JDK [Java]
Eclipse WST: http://www.eclipse.org/webtools/wst/main.php
Eclipse JDT: http://www.eclipse.org/jdt/
Eclipse PDE: http://www.eclipse.org/pde/
Roma Framework (recommended 1.2.0 stable for info see Roma Framework web site)
Apache Maven (recommended 2.X, http://maven.apache.org/)
The source code is available on line in the the SVN (subversion) repository for Romulus Project. The url is:
Once created the directory where the source code should be stored (IDE4Romulus, for example), by using a subversion shell client, it's possible to download the project by typing:
svn co https://ict-romulus.svn.sourceforge.net/svnroot/ict-romulus/brances/IDE-Plugins/EclipsePlugin
In order to compile the source code, the Maven repository should contain the libraries from which the project depends. Unfortunately, not all the project dependencies may be resolved automatically by Maven, since there are some libraries that are not available in the online Maven repositories. In order to solve this, the libraries must be manually installed in the local Maven repository.
mvn -Declipse.workspace=<path_to_eclipse_workspace> eclipse:add-maven-repo
The output of the execution for this command depends on the distribution of the Maven plugin for Eclipse installed in the environment.
In the EclipsePlugin directory execute the command:
mvn package
The result of the building phase is the file eclipsePlugin_x.jar.
The binary distributions for IDE4Romulus are available on line in the the SVN (subversion) repository for Romulus Project. The url is:
At the moment, two versions are distributed:
The following Roma Modules have to be installed on the Eclipse distribuzion:
IDE4Romulus Eclipse Installation
The installation is completed only by copying the EclipsePlugin_x.jar in the directory:
<Eclipse_Home>\plugins
In order to test the installation, the following steps may be performed:
Run your Eclipse application.
Go to Help -> About Eclipse Platform -> Plug-in Details.
Check if an entry named “EclipsePlugin Plug-in” exists.
If so, the plugin is correctly installed, otherwise there are some problem with the plug-in dependencies.
In order to retrieve the old version on the repository, follow the following.
Note: The old version are not supported anymore. All the old versions are based on the Roma <Meta> framework v.1.2.0 which does not suite with the ATP4Romulus.
The source code is available on line in the the SVN (subversion) repository for Romulus Project. The url is:
The binary distributions for IDE4Romulus are available on line in the the SVN (subversion) repository for Romulus Project. The url is:
At the moment, two versions are distributed: