Skip to content
GitLab
Menu
Projects
Groups
Snippets
Help
Help
Support
Community forum
Keyboard shortcuts
?
Submit feedback
Contribute to GitLab
Sign in
Toggle navigation
Menu
Open sidebar
Michael Schwarz
CUP Eclipse Plugin
Commits
55fa1d48
Commit
55fa1d48
authored
Feb 27, 2016
by
Michael Schwarz
🤔
Browse files
collapse decls, precs and imports in outline
parent
f5a86b5f
Changes
1
Show whitespace changes
Inline
Side-by-side
CupPlugin/src/de/tum/in/www2/cupplugin/editors/CupContentOutlinePage.java
View file @
55fa1d48
...
...
@@ -167,6 +167,11 @@ public class CupContentOutlinePage extends ContentOutlinePage implements
{
viewer
.
expandToLevel
(
2
);
}
// Even though we expanded before, we want to collapse decls and precs
// and imports
viewer
.
setExpandedState
(
visitor
.
getDeclsAndPrec
(),
false
);
viewer
.
setExpandedState
(
visitor
.
getImports
(),
false
);
}
finally
{
viewer
.
getTree
().
setRedraw
(
true
);
...
...
@@ -256,6 +261,14 @@ public class CupContentOutlinePage extends ContentOutlinePage implements
return
root
;
}
public
OutlineEntry
getDeclsAndPrec
(){
return
declsAndPrec
;
}
public
OutlineEntry
getImports
(){
return
imports
;
}
public
int
getProductionCount
()
{
return
productionCount
;
}
...
...
Write
Preview
Supports
Markdown
0%
Try again
or
attach a new file
.
Attach a file
Cancel
You are about to add
0
people
to the discussion. Proceed with caution.
Finish editing this message first!
Cancel
Please
register
or
sign in
to comment