]> git.argeo.org Git - gpl/argeo-slc.git/blob - plugins/org.argeo.slc.client.ui.dist/src/main/java/org/argeo/slc/client/ui/dist/views/HelpView.java
Fix single sourcing issue on file download
[gpl/argeo-slc.git] / plugins / org.argeo.slc.client.ui.dist / src / main / java / 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 /**
27 *
28 * Displays some info about the distribution
29 *
30 */
31 public class HelpView extends ViewPart {
32 public final static String ID = DistPlugin.ID + ".helpView";
33
34 @Override
35 public void createPartControl(Composite parent) {
36 parent.setLayout(new GridLayout(2, false));
37 Browser browser = new Browser(parent, SWT.NONE);
38 browser.setUrl("/repo/howto.html");
39 browser.setLayoutData(new GridData(SWT.FILL, SWT.FILL, true, true, 2, 1));
40 }
41
42 /**
43 * Force refresh of the whole view
44 */
45 public void refresh() {
46 }
47
48 @Override
49 public void setFocus() {
50 }
51
52 }