blob: 7dee26d2a2a3a41d34f7b2612d9245c153d3b733 [file] [log] [blame]
/*******************************************************************************
* Copyright (c) 2003, 2005 IBM Corporation 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:
* IBM Corporation - initial API and implementation
*******************************************************************************/
package org.eclipse.wst.common.frameworks.internal;
import org.eclipse.jem.util.UIContextDetermination;
/**
* A registry for the default ISaveHandler to use when saving edit models
*/
public class SaveHandlerRegister {
private static ISaveHandler saveHandler;
/**
* This is a utility class and should not be instantiated
*/
protected SaveHandlerRegister() {
super();
}
public static ISaveHandler getSaveHandler() {
if (saveHandler == null)
saveHandler = (ISaveHandler) UIContextDetermination.createInstance("saveHandler"); //$NON-NLS-1$
return saveHandler;
}
}