|
Re: Can we disable right click on figure [message #165429 is a reply to message #165329] |
Fri, 14 December 2007 11:51 |
Eclipse User |
|
|
|
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 |
Eclipse User |
|
|
|
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 #166325 is a reply to message #166319] |
Fri, 28 December 2007 11:58 |
Eclipse User |
|
|
|
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
|
|
|
|
Powered by
FUDForum. Page generated in 0.03152 seconds