]> git.argeo.org Git - gpl/argeo-slc.git/blob - org.argeo.slc.client.ui.dist/src/org/argeo/slc/client/ui/dist/views/HelpView.java
Adapt to changes in BND.
[gpl/argeo-slc.git] / org.argeo.slc.client.ui.dist / src / org / argeo / slc / client / ui / dist / views / HelpView.java
1 /*
2 * Copyright (C) 2007-2012 Argeo GmbH
3 *
4 * Licensed under the Apache License, Version 2.0 (the "License");
5 * you may not use this file except in compliance with the License.
6 * You may obtain a copy of the License at
7 *
8 * http://www.apache.org/licenses/LICENSE-2.0
9 *
10 * Unless required by applicable law or agreed to in writing, software
11 * distributed under the License is distributed on an "AS IS" BASIS,
12 * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
13 * See the License for the specific language governing permissions and
14 * limitations under the License.
15 */
16 package org.argeo.slc.client.ui.dist.views;
17
18 import org.argeo.slc.client.ui.dist.DistPlugin;
19 import org.eclipse.swt.SWT;
20 import org.eclipse.swt.browser.Browser;
21 import org.eclipse.swt.layout.GridData;
22 import org.eclipse.swt.layout.GridLayout;
23 import org.eclipse.swt.widgets.Composite;
24 import org.eclipse.ui.part.ViewPart;
25
26 /** Display some info about the distribution */
27 public class HelpView extends ViewPart {
28 public final static String ID = DistPlugin.PLUGIN_ID + ".helpView";
29
30 @Override
31 public void createPartControl(Composite parent) {
32 parent.setLayout(new GridLayout(2, false));
33 Browser browser = new Browser(parent, SWT.NONE);
34 browser.setUrl("/repo/howto.html");
35 browser.setLayoutData(new GridData(SWT.FILL, SWT.FILL, true, true, 2, 1));
36 }
37
38 /** Force refresh of the whole view */
39 public void refresh() {
40 }
41
42 @Override
43 public void setFocus() {
44 }
45
46 }