Skip to main content

[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index] [List Home]
Re: AW: [geclipse-dev] JSDL job description creation

Hi Romain, all,


System.out.println(jsdl.getJSDLString());

Obviously this line causes the problem.
that's true. It's already fixed - it will be working in M6 release.
Thanks, Romain, for finding this bug :)

As an explanation to hint from Neophytos (you may rememebr it from our previous mails):
There is no need to explicitly call constructor (or other creating method)
for JSDLJobDescription. In g-Eclipse there's a mechanism, that notices
each new file with jsdl extension and triggers all creation mechanisms for
it (including JSDLJobDescriptionCreator). New JSDLJobDescription object is
created and you can ask GridModel for it. It would be safer and more
simple for you to use this mechanism. To do it just replace this code:
          JSDLJobDescription jsdl = new JSDLJobDescription( file );
          jsdl.create(new JSDLJobDescriptionCreator());

with this one:
//JSDLJobDescription object was created by g-Eclipse when .jsdl file was created
          JSDLJobDescription jsdl = null;
          //...just ask GridModel for JSDLJobDescription
          IGridElement element = GridModel.getRoot().findElement( file );
//and to be on the safe side - check if you were given proper object
          if (element instanceof JSDLJobDescription){
             jsdl = ( JSDLJobDescription )element;
	  }

Good luck,
Kasia


Back to the top