diff options
Diffstat (limited to 'uml/org.eclipse.papyrus.diagram.common/src/org/eclipse/papyrus/diagram/common/parser/lookup/LookupResolver.java')
-rw-r--r-- | uml/org.eclipse.papyrus.diagram.common/src/org/eclipse/papyrus/diagram/common/parser/lookup/LookupResolver.java | 53 |
1 files changed, 53 insertions, 0 deletions
diff --git a/uml/org.eclipse.papyrus.diagram.common/src/org/eclipse/papyrus/diagram/common/parser/lookup/LookupResolver.java b/uml/org.eclipse.papyrus.diagram.common/src/org/eclipse/papyrus/diagram/common/parser/lookup/LookupResolver.java new file mode 100644 index 00000000000..d9ec6cbf709 --- /dev/null +++ b/uml/org.eclipse.papyrus.diagram.common/src/org/eclipse/papyrus/diagram/common/parser/lookup/LookupResolver.java @@ -0,0 +1,53 @@ +/* + * Copyright (c) 2006 Borland Software Corporation + * + * 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: + * Michael Golubev (Borland) - initial API and implementation + */ + +package org.eclipse.papyrus.diagram.common.parser.lookup; + +import org.eclipse.gmf.runtime.emf.commands.core.command.AbstractTransactionalCommand; +import org.eclipse.uml2.uml.NamedElement; + +public interface LookupResolver { + + public abstract void addLookupResolveRequest(LookupResolveRequest request, Callback callback); + + public abstract boolean isEmpty(); + + public abstract boolean canResolve(); + + public abstract AbstractTransactionalCommand getResolveCommand(); + + public static interface Callback { + + public void lookupResolved(NamedElement resolution); + } + + public static final LookupResolver NULL = new LookupResolver() { + + public boolean isEmpty() { + return true; + } + + public AbstractTransactionalCommand getResolveCommand() { + return null; + } + + public boolean canResolve() { + return false; + } + + public void addLookupResolveRequest(LookupResolveRequest request, Callback callback) { + // + } + + }; + +}
\ No newline at end of file |