uqbar-project / wollok

Wollok Programming Language
GNU General Public License v3.0
60 stars 16 forks source link

[static-diagram] Show classes referenced by the current classes/objects being shown on the editor #345

Closed javierfernandes closed 7 years ago

javierfernandes commented 9 years ago

Currently the editor only shows the classes/objects declared on the current open file (in the editor). I would like it also to show those classes/objects internally referenced by the code. For example

class A extends X {    // x declared in another file

    method createFoo() = new Foo("blah")  // Foo also from another file
}

class B extends A {  
   method doSomething() {
       birdman.fly()           // birdman is a WKO defined in another file
   }
}

This must show:

Maybe they should be shown with a different style to differentiate them.

fdodino commented 8 years ago

@javierfernandes Can we close this issue, and open a new one for Static Diagram with a DSL? So that students should be responsible for communicating

npasserini commented 8 years ago

Why a DSL? You are introducing a new language to be learned, it will distract your students.

I have two alternate proposals: 1) Use wollok game to create a diagram builder... the challenge is how to do it without metaprogramming, :-) 2) Allow the student to create and customize diagrams from the UI, without DSLs.

On Mon, Jul 25, 2016 at 8:13 PM, Fernando Dodino notifications@github.com wrote:

@javierfernandes https://github.com/javierfernandes Can we close this issue, and open a new one for Static Diagram with a DSL? So that students should be responsible for communicating

  • which relations
  • which variables
  • which methods are important.

— You are receiving this because you are subscribed to this thread. Reply to this email directly, view it on GitHub https://github.com/uqbar-project/wollok/issues/345#issuecomment-235036253, or mute the thread https://github.com/notifications/unsubscribe-auth/AEa1OYBT3aqeRAollmSSgGfuSnqS9_DTks5qZPzIgaJpZM4GSpqK .

fdodino commented 8 years ago

Hmm... I buy it because certain relations would be the same as Wollok. I like 2) just because I haven't seen Wollok Game yet. I'll continue in #844