Skip to main content


Eclipse Community Forums
Forum Search:

Search      Help    Register    Login    Home
Home » Modeling » GMF (Graphical Modeling Framework) » Can we disable right click on figure
Can we disable right click on figure [message #165329] Fri, 14 December 2007 05:48 Go to next message
Eclipse UserFriend
Originally posted by: govind.ashrit.xxx.com

Hi All

Can any one tell me can we disable right click on figure...

please urgent


Regards
Govind R
Re: Can we disable right click on figure [message #165429 is a reply to message #165329] Fri, 14 December 2007 11:51 Go to previous messageGo to next message
Eclipse UserFriend
Originally posted by: 5d5.mail.ru

See DiagramEditor.configureGraphicalViewer(); you could use your own
DiagramContextMenuProvider.

govind wrote:
> Hi All
>
> Can any one tell me can we disable right click on figure...
>
> please urgent
>
>
> Regards
> Govind R
>
Re: Can we disable right click on figure [message #165580 is a reply to message #165429] Mon, 17 December 2007 05:10 Go to previous messageGo to next message
Eclipse UserFriend
Originally posted by: govind.ashrit.xxx.com

<popupContribution
class=" org.eclipse.gmf.runtime.diagram.ui.providers.DiagramContextM enuProvider ">
<popupStructuredContributionCriteria
objectClass="xxx.diagram.edit.parts.yyyEditPart"/>
<popupPredefinedItem id="deleteFromDiagramAction"
remove="true"/>

this is in the plugin.xml
can u be more clear on ur explaination..


Regards
Govind R.
Re: Can we disable right click on figure [message #166319 is a reply to message #165580] Fri, 28 December 2007 05:04 Go to previous messageGo to next message
Eclipse UserFriend
Originally posted by: govind.ashrit.xxx.com

Hi All..

can we by any means prevent one from deleting the figures on diagram.


Please help..

Regards
Govind
Re: Can we disable right click on figure [message #166325 is a reply to message #166319] Fri, 28 December 2007 11:58 Go to previous messageGo to next message
Eclipse UserFriend
Originally posted by: trommas.yahoo.com

govind wrote:
> Hi All..
>
> can we by any means prevent one from deleting the figures on diagram.
>
>
> Please help..
>
> Regards
> Govind
>

Hi Govind. Ways of changing deletion have been discussed many times on
this list earlier, maybe a search will be helpful. I found this:


Install a ComponentEditPolicy like this:

installEditPolicy(EditPolicy.COMPONENT_ROLE,
new ComponentEditPolicy(){
protected Command getDeleteCommand(GroupRequest request) {
return null;
}
}
);


Merry Christmas,

Tomas Zijdemans
Re: Can we disable right click on figure [message #166395 is a reply to message #166325] Sat, 29 December 2007 09:18 Go to previous message
Eclipse UserFriend
Originally posted by: govind.ashrit.xxx.com

hi ..Tomas Zijdemans

Thanks a lot for u help..
i also went through the gmf list..it helped me a lot..


Merry Christmas, and Happy New Year..


Regards
Govind R Ashrit.
Previous Topic:Bug in gmfgen, Compartment and List Layout
Next Topic:Remove menu items from the popup menus(continued from list)
Goto Forum:
  


Current Time: Fri Apr 26 06:56:18 GMT 2024

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

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

Back to the top