Bob,
   
  >If you registered it by Model then pick it back out by Model (like
>below, typed freehand it may notbe exactly correct)
  
>dppm=(DepthsPropPanelModel)solutionTab.getPanel(Model.getFacade().getMetaTypes().getModel());
   
  It seems that this can't solve my problem. I have tried it but it seems that 
Facade does not have getMetaTypes() method. 
  
I have tried something like this 
  
dppm=(DepthsPropPanelModel)solutionTab.getPanel(Model.getMetaTypes().getModel().getClass());
 
but the problem remains.
  
I also think that this is wrong direction because this Model class is 
org.argouml.model.Model, and panel is keyed by 
org.omg.uml.modelmanagement.Model$Impl. 
  
I do not initialize it explicitely in my code. It is initialized by ArgoUML 
system when user selects Model root package.
   
  I have tried 
dppm=(DepthsPropPanelModel)solutionTab.getPanel(org.omg.uml.modelmanagement.Model.class);
  but nothing.
   
  >I'm concerned that you seem to be cutting and pasting lots of ArgoUML
>code for your solution. Far better would be to describe your problem
>and suggest how ArgoUML can be adapted to provide more use for your
>plugin.
   
  I think you are right. It looks like good idea to start it from beggining, 
but I don't understand very well how does the initialization of these tabs and 
panels functions  in ArgoUML. That's the reason why I have decided to use 
existing code.
  
What I'm trying to do is to create one tab that describes the whole software 
solution, and will be available all the time regardless the currently selected 
item or diagram. It should contains few text areas. When user selects a menu 
item (that I have added to the main menu), these data from the text areas 
should be passed to the remote server. 
I would appreciate if you can suggest me how to make this on some siplier way 
than I have used now.
   
  Zoran


Bob Tarling <[EMAIL PROTECTED]> wrote:
  2008/4/24 Zoran Jeremic :
> I have re-used existing ArgoUML classes to develop my
> classes, so that's the reason why some variables are
> naming c, p, pp. All the methods that I have used
> looks the same at ArgoUML's classes that I have used.
> I didn't change them.
Hmm, looks like we have some tidying up to do.


I can only repeat what I said before. You are adding a panel keyed by
a model element but then you are trying to get it with a different key
here

dppm=(DepthsPropPanelModel)solutionTab.getPanel(DepthsPropPanelModel.class);

If you registered it by Model then pick it back out by Model (like
below, typed freehand it may notbe exactly correct)

dppm=(DepthsPropPanelModel)solutionTab.getPanel(Model.getFacade().getMetaTypes().getModel());


I'm concerned that you seem to be cutting and pasting lots of ArgoUML
code for your solution. Far better would be to describe your problem
and suggest how ArgoUML can be adapted to provide more use for your
plugin.

Bob.

---------------------------------------------------------------------
To unsubscribe, e-mail: [EMAIL PROTECTED]
For additional commands, e-mail: [EMAIL PROTECTED]



       
---------------------------------
Be a better friend, newshound, and know-it-all with Yahoo! Mobile.  Try it now.

Reply via email to