|Riena-App requires more than 3 minutes, if it's closed. [message #728534]
||Fri, 23 September 2011 08:43
| Tihomir Todorov
Registered: September 2011
And today too, I got another problem.
I've created a tree with about 150 000 sub modules (ISubModuleNode)s.
I've created the entire tree not a lazy loading tree,
because of "SWTException: Widget is disposed" (more about this see: Bug 358193 [bugs.eclipse.org/bugs/show_bug.cgi?id=358193]).
To start the application, it takes about 40 seconds. I think it's totally ok.
But to close the application, it takes about 3 minutes and
the application will blocked completely. I think that is generally not ok.
When i create 250 000 sub modules, the application crashed.
So the question is, why Riena needs so long when I have 150 000 sub modules.
That is to say, I can not create an application that has about 2 000 000 sub moduels. Am I right?
I think, that this is so, because of the registration of each sub module
That is to mean, that i create the tree recursive and i call for each sub module the following code fragment:
ISubModuleNode subModule = new SubModuleNode(new NavigationNodeId(String.valueOf(treeNode.getId())), treeNode.getLabel());
WorkareaManager.getInstance().registerDefinition(subModule, GenericWorkframeSubModuleController.class, GenericWorkframeSubModuleView.ID);
And may be, when i close the applicaiton, all sub modules must be unregistered again.
So i can't understand what really happend under the hat and why the applicaiton needs so long, when it's closed.
|Re: Riena-App requires more than 3 minutes, if it's closed. [message #728587 is a reply to message #728534]
||Fri, 23 September 2011 09:58
| Christian Campo
Registered: July 2009
The concept of the navigationtree is to show all the objects for which you have a workflow open. So if you create a new record of whatever your app does or you modify it then you create a new module with one or several submodules.|
The navigation tree is not and never was intended to hold all objects in your database. Since we did not have that in mind, I think you will fail in more than one area if you try to do that. The proposed way is rather to have a single view where you display your objects in a table and maybe have a search or filter function and then when you select one item only then do you open a new module/submodule.
Registered a submodule is not for free (meaning you could have a arbitrary number of submodules open). Each submodule also opens an RCP view (although that might not be instantly visible.
so I think you have to change the way you work with the navigationtree....
does that make sense.... ?
Powered by FUDForum
. Page generated in 0.02867 seconds