blob: fd4261480e1fc97a5dfa503b55f163c556214972 [file] [log] [blame]
/*
* Copyright (c) 2015 Christian W. Damus and others.
* 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:
* Christian W. Damus - initial API and implementation
*/
package org.eclipse.gmf.runtime.emf.type.core;
/**
* A notification that a {@linkplain #getClientContext() client context} has
* been added to the {@linkplain ClientContextManager context manager}.
*
* @since 1.9
*/
public class ClientContextAddedEvent {
private IClientContext clientContext;
/**
* Initializes me with the client context that was added.
*
* @param clientContext
* the added client context
*/
ClientContextAddedEvent(IClientContext clientContext) {
super();
this.clientContext = clientContext;
}
/**
* Queries the identifier of the client context that was added.
*
* @return the added client context's identifier
*
* @see #getClientContext()
*/
public String getClientContextId() {
return clientContext.getId();
}
/**
* Queries the client context that was added.
*
* @return the added clientContext
*/
public IClientContext getClientContext() {
return clientContext;
}
}