Method layout(View, String) in LayoutService might fail [message #228308] |
Wed, 29 April 2009 12:15 |
|
Hello!
I noticed, that the Method layout(View, String) in the class
LayoutService throws an IllegalArgumentException, when the specified
view does not have any children.
I know that it does not make much sense to call this method on a view,
which does not have any child nodes to arrange. But since the Javadoc
does not say anything about an Exception in the case of "no children"
i'd like to know if this behaviour is desired. It might be better to
just arrange nothing, if there are no child nodes.
Regards,
Ralf!
Caused by: java.lang.IllegalArgumentException: Argument 'nodes' is empty
at
org.eclipse.gmf.runtime.diagram.ui.services.layout.LayoutSer vice.checkValidNodes(LayoutService.java:130)
at
org.eclipse.gmf.runtime.diagram.ui.services.layout.LayoutSer vice.getLayoutNodes(LayoutService.java:158)
at
org.eclipse.gmf.runtime.diagram.ui.services.layout.LayoutSer vice.layout(LayoutService.java:225)
at
de.exxcellent.orchideo.objects.dsl.model.diagram.ui.wizards. ModelNewDiagramFileFromPackageWizard$1.doExecuteWithResult(M odelNewDiagramFileFromPackageWizard.java:129)
at
org.eclipse.gmf.runtime.emf.commands.core.command.AbstractTr ansactionalCommand.doExecute(AbstractTransactionalCommand.ja va:247)
at
org.eclipse.emf.workspace.AbstractEMFOperation.execute(Abstr actEMFOperation.java:169)
at
org.eclipse.core.commands.operations.DefaultOperationHistory .execute(DefaultOperationHistory.java:511)
... 41 more
|
|
|
|
Powered by
FUDForum. Page generated in 0.02972 seconds