Validating and showing errors in custom editor - eclipse

I have custom editor in my plugin with some text fields at top and a Table Viewer below. One of the fields on the top is required. If left blank I want to show a error message on top in editor and in problems view of eclipse.
Using IMarker I am able to show error in Problems view but how to highlight the same in editor for the user.
Below is the screen shot of Editor I am creating (not actual but similar to this)
Editor
The editor content is based on an XML file. The attributes present on the child node of the root are displayed in table and attributes on root node displayed in text fields above the table. It is not a multipage editor - I am not providing source view for user to edit just this UI.
The text field at top I need to validate like if left blank provide an error message and so on.
Thanks.

Related

Add a cell renderer using Glade

I'm using Glade to build a GTK user interface for my Rust program.
The issue is that items that are added to the ListStore are not showing up. I have horizontal lines set up that show up, but the text of the items is not showing up. I Googled and I suspect it's because of the cell renderers. I have tried to add a cell renderer in Glade, however I didn't see anywhere where could I do that. I right click on the treeview, click Edit, right click on the row/column but nothing about cell renderers is displayed.
How can I add a cell renderer using Glade?
$ glade --version
glade 3.22.1
It's very hard to find. I search lots of tutorial but many of them are very old, so the interface was quite different.
Right click GtkTreeView and choose "Edit"
On top left sub area, click blue "+" sign to add a new column.
right click newly created column, choose add child text
You will see Cell Render area showing up to the right.
In "Properties and Attributes", set "Text" properties to the column you wish to present.

Magento 2 remove the unwanted sidebar div displaying something I don't know where come from

the image attached shows the sidebar in a category page that lists all its products with this sidebar that shows search block and compare block then this div that shows that error. I don't know how this been generated but I want to remove this error info div
additional sidebar div
Turn on path hints
Get file template
Copy template to your theme and remove your div.

Eclipse plugin- No more handles error while populating outline view

I am trying to populate a outline view with keywords/tokens selected from the editor content.
Once a keyword is added a keyword is added in editor it is simultaneously added to outline view at appropriate position then outline is refreshed and expanded.
But when adding multiple lines in large number one after the other, I start getting swt exception: no more handles issue.
Any suggestions would be welcomed.

Custom Drop Down Menu in a Custom Word Content Control

I'm able to create a DropDown ContentControl in word such that a user can select an item from the drop down and that item becomes the text displayed in the ContentControl. However I've noticed that when you create a citation that drop down list contains command items that can launch dialogs. Is there any way to replicate this behaviour but with custom content controls that launch custom dialogs.
Apparently this is impossible as mentioned in the link below because:
This isn't a "standard" content control. This is something Word puts around a Citation field (and around Date fields and some other kinds). But the functionality is Word-internal and proprietary. It's not something that's exposed in the API. IOW, you can't do that, I'm afraid...
http://social.msdn.microsoft.com/Forums/vstudio/en-US/40542235-1a32-45e6-9aef-55709021ce53/how-do-i-create-a-contentcontrol-with-a-menu-like-when-inserting-a-placeholder?forum=worddev

TYPO3 TCA - Display or hide tabs at treelevel

For an project, I have extended the TYPO3 TCA with a extra extension, named "project_extends". Now, I have all new TCA Objects - sorted in tabs - on every Treepoint/Contentpage, to configurate some fluid templates or extensions.
For example: I have three tabs, named "Tab1","Tab2" and "Tab3".
Now I want to display Tab1 and Tab3 at the second tree-level of the contentpages, but not at level one.
I don't found a understandable solution via google & co and hope here of helpful solutions :)
That's simple, to hide whole tab you just need to disable ALL fields which are visible on it.
To do this open page properties, find Page TSconfig field and for each field you want to disable add something like this:
TCEFORM.tt_content.list_type.disabled = 1
in this sample tt_content is a required table and list_type is the field. Normally (without above config) it should be visible as only field on the Plugin tab when inserting TT content with type Insert Plugin , however while you disabled it will be hidden and also tab will disappear.
Tip: you can recognize these values using some browser inspection tool, i.e. FireBug of Firefox.