editor - Eclipse Graphiti, How to create "CustomFeature's create & get all Elements"? -


i have 2 questions, maybe can give me idea how can this

i've created new "testfeature" extended abstractcustomfeature , can call in diagram. how can list contains elements diagram?(i want update names , colors @ start , later)

my second question is: i'm trying add elements diagram without drag , drop them palette.

for example have elements saved in diagram , "model miss 3 elements in diagram". want write custom feature, draw/put missing elements in graphiti diagram one/two clicks, maybe need use zest @ part? @ beginning want put few elements without drop them palette, how can this?

maybe can give me direction?

thanks help!

how can list contains elements diagram?

diagram containershape, can call getchildren() retrieve shapes

add elements diagram without drag , drop them palette.

is object created, inside emf model, , want add graphical counterpart diagram? if so, need instantiate , execute corresponding xxxaddfeature class.

elsewhere (more probable, if want mimic drag-n-drop palette), must call proper xxxcreatefeature, add ("create", in graphiti parlance) element model (typically, create body @ end invoke addgraphicalrepresentation() add corresponding graphical element diagram calling, internally appropiate xxxaddfeature).


Comments

Popular posts from this blog

linux - Does gcc have any options to add version info in ELF binary file? -

android - send complex objects as post php java -

charts - What graph/dashboard product is facebook using in Dashboard: PUE & WUE -