/*
* List of created target schemas.
*/
Map<String, Schema> targetSchemas = new HashMap<String, Schema>();
Project targetProject = Activator.getDefault().getProjectsHandler().getOpenProject();
// merge all source objects to the target project
for ( Object sourceObject : sourceObjects )
{
if ( sourceObject instanceof Project )
{
Project sourceProject = ( Project ) sourceObject;
for ( Schema sourceSchema : sourceProject.getSchemaHandler().getSchemas() )
{
Schema targetSchema = getTargetSchema( sourceSchema.getProject(), targetProject, targetSchemas );
mergeSchema( sourceSchema, targetProject, targetSchema, processedObjects, errorMessages,
replaceUnknownSyntax, mergeDependencies, pullUpAttributes );
}