/*******************************************************************************
* Copyright (c) 2012 Pivotal Software, 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
*
* Contributors:
* Pivotal Software, Inc. - initial API and implementation
*******************************************************************************/
package org.springsource.ide.eclipse.dashboard.internal.ui.editors;
import org.eclipse.core.runtime.IAdaptable;
import org.eclipse.ui.IElementFactory;
import org.eclipse.ui.IMemento;
import org.springsource.ide.eclipse.dashboard.internal.ui.IdeUiPlugin;
/**
* @author Christian Dupuis
* @since 2.3.0
*/
public class DashboardEditorInputFactory implements IElementFactory {
public static final String FACTORY_ID = IdeUiPlugin.PLUGIN_ID + ".dashboard.elementFactory";
public IAdaptable createElement(IMemento memento) {
return DashboardEditorInput.INSTANCE;
}
public static void save(IMemento memento) {
// nothing to do really
memento.putString("openDashboard", "true");
}
}