blob: d54b3c32b2ab83dba8d3cf76f93f051bd28854de (
plain) (
blame)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
52
53
|
/*******************************************************************************
* Copyright (c) 2011 Boeing.
* All rights reserved. This program and the accompanying materials
* are made available under the terms of the Eclipse Public License v1.0
* which accompanies this distribution, and is available at
* http://www.eclipse.org/legal/epl-v10.html
*
* Contributors:
* Boeing - initial API and implementation
*******************************************************************************/
package org.eclipse.osee.display.view.web;
import org.eclipse.osee.display.api.search.SearchNavigator;
import org.eclipse.osee.display.api.search.SearchPresenter;
import org.osgi.framework.Bundle;
import org.osgi.framework.FrameworkUtil;
import com.vaadin.Application;
/**
* @author Shawn F. Cook
*/
public class OseeUiApplication extends Application {
protected final SearchNavigator navigator = createNavigator();
protected final SearchPresenter searchPresenter = createSearchPresenter();
@Override
public void init() {
setTheme("osee");
}
@Override
public String getVersion() {
Bundle bundle = FrameworkUtil.getBundle(this.getClass());
return bundle.getVersion().toString();
}
protected SearchNavigator createNavigator() {
return new OseeNavigator();
}
protected SearchPresenter createSearchPresenter() {
return null;
}
public SearchNavigator getNavigator() {
return navigator;
}
public SearchPresenter getSearchPresenter() {
return searchPresenter;
}
}
|