Skip to content
Projects
Groups
Snippets
Help
Loading...
Help
Support
Keyboard shortcuts
?
Submit feedback
Contribute to GitLab
Sign in
Toggle navigation
C
CUP Eclipse Plugin
Project overview
Project overview
Details
Activity
Releases
Repository
Repository
Files
Commits
Branches
Tags
Contributors
Graph
Compare
Issues
0
Issues
0
List
Boards
Labels
Milestones
Merge Requests
0
Merge Requests
0
CI / CD
CI / CD
Pipelines
Jobs
Schedules
Analytics
Analytics
CI / CD
Repository
Value Stream
Wiki
Wiki
Members
Members
Collapse sidebar
Close sidebar
Activity
Graph
Create a new issue
Jobs
Commits
Issue Boards
Open sidebar
Dr. Michael Petter
CUP Eclipse Plugin
Commits
55fa1d48
Commit
55fa1d48
authored
Feb 27, 2016
by
Michael Schwarz
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
collapse decls, precs and imports in outline
parent
f5a86b5f
Changes
1
Hide whitespace changes
Inline
Side-by-side
Showing
1 changed file
with
14 additions
and
1 deletion
+14
-1
CupPlugin/src/de/tum/in/www2/cupplugin/editors/CupContentOutlinePage.java
.../tum/in/www2/cupplugin/editors/CupContentOutlinePage.java
+14
-1
No files found.
CupPlugin/src/de/tum/in/www2/cupplugin/editors/CupContentOutlinePage.java
View file @
55fa1d48
...
...
@@ -151,7 +151,7 @@ public class CupContentOutlinePage extends ContentOutlinePage implements
result
.
accept
(
visitor
,
null
);
OutlineEntry
tree
=
visitor
.
getTree
();
viewer
.
setInput
(
tree
);
try
{
// viewer.getControl().setRedraw(false);
viewer
.
getTree
().
setRedraw
(
false
);
...
...
@@ -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
Markdown
is supported
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