Hello, I am working with a module made by someone else which uses a custom model to perform some calculations. The data for the calculations are stored in the TagDefinitionSet for each of the elements in the diagram.
I have been asked to provide a means to edit these values easier by providing a popup box, pretty much I am looking for a way to either double click and open the tagdefinitionset editor, or develop my own editor which would access the information I need.
What I was wanting to know is it possible to even extend StarUML so that I can implement this functionality. I've read through the documentation and I can't find a solution to my problem, any help would be gratefully appreciated.
If you would like to refer to this comment somewhere else in this project, copy and paste the following link:
You should be able to create a script (in Javascript or VB Script) or a compiled plugin if needed that accesses StarUML through the Open API interface and manipulates TagDefinitionSet objects through the interfaces ITagDefinitionSet or ITagDefinition.
Take a look at: http://staruml.sourceforge.net/docs/api-doc/index.html
Also search for files under the StarUML dir with .js or .vbs extensions for examples of scripts accessing StarUML through the Open API interface.
If you would like to refer to this comment somewhere else in this project, copy and paste the following link:
I might be a little confused with your response. I have already implemented the maths which manipulates the values stored in the TagDefinitionSets using the Open API.
What I am looking for is a way to make inputting the values into the tag definitions easier for the user. Having another editor like the "Properties Editor" on the right hand side for example would be ideal and I'm surprised they don't have one. I however can't find a method to do this without diving into the StarUML source which I'm trying to avoid.
If you would like to refer to this comment somewhere else in this project, copy and paste the following link:
With having access to ITagDefinitionSet you might create your own Tag Definition editor in the plugin but you do not mention why the standard tag editor (Ctrl+F7) is not suitable for your needs.
If you would like to refer to this comment somewhere else in this project, copy and paste the following link:
The person I am developing this for has requested I look at implementing a 'less cumbersome' way of inputting the data into the tagdefinitionset lists. I myself have found no issue using the standard tag editor to input the data but since this isn't for me I'm trying to look for alternatives.
If you would like to refer to this comment somewhere else in this project, copy and paste the following link:
I think there is not much difference between Property Editor and Tagged Value Editor but if your plugin module is using some specific data the editor could be adapted for that. You also should consider at first extending the plugin module instead of StarUML. Depending on what language it is coded in you should be able to code and display some editor as a part of the plugin and update StarUML data through the ITagDefinitionSet interface. You may even create a separate plugin to handle just that. I think there are some StarUML plugins with GUI elements around to look at.
If you would like to refer to this comment somewhere else in this project, copy and paste the following link:
Hello, I am working with a module made by someone else which uses a custom model to perform some calculations. The data for the calculations are stored in the TagDefinitionSet for each of the elements in the diagram.
I have been asked to provide a means to edit these values easier by providing a popup box, pretty much I am looking for a way to either double click and open the tagdefinitionset editor, or develop my own editor which would access the information I need.
What I was wanting to know is it possible to even extend StarUML so that I can implement this functionality. I've read through the documentation and I can't find a solution to my problem, any help would be gratefully appreciated.
You should be able to create a script (in Javascript or VB Script) or a compiled plugin if needed that accesses StarUML through the Open API interface and manipulates TagDefinitionSet objects through the interfaces ITagDefinitionSet or ITagDefinition.
Take a look at:
http://staruml.sourceforge.net/docs/api-doc/index.html
Also search for files under the StarUML dir with .js or .vbs extensions for examples of scripts accessing StarUML through the Open API interface.
Thank you for your reply.
I might be a little confused with your response. I have already implemented the maths which manipulates the values stored in the TagDefinitionSets using the Open API.
What I am looking for is a way to make inputting the values into the tag definitions easier for the user. Having another editor like the "Properties Editor" on the right hand side for example would be ideal and I'm surprised they don't have one. I however can't find a method to do this without diving into the StarUML source which I'm trying to avoid.
With having access to ITagDefinitionSet you might create your own Tag Definition editor in the plugin but you do not mention why the standard tag editor (Ctrl+F7) is not suitable for your needs.
The person I am developing this for has requested I look at implementing a 'less cumbersome' way of inputting the data into the tagdefinitionset lists. I myself have found no issue using the standard tag editor to input the data but since this isn't for me I'm trying to look for alternatives.
I think there is not much difference between Property Editor and Tagged Value Editor but if your plugin module is using some specific data the editor could be adapted for that. You also should consider at first extending the plugin module instead of StarUML. Depending on what language it is coded in you should be able to code and display some editor as a part of the plugin and update StarUML data through the ITagDefinitionSet interface. You may even create a separate plugin to handle just that. I think there are some StarUML plugins with GUI elements around to look at.