| /******************************************************************************* |
| * Copyright (c) 2012, 2018 Wind River Systems, Inc. and others. 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: |
| * Wind River Systems - initial API and implementation |
| *******************************************************************************/ |
| package org.eclipse.tm.terminal.connector.local.launcher; |
| |
| import java.util.Map; |
| |
| import org.eclipse.core.runtime.Assert; |
| import org.eclipse.tm.terminal.view.ui.interfaces.IMementoHandler; |
| import org.eclipse.ui.IMemento; |
| |
| /** |
| * Local terminal connection memento handler implementation. |
| */ |
| public class LocalMementoHandler implements IMementoHandler { |
| |
| /* (non-Javadoc) |
| * @see org.eclipse.tm.terminal.view.ui.interfaces.IMementoHandler#saveState(org.eclipse.ui.IMemento, java.util.Map) |
| */ |
| @Override |
| public void saveState(IMemento memento, Map<String, Object> properties) { |
| Assert.isNotNull(memento); |
| Assert.isNotNull(properties); |
| } |
| |
| /* (non-Javadoc) |
| * @see org.eclipse.tm.terminal.view.ui.interfaces.IMementoHandler#restoreState(org.eclipse.ui.IMemento, java.util.Map) |
| */ |
| @Override |
| public void restoreState(IMemento memento, Map<String, Object> properties) { |
| Assert.isNotNull(memento); |
| Assert.isNotNull(properties); |
| } |
| } |