Package com.simonepezzano.hshare.views

Source Code of com.simonepezzano.hshare.views.HelpView

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
   
  }
 

 
}
TOP

Related Classes of com.simonepezzano.hshare.views.HelpView

TOP
Copyright © 2018 www.massapi.com. All rights reserved.
All source code are property of their respective owners. Java is a trademark of Sun Microsystems, Inc and owned by ORACLE Inc. Contact coftware#gmail.com.