]>
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
2 * Copyright (C) 2007-2012 Argeo GmbH
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
8 * http://www.apache.org/licenses/LICENSE-2.0
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.
16 package org
.argeo
.slc
.client
.ui
.dist
.views
;
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
;
28 * Displays some info about the distribution
31 public class HelpView
extends ViewPart
{
32 public final static String ID
= DistPlugin
.ID
+ ".helpView";
35 public void createPartControl(Composite parent
) {
36 parent
.setLayout(new GridLayout(2, false));
37 Browser browser
= new Browser(parent
, SWT
.NONE
);
38 browser
.setUrl("http://www.argeo.org");
39 browser
.setLayoutData(new GridData(SWT
.FILL
, SWT
.FILL
, true, true, 2, 1));
43 * Force refresh of the whole view
45 public void refresh() {
49 public void setFocus() {