|
|
Re: WorkbenchWindow#getWorkbench uses the PlatformUI singleton (feature request) [message #84699 is a reply to message #84684] |
Fri, 25 April 2008 06:56 ![Go to previous message Go to previous message](theme/Solstice/images/up.png) ![Go to next message Go to next message](theme/Solstice/images/down.png) |
Eclipse User![Friend of Eclipse Friend](/donate/web-api/friends_decorator.php?email=) |
|
|
|
Originally posted by: dpryadkin.rocketsoftware.com
Stefan,
To put it simple, I wish the WorkbenchWindow object to store the
reference to IWorkbench at the construction stage:
public WorkbenchWindow(int number) {
super(null);
this.number = number;
// Make sure there is a workbench. This call will throw
// an exception if workbench not created yet.
final IWorkbench workbench = PlatformUI.getWorkbench();
---> lets say: m_workbench = PlatformUI.getWorkbench();
and then getWorkbench() will be able to return this reference instead of
calling PlatformUI singleton.
I think that would be more correct with respect to RAP concepts. Right?
Dmitry
|
|
|
Re: WorkbenchWindow#getWorkbench uses the PlatformUI singleton (feature request) [message #84731 is a reply to message #84699] |
Fri, 25 April 2008 08:51 ![Go to previous message Go to previous message](theme/Solstice/images/up.png) ![Go to next message Go to next message](theme/Solstice/images/down.png) |
Eclipse User![Friend of Eclipse Friend](/donate/web-api/friends_decorator.php?email=) |
|
|
|
Originally posted by: fappel.innoopract.com
Hm,
why don't you use window.getShell().getDisplay()?
Ciao
Frank
-----Ursprüngliche Nachricht-----
Von: Dmitry [mailto:dpryadkin@rocketsoftware.com]
Bereitgestellt: Freitag, 25. April 2008 08:56
Bereitgestellt in: eclipse.technology.rap
Unterhaltung: WorkbenchWindow#getWorkbench uses the PlatformUI singleton
(feature request)
Betreff: Re: WorkbenchWindow#getWorkbench uses the PlatformUI singleton
(feature request)
Stefan,
To put it simple, I wish the WorkbenchWindow object to store the
reference to IWorkbench at the construction stage:
public WorkbenchWindow(int number) {
super(null);
this.number = number;
// Make sure there is a workbench. This call will throw
// an exception if workbench not created yet.
final IWorkbench workbench = PlatformUI.getWorkbench();
---> lets say: m_workbench = PlatformUI.getWorkbench();
and then getWorkbench() will be able to return this reference instead of
calling PlatformUI singleton.
I think that would be more correct with respect to RAP concepts. Right?
Dmitry
|
|
|
|
Powered by
FUDForum. Page generated in 0.05738 seconds