Skip to main content


Eclipse Community Forums
Forum Search:

Search      Help    Register    Login    Home
Home » Modeling » TMF (Xtext) » Redraw outline from a filter
Redraw outline from a filter [message #1708435] Wed, 16 September 2015 13:18
Eleanor Richie is currently offline Eleanor RichieFriend
Messages: 125
Registered: August 2014
Senior Member
Hi,
I am trying to have 2 types of representation in the outline browser. one as a tree and the other one is flatten. I know how to make both but I want to be able to make the outline redraw the nodes again with a filter.
The filter has the apply method which did nothing when I added this in the apply:
  @Inject 
   private VHDLOutlineTreeProvider treeProvider;
  @Override
  protected boolean apply(IOutlineNode node) {

  if(node instanceof DocumentRootNode){
        treeProvider.filterApplied = true;
        treeProvider.createRoot( ((DocumentRootNode) node).getDocument());
}
return true;
}


All I want is to set the boolean filterApplied to true then redraw and in the myDslOutlineTreeProvider that extends BackgroundOutlineTreeProvider all the magic will happen in creating the tree either as a tree or flatten.
Previous Topic:Customize Outlining
Next Topic:Cutomize Scope problem
Goto Forum:
  


Current Time: Tue Apr 16 06:08:45 GMT 2024

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

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

Back to the top