blob: 7b4ca0cb5b2b520f4d046584090c5967ddab75c4 [file] [log] [blame]
/**********************************************************************
* This file is part of "Object Teams Development Tooling"-Software
*
* Copyright 2008 Technical University Berlin, Germany.
*
* All rights reserved. This program and the accompanying materials
* are made available under the terms of the Eclipse Public License v1.0
* which accompanies this distribution, and is available at
* http://www.eclipse.org/legal/epl-v10.html
* $Id: CompilationThreadWatcher.java 23451 2010-02-04 20:33:32Z stephan $
*
* Please visit http://www.eclipse.org/objectteams for updates and contact.
*
* Contributors:
* Technical University Berlin - Initial API and implementation
**********************************************************************/
package org.eclipse.objectteams.otdt.internal.compiler.adaptor;
import base org.eclipse.jdt.internal.compiler.ProcessTaskManager;
/**
* This team observes the ProcessTaskManager in order to extend team activation
* of sub-teams to the processingTask once it is created.
*
* @author stephan
* @since 1.2.0
*/
@SuppressWarnings("restriction")
public team class CompilationThreadWatcher
{
protected class ProcessTaskManager playedBy ProcessTaskManager
{
@SuppressWarnings("decapsulation")
Thread getProcessingThread() -> get Thread processingThread;
extendActivation <- after setConfig;
void extendActivation() {
CompilationThreadWatcher.this.activate(getProcessingThread());
}
void cleanup() <- after void run();
void cleanup() { CompilationThreadWatcher.this.deactivate(); }
}
}