Zest Graph Viewer reference points to null all of a suddenhttps://www.eclipse.org/forums/index.php/mv/msg/207776/665550/#msg_665550
I am programming an application within Eclipse RCP, there I have got an editor containing a tree viewer and a view containing a graph viewer (Zest). The graph viewer should mirror the currently activated tree viewer. I am able to set the initial model to the graph viewer but when another tree is activated or opened in the tree viewer I want to update the graph viewer by setting a new input [viewer.setInput(newModel)]. But now it comes when I do this, the graph viewer reference has become null and obviously I get a nullpointerexeption.

I do not set it to null, could it be something within Eclipse? Here is some of the viewer code witch I mainly took from the vogella-tutorium.

Are there any known solutions? Do I use the setInput in a wrong way? How could it be, that the reference gets null and even a second reference I initiated got null so someone might have stolen my viewer object even with references still pointing at it but on the other hand the graph is still shown in the GUI....
I hope there is some enlightening
Greetings Florian

]]>Florian Wieland2011-04-15T04:53:43-00:00FileFieldEditor Helphttps://www.eclipse.org/forums/index.php/mv/msg/207776/665665/#msg_665665
I'm using a FileFieldEditor form jface plugin in a preference page to
allow user to select an executable file within her or his file system.

A problem comes when I select an "app" executable file in Mac OSX.
As it is actually a Folder, it is not considered to be a valid file
in "checkState" method of FileFieldEditor : the test "if
(file.isFile())" on line 137 obviously returns false and goes through
an error "value must be an existing file". As a result, "Apply" and "OK"
buttons are not enabled.

Am I misusing FileFieldEditor ? Is there another more suitable class ?
Is there a workaround for app mac "files" ? Should FileFieldEditor
handle 'app' files ?

Thks a lot,
frank

PS : org.eclipse.jface_3.5.2.M20100120-0800.jar]]>frank b2011-04-15T12:10:45-00:00Re: Zest Graph Viewer reference points to null all of a suddenhttps://www.eclipse.org/forums/index.php/mv/msg/207776/665861/#msg_665861
i think you're in serious trouble, having an object thief around. But the solution is actually to think around the corner. You are not an object short, you have one to much. When eclipse calls the createPartControll it creates an object and sets the viewer. Before that eclipse calls the earlyStartup method an creates another object. The listeners are obviosly set from this object as it is done within this method. Just delet the ISartup implementation and set the Listener from the createPartControl and there will only be one object.