Skip to main content
summaryrefslogtreecommitdiffstats
blob: 5ff97b3be538b96e5ddc204a013e31d659ff6705 (plain) (blame)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
/**
 * Copyright (c) 2008 INRIA.
 * 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
 * 
 * Contributors:
 *     INRIA - initial API and implementation
 *
 * $Id: Startup.java,v 1.2 2008/06/25 12:22:26 fjouault Exp $
 */
package org.eclipse.gmt.tcs.metadata.adhoc;

import org.eclipse.gmt.tcs.metadata.LanguageRegistry;
import org.eclipse.ui.IStartup;

/**
 * 
 * @author Frédéric Jouault
 */
public class Startup implements IStartup {

	public void earlyStartup() {
		// force traversal of all projects
		LanguageRegistry.getDefault().getLanguage("<dummy>");
		// TODO: listen to workspace changes? For instance:
//		ResourcesPlugin.getWorkspace().addResourceChangeListener(new IResourceChangeListener() {
//			public void resourceChanged(IResourceChangeEvent event) {
//				event.getDelta()...
//			}
//		}, IResourceChangeEvent.POST_CHANGE);
	}
}

Back to the top