Skip to main content


Eclipse Community Forums
Forum Search:

Search      Help    Register    Login    Home
Home » Modeling » GMF (Graphical Modeling Framework) » NULL with ArrangeAll
NULL with ArrangeAll [message #199121] Mon, 28 July 2008 10:27 Go to next message
Eclipse UserFriend
Originally posted by: youchy.gmail.com

Hi everyone!

I have a problem!

The ArrangeAll Operation is getting me a NULL when I open the editor with
the a diagram and click on the ArrangeAll button on the Toolbar.

The null dissapear when I click on the diagram before click on ArrangeAll,
only one click makes the ArrangeAll execute normally.

How can I simulate this click in code??What can I do??

Please help me!
:)
Re: NULL with ArrangeAll [message #199143 is a reply to message #199121] Mon, 28 July 2008 10:35 Go to previous messageGo to next message
Alexander Shatalin is currently offline Alexander ShatalinFriend
Messages: 2928
Registered: July 2009
Senior Member
Hello Carlos,

You can file a bugzilla request if this problem is repeatable on other GMF
diagrams (ecore diagram example).

-----------------
Alex Shatalin
Re: NULL with ArrangeAll [message #199176 is a reply to message #199143] Mon, 28 July 2008 10:57 Go to previous messageGo to next message
Eclipse UserFriend
Originally posted by: youchy.gmail.com

hi!

i've tested in many diagrams with many transitions...and always when i
open it the null is there.

with my ecore_diagram there are not problem.

there are any problem if my diagrams are opened in the same editor always??

i've a "windows" with all the diagrams and i can open it, but always
reusing the same editor.

when i open the application with de default diagram , i can do the
Arrange, but if i change the diagram the arrange is getting bad, until i
click on the diagram.

the null is here:

DefaultProvider.class

line 489:
for (Iterator iter = sourceConnections.iterator();
iter.hasNext();) {
ConnectionEditPart connectionEP = (ConnectionEditPart)
iter.next();
EditPart target = connectionEP.getTarget();
// check to see if the toView is in the shapesDict, if yes,
// the associated connectionView should be included on
graph
if (target instanceof IBorderItemEditPart)
target = target.getParent();
Object o = editPartToNodeDict.get(target);

the variable 'target' is null
Re: NULL with ArrangeAll [message #199182 is a reply to message #199176] Mon, 28 July 2008 11:21 Go to previous messageGo to next message
Eclipse UserFriend
Originally posted by: youchy.gmail.com

Sorry, the null is when the code call:

Object o = editPartToNodeDict.get(target);

then in the next step:

Hashtable<K,V>.get(Object) line: not available

here is the null...
Re: NULL with ArrangeAll [message #199767 is a reply to message #199182] Fri, 01 August 2008 08:49 Go to previous message
Eclipse UserFriend
Originally posted by: youchy.gmail.com

can anyone help me please??
Previous Topic:2 GMF Diagrams based on the same model at runtime
Next Topic:Package Hierarchy as Tree (Shadow Nodes not working as expected)
Goto Forum:
  


Current Time: Thu Apr 18 22:52:22 GMT 2024

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

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

Back to the top