-
Notifications
You must be signed in to change notification settings - Fork 73
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
[feature request] panel buton to launch GFM Viewer View #42
Comments
That's not too hard. From an Action contribution or similar, you can do:
|
@satyagraha Frankly, I don't know how to accomplish this. |
And is not as simple as it seems:
OK, that was dreaming that makes it complicated. |
Not so complicated. The exception handler covers the situation when GFMV is not installed. If you want better user feedback, then replace the MessageDialog.openWarning(
window.getShell(),
"Notification",
"Please install GFM viewer plugin, see https://github.com/satyagraha/gfm_viewer"); Assuming GFMV is installed, then when focus returns to the editor input, then the viewer window is notified internally and the view is automatically updated (if possible). If I had more time, I could prototype this, however I am very occupied at present. |
Please remind me. GFMV #18 is using Eclipse 4.x APIs like Part, while this plugin is not. I wonder if code above by @satyagraha would work on Eclipse 3.x |
Note GFMV does not use Eclipse 4.x-specific API's or classes. The compilation problem above is easily resolved by editing the plugin.xml for the Winterwell editor and adding the org.eclipse.ui.workbench entry to the Required Plug-Ins list. |
@satyagraha please check/comment PR #53 |
Do you have GFM Viewer installed ? |
That worked. Thanks
|
Just hit the same error message. It may be more helpful if the error message stated something along the lines of "Have you properly installed the gfm_viewer plugin?". It could also be listed as an optional dependency when installing Eclipse-Markdown-Editor-Plugin. |
The message is just string within this project, |
It would first require to have GFM_Viewer to be in the same p2 repository as this plugin. |
Are you sure about this? I noticed the following pane when defining a feature category in Eclipse RCP: I've never tried configuring anything like this myself, but it does seem to imply that it's possible to link to other p2 repositories. |
Let's continue in new issue e.g. #83 |
@satyagraha maybe could hint how Markdown preview could have icon to launch GFM Viewer View (if installed)
This way, two plugins would be nicely integrated.
The text was updated successfully, but these errors were encountered: