-
Notifications
You must be signed in to change notification settings - Fork 220
Allow using visible regions with projections #3074
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
base: master
Are you sure you want to change the base?
Allow using visible regions with projections #3074
Conversation
48e4b9a
to
88d2623
Compare
Test Results 2 778 files ± 0 2 778 suites ±0 1h 38m 37s ⏱️ - 10m 22s For more details on these failures, see this check. Results for commit c5c2977. ± Comparison against base commit cee4631. ♻️ This comment has been updated with latest results. |
@danthe1st : thanks for PR, few things:
|
I'll make sure to do that once I located and fixed a remaining issue in combination with JDT (if I select a method that's within a custom folding region and enter text, it seems to show "too much" text for some reason). While I think that's an issue with JDT-UI (it only seems to happen with custom folding regions and extended folding), I want to be sure about it first (and I opened this PR before everything is finished to make it visible in advance/allow for discussion if applicable). |
bb4f64a
to
5274f99
Compare
While ProjectionViewer supports both using visible regions and projections, these features cannot be used in conjunction. This change allows the use of projections when visible regions are used. Fixes eclipse-platform#3074
I have made the requested changes. However, I want to note the following:
|
While ProjectionViewer supports both using visible regions and projections, these features cannot be used in conjunction. This change allows the use of projections when visible regions are used. Fixes eclipse-platform#3074
5274f99
to
5b7cb97
Compare
While ProjectionViewer supports both using visible regions and projections, these features cannot be used in conjunction. This change allows the use of projections when visible regions are used. Fixes eclipse-platform#3074
5b7cb97
to
fb861bc
Compare
I am not sure why the Jenkins build seems to have issues getting tycho set up (maybe issues with https://repo.eclipse.org/?) |
Yes there are infrastructure problems again:
I restarted the build. |
While ProjectionViewer supports both using visible regions and projections, these features cannot be used in conjunction. This change allows the use of projections when visible regions are used. Fixes eclipse-platform#3074
fb861bc
to
c5fb5f3
Compare
It looks like there was a test failure: https://ci.eclipse.org/platform/job/eclipse.platform.ui/job/PR-3074/lastCompletedBuild/testReport/ |
While ProjectionViewer supports both using visible regions and projections, these features cannot be used in conjunction. This change allows the use of projections when visible regions are used. Fixes eclipse-platform#3074
c5fb5f3
to
f34844d
Compare
While ProjectionViewer supports both using visible regions and projections, these features cannot be used in conjunction. This change allows the use of projections when visible regions are used. Fixes eclipse-platform#3074
f34844d
to
7ff50f2
Compare
While ProjectionViewer supports both using visible regions and projections, these features cannot be used in conjunction. This change allows the use of projections when visible regions are used. Fixes eclipse-platform#3074
7ff50f2
to
2ce3ba0
Compare
I now switched to an approach that should have fewer side effects. Instead of adding additional projection regions, I am now using the |
While ProjectionViewer supports both using visible regions and projections, these features cannot be used in conjunction. This change allows the use of projections when visible regions are used. Fixes eclipse-platform#3074
d2f4f5a
to
7a9cf09
Compare
While ProjectionViewer supports both using visible regions and projections, these features cannot be used in conjunction. This change allows the use of projections when visible regions are used. Fixes eclipse-platform#3074
Yeah I have no idea either and I don't want to randomly start ping people out of nowhere (so I tried to ask people who already commented i.e. you). One option might be to look for people who contributed in that area at some point (doesn't really seem like this is the case for some more than for others?) or I could ask in the |
...eclipse.jface.text/projection/org/eclipse/jface/text/source/projection/ProjectionViewer.java
Outdated
Show resolved
Hide resolved
...eclipse.jface.text/projection/org/eclipse/jface/text/source/projection/ProjectionViewer.java
Outdated
Show resolved
Hide resolved
...eclipse.jface.text/projection/org/eclipse/jface/text/source/projection/ProjectionViewer.java
Outdated
Show resolved
Hide resolved
Could you please update PR description to match proposed implementation? |
While ProjectionViewer supports both using visible regions and projections, these features cannot be used in conjunction. This change allows the use of projections when visible regions are used. Fixes eclipse-platform#3074
5a493ee
to
2f3a4b7
Compare
While ProjectionViewer supports both using visible regions and projections, these features cannot be used in conjunction. This change allows the use of projections when visible regions are used. Fixes eclipse-platform#3074
2f3a4b7
to
1756109
Compare
While ProjectionViewer supports both using visible regions and projections, these features cannot be used in conjunction. This change allows the use of projections when visible regions are used. Fixes eclipse-platform#3074
1756109
to
a783bc4
Compare
Thank you for your review. I made the requested changes and updated the description. |
...eclipse.jface.text/projection/org/eclipse/jface/text/source/projection/ProjectionViewer.java
Outdated
Show resolved
Hide resolved
...eclipse.jface.text/projection/org/eclipse/jface/text/source/projection/ProjectionViewer.java
Show resolved
Hide resolved
...eclipse.jface.text/projection/org/eclipse/jface/text/source/projection/ProjectionViewer.java
Outdated
Show resolved
Hide resolved
...eclipse.jface.text/projection/org/eclipse/jface/text/source/projection/ProjectionViewer.java
Outdated
Show resolved
Hide resolved
...eclipse.jface.text/projection/org/eclipse/jface/text/source/projection/ProjectionViewer.java
Outdated
Show resolved
Hide resolved
...eclipse.jface.text/projection/org/eclipse/jface/text/source/projection/ProjectionViewer.java
Outdated
Show resolved
Hide resolved
While ProjectionViewer supports both using visible regions and projections, these features cannot be used in conjunction. This change allows the use of projections when visible regions are used. Fixes eclipse-platform#3074
a783bc4
to
4327dc9
Compare
While ProjectionViewer supports both using visible regions and projections, these features cannot be used in conjunction. This change allows the use of projections when visible regions are used. Fixes eclipse-platform#3074
4327dc9
to
bdd39d0
Compare
Just a hint: for all the comments you have resolved, please use "Resolve Conversation" button so it is easier to see what is left open. |
While ProjectionViewer supports both using visible regions and projections, these features cannot be used in conjunction. This change allows the use of projections when visible regions are used. Fixes eclipse-platform#3074
bdd39d0
to
c5c5500
Compare
...eclipse.jface.text/projection/org/eclipse/jface/text/source/projection/ProjectionViewer.java
Outdated
Show resolved
Hide resolved
...eclipse.jface.text/projection/org/eclipse/jface/text/source/projection/ProjectionViewer.java
Outdated
Show resolved
Hide resolved
...eclipse.jface.text/projection/org/eclipse/jface/text/source/projection/ProjectionViewer.java
Outdated
Show resolved
Hide resolved
...eclipse.jface.text/projection/org/eclipse/jface/text/source/projection/ProjectionViewer.java
Show resolved
Hide resolved
While ProjectionViewer supports both using visible regions and projections, these features cannot be used in conjunction. This change allows the use of projections when visible regions are used. Fixes eclipse-platform#3074
c5c5500
to
c5c2977
Compare
While ProjectionViewer supports both using visible regions and projections, these features cannot be used in conjunction. This change allows the use of projections when visible regions are used. Fixes eclipse-platform#3074
c5c2977
to
da38e3d
Compare
This is my attempt to fix #3073 in order to implement eclipse-jdt/eclipse.jdt.ui#2264
Description
ProjectionViewer
currently cannot use visible regions and projections together (except by callingenableProjections()
aftersetVisibleRegions
in which case it will show a wrong region). This PR changes the implementation of visible regions to collapse everything outside the visible region.Note
I also didn't test it (much) with regions overlapping with the bounds of the visible region.
If needed, I can change it to try to make sure that parts outside of the visible regions cannot be expanded.
testing with JDT
To test this with JDT as requested in eclipse-jdt/eclipse.jdt.ui#2264, do the following:
Is there a way to launch an Eclipse installation like that from the command line? If yes, @totomomo18 might want to test it.
Note
Expanding a folding region outside the currently visible region will make that folding region visible.
To Do
There's still a minor issue with that if you enter text right after the closing}
of the currenly selected region.