Eclipse Community Forums
Forum Search:

Search      Help    Register    Login    Home
Home » Eclipse Projects » Plugin Development Environment (PDE) » Enabling and Disabling Paste Icons(Enabling and Disabling Paste Icons based on Clipboard c)
Enabling and Disabling Paste Icons [message #509517] Fri, 22 January 2010 11:48
Dhinesh is currently offline Dhinesh
Messages: 10
Registered: January 2010
Junior Member

Hello Folks,

I have developed a plug-in for doing copy-Paste feature to copy and paste a particular Object. It is a seperate plug-in. Both Copy and Paste are associated with a View that is contributed by a different plug-in.

So, in short to mention the Plug-in details.

Copy/Paste contributed by com.a.b --> Seperate.
View is provided by com.c.d ->> Seperate

I have used Eclipse copy/paste actions..i.e org.eclipse.ui.copyaction and org.eclipse.ui.pasteaction. I have contributed a pop-up menu Extensions mentioning the action IDs.
Basically Copy/paste works fine,but I want to enable and disable the actions based on the Clipboard contents.

I have written the code in selectionChanged() event of the action class. It's getting fired only when this plug-in is loaded. Until then, the paste action is enabled eventhough there is no relevant data to be pasted.

Now I want to disable it when the Eclipse is launced.

Could anyone of you pls help me with this problem.

Thanks in Advance,
Dhinesh.M
Previous Topic:Extend existing Export Wizard
Next Topic:Enabling and Disabling Paste Icons
Goto Forum:
  


Current Time: Thu Jul 31 15:40:16 EDT 2014

Powered by FUDForum. Page generated in 0.04393 seconds