Skip to main content

[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index] [List Home]
AW: [geclipse-dev] Job creation and submission code

Hi Romain,

Just to make it clear, getProjectFolder( IGridJob.class ) is a method defined for IGridProject which is the grid model element corresponding to an IProject. So actually it is not accessible from IProject. Nevertheless you may obtain the IGridProject from the model tree by doing something like

IGridProject gProject = ( IGridProject ) GridModel.getRoot().findElement( yourIProject );

As always it may happen that the IGridProject is not yet initialised right after the creation of your IProject since the grid element tree is build asynchronously.

Cheers, Mathias

-----Ursprüngliche Nachricht-----
Von: geclipse-dev-bounces@xxxxxxxxxxx [mailto:geclipse-dev-bounces@xxxxxxxxxxx] Im Auftrag von Romain
Gesendet: Montag, 26. Mai 2008 15:58
An: Developer mailing list
Betreff: Re: [geclipse-dev] Job creation and submission code

Mariusz Wojtysiak a écrit :
> Hello Romain!
>
> Well, your snippet concerning to job submission looks good. I didn't 
> notice problems in there.
>
>
> If you created IGridProject, you would call:
How do you create a grid project. I am using:
            IWorkspaceRoot swRoot = ws.getRoot();
            project = swRoot.getProject( "myproject" );

but getProject returns an IProject.
> IFolder jobsFolder = project.getProjectFolder( IGridJob.class );
Cool, but what does that method exactly. One should have one folder by 
job, so does it creates a new folder each time?

Thank you for your help,
Romain.

_______________________________________________
geclipse-dev mailing list
geclipse-dev@xxxxxxxxxxx
https://dev.eclipse.org/mailman/listinfo/geclipse-dev


Back to the top