NULL with ArrangeAll [message #199121] |
Mon, 28 July 2008 10:27 |
Eclipse User |
|
|
|
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 #199176 is a reply to message #199143] |
Mon, 28 July 2008 10:57 |
Eclipse User |
|
|
|
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 |
Eclipse User |
|
|
|
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...
|
|
|
|
Powered by
FUDForum. Page generated in 0.03072 seconds