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 - SANS Ltd.

Pages: [1]
1
Hello,

we try to import code with std::maps from C++. We added std::map<#TYPE#,#TYPE#> in the C++ project settings as addtional collection class.

We tried to import the following test code:
Code: [Select]
class KeyType
{
public:
int m_x;
};

class ValueType
{
public:
void f();
};

class MyClass
{
public:
std::map<KeyType, ValueType> m_mapKeyValueType;
std::map<int, ValueType> m_mapIntValueType;
};

In the model we get one association MyClass ---> KeyType for m_mapKeyValueType (should be to ValueType) and no association m_mapIntValueType.
Setting all kinds of std::map<KeyType, #TYPE#> or std::map<int, #TYPE#> is not an option since there are a lot of possible key types in the project.

How sould we configure the additional collection classes for importing maps correctly?

Regards
Florian Mayer

2
Bugs and Issues / Re: Version Control Functions are disabled
« on: May 21, 2015, 06:44:49 pm »
Hi Simon,

thank you, this was exactly the point.

Regards
Florian

3
Bugs and Issues / Version Control Functions are disabled
« on: May 20, 2015, 05:48:53 pm »
Hello,

we try to check out a model from our SVN repository. We use Tortoise Git for the initial checkout and SlikSVN as SVN client for EA. Since the .eap file is also distributed through this SVN, we create a local copy of it and open it with the EA. EA asks for Version Control Settings which are entered correctly. When clicking on Save in the Version Control Setting dialog, everything seems to be fine, no error message box appears. Afterwards All entries in Project -> Version Control and in the Context Menu of the Project Explorer -> Package Control are disabled.
In Tools -> Local Directories and Paths, the path to the SVN shows up correctly.
What is wrong here?
The EA License is Corporate, as on the machine where the EA model was initially created, the EA versions are 12 from Feb. 2015

4
Hi folks,

Sparx provided a solution for this issue:
http://blog.sparxsystems.de/2015/05/2222/

Regards
Florian

5
Is there a way to do a "Get All Latest" through the COM API?
Package supports the updating against a VCS repo, but Package.Update() fails with "Element Locked" after calling Package.VersionControlGetLatest(). So new sub-packages are not read. We tried to call "GetLatest" Recursively on all packages which are stored in separate XMI files.

Here is what we tried so far (from Windows Script Host, the rest of our tool runs fine):

Code: [Select]
function updatePackage(package, parentName) {
    if (package.IsControlled) {
        WScript.Echo("Updating " + parentName + "::" + package.Name + " to SVN state.");
        package.VersionControlGetLatest (/* boolean ForceImport */ true);
        repository.ScanXMIAndReconcile();
        repository.RefreshModelView(package.PackageID);
        package.Update();
    }
          
    var childPackageEnumerator = new Enumerator(package.Packages);
    while ( !childPackageEnumerator.atEnd() ) {
        var childPackage = childPackageEnumerator.item();
        updatePackage(childPackage, parentName + "::" + package.Name);
        childPackageEnumerator.moveNext();
    }
}

...

    var modelEnumerator = new Enumerator(repository.Models);
    while ( !modelEnumerator.atEnd() ) {
        var currentModel = modelEnumerator.item();
        updatePackage(currentModel, "");
        modelEnumerator.moveNext();
    }
    repository.ScanXMIAndReconcile();
    repository.RefreshModelView(0);

Pages: [1]