Open extra View dynamacluy in place holder tabs donet update in [message #524236] |
Wed, 31 March 2010 09:39 |
|
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.
|
|
|
|
|
Powered by
FUDForum. Page generated in 0.04706 seconds