Package org.eclipse.cdt.managedbuilder.llvm.util

Source Code of org.eclipse.cdt.managedbuilder.llvm.util.ProjectIndex

/*******************************************************************************
* Copyright (c) 2011-2013 Nokia Siemens Networks Oyj, Finland.
* 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:
*      Nokia Siemens Networks - initial implementation
*      Petri Tuononen - Initial implementation
*******************************************************************************/
package org.eclipse.cdt.managedbuilder.llvm.util;

import org.eclipse.cdt.core.CCorePlugin;
import org.eclipse.cdt.core.model.CoreModel;
import org.eclipse.cdt.core.model.ICProject;
import org.eclipse.core.resources.IProject;

public class ProjectIndex {

  /**
   * Rebuilts the index of the selected project in the workspace.
   */
  public static void rebuiltIndex(IProject proj) {
    ICProject cproject = CoreModel.getDefault().getCModel().getCProject(proj.getName());
    CCorePlugin.getIndexManager().reindex(cproject);
  }
 
}
TOP

Related Classes of org.eclipse.cdt.managedbuilder.llvm.util.ProjectIndex

TOP
Copyright © 2018 www.massapi.com. All rights reserved.
All source code are property of their respective owners. Java is a trademark of Sun Microsystems, Inc and owned by ORACLE Inc. Contact coftware#gmail.com.