blob: 7cf086518fcb3b044088dc9bf45272cc91709a58 [file] [log] [blame]
package org.eclipse.equinox.demo.file.association;
import org.eclipse.jface.dialogs.MessageDialog;
import org.eclipse.jface.resource.JFaceResources;
import org.eclipse.swt.SWT;
import org.eclipse.swt.events.SelectionAdapter;
import org.eclipse.swt.events.SelectionEvent;
import org.eclipse.swt.graphics.Font;
import org.eclipse.swt.layout.GridData;
import org.eclipse.swt.layout.GridLayout;
import org.eclipse.swt.widgets.Composite;
import org.eclipse.swt.widgets.Label;
import org.eclipse.swt.widgets.Link;
import org.eclipse.swt.widgets.Text;
import org.eclipse.ui.part.ViewPart;
public class View extends ViewPart {
public static final String ID = "org.eclipse.equinox.demo.file.association.view";
public void createPartControl(Composite parent) {
Composite top = new Composite(parent, SWT.NONE);
GridLayout layout = new GridLayout();
layout.marginHeight = 0;
layout.marginWidth = 0;
top.setLayout(layout);
// message contents
Text text = new Text(top, SWT.MULTI | SWT.WRAP);
text.setText("This RCP Application was generated from the PDE Plug-in Project wizard. This sample shows how to:\n"+
"- add a top-level menu and toolbar with actions\n"+
"- add keybindings to actions\n" +
"- create views that can't be closed and\n"+
" multiple instances of the same view\n"+
"- perspectives with placeholders for new views\n"+
"- use the default about dialog\n"+
"- create a product definition\n");
text.setLayoutData(new GridData(GridData.FILL_BOTH));
}
public void setFocus() {
}
}