Re: [platform-dev] Clipboard copy / past off popup menu

2020-04-10 Thread Ed Merks

George,

I'm not sure how others feel, but my feeling is that this mailing list 
is primarily intended for communication with/among the people developing 
the platform itself, so I think it's generally more appropriate ask 
usage questions on the forum:


https://www.eclipse.org/forums/index.php/f/11/

That being said, the only IClipboardSupportFactory I could find was this:

https://git.eclipse.org/c/gmf-runtime/org.eclipse.gmf-runtime.git/tree/org.eclipse.gmf.runtime.emf.clipboard.core/src/org/eclipse/gmf/runtime/emf/clipboard/core/IClipboardSupportFactory.java

But that's from GMF and how to use that is not the expertise of the 
folks developing the platform.  It doesn't look like the GMF forum is 
very helpful so sending you there probably won't help:


  https://www.eclipse.org/forums/index.php/f/16/

Perhaps GMF is using a class derived from EMF and this menuAboutToShow 
method is being called:


https://git.eclipse.org/c/emf/org.eclipse.emf.git/tree/plugins/org.eclipse.emf.edit.ui/src/org/eclipse/emf/edit/ui/action/EditingDomainActionBarContributor.java#n614

You'll need to debug how the actions are being added and which ones are 
being added.


Regards,
Ed

On 10.04.2020 21:47, George Aroush wrote:


Hi everyone,

This is my first post and I’m not sure if I’m posting to the right 
mailing list.


I inherited a plugin development project and I’m learning my way 
through the code and Eclipse plugin development.  So if my question is 
not and use of terms is not clear let me know.


Our application uses IClipboardSupportFactory to take care of copy / 
past that are on the menu-bar.  We also have code that provides copy / 
past function off a popup menu.  This code is NOT invoking the same 
copy / past that code that gets used from the menu-bar copy / past, 
i.e. IClipboardSupportFactory.  Instead, it is using our own class 
that inherits from GlobalAction and it has a different logic for copy 
/ past which is only copying and pasting the UI elements not the 
underlying metadata of our application associated with the UI elements.


My question to the group is this, when I create my popup-menu how do I 
add to IMenuManager the copy / past handlers of 
IClipboardSupportFactory?  If I can do this, then a copy / past action 
from the popup-menu’s copy / past selection will do the right thing.


Btw, using the short-cut keys of Ctrl-C / Ctrl-V is working.  They 
invoke the copy / past handler off IClipboardSupportFactory.


Thanks,

-- George


___
platform-dev mailing list
platform-dev@eclipse.org
To unsubscribe from this list, visit 
https://www.eclipse.org/mailman/listinfo/platform-dev
___
platform-dev mailing list
platform-dev@eclipse.org
To unsubscribe from this list, visit 
https://www.eclipse.org/mailman/listinfo/platform-dev


[platform-dev] Clipboard copy / past off popup menu

2020-04-10 Thread George Aroush
Hi everyone,

 

This is my first post and I'm not sure if I'm posting to the right mailing
list.

 

I inherited a plugin development project and I'm learning my way through the
code and Eclipse plugin development.  So if my question is not and use of
terms is not clear let me know.

 

Our application uses IClipboardSupportFactory to take care of copy / past
that are on the menu-bar.  We also have code that provides copy / past
function off a popup menu.  This code is NOT invoking the same copy / past
that code that gets used from the menu-bar copy / past, i.e.
IClipboardSupportFactory.  Instead, it is using our own class that inherits
from GlobalAction and it has a different logic for copy / past which is only
copying and pasting the UI elements not the underlying metadata of our
application associated with the UI elements.

 

My question to the group is this, when I create my popup-menu how do I add
to IMenuManager the copy / past handlers of IClipboardSupportFactory?  If I
can do this, then a copy / past action from the popup-menu's copy / past
selection will do the right thing.

 

Btw, using the short-cut keys of Ctrl-C / Ctrl-V is working.  They invoke
the copy / past handler off IClipboardSupportFactory.

 

Thanks,

 

-- George

 

___
platform-dev mailing list
platform-dev@eclipse.org
To unsubscribe from this list, visit 
https://www.eclipse.org/mailman/listinfo/platform-dev