Skip to main content

[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index] [List Home]
Re: [jdt-debug-dev] [Variables view] How to Auto-activate custom filters

Hi Christian,
You can try overriding "Select" method from ViewerFilter class to return true for the views it should get activated.

Thanks,
Sarika

Inactive hide details for Christian Pontesegger ---05/05/2015 03:29:09 PM---Hi, I was just recently playing around with the VarChristian Pontesegger ---05/05/2015 03:29:09 PM---Hi, I was just recently playing around with the Variables view for a custom

From: Christian Pontesegger <christian.pontesegger@xxxxxx>
To: jdt-debug-dev@xxxxxxxxxxx
Date: 05/05/2015 03:29 PM
Subject: [jdt-debug-dev] [Variables view] How to Auto-activate custom filters
Sent by: jdt-debug-dev-bounces@xxxxxxxxxxx





Hi,

I was just recently playing around with the Variables view for a custom
debugger implementation of mine. There I added custom filters for
certain variable types. Activating/deactivating filters works fine from
the view menu.

What I am missing is a way to register these filters automatically when
the view is activated. Currently my variables are not filtered by
default. The user has to manually enable these filters. The settings are
also not persisted, so it has to be done everytime eclipse is launched.
My current implementation uses a ViewFilter:
http://git.eclipse.org/c/ease/org.eclipse.ease.core.git/tree/plugins/org.eclipse.ease.lang._javascript_.rhino.debugger/src/org/eclipse/ease/lang/_javascript_/rhino/debugger/actions/ViewFilterAction.java
The derived filter:
http://git.eclipse.org/c/ease/org.eclipse.ease.core.git/tree/plugins/org.eclipse.ease.lang._javascript_.rhino.debugger/src/org/eclipse/ease/lang/_javascript_/rhino/debugger/actions/ModuleFilterAction.java

Is there some default implementation I could use?

thanks
Christian
_______________________________________________
jdt-debug-dev mailing list
jdt-debug-dev@xxxxxxxxxxx
To change your delivery options, retrieve your password, or unsubscribe from this list, visit
https://dev.eclipse.org/mailman/listinfo/jdt-debug-dev


GIF image


Back to the top