Last change
on this file since 74 was
74,
checked in by phdmakk, 10 years ago
|
+ initial RCP example
+ EBNFEditedResourceProvider
+ Initial imports and declarations in View
+ corresponding dependencies
|
-
Property svn:mime-type set to
text/plain
|
File size:
920 bytes
|
Line | |
---|
1 | package de.ugoe.cs.swe.bnftools.ebnf.standalone; |
---|
2 | |
---|
3 | import org.eclipse.swt.graphics.Point; |
---|
4 | import org.eclipse.ui.application.ActionBarAdvisor; |
---|
5 | import org.eclipse.ui.application.IActionBarConfigurer; |
---|
6 | import org.eclipse.ui.application.IWorkbenchWindowConfigurer; |
---|
7 | import org.eclipse.ui.application.WorkbenchWindowAdvisor; |
---|
8 | |
---|
9 | public class ApplicationWorkbenchWindowAdvisor extends WorkbenchWindowAdvisor { |
---|
10 | |
---|
11 | public ApplicationWorkbenchWindowAdvisor(IWorkbenchWindowConfigurer configurer) { |
---|
12 | super(configurer); |
---|
13 | } |
---|
14 | |
---|
15 | public ActionBarAdvisor createActionBarAdvisor( |
---|
16 | IActionBarConfigurer configurer) { |
---|
17 | return new ApplicationActionBarAdvisor(configurer); |
---|
18 | } |
---|
19 | |
---|
20 | public void preWindowOpen() { |
---|
21 | IWorkbenchWindowConfigurer configurer = getWindowConfigurer(); |
---|
22 | configurer.setInitialSize(new Point(400, 300)); |
---|
23 | configurer.setShowCoolBar(false); |
---|
24 | configurer.setShowStatusLine(false); |
---|
25 | configurer.setTitle("BNFTools Editor"); |
---|
26 | } |
---|
27 | } |
---|
Note: See
TracBrowser
for help on using the repository browser.