Skip to main content

[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index] [List Home]
Re: [pde-ui-dev] My plugin view must appear when a log comes.


You might try playing with IWorkbench.getViewRegistry().find(..).  With the IViewDescriptor from this function, I imagine you can get previously created views and if a view has not been created, go ahead and create it yourself.  You might also post the question on one of the Platform's mailing list since IWorkbench is really their API and they might have some other suggestions on how to do this.

Brian Bauman
    IBM Software Group - Austin, TX
    Eclipse Committer
    baumanbr@xxxxxxxxxx
    (512) 838 -2938 (T/L 678-2938)



From: Tayfun "Gökmen" "HALAÇ" <tayfunhalac@xxxxxxxxx>
To: pde-ui-dev@xxxxxxxxxxx
Date: 10/08/2007 10:27 AM
Subject: [pde-ui-dev] My plugin view must appear when a log comes.





I have a logger plugin project. I prepared a view for it. I have a log logger that has two handlers. One of them logs to a frame. And I am doing for other handler to show logs in the plugin view. But for that, I must show out the view when a log comes and also must change the content when a log comes. I am going to use setInput() method for this. Bur firstly I must reach the plugin view. I can't do it. The handler must find the plugin view when it is created. How can I find the view? I tried PlatformUI.getWorkbench() method and then findView(...) after getting active page. It doesn't work and says "The workbench has not been created yet".

For an idea, I want to create a plugin like jUnit view. When you right click on test code and run the test, the jUnit view appears on the workbench and shows green or red according to test result. My logger plugin view must appear when a log comes.

Can you help me?

 


Tonight's top picks. What will you watch tonight? Preview the hottest shows on Yahoo! TV. _______________________________________________
pde-ui-dev mailing list
pde-ui-dev@xxxxxxxxxxx
https://dev.eclipse.org/mailman/listinfo/pde-ui-dev


Back to the top