SourceViewer | View the source of any page in a new tab
kandi X-RAY | SourceViewer Summary
kandi X-RAY | SourceViewer Summary
Have you ever wanted to view the original source of a page? SourceViewer uses the same style as the native Safari WebInspector to display the initial HTML of a page in a new tab.
Support
Quality
Security
License
Reuse
Top functions reviewed by kandi - BETA
Currently covering the most popular Java, JavaScript and Python libraries. See a Sample of SourceViewer
SourceViewer Key Features
SourceViewer Examples and Code Snippets
Community Discussions
Trending Discussions on SourceViewer
QUESTION
I'm writing a custom editor in Eclipse and just integrated custom error recognition. Now I'm facing a strange issue: I can add Markers to my editor that get displayed all fine, I can also delete them while the editor is running.
What doesn't work: When I close my editor I want the markers to disappear/get deleted.
What I'm doing right now, is
creating the Markers with the transient property set like this:
marker.setAttribute(IMarker.TRANSIENT, true);
This doesn't seem to change anything though.trying to delete all Annotations via the source viewers annotation-model. This doesn't work, cause when I try to hook into my editors
dispose()
method or add aDisposeListener
to my sourceviewers textwidget, the sourceviewer already has been disposed of andgetSourceViewer().getAnnotationModel();
returnsnull
.
My deleteMarkers
method:
ANSWER
Answered 2019-May-07 at 14:35Hook into your editor close event, get a reference to the IResource for the editor (i believe you get can that on IEditorInput) and call IResource#deleteMarkers() on the relevant resource which will delete them when you close your editor. By design eclipse does not delete markers when editors are closed.
Here is some reference: http://help.eclipse.org/kepler/topic/org.eclipse.platform.doc.isv/reference/api/org/eclipse/core/resources/IResource.html#deleteMarkers(java.lang.String, boolean, int)
QUESTION
I working on an Eclipse plugin and currently I am trying to make Eclipse (Luna) to show customized text when hovering over a marker. I know that I could achieve this by specifying the marker arguments, but I need to change the text dynamically, e.g:
I have already tried these approaches without success:
1) Having a custom TextEditor
with custom SourceViewerConfiguration
:
ANSWER
Answered 2017-Oct-02 at 10:18For those who have a similar problem - I have found a "hacky" solution. I have created my own class MyAwesomeHover
:
Community Discussions, Code Snippets contain sources that include Stack Exchange Network
Vulnerabilities
No vulnerabilities reported
Install SourceViewer
Support
Reuse Trending Solutions
Find, review, and download reusable Libraries, Code Snippets, Cloud APIs from over 650 million Knowledge Items
Find more librariesStay Updated
Subscribe to our newsletter for trending solutions and developer bootcamps
Share this Page