Versions Compared

Key

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

...

  1. Click on the Extensions tab and click the Add... button
  2. In the New Extension wizard that opens, search for ncsa.analysis.newAnalyses, select it and click Finish.
  3. After adding the extension point, if Eclipse did not add blank new analysis, right click on the extension point and select New > analysis
  4. The next step is to fill in the required parts for the new analysis. Enter the following information
    • id: ncsa.maeviz.building.example.analysis.buildingSoilAnalysis
    • name: Building Soil Analysis
    • tag: buildingSoilAnalysis
    • category: My-Buildings
  5. The final requirement is a descriptor. I recommend creating a new folder inside your plug-in called descriptions and adding a new file called BuildingSoilAnalysis.xml that we will fill in later. After creating this file, you will need to specify it in the descriptor field of your new analysis. You should now have a something similar to the image below:

The next step is to create a new analysis task. This is the Java code that will be executed by the new analysis to produce our building soil analysis output. To create a new task, do the following:

  1. Click on the Extensions tab and click the Add... button
  2. In the New Extension wizard that opens, search for ncsa.tools.ogrescript.ogreTasks, select it and click Finish.
  3. After adding the extension point, right click on it and select New > ogreTasks.
  4. For the new analysis task, enter the following details
    • id: ncsa.maeviz.building.example.task.BuildingSoilTask
    • name: Building Soil Task
    • tag: buildingSoilAnalysis
    • class: ncsa.maeviz.building.example.task.BuildingSoilTask
      Image Added

It is critical that the tag for the Task be identical to the tag for the analysis since this is how MAEviz determines which task goes with which analysis. After entering the text for the class field, if you click on the class, a source file will be generated for you. Where it says Superclass locate the class called SimpleFeatureTask and click Finish. You should see a wizard similar to the one below:
Image Added

Example Plug-in

You can download the example plug-in that contains everything in the tutorial by doing the following: