blob: 45dcbfb29ce99414d499a050c9e971625d3e7691 [file] [log] [blame]
/*******************************************************************************
* Copyright (c) 2014 E.D.Willink 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:
* E.D.Willink - initial API and implementation
*******************************************************************************/
package org.eclipse.qvtd.xtext.qvtcore.ui.model;
import org.eclipse.emf.common.util.URI;
import org.eclipse.jdt.annotation.NonNull;
import org.eclipse.ocl.xtext.base.ui.model.BaseCSorASDocumentProvider;
import org.eclipse.qvtd.xtext.qvtcorecs.QVTcoreCSPackage;
/**
* QVTcoreDocumentProvider orchestrates the load and saving of optional XMI content
* externally while maintaining the serialised human friendly form internally.
*/
public class QVTcoreDocumentProvider extends BaseCSorASDocumentProvider
{
@Override
protected @NonNull String createTestDocument(@NonNull URI uri, @NonNull String lastSegment) {
return "";
}
@Override
protected String getCScontentType() {
return QVTcoreCSPackage.eCONTENT_TYPE;
}
@Override
protected @NonNull String getFileExtension() {
return "qvtc";
}
}