moosetechnology / ClassNameAnalyser

MIT License
5 stars 2 forks source link

DMPackageViewModel should store the reference to a package, not the package name #7

Open olekscode opened 5 years ago

olekscode commented 5 years ago

In your DMClassViewModel you keep the reference to a class. Which is good because it will allow us to click on visualization and inspect the actual class. But we need the same for package. And then there is no need to separately store a package name. Because if you already have the reference to a package, you can just ask or its name:

self packageReference name.