I have a rich text component, I need to configure it in such a way that we can drag and drop the image in the rich text component.For that under rte plugins I have added one plugin called image which is of primary type nt:unstructured having features of String[] and value as *.Even,after adding that above image plugin, Im not able to drag and drop the image.Please let me know what I have done wrong.
Thanks,
Balaji
Due to documentation:
To activate all features for that plugin:
Name features
Type String
Value * (asterisk)
To activate specific features (any not explicitly defined will be deactivated):
Name features
Type String[] (multi-string; set Type to String and click Multi in CRXDE Lite)
Value(s) set to one, or more, feature values
Even if you are only setting one specific value of features you do
have to use String[].
String is only valid when defining features as *.
So if your type is String[], you have to explicitly put the feature name.I suggest you to change String[] to String ("*" in this situation will be ok).This
adds context menu entries for setting some image properties (currently only alignment is supported).
The Richtext Image plugin (and indeed most of the rtePlugins) seems to only be compatible with Mozilla Firefox. Try that browser and see if it works.
Related
I want to add references to other elements inside javadoc. The javadoc should look similar to:
/**
* ...
* #my.tag SomeElement
*/
I want to reuse the existing Java editor inside Eclipse. Of course I can type above javadoc already, however I'd like to add some features:
Navigation: upon Ctrl-Click / F3 I want to navigate to the editor showing SomeElement
Auto-completion: Ctrl-Space should complete the text / show valid alternatives
Checking: I want to create a warning marker and underline the SomeElement if it cannot be found
I already figured out that I can do the auto-completion by using the extension point org.eclipse.jdt.ui.javaCompletionProposalComputer, though this seems to be little more complex than I had hoped, so I might be on the wrong track here?
For checking my elements I might be able to use org.eclipse.jdt.core.compilationParticipant, which can generate markers upon compilation which afaik happens with every save operation.
But how can I can manage the navigation feature? Any pointers are welcome!
For navigation you can provide a Hyperlink Detector. You'll want to look at how the Java Editor and its existing detectors are declared in the org.eclipse.jdt.ui plug-in to determine the correct target ID.
I am developing an PDE for Eclipse, i have created annotations via markerAnnotationSpecification (see PDB help). I need those annotations without icon on left side (where breakpoints are), but problem is that when i do not specify icon parameter for my annotation, it will use default icon from symbolicIcon parameter. Currently i am using a bit hacky solution - loading an empty image. Still cursor changes when user targets icon place, which is not desired behavior.
TL;DR; Is there a way remove (do not use) this icon completely?
Here is one of my specification extension point elements
<specification
annotationType="com.xxx.profiler.editor.highlight.highannotation"
colorPreferenceKey="covc_h"
colorPreferenceValue="255,120,120"
highlightPreferenceKey="covh_h"
highlightPreferenceValue="true"
icon="/icons/ph_icon.gif" <!-- empty icon -->
label="High Coverage"
overviewRulerPreferenceKey="covr_h"
overviewRulerPreferenceValue="false"
presentationLayer="1"
textPreferenceKey="covt_h"
textPreferenceValue="false"
textStylePreferenceKey="covs_h"
textStylePreferenceValue="BOX"
verticalRulerPreferenceKey="covv_h"
verticalRulerPreferenceValue="false">
</specification>
//EDIT: I found out that this should be done with verticalRulerPreferenceValue="false" but for some reason, even that it is disabled in annotations preferences, the image is shown at my annotation
OK found the problem. org.eclipse.ui.editors.markerAnnotationSpecification was linked to markerType via org.eclipse.ui.editors.annotationTypes plug-in. In this plug-in i (following tutorial) automatically set parameter super to some value, which covered my settings in markerAnnotationSpecification. After removing inheritance parameter here, everything works as expected.
I want to change the appearance of project explorer view in eclipse by changing the default file/folder icons for my custom plugin resources. I am aware of Decorators - https://eclipse.org/articles/Article-Decorators/decorators.html , But how can I change the existing icons itself inspite of just putting an overlay or underlay image?
Also I don't want to create a new view , just want to reuse the project explorer with my icons.
The main icon used is taken from the default editor used for the file as defined by the org.eclipse.ui.editors extension point.
If you defining new file types and editors you can specify the icon, but you can't override the icon for existing types and editors.
To modify existing project explorer content first add a org.eclipse.ui.navigator.viewer extension point. Under that add a viewerContentBinding element with the id org.eclipse.ui.navigator.ProjectExplorer (that's the id of the standard Eclipse project explorer view).
Under that add a (includes) with a contentExtension element. The pattern identifies the IDs of navigator content to include and can contain wildcards, e.g. com.example.mycontent.*.
Next define a org.eclipse.ui.navigator.navigatorContent extension point with a navigatorContent element. Make sure the id you provide matches the above pattern. Set the content and label providers. If the content provider implements IPipelinedTreeContentProvider it will allow you to modify existing content (possibly wrapping things like IFolder inside classes your label provider understands). You'll also need to define triggerPoints to identify the items for which your content provider should be called.
It may be useful/necessary to suppress standard navigator content. You can do this by specifying an override element under navigatorContent with the policy InvokeAlwaysRegardlessOfSuppressedExt and id org.eclipse.ui.navigator.resourceContent.
In the most bizarre of circumstances, the label for my checkbox do not show up in my Struts2 JSP. I have a series of checkboxes, all following the same format, but none of the labels appear. Here is a sample declaration:
<s:checkbox name="chronCheck1" label="New Sales"/>
This is among the most basic of tasks, but something is obviously missing. I am running Struts2 version 2.2.1 via Weblogic 10. Not really sure what else is necessary to help troubleshoot.
You are probably using simple theme in your JSP. With simple theme you must create labels for inputs by yourself.
About simple theme from documentation:
For example, the textfield tag renders the HTML tag without a label, validation, error reporting, or any other formatting or functionality.
See http://struts.apache.org/2.x/docs/themes-and-templates.html.
It is not very clear from the official documentation for the s:checkbox, but in my experiment, if you don't specify the theme, the default theme does not support label. When I change the theme to either xhtml or css_xhtml it successfully showed the label. However these themes also add additional markup and css classes, so you probably need extra css styling and specifying labelposition (top, left, right or bottom) to achieve your desired look and feel. Another option is to create your own theme and apply it. Please refer to this documentation:
https://struts.apache.org/docs/struts-2-themes.html
Actually, still now I have not got the exact way to add different types of annotation/lines/boxes/highlights using the mouse directly on PDF.
I have tried different API (pdfbox, icepdf, iText, aspose) and successfully able to add text, text annotation, box annotation, images, but for each one i have some issue like:
when i add object, it add in a new page
when i add object it remove the old data
i want use the existing ICEPDF viewer to add text, but it does not allow it. and if i try to mix other API with ICEPDF, then I am not able to get the mouse click position where need to add.
There is only one API (ICE PDF) which allow to add box annotation direct on GUI by mouse but it does allow other things.
If not possible in pdf viewer then is there any class which will allow to do this?
I'm also open for any commercial library/class with a one time fee to do that.
I think BFO have added quite a few annotation tools. Have you looked at their tool?