Skip to main content



      Home
Home » Eclipse Projects » Vex » How to get attributes?(Getting attributes when vex is implemented as a dialog.)
How to get attributes? [message #1077874] Fri, 02 August 2013 04:55 Go to next message
Eclipse UserFriend
Hi

I implement vex in a dialog.

I wonder if there is a way of getting a properties window with the attributes (or any other way to access attributes).

It's easy to access elements via the
org.eclipse.vex.ui.internal.handlers.AddElementHandler
but couldn't figure a way to access the attributes.

Many thanks

Shay.
Re: How to get attributes? [message #1078657 is a reply to message #1077874] Sat, 03 August 2013 06:19 Go to previous messageGo to next message
Eclipse UserFriend
Hi,

attributes are currently only editable in the properties view. There is nothing like the content assist for elements.

You may want to take a look at org.eclipse.vex.ui.internal.property.ElementPropertySource which gets the attributes for an element in the properties view.

The main points here are
final List<AttributeDefinition> attributeDefinitions = validator.getAttributeDefinitions(element);
to get all possible attributes for a given element and
element.getAttribute(attributeDefinition.getName()
which returns the value for an attribute.

Hope this helps to get you started, regards
Carsten
Re: How to get attributes? [message #1080650 is a reply to message #1078657] Tue, 06 August 2013 04:02 Go to previous message
Eclipse UserFriend
Hi Carsten. This is GREAT help Smile
Many thanks.
Previous Topic:Why is Editor Read-Only?
Next Topic:Plugin creation
Goto Forum:
  


Current Time: Mon May 12 17:58:49 EDT 2025

Powered by FUDForum. Page generated in 0.04790 seconds
.:: Contact :: Home ::.

Powered by: FUDforum 3.0.2.
Copyright ©2001-2010 FUDforum Bulletin Board Software

Back to the top