package com.simonepezzano.hshare.views;
import org.eclipse.swt.SWT;
import org.eclipse.swt.browser.Browser;
import org.eclipse.swt.layout.FillLayout;
import org.eclipse.swt.widgets.Composite;
import org.eclipse.ui.part.ViewPart;
import com.simonepezzano.hshare.Statics;
/**
* the help view
* @author Simone Pezzano
*
*/
public class HelpView extends ViewPart{
public static final String ID="HShare.HelpView";
private Browser browser;
@Override
public void createPartControl(Composite parent) {
parent.setLayout(new FillLayout());
browser = new Browser(parent,SWT.BORDER);
browser.setText(Statics.getStringContentFromJar("/res/help.html"));
}
@Override
public void setFocus() {
// TODO Auto-generated method stub
}
}