MessageDialog.openInformation( getSite().getShell(), "Not valid",
"The selected resource has to be part of the source folder" );
}
if ( template != null ) {
if ( getTask().getDeploy().getTemplate() == null ) {
Command cmd = new SetCommand( editingDomain, getTask().getDeploy(), DEPLOY__TEMPLATE, ParametersFactory.eINSTANCE
.createTemplate() );
if ( cmd.canExecute() ) {
cmd.execute();
}
}
Command cmd = new SetCommand( editingDomain, getTask().getDeploy().getTemplate(), TEMPLATE__FILE, template );
if ( cmd.canExecute() ) {
cmd.execute();
}
}
}
}
}