blob: 96c3e3412d01192bc4c2be5f96edcff739820182 [file] [log] [blame]
/**
*
* Copyright (c) 2011, 2016 - Lunifera GmbH (Gross Enzersdorf), Loetz GmbH&Co.KG (69115 Heidelberg, Germany)
*
* All rights reserved. This program and the accompanying materials
* are made available under the terms of the Eclipse Public License 2.0
* which accompanies this distribution, and is available at
* https://www.eclipse.org/legal/epl-2.0/
*
* SPDX-License-Identifier: EPL-2.0
*
* Contributors:
* Florian Pirchner (Lunifera GmbH) - initial implementation
*/
package org.eclipse.osbp.tools.graphical.entity.lib;
import org.eclipse.sirius.business.api.session.Session;
import org.eclipse.sirius.viewpoint.description.Viewpoint;
public class SessionManagerListener implements org.eclipse.sirius.business.api.session.SessionManagerListener {
@Override
public void notifyAddSession(Session newSession) {
// URI from = URI.createURI(DATATYPE_RESOURCE);
// URI to = URI.createURI(DATATYPE_PLUGIN);
//
newSession.getTransactionalEditingDomain().addResourceSetListener(new TransactionListener());
//
// MapUriCommand muCommand = new MapUriCommand(newSession,from, to,
// null, null );
// newSession.getTransactionalEditingDomain().getCommandStack()
// .execute(muCommand);
//
// AddSemanticResourceCommand command = new AddSemanticResourceCommand(
// newSession, URI.createURI(DATATYPE_RESOURCE),
// new NullProgressMonitor());
// newSession.getTransactionalEditingDomain().getCommandStack()
// .execute(command);
}
@Override
public void notifyRemoveSession(Session removedSession) {
}
@Override
public void viewpointSelected(Viewpoint selectedSirius) {
}
@Override
public void viewpointDeselected(Viewpoint deselectedSirius) {
}
@Override
public void notify(Session updated, int notification) {
}
}