Comments (6)
Are you able to get more info from the AnyEdit folks to see what exactly the "global save event" is? There's probably a way for me to manually fire that event if I know exactly what it is.
As for Vrapper, when you do :w
we invoke AbstractTextEditor.doSave()
. When you do :wall
we invoke AbstractTextEditor.getSite().getWorkbenchWindow().getWorkbench().saveAllEditors()
. I'm not really sure what to do if those methods don't fire global save events. I'm not aware of other save methods that we should be invoking instead.
I don't mind making this change to support AnyEdit if you can find what exactly needs to be changed.
from vrapper.
Hi,
I'm the AnyEdit guy :-)
I think that you have to execute something like this:
IHandlerService handlerService = (IHandlerService) PlatformUI
.getWorkbench().getService(IHandlerService.class);
try {
handlerService.executeCommand(IWorkbenchCommandConstants.FILE_SAVE, null);
} catch (CommandException e) {
// TODO Auto-generated catch block
}
instead of directly calling doSave(). All the required hooks will be then executed. AnyEdit works on IExecutionListener.preExecute() hook, which is triggered by the "save" command execution (e.g. if one just hits "Ctrl+S" or clicks on the "save" button).
I did not tried it but I guess this should work.
Regards,
Andrey
from vrapper.
Copy and pasting code is definitely something I'm capable of! Thanks for doing the hard work for me. :) The :w
command still appears to work so it's all the same on my end. I'll just assume I need to make a similar change for the "save all" operation and use IWorkbenchCommandConstants.FILE_SAVE_ALL
. Thanks again!
from vrapper.
Ok, I've updated the unstable update site with 0.21.20120527. This version contains the refactored save operations. Please install it alongside AnyEdit and let me know if Andrey's fix didn't actually work. Thanks!
from vrapper.
Thanks very much for the fast turnaround. I'll try it out when I get back
in an hour or two and let you know how it looks.
from vrapper.
That looks great, tested both :w and :wall and both seem to work as they expected. Thanks very much kerforbes and Andrey for the fast resolution to this issue.
from vrapper.
Related Issues (20)
- _vrapperrc HOT 5
- Cannot get rename to work HOT 1
- Replacing something with forward slashes HOT 8
- :reg command doesn't work when used alone HOT 8
- Vrapper not running on Eclipse 4.21.0 HOT 10
- Insert macro with { don't work HOT 2
- Replace regex within visual-box \%V is not working HOT 2
- Can't bind "option+[KEY]" using MacOS. HOT 3
- content assist like navigation in quick assist and hyperlink menus
- Can't change to a different tab that is far away with <C-w><number>gt HOT 2
- Add ":wrap" command line command bind to Eclipse's action "Toggle Word Wrap" HOT 1
- Sub-Word plugin unexpected behaviors
- Adding DVT (a SystemVerilog plugin) action to vrapper keymaps HOT 2
- Vim doesn't work on windows of Table views HOT 2
- Cannot find active input interceptor for error editor HOT 1
- ctrl+v -> i -> w leaves visual block mode
- Typing after double quote locks up Eclipse
- Stay in visual mode while jumping through editor commands
- How to assign the leader key to the spacebar? HOT 1
- Need to integrate vim and emacs plugin HOT 1
Recommend Projects
-
React
A declarative, efficient, and flexible JavaScript library for building user interfaces.
-
Vue.js
🖖 Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.
-
Typescript
TypeScript is a superset of JavaScript that compiles to clean JavaScript output.
-
TensorFlow
An Open Source Machine Learning Framework for Everyone
-
Django
The Web framework for perfectionists with deadlines.
-
Laravel
A PHP framework for web artisans
-
D3
Bring data to life with SVG, Canvas and HTML. 📊📈🎉
-
Recommend Topics
-
javascript
JavaScript (JS) is a lightweight interpreted programming language with first-class functions.
-
web
Some thing interesting about web. New door for the world.
-
server
A server is a program made to process requests and deliver data to clients.
-
Machine learning
Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.
-
Visualization
Some thing interesting about visualization, use data art
-
Game
Some thing interesting about game, make everyone happy.
Recommend Org
-
Facebook
We are working to build community through open source technology. NB: members must have two-factor auth.
-
Microsoft
Open source projects and samples from Microsoft.
-
Google
Google ❤️ Open Source for everyone.
-
Alibaba
Alibaba Open Source for everyone
-
D3
Data-Driven Documents codes.
-
Tencent
China tencent open source team.
from vrapper.