Seite 1 von 1

Exercise 10

Verfasst: 8. Jul 2010 16:25
von monperrus
Hi all,

Exercise #10 can be found here:
http://cage.st.informatik.tu-darmstadt. ... latt10.pdf

Best regards,

--Martin

Re: Exercise 10

Verfasst: 8. Jul 2010 17:34
von monperrus
Hi all,

The slides of the corresponding lecture are at:
:arrow: http://cage.st.informatik.tu-darmstadt. ... ture11.pdf

Best regards,

--Martin

Re: Exercise 10

Verfasst: 11. Jul 2010 15:44
von Osterlaus
How do you get rid of the framing code

Code: Alles auswählen

public class Swing {
  public static void main(  String[] args){
    [ already transformed JS ]
  }
}
I tried some functions for SingleVariableDeclaration, SimpleName (using an if-block to check if this is a subnode of a type declaration) and Modifier, but they do not look very healthy as they could be too specialized onto this example..... Or can we just leave this un-transformed?

Re: Exercise 10

Verfasst: 13. Jul 2010 10:02
von monperrus
Hi,

The framing code can be removed by playing with TypeDeclaration, etc.. It is not required to transform it.
But initiatives are always welcome.

--Martin

Re: Exercise 10

Verfasst: 13. Jul 2010 10:09
von Osterlaus
monperrus hat geschrieben:The framing code can be removed by playing with TypeDeclaration, etc.. It is not required to transform it.
But initiatives are always welcome.
Well, as my first trys were not that nice, I'd rather leave the framing code as it is :)

Re: Exercise 10

Verfasst: 13. Jul 2010 10:13
von monperrus
Hi all,

For the optional part, here is a YUI snippet to put a button into a tab:

Code: Alles auswählen

tab1.set("content",button.get('innerHTML'));
Note that this does not add the button to the tab, but replaces its content.

Best regards,

--Martin

Re: Exercise 10

Verfasst: 16. Jul 2010 17:59
von monperrus
Hi all,
Grades for exercise #10 are checked-in.
Best regards,
--Martin

Re: Exercise 10

Verfasst: 17. Jul 2010 08:41
von Tigger
monperrus hat geschrieben:Hi all,
Grades for exercise #10 are checked-in.
Best regards,
--Martin
Not for us :(
group001
We don't have a "grades" in our sheet10/ folder.

Re: Exercise 10

Verfasst: 17. Jul 2010 10:44
von Osterlaus
+1: group0001 is also without grade :(