Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

[JBIDE-20043] Do not collapse tree when deleting a resource #662

Conversation

jcantrill
Copy link
Contributor

@adietish This also includes a refactor of the view refresh logic by moving it to the model.

this.viewer = (StructuredViewer) viewer;
this.viewer = (TreeViewer) viewer;
if(input != null) {
input.removeListener(connectionListener);
Copy link
Member

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

what if connectionListener is null?

Copy link
Contributor Author

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

fixed

@jcantrill jcantrill force-pushed the 20043_delete_resource_collapsing_tree branch from ae283d3 to e5f11e8 Compare June 19, 2015 17:45
@jcantrill jcantrill force-pushed the 20043_delete_resource_collapsing_tree branch from e5f11e8 to bb577b9 Compare June 19, 2015 17:57
@adietish
Copy link
Member

I still have the NPE:

java.lang.NullPointerException
    at org.jboss.tools.openshift.internal.ui.explorer.OpenShiftExplorerContentProvider.refreshGrouping(OpenShiftExplorerContentProvider.java:83)
    at org.jboss.tools.openshift.internal.ui.explorer.OpenShiftExplorerContentProvider.handleConnectionChanged(OpenShiftExplorerContentProvider.java:58)
    at org.jboss.tools.openshift.internal.common.ui.explorer.BaseExplorerContentProvider$ConnectionsRegistryListener.connectionChanged(BaseExplorerContentProvider.java:217)
    at org.jboss.tools.openshift.common.core.connection.ConnectionsRegistry.fireChange(ConnectionsRegistry.java:158)
    at org.jboss.tools.openshift.common.core.connection.ConnectionsRegistry.fireConnectionChanged(ConnectionsRegistry.java:116)
    at org.jboss.tools.openshift.internal.ui.job.DeleteResourceJob.doRun(DeleteResourceJob.java:48)
    at org.jboss.tools.openshift.internal.common.core.job.AbstractDelegatingMonitorJob.run(AbstractDelegatingMonitorJob.java:36)
    at org.eclipse.core.internal.jobs.Worker.run(Worker.java:55)

I suggest that you maybe rebase to latest master, maybe current master behaves differently?

@jcantrill
Copy link
Contributor Author

@adietish fixed with this openshift/openshift-restclient-java#36

@adietish
Copy link
Member

ok, after pulling and building openshift-restclient-java no NPE any more.

@adietish
Copy link
Member

rebased, merged and pushed to upstream/master

@adietish adietish closed this Jun 19, 2015
@jcantrill jcantrill deleted the 20043_delete_resource_collapsing_tree branch October 16, 2015 13:49
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

None yet

3 participants