Skip to main content


Eclipse Community Forums
Forum Search:

Search      Help    Register    Login    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 08:55 Go to next message
shay leon is currently offline shay leonFriend
Messages: 9
Registered: June 2012
Junior Member
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 10:19 Go to previous messageGo to next message
Carsten Hiesserich is currently offline Carsten HiesserichFriend
Messages: 5
Registered: June 2013
Junior Member
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 08:02 Go to previous message
shay leon is currently offline shay leonFriend
Messages: 9
Registered: June 2012
Junior Member
Hi Carsten. This is GREAT help Smile
Many thanks.
Previous Topic:Why is Editor Read-Only?
Next Topic:Plugin creation
Goto Forum:
  


Current Time: Tue Mar 19 03:08:16 GMT 2024

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

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

Back to the top