Skip to main content


Eclipse Community Forums
Forum Search:

Search      Help    Register    Login    Home
Home » Modeling » GMF (Graphical Modeling Framework) » Method layout(View, String) in LayoutService might fail
Method layout(View, String) in LayoutService might fail [message #228308] Wed, 29 April 2009 12:15 Go to next message
Ralf Grossklaus is currently offline Ralf GrossklausFriend
Messages: 20
Registered: July 2009
Location: Stuttgart, Germany
Junior Member
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
Re: Method layout(View, String) in LayoutService might fail [message #228373 is a reply to message #228308] Wed, 29 April 2009 14:34 Go to previous message
Alexander Shatalin is currently offline Alexander ShatalinFriend
Messages: 2928
Registered: July 2009
Senior Member
Hello Ralf,

Please file a request for it.

-----------------
Alex Shatalin
Previous Topic:Splitting Editor Panel in Areas
Next Topic:Help to create the well-known UML Relationships
Goto Forum:
  


Current Time: Fri Apr 26 06:58:55 GMT 2024

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

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

Back to the top