]> gerrit.simantics Code Review - simantics/platform.git/blob - bundles/org.simantics.ui/src/org/simantics/ui/workbench/IPerspectiveBarsExtension.java
Fixed multiple issues causing dangling references to discarded queries
[simantics/platform.git] / bundles / org.simantics.ui / src / org / simantics / ui / workbench / IPerspectiveBarsExtension.java
1 /*******************************************************************************
2  * Copyright (c) 2007, 2010 Association for Decentralized Information Management
3  * in Industry THTH ry.
4  * All rights reserved. This program and the accompanying materials
5  * are made available under the terms of the Eclipse Public License v1.0
6  * which accompanies this distribution, and is available at
7  * http://www.eclipse.org/legal/epl-v10.html
8  *
9  * Contributors:
10  *     VTT Technical Research Centre of Finland - initial API and implementation
11  *******************************************************************************/
12 package org.simantics.ui.workbench;
13
14 public interface IPerspectiveBarsExtension {
15
16     String getPerspectiveId();
17
18     Boolean getMenuBar();
19     Boolean getCoolBar();
20     Boolean getStatusLine();
21     Boolean getPerspectiveBar();
22     Boolean getFastViewBar();
23     Boolean getProgressIndicator();
24
25     class Stub implements IPerspectiveBarsExtension {
26         String   perspectiveId;
27         Boolean menuBar;
28         Boolean coolBar;
29         Boolean statusLine;
30         Boolean perspectiveBar;
31         Boolean fastViewBar;
32         Boolean progressIndicator;
33
34         Stub(String perspectiveId, Boolean menuBar, Boolean coolBar, Boolean statusLine, Boolean perspectiveBar, Boolean fastViewBar, Boolean progressIndicator) {
35             this.perspectiveId = perspectiveId;
36             this.menuBar = menuBar;
37             this.coolBar = coolBar;
38             this.statusLine = statusLine;
39             this.perspectiveBar = perspectiveBar;
40             this.fastViewBar = fastViewBar;
41             this.progressIndicator = progressIndicator;
42         }
43
44         @Override
45         public String getPerspectiveId() {
46             return perspectiveId;
47         }
48         
49         @Override
50         public Boolean getCoolBar() {
51                 return coolBar;
52         }
53         
54         @Override
55         public Boolean getFastViewBar() {
56                 return fastViewBar;
57         }
58         
59         @Override
60         public Boolean getMenuBar() {
61                 return menuBar;
62         }
63         
64         @Override
65         public Boolean getPerspectiveBar() {
66                 return perspectiveBar;
67         }
68         
69         @Override
70         public Boolean getProgressIndicator() {
71                 return progressIndicator;
72         }
73         
74         @Override
75         public Boolean getStatusLine() {
76                 return statusLine;
77         }
78     }
79 }