Skip to main content


Eclipse Community Forums
Forum Search:

Search      Help    Register    Login    Home
Home » Eclipse Projects » Eclipse Platform » Re: Making View Visible After Mouse Click
Re: Making View Visible After Mouse Click [message #336113] Thu, 21 May 2009 20:04
Eclipse UserFriend
Originally posted by: eclipse-news.rizzoweb.com

Note: the proper newsgroup for questions about views is
eclipse.platform, which I've copied to this response.

Take a look at org.eclipse.ui.IWorkbenchPage.showView(String viewID).
One way to get a reference to the "current" workbench page is via
PlatformUI.getWorkbench().getActiveWorkbenchWindow().getActi vePage(),
but make sure to read and understand the documentation of each of those
methods and interfaces so that you call it under the proper circumstances.

Hope this helps,
Eric


Humfred Dupont wrote:
> Hello Guys,
>
> I have a view and i want it to be visible whenever a user clicks on
> a button. The view class extends the ViewPart class. I checked through
> the available methods but there is no method that i can use. The user
> always has to go through the window-->show view -->other before he can
> access the view but i want the view to be visible whenever he clicks on
> a button.
> In the button event handler i instantiated the view class but it is not
> working. This is a snippet of wat i did:
>
> ..
> //additional code here
> ..
>
> public void widgetSelected(SelectionEvent e) TreeView tr
> = new TreeView();
> tr.createPartControl(parent.getShell());
>
> ..
> //additional code here
> ..
>
> Is there a method or a way that i can let the view visible after mouse
> click?
>
>
> Thanks.
>
>
>
> Humfred.
>
Previous Topic:How to disable Plugin in Eclipse 3.4.2
Next Topic:path in editor menus
Goto Forum:
  


Current Time: Fri Apr 26 15:01:37 GMT 2024

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

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

Back to the top