Skip to main content


Eclipse Community Forums
Forum Search:

Search      Help    Register    Login    Home
Home » Eclipse Projects » Remote Application Platform (RAP) » Open extra View dynamacluy in place holder tabs donet update in (org.eclipse.rap.design.example.business.branding)
Open extra View dynamacluy in place holder tabs donet update in [message #524236] Wed, 31 March 2010 09:39 Go to next message
Martijn Cremer is currently offline Martijn CremerFriend
Messages: 77
Registered: January 2010
Location: Breda
Member

Good day,

I think I found a bug.. (not sure). I have a handler that opens a new view based on its origin and the object it tried to open:
The handler is like this:
public class OpenDetailViewHandler extends AbstractHandler implements IHandler {

	@Override
	public Object execute(ExecutionEvent event) throws ExecutionException {

		IWorkbenchWindow window = HandlerUtil.getActiveWorkbenchWindow(event);
		IWorkbenchPage page = window.getActivePage();
		UniversalTreeTableView universalTreeTableView = (UniversalTreeTableView) page.findView(UniversalTreeTableView.ID);

		ISelection selection = universalTreeTableView.getSite().getSelectionProvider()
				.getSelection();
		if (selection != null && selection instanceof IStructuredSelection && !selection.isEmpty()) {
			Object obj = ((IStructuredSelection) selection).getFirstElement();

			if (obj != null) {
				try {
					page.showView("com.remainsoftware.incedents.ui.view.UniversalDetailView",  UniversalTreeTableView.ID + ";" + obj.toString(), IWorkbenchPage.VIEW_CREATE);
				} catch (PartInitException e) {
					System.out.println(e.getStackTrace());
				}
			}
		}
		
		return null;
	}
}


Now the code works fine in RCP and in RAP however. When I use a design based on the org.eclipse.rap.design.example.business.branding. The tab bar whit the difrent views only updates when I set focus to it and not on its own when you use the base frame work.


hm. I've lost a machine.. literally _lost_. it responds to ping, it works completely, I just can't figure out where in my apartment it is.
Re: Open extra View dynamacluy in place holder tabs donet update in [message #524348 is a reply to message #524236] Wed, 31 March 2010 15:21 Go to previous messageGo to next message
Holger Staudacher is currently offline Holger StaudacherFriend
Messages: 166
Registered: July 2009
Senior Member
Hi Martijn,
this really sounds like a bug. I filed a bugzilla for the problem:

307748: [design] dynamically open a view in a placeholder tab doen't work
https://bugs.eclipse.org/bugs/show_bug.cgi?id=307748

Looking forward to fix it before 1.3 M7.

Regards Holger


On 2010-03-31 11:39:04 +0200, Martijn Cremer <martijn.cremer@o2u.nl> said:

> Now the code works fine in RCP and in RAP however. When I use a design
> based on the org.eclipse.rap.design.example.business.branding. The tab
> bar whit the difrent views only updates when I set focus to it and not
> on its own when you use the base frame work.


--
-----------------------------------------

http://eclipsesource.com

http://twitter.com/eclipsesource
Re: Open extra View dynamacluy in place holder tabs donet update in [message #525321 is a reply to message #524348] Tue, 06 April 2010 08:44 Go to previous message
Martijn Cremer is currently offline Martijn CremerFriend
Messages: 77
Registered: January 2010
Location: Breda
Member

I found a crude workaround for now I posted in the Bug report. If needed ill test and help.

hm. I've lost a machine.. literally _lost_. it responds to ping, it works completely, I just can't figure out where in my apartment it is.
Previous Topic:How can refresh a widget while running java script.
Next Topic:org.eclipse.swt.Request.getInstance(); how to get more document about that?
Goto Forum:
  


Current Time: Thu Apr 25 19:16:40 GMT 2024

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

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

Back to the top