From Optflux
Jump to: navigation, search

Warning: You are not logged in. Your IP address will be publicly visible if you make any edits. If you log in or create an account, your edits will be attributed to your username, along with other benefits.

The edit can be undone. Please check the comparison below to verify that this is what you want to do, and then save the changes below to finish undoing the edit.
Latest revision Your text
Line 434: Line 434:
  
 
If everything went well, we should now be able to run OptFlux using the [[Developers_First_Plugin#Creating_a_Run_Configuration_to_run_OptFlux_from_within_Eclipse | previously defined Run Configuration]] and test our new Operation:
 
If everything went well, we should now be able to run OptFlux using the [[Developers_First_Plugin#Creating_a_Run_Configuration_to_run_OptFlux_from_within_Eclipse | previously defined Run Configuration]] and test our new Operation:
 
=== Testing the new operation ===
 
 
* After running OptFlux, we should now be able to see a new operation in the menu:
 
*: [[Image:complex1.png]]
 
* The Input dialog for the new operation is generated and we will use it with the options depicted bellow:
 
*: [[Image:complex2.png]]
 
* We can now observe the Clipboard containing an instance of our '''MyComplexDatatype''':
 
*: [[Image:complex3.png]]
 
** Notice the structure of the complex datatype being reflected in the Clipboard. The instance contains three levels at the root:
 
*** An ''Operation'' of the type: OperationEnumeration;
 
*** A ''List of Elements'' of the type: MyListDatatype;
 
**** The list of elements list all the instances of ''MySimpleDatatype'' therein contained;
 
*** A ''Result'' of the type: MySimpleDatatype;
 
** This structure perfectly reflects the one that we defined in the Java code. This structure can be as complex as the programmer wishes.
 
* Finally by pressing one of the instances of ''MySimpleDatatype'' in the Clipboard, the new View will be launched in the right panel. You can see that the default view is also there. The programmer can add as many different views as desired to a given Datatype
 
*: [[Image:complex4.png]]
 

Please note that all contributions to Optflux may be edited, altered, or removed by other contributors. If you do not want your writing to be edited mercilessly, then do not submit it here.
You are also promising us that you wrote this yourself, or copied it from a public domain or similar free resource (see Optflux:Copyrights for details). Do not submit copyrighted work without permission!

Cancel | Editing help (opens in new window)