blob: 8c20b7648e2717deeba1e83cef3586b30dabe3d7 [file] [log] [blame]
/*=============================================================================#
# Copyright (c) 2007, 2019 Stephan Wahlbrink and others.
#
# This program and the accompanying materials are made available under the
# terms of the Eclipse Public License 2.0 which is available at
# https://www.eclipse.org/legal/epl-2.0, or the Apache License, Version 2.0
# which is available at https://www.apache.org/licenses/LICENSE-2.0.
#
# SPDX-License-Identifier: EPL-2.0 OR Apache-2.0
#
# Contributors:
# Stephan Wahlbrink <sw@wahlbrink.eu> - initial API and implementation
#=============================================================================*/
package org.eclipse.statet.ltk.model.core;
import org.eclipse.core.runtime.IProgressMonitor;
import org.eclipse.statet.ltk.core.WorkingContext;
import org.eclipse.statet.ltk.model.core.elements.ISourceUnit;
import org.eclipse.statet.ltk.model.core.impl.SourceUnitModelContainer;
/**
*
*/
public interface IModelManager {
int NONE= 0x00_00_00_00;
int AST= 0x00_00_00_01;
int MODEL_FILE= 0x00_00_00_02;
int MODEL_DEPENDENCIES= 0x00_00_00_03;
int REFRESH= 0x01_00_00_00;
int RECONCILE= 0x02_00_00_00;
/**
* Refreshes the model info of all loaded source units in given context.
*/
void refresh(WorkingContext context);
void addElementChangedListener(IElementChangedListener listener, WorkingContext context);
void removeElementChangedListener(IElementChangedListener listener, WorkingContext context);
void registerDependentUnit(ISourceUnit su);
void deregisterDependentUnit(ISourceUnit su);
void reconcile(SourceUnitModelContainer<?, ?> adapter, int level, IProgressMonitor monitor);
}