[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]
[Newsgroup Home]
|
[ews.eclipse.technology.rap] 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