blob: 25347c39137c78bd063a6ca4065dfe6ce6598084 [file] [log] [blame]
/*
* Copyright (c) 2011 Google Inc.
*
* 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
*/
package com.google.eclipse.protobuf.ui.scoping;
import org.eclipse.emf.common.util.URI;
import com.google.eclipse.protobuf.util.Uris;
/**
* @author alruiz@google.com (Alex Ruiz)
*/
class UrisStub extends Uris {
private static final UrisStub INSTANCE = new UrisStub();
static UrisStub instance() {
return INSTANCE;
}
private boolean exist;
private UrisStub() {}
void shouldAnyUriExist(boolean shouldExist) {
exist = shouldExist;
}
@Override public boolean referredResourceExists(URI uri) {
return exist;
}
}