Newbie using Views [message #448949] |
Sun, 16 January 2005 11:12 |
Ben Messages: 46 Registered: July 2009 |
Member |
|
|
I'm a newbie writing a plugin for eclipse ( so please be patient ).
I've got a wizard and wizardpage, and when I press finish, I'd like to be
able to open a view that I have called NewsTreeView. The code I've got so
far is:
public void connectionEstablished ( NNTPClient a_Client )
{
System.out.println( "Success" );
m_bConnectionEstablished = true;
getShell().getDisplay().asyncExec( new Runnable() {
public void run() {
com.mobileinteractive.newsclient.views.NewsTreeView view = new
com.mobileinteractive.newsclient.views.NewsTreeView();
}
});
}
Now, this does not open my treeview. I've found an IView.init method which
may work, but it says that it should not be used by the client. I'm
basically looking for code to open up a predefined view ( its already stated
in the extension point schema ), programatically. Is there a method like
PlatformUI.openViewWithTheIdInXML("blah")?
I can't find this anywhere in the tutorials.
Thanks,
-b
|
|
|
Powered by
FUDForum. Page generated in 0.02928 seconds