blob: 2edcc977f4bc876ed0cf93a0691ab767e48e467c [file] [log] [blame]
/*******************************************************************************
* Copyright (c) 2007, 2017 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.pde.internal.ua.core.cheatsheet.simple.text;
import java.util.ArrayList;
import java.util.List;
import org.eclipse.pde.internal.core.text.IDocumentElementNode;
import org.eclipse.pde.internal.ua.core.cheatsheet.simple.ISimpleCSDescription;
import org.eclipse.pde.internal.ua.core.cheatsheet.simple.ISimpleCSModel;
public class SimpleCSDescription extends SimpleCSObject implements
ISimpleCSDescription {
private static final long serialVersionUID = 1L;
/**
* @param model
*/
public SimpleCSDescription(ISimpleCSModel model) {
super(model, ELEMENT_DESCRIPTION);
}
@Override
public String getContent() {
return getXMLContent();
}
@Override
public void setContent(String content) {
setXMLContent(content);
}
@Override
public List<IDocumentElementNode> getChildren() {
return new ArrayList<>();
}
@Override
public String getName() {
return getContent();
}
@Override
public int getType() {
return TYPE_DESCRIPTION;
}
@Override
public boolean isContentCollapsed() {
return true;
}
}