blob: 2c6ac5cd25f5eaa8f8f70d9876b140ffe4b144ef [file] [log] [blame]
/*******************************************************************************
* Copyright (c) 2016, 2019 Chalmers | University of Gothenburg, rt-labs and others.
* All rights reserved. This program and the accompanying materials
* are made available under the terms of the Eclipse Public License v2.0
* which accompanies this distribution, and is available at
* http://www.eclipse.org/legal/epl-v20.html
*
* SPDX-License-Identifier: EPL-2.0
*
* Contributors:
* Chalmers | University of Gothenburg and rt-labs - initial API and implementation and/or initial documentation
* Chalmers | University of Gothenburg - additional features, updated API
*******************************************************************************/
package org.eclipse.capra.handler.file.notification;
import org.eclipse.core.resources.ResourcesPlugin;
import org.eclipse.ui.IStartup;
/**
* Registers the startup extension to get access to resource changes.
*/
public class StartUp implements IStartup {
@Override
public void earlyStartup() {
ResourcesPlugin.getWorkspace().addResourceChangeListener(new FileChangeListener());
}
}