Skip to main content



      Home
Home » Eclipse Projects » Rich Client Platform (RCP) » Re: PlatformUI
Re: PlatformUI [message #464281] Thu, 01 March 2007 09:24
Eclipse UserFriend
Hi Kakan,

Are you calling getWorkbench() very early, or very late, in your program?

These are the times when the workbench might not be available (for
example in startup code).

Charlie



Hakan GONEN wrote:
> I know that The PlatformUI.getWorkbench() is returned null.
>
> But it is work in each other views class
>
> "Charlie Kelly" <Eclipse@CharlieKelly.com>, haber iletisinde şunları
> yazdı:<es4htp$67t$1@utils.eclipse.org>...
>> Hi Cenk,
>>
>> You might separate the statement between each of the ".", and
>> assign to separate variables. Then you can determine which function
>> is returning null.
>>
>> Charlie
>>
>> Cenk Dundar wrote:
>>> Hi;
>>>
>>> I created normally class. And I want to get a ViewPart that in my
>>> application this like
>>>
>>> public class DisplayCycle {
>>>
>>> public DisplayCycle(){
>>>
>>> }
>>>
>>>
>>>
>>>
>>> public void toDo(){
>>>
>>> ReadDataView readDataView =
>>>
>
(ReadDataView)PlatformUI.getWorkbench().getActiveWorkbenchWi ndow().getActive
> Page().findView(ConstID.READ_VIEW_ID);
>>> }
>>>
>>> }
>>>
>>>
>>>
>>> But I cant get it. The application throws a NullPointer exeception
>>>
>>> What is the problem?
>>>
>>>
>
>
>
>
Previous Topic:DocumentPartitioner
Next Topic:Strange behavior with setSaveAndRestore
Goto Forum:
  


Current Time: Mon Mar 17 02:08:05 EDT 2025

Powered by FUDForum. Page generated in 0.06989 seconds
.:: Contact :: Home ::.

Powered by: FUDforum 3.0.2.
Copyright ©2001-2010 FUDforum Bulletin Board Software

Back to the top