Book a Demo

Show Posts

This section allows you to view all posts made by this member. Note that you can only see posts made in areas you currently have access to.


Messages - idof

Pages: [1] 2
1
General Board / Re: How do I declare a static class ?
« on: February 08, 2006, 12:43:33 am »
Hi Simon,
Thanks for the sample.
I've taken it a bit further and declared the "static" tag value as boolean, and to make it work in the template I just upper-cased the T in "true"

Thanks,
Ido.

2
General Board / Re: How do I declare a static class ?
« on: February 07, 2006, 01:28:43 am »
Hi Simon.
As you said, the c# conventions is not very helpfull, but I did find the "tagged values" tab and created a new value called "static".

I'd appreciate if you can direct me to information about how to use tagged values in code generation templates (I have no problem changing the template myself, since I already added some lines there to support c# attributes)

Thanks,
Ido.

3
General Board / How do I declare a static class ?
« on: February 06, 2006, 08:34:43 am »
I'm adding a c# class and I want to mark it as static, so when it's generated, it will be generated with the word "static" in it's declaration.

Is there a way to specify for a class that it is static ?

Ido.

4
General Board / Re: Exporting code generator templates
« on: February 08, 2006, 04:33:02 am »
Thanks, it works !!

Ido.

5
General Board / Re: Exporting code generator templates
« on: February 07, 2006, 07:43:43 am »
Quote
Hi Ido,

look into menu Tools > Export Reference Data.

Hope this helps!
Bruno



I Bruno,
Thanks, I've found it about 2 minutes after I posted my message.
But I didn't find how to export tagged values I've built. any ideas ?

Ido.

6
General Board / Exporting code generator templates
« on: February 07, 2006, 07:09:18 am »
Hi all,
In my model, I've added some features to the code generator to support some of the needs I have in my project.
Now I want to give those templates to other projects so they may use them to generate their code from their mode.

Is there a way to export the code generator templates ?

Thanks,
Ido.

7
General Board / Re: namespace alias in parameters - c#
« on: February 07, 2006, 12:23:30 am »
Hi,
I tried doing that but what happened is this:
1. I've created a new method (operation)
2. Pressed the parameters button
3. Added patameters with aliases
4. Saved the operation info
So far it works, but ... :
5. Changed the name of the operation
6. pressed "save" again
In the second save, the EA automatically removes the aliases from the parameters, even though I haven't touched that field.

8
General Board / namespace alias in parameters - c#
« on: February 06, 2006, 09:09:20 am »
Hi all,
I use namespace alias if c# to specify alternative names for my namespaces in the code.
When I add an operation to a class and state that the parameter type of the parameters is myAlias.myType, everything works ok, but when I press the "save" button, the "myAlias" is deleted, probably because "myType" is recognized by EA (since I've added this class to the package).
Is there a way to make it stick so I won't have to fix the code every time it's generated ?

Thanks,
Ido.

9
Hmm, getting right on it ...

Thanks for the tip.

Ido.

10
I'm still having this problem !!
Any ideas ?
The problem won't be solve by itself !!

Thanks,
Ido.

11
I have a solution in vs 2005 that contains 6 class library projects and 2 web sites.
When I create a new uml model and try to link a package to a project, the list that opens shows all the class libraries, but only one of the web sites (actually, it's always the same web site as if the second web site does not exist in the solution).

Any ideas ?

Will the .sln file be of any use if I upload it to the forum ? (not that there is such an option)

Thanks in advance,
Ido.

12
Quote
Hi,

Short Answer: Does not go


Oliver  ;)


Hi Oliver,
Actually, I found out that if I use EA to do the synchronization, I can specify that I want to reverse engineer the code, and that way, I'm not required to check out my files (so the quick answer should be : don't use MDG, use EA directly).

Ido.

13
Hi all,
I've had a model for my application, which I haven't synchronized in a long time with my code.
When I try to synchronize it with the code I get a message that I have no permissions.
As it seems - the message is shown because the file is read only (and that is because the file is source controled and is checked-in).

How can I synchronize my code one-way (rebuild model according to the code) without checking out all my files ?

Thanks,
Ido.

14
Automation Interface, Add-Ins and Tools / Any ideas ?? Anyone ??
« on: January 07, 2006, 09:36:03 am »
I'm using the beta version of MDG for VS 2005, if it makes any difference ...

:(


15
An update :
The previous message was written in my office, where I tried today to install the MDG.
I've returned to my home, where I've installed both EA 6 & MDG for the vs 2005 this last Friday (December 30th), and tried to open the solution which I've worked on Friday, and to my surprise - I got the same message !!

I've also received the following error message :

System.ArgumentException: Item has already been added. Key in dictionary: '1595826322'  Key being added: '1595826322'
  at System.Collections.Hashtable.Insert(Object key, Object nvalue, Boolean add)
  at System.Collections.Hashtable.Add(Object key, Object value)
  at Microsoft.VisualStudio.Shell.Package.CreateToolWindow(Type toolWindowType, Int32 id, ProvideToolWindowAttribute tool)
  at Microsoft.VisualStudio.Shell.Package.CreateToolWindow(Type toolWindowType, Int32 id)
  at Microsoft.VisualStudio.Shell.Package.FindToolWindow(Type toolWindowType, Int32 id, Boolean create, ProvideToolWindowAttribute tool)
  at Microsoft.VisualStudio.Shell.Package.FindToolWindow(Type toolWindowType, Int32 id, Boolean create)
  at Vsip.VSIntegrate.s.g()

Pages: [1] 2