Skip to main content


Eclipse Community Forums
Forum Search:

Search      Help    Register    Login    Home
Home » Modeling » GMF (Graphical Modeling Framework) » How to remove Properties menu item from popup menu and Sort/Filter Compartment Items also?
How to remove Properties menu item from popup menu and Sort/Filter Compartment Items also? [message #208294] Fri, 10 October 2008 15:41 Go to next message
Eclipse UserFriend
Originally posted by: mklinchin.yahoo.com

Hello,

When I right click on an object in a diagram I have two arate menu items:
"Show Properties View" which is always enables and "Properties" which is
always disabled. How can I get rid of "Properties" menu item there?

Also, How can I remove menu item "Filters => Sort/Filter Compartment
Items"? I can remove the whole Filter item in popup menu by adding these
lines in plugin.xml:

<popupPredefinedItem id="filtersMenu" remove="true"/>
<popupPredefinedItem id="filtersGroup" remove="true"/>

But I cannot remove it from main menu Diagram => Filters. I would like to
remove only Sort/Filter Compartment Items and leave Filter menu but even
with Filter it would be fine.

Thank you,
Igor
Re: How to remove Properties menu item from popup menu and Sort/Filter Compartme [message #208548 is a reply to message #208294] Tue, 14 October 2008 13:27 Go to previous messageGo to next message
Ajay  is currently offline Ajay Friend
Messages: 12
Registered: July 2009
Junior Member
Hello,

There is a class extending the DiagramActionBarContributor ,in the init
method you can remove the menus

public void init(IActionBars bars, IWorkbenchPage page) {
super.init(bars, page);
// To remove the submenus from Diagram Menu
if (bars instanceof EditorActionBars) {
IMenuManager iMenuManager = ((EditorActionBars) bars).getMenuManager();
if (iMenuManager instanceof SubMenuManager) {
IContributionItem[] iContributionItems =
((SubMenuManager)iMenuManager).getParent().getItems();
for (IContributionItem contributionItem : iContributionItems) {
if (contributionItem instanceof SubContributionItem) {
SubContributionItem subContributionItem =
(SubContributionItem)contributionItem; IContributionItem
innerContributionItem = subContributionItem.getInnerItem();
if (innerContributionItem.getId().equalsIgnoreCase("diagramMenu ")) {
IMenuManager menuManager = (IMenuManager) innerContributionItem;
menuManager.remove("filterGroup");
menuManager.remove("filtersMenu");
menuManager.remove("expandFilterGroup");
menuManager.remove("alignMenu");
menuManager.remove("arrangeMenu");
menuManager.remove("copyAppearanceGroup");
menuManager.remove("copyAppearancePropertiesAction");
menuManager.remove("autoSizeAction");
menuManager.remove("lineColorContributionItem");
menuManager.remove("routerMenu");
menuManager.remove("fillColorContributionItem");
}
}
}
}
}
}

Hope this helps you .....

Regards,
Ajay Kemparaj

Igor Klinchin wrote:

> Hello,

> When I right click on an object in a diagram I have two arate menu items:
> "Show Properties View" which is always enables and "Properties" which is
> always disabled. How can I get rid of "Properties" menu item there?

> Also, How can I remove menu item "Filters => Sort/Filter Compartment
> Items"? I can remove the whole Filter item in popup menu by adding these
> lines in plugin.xml:

> <popupPredefinedItem id="filtersMenu" remove="true"/>
> <popupPredefinedItem id="filtersGroup" remove="true"/>

> But I cannot remove it from main menu Diagram => Filters. I would like to
> remove only Sort/Filter Compartment Items and leave Filter menu but even
> with Filter it would be fine.

> Thank you,
> Igor
Re: How to remove Properties menu item from popup menu and Sort/Filter Compartme [message #208581 is a reply to message #208548] Tue, 14 October 2008 22:34 Go to previous messageGo to next message
Eclipse UserFriend
Originally posted by: mklinchin.yahoo.com

Hello Ajay,

It works great. I can filter out here both menus and cool bar too. Now I
need to figure out how to remove Proprties menu item in popup menu for
EditParts.

Thank you for your answer!
Igor


On Tue, 14 Oct 2008 13:27:47 +0000, Ajay wrote:

> Hello,
>
> There is a class extending the DiagramActionBarContributor ,in the init
> method you can remove the menus
>
> public void init(IActionBars bars, IWorkbenchPage page) {
> super.init(bars, page);
> // To remove the submenus from Diagram Menu
> if (bars instanceof EditorActionBars) {
> IMenuManager iMenuManager = ((EditorActionBars) bars).getMenuManager();
> if (iMenuManager instanceof SubMenuManager) {
> IContributionItem[] iContributionItems =
> ((SubMenuManager)iMenuManager).getParent().getItems();
> for (IContributionItem contributionItem : iContributionItems) {
> if (contributionItem instanceof SubContributionItem) {
> SubContributionItem subContributionItem =
> (SubContributionItem)contributionItem; IContributionItem
> innerContributionItem = subContributionItem.getInnerItem();
> if (innerContributionItem.getId().equalsIgnoreCase("diagramMenu ")) {
> IMenuManager menuManager = (IMenuManager) innerContributionItem;
> menuManager.remove("filterGroup");
> menuManager.remove("filtersMenu");
> menuManager.remove("expandFilterGroup");
> menuManager.remove("alignMenu");
> menuManager.remove("arrangeMenu");
> menuManager.remove("copyAppearanceGroup");
> menuManager.remove("copyAppearancePropertiesAction");
> menuManager.remove("autoSizeAction");
> menuManager.remove("lineColorContributionItem");
> menuManager.remove("routerMenu");
> menuManager.remove("fillColorContributionItem");
> }
> }
> }
> }
> }
> }
>
> Hope this helps you .....
>
> Regards,
> Ajay Kemparaj
>
> Igor Klinchin wrote:
>
>> Hello,
>
>> When I right click on an object in a diagram I have two arate menu items:
>> "Show Properties View" which is always enables and "Properties" which is
>> always disabled. How can I get rid of "Properties" menu item there?
>
>> Also, How can I remove menu item "Filters => Sort/Filter Compartment
>> Items"? I can remove the whole Filter item in popup menu by adding these
>> lines in plugin.xml:
>
>> <popupPredefinedItem id="filtersMenu" remove="true"/>
>> <popupPredefinedItem id="filtersGroup" remove="true"/>
>
>> But I cannot remove it from main menu Diagram => Filters. I would like to
>> remove only Sort/Filter Compartment Items and leave Filter menu but even
>> with Filter it would be fine.
>
>> Thank you,
>> Igor
Re: How to remove Properties menu item from popup menu and Sort/Filter Compartme [message #208604 is a reply to message #208548] Wed, 15 October 2008 06:49 Go to previous messageGo to next message
Eclipse UserFriend
Originally posted by: manojm.blr.interrasystems.com

I have modifide the file accordingly, but it still showing the context menu

Regards,
Manoj

Ajay wrote:
> Hello,
>
> There is a class extending the DiagramActionBarContributor ,in the init
> method you can remove the menus
> public void init(IActionBars bars, IWorkbenchPage page) {
> super.init(bars, page);
> // To remove the submenus from Diagram Menu
> if (bars instanceof EditorActionBars) {
> IMenuManager iMenuManager = ((EditorActionBars) bars).getMenuManager();
> if (iMenuManager instanceof SubMenuManager) {
> IContributionItem[] iContributionItems =
> ((SubMenuManager)iMenuManager).getParent().getItems();
> for (IContributionItem contributionItem : iContributionItems) {
> if (contributionItem instanceof SubContributionItem) {
> SubContributionItem subContributionItem =
> (SubContributionItem)contributionItem; IContributionItem
> innerContributionItem = subContributionItem.getInnerItem();
> if (innerContributionItem.getId().equalsIgnoreCase("diagramMenu ")) {
> IMenuManager menuManager = (IMenuManager) innerContributionItem;
> menuManager.remove("filterGroup");
> menuManager.remove("filtersMenu");
> menuManager.remove("expandFilterGroup");
> menuManager.remove("alignMenu");
> menuManager.remove("arrangeMenu");
> menuManager.remove("copyAppearanceGroup");
>
> menuManager.remove("copyAppearancePropertiesAction");
> menuManager.remove("autoSizeAction");
>
> menuManager.remove("lineColorContributionItem");
> menuManager.remove("routerMenu");
>
> menuManager.remove("fillColorContributionItem");
> }
> }
> }
> }
> }
> }
>
> Hope this helps you .....
>
> Regards,
> Ajay Kemparaj
> Igor Klinchin wrote:
>
>> Hello,
>
>
>> When I right click on an object in a diagram I have two arate menu items:
>> "Show Properties View" which is always enables and "Properties" which is
>> always disabled. How can I get rid of "Properties" menu item there?
>
>
>> Also, How can I remove menu item "Filters => Sort/Filter Compartment
>> Items"? I can remove the whole Filter item in popup menu by adding these
>> lines in plugin.xml:
>
>
>> <popupPredefinedItem id="filtersMenu" remove="true"/>
>> <popupPredefinedItem id="filtersGroup" remove="true"/>
>
>
>> But I cannot remove it from main menu Diagram => Filters. I would like to
>> remove only Sort/Filter Compartment Items and leave Filter menu but even
>> with Filter it would be fine.
>
>
>> Thank you,
>> Igor
>
>
>
Re: How to remove Properties menu item from popup menu and Sort/Filter Compartme [message #208769 is a reply to message #208604] Wed, 15 October 2008 22:34 Go to previous messageGo to next message
Eclipse UserFriend
Originally posted by: mklinchin.yahoo.com

Hi Manoj,

What are you trying to remove?

Igor

On Wed, 15 Oct 2008 12:19:30 +0530, Manoj Mitra wrote:

> I have modifide the file accordingly, but it still showing the context menu
>
> Regards,
> Manoj
>
> Ajay wrote:
>> Hello,
>>
>> There is a class extending the DiagramActionBarContributor ,in the init
>> method you can remove the menus
>> public void init(IActionBars bars, IWorkbenchPage page) {
>> super.init(bars, page);
>> // To remove the submenus from Diagram Menu
>> if (bars instanceof EditorActionBars) {
>> IMenuManager iMenuManager = ((EditorActionBars) bars).getMenuManager();
>> if (iMenuManager instanceof SubMenuManager) {
>> IContributionItem[] iContributionItems =
>> ((SubMenuManager)iMenuManager).getParent().getItems();
>> for (IContributionItem contributionItem : iContributionItems) {
>> if (contributionItem instanceof SubContributionItem) {
>> SubContributionItem subContributionItem =
>> (SubContributionItem)contributionItem; IContributionItem
>> innerContributionItem = subContributionItem.getInnerItem();
>> if (innerContributionItem.getId().equalsIgnoreCase("diagramMenu ")) {
>> IMenuManager menuManager = (IMenuManager) innerContributionItem;
>> menuManager.remove("filterGroup");
>> menuManager.remove("filtersMenu");
>> menuManager.remove("expandFilterGroup");
>> menuManager.remove("alignMenu");
>> menuManager.remove("arrangeMenu");
>> menuManager.remove("copyAppearanceGroup");
>>
>> menuManager.remove("copyAppearancePropertiesAction");
>> menuManager.remove("autoSizeAction");
>>
>> menuManager.remove("lineColorContributionItem");
>> menuManager.remove("routerMenu");
>>
>> menuManager.remove("fillColorContributionItem");
>> }
>> }
>> }
>> }
>> }
>> }
>>
>> Hope this helps you .....
>>
>> Regards,
>> Ajay Kemparaj
>> Igor Klinchin wrote:
>>
>>> Hello,
>>
>>
>>> When I right click on an object in a diagram I have two arate menu items:
>>> "Show Properties View" which is always enables and "Properties" which is
>>> always disabled. How can I get rid of "Properties" menu item there?
>>
>>
>>> Also, How can I remove menu item "Filters => Sort/Filter Compartment
>>> Items"? I can remove the whole Filter item in popup menu by adding these
>>> lines in plugin.xml:
>>
>>
>>> <popupPredefinedItem id="filtersMenu" remove="true"/>
>>> <popupPredefinedItem id="filtersGroup" remove="true"/>
>>
>>
>>> But I cannot remove it from main menu Diagram => Filters. I would like to
>>> remove only Sort/Filter Compartment Items and leave Filter menu but even
>>> with Filter it would be fine.
>>
>>
>>> Thank you,
>>> Igor
>>
>>
>>
Re: How to remove Properties menu item from popup menu and Sort/Filter Compartme [message #208777 is a reply to message #208769] Thu, 16 October 2008 04:19 Go to previous messageGo to next message
Eclipse UserFriend
Originally posted by: manojm.blr.interrasystems.com

Hi! Igor,

I want to remove few context menu item from diagram editor.

Regards,
Manoj

Igor Klinchin wrote:
> Hi Manoj,
>
> What are you trying to remove?
>
> Igor
>
> On Wed, 15 Oct 2008 12:19:30 +0530, Manoj Mitra wrote:
>
>
>>I have modifide the file accordingly, but it still showing the context menu
>>
>>Regards,
>>Manoj
>>
>>Ajay wrote:
>>
>>>Hello,
>>>
>>>There is a class extending the DiagramActionBarContributor ,in the init
>>>method you can remove the menus
>>>public void init(IActionBars bars, IWorkbenchPage page) {
>>>super.init(bars, page);
>>>// To remove the submenus from Diagram Menu
>>>if (bars instanceof EditorActionBars) {
>>>IMenuManager iMenuManager = ((EditorActionBars) bars).getMenuManager();
>>>if (iMenuManager instanceof SubMenuManager) {
>>>IContributionItem[] iContributionItems =
>>>((SubMenuManager)iMenuManager).getParent().getItems();
>>>for (IContributionItem contributionItem : iContributionItems) {
>>>if (contributionItem instanceof SubContributionItem) {
>>>SubContributionItem subContributionItem =
>>>(SubContributionItem)contributionItem; IContributionItem
>>>innerContributionItem = subContributionItem.getInnerItem();
>>>if (innerContributionItem.getId().equalsIgnoreCase("diagramMenu ")) {
>>>IMenuManager menuManager = (IMenuManager) innerContributionItem;
>>> menuManager.remove("filterGroup");
>>> menuManager.remove("filtersMenu");
>>> menuManager.remove("expandFilterGroup");
>>> menuManager.remove("alignMenu");
>>> menuManager.remove("arrangeMenu");
>>> menuManager.remove("copyAppearanceGroup");
>>>
>>>menuManager.remove("copyAppearancePropertiesAction");
>>> menuManager.remove("autoSizeAction");
>>>
>>>menuManager.remove("lineColorContributionItem");
>>> menuManager.remove("routerMenu");
>>>
>>>menuManager.remove("fillColorContributionItem");
>>> }
>>> }
>>> }
>>> }
>>> }
>>> }
>>>
>>>Hope this helps you .....
>>>
>>>Regards,
>>>Ajay Kemparaj
>>>Igor Klinchin wrote:
>>>
>>>
>>>>Hello,
>>>
>>>
>>>>When I right click on an object in a diagram I have two arate menu items:
>>>>"Show Properties View" which is always enables and "Properties" which is
>>>>always disabled. How can I get rid of "Properties" menu item there?
>>>
>>>
>>>>Also, How can I remove menu item "Filters => Sort/Filter Compartment
>>>>Items"? I can remove the whole Filter item in popup menu by adding these
>>>>lines in plugin.xml:
>>>
>>>
>>>> <popupPredefinedItem id="filtersMenu" remove="true"/>
>>>> <popupPredefinedItem id="filtersGroup" remove="true"/>
>>>
>>>
>>>>But I cannot remove it from main menu Diagram => Filters. I would like to
>>>>remove only Sort/Filter Compartment Items and leave Filter menu but even
>>>>with Filter it would be fine.
>>>
>>>
>>>>Thank you,
>>>>Igor
>>>
>>>
>>>
>
Re: How to remove Properties menu item from popup menu and Sort/Filter Compartme [message #208811 is a reply to message #208777] Thu, 16 October 2008 09:22 Go to previous messageGo to next message
Ajay  is currently offline Ajay Friend
Messages: 12
Registered: July 2009
Junior Member
Hi Manoj ,

The code i had posted was to remove the diagram Menus ,To Remove a Context
menu for a Particular EditPart(in my case its
com.test.gmf.OutPortEditPart) you can use the following snippet .

<extension
point=" org.eclipse.gmf.runtime.common.ui.services.action.contributi onItemProviders ">
<popupContribution
class=" org.eclipse.gmf.runtime.diagram.ui.providers.DiagramContextM enuProvider ">
<popupStructuredContributionCriteria
objectClass="com.test.gmf.OutPortEditPart"></popupStructuredContributionCriteria >
<popupPredefinedItem id="deleteFromDiagramAction"
remove="true"></popupPredefinedItem>
<popupPredefinedItem id="deleteFromModelAction"
remove="true"></popupPredefinedItem>
<popupPredefinedItem
id="formatMenu"
path="/filterFormatGroup"
remove="true">
</popupPredefinedItem>
<popupPredefinedItem
id="filtersMenu"
path="/filterGroup"
remove="true">
</popupPredefinedItem>
<popupPredefinedItem
id="editMenu"
path="/editGroup"
remove="true">
</popupPredefinedItem>
<popupPredefinedItem
id="navigateMenu"
path="/navigateGroup"
remove="true">
</popupPredefinedItem>
<popupPredefinedItem
id="properties"
remove="true">
</popupPredefinedItem>
</popupContribution>
</extension>


Manoj Mitra wrote:

> Hi! Igor,

> I want to remove few context menu item from diagram editor.

> Regards,
> Manoj

> Igor Klinchin wrote:
>> Hi Manoj,
>>
>> What are you trying to remove?
>>
>> Igor
>>
>> On Wed, 15 Oct 2008 12:19:30 +0530, Manoj Mitra wrote:
>>
>>
>>>I have modifide the file accordingly, but it still showing the context menu
>>>
>>>Regards,
>>>Manoj
>>>
>>>Ajay wrote:
>>>
>>>>Hello,
>>>>
>>>>There is a class extending the DiagramActionBarContributor ,in the init
>>>>method you can remove the menus
>>>>public void init(IActionBars bars, IWorkbenchPage page) {
>>>>super.init(bars, page);
>>>>// To remove the submenus from Diagram Menu
>>>>if (bars instanceof EditorActionBars) {
>>>>IMenuManager iMenuManager = ((EditorActionBars) bars).getMenuManager();
>>>>if (iMenuManager instanceof SubMenuManager) {
>>>>IContributionItem[] iContributionItems =
>>>>((SubMenuManager)iMenuManager).getParent().getItems();
>>>>for (IContributionItem contributionItem : iContributionItems) {
>>>>if (contributionItem instanceof SubContributionItem) {
>>>>SubContributionItem subContributionItem =
>>>>(SubContributionItem)contributionItem; IContributionItem
>>>>innerContributionItem = subContributionItem.getInnerItem();
>>>>if (innerContributionItem.getId().equalsIgnoreCase("diagramMenu ")) {
>>>>IMenuManager menuManager = (IMenuManager) innerContributionItem;
>>>> menuManager.remove("filterGroup");
>>>> menuManager.remove("filtersMenu");
>>>> menuManager.remove("expandFilterGroup");
>>>> menuManager.remove("alignMenu");
>>>> menuManager.remove("arrangeMenu");
>>>> menuManager.remove("copyAppearanceGroup");
>>>>
>>>>menuManager.remove("copyAppearancePropertiesAction");
>>>> menuManager.remove("autoSizeAction");
>>>>
>>>>menuManager.remove("lineColorContributionItem");
>>>> menuManager.remove("routerMenu");
>>>>
>>>>menuManager.remove("fillColorContributionItem");
>>>> }
>>>> }
>>>> }
>>>> }
>>>> }
>>>> }
>>>>
>>>>Hope this helps you .....
>>>>
>>>>Regards,
>>>>Ajay Kemparaj
>>>>Igor Klinchin wrote:
>>>>
>>>>
>>>>>Hello,
>>>>
>>>>
>>>>>When I right click on an object in a diagram I have two arate menu items:
>>>>>"Show Properties View" which is always enables and "Properties" which is
>>>>>always disabled. How can I get rid of "Properties" menu item there?
>>>>
>>>>
>>>>>Also, How can I remove menu item "Filters => Sort/Filter Compartment
>>>>>Items"? I can remove the whole Filter item in popup menu by adding these
>>>>>lines in plugin.xml:
>>>>
>>>>
>>>>> <popupPredefinedItem id="filtersMenu" remove="true"/>
>>>>> <popupPredefinedItem id="filtersGroup" remove="true"/>
>>>>
>>>>
>>>>>But I cannot remove it from main menu Diagram => Filters. I would like to
>>>>>remove only Sort/Filter Compartment Items and leave Filter menu but even
>>>>>with Filter it would be fine.
>>>>
>>>>
>>>>>Thank you,
>>>>>Igor
>>>>
>>>>
>>>>
>>
Re: How to remove Properties menu item from popup menu and Sort/Filter Compartme [message #208842 is a reply to message #208811] Thu, 16 October 2008 11:20 Go to previous message
Eclipse UserFriend
Originally posted by: manojm.blr.interrasystems.com

Thank You Ajay,

I will try that & let you know.

Regards,
Manoj

Ajay wrote:
> Hi Manoj ,
>
> The code i had posted was to remove the diagram Menus ,To Remove a
> Context menu for a Particular EditPart(in my case its
> com.test.gmf.OutPortEditPart) you can use the following snippet .
>
> <extension
> point=" org.eclipse.gmf.runtime.common.ui.services.action.contributi onItemProviders ">
>
> <popupContribution
> class=" org.eclipse.gmf.runtime.diagram.ui.providers.DiagramContextM enuProvider ">
> <popupStructuredContributionCriteria
> objectClass="com.test.gmf.OutPortEditPart"></popupStructuredContributionCriteria >
>
> <popupPredefinedItem id="deleteFromDiagramAction"
> remove="true"></popupPredefinedItem>
> <popupPredefinedItem id="deleteFromModelAction"
> remove="true"></popupPredefinedItem>
> <popupPredefinedItem
> id="formatMenu"
> path="/filterFormatGroup"
> remove="true">
> </popupPredefinedItem>
> <popupPredefinedItem
> id="filtersMenu"
> path="/filterGroup"
> remove="true">
> </popupPredefinedItem>
> <popupPredefinedItem
> id="editMenu"
> path="/editGroup"
> remove="true">
> </popupPredefinedItem>
> <popupPredefinedItem
> id="navigateMenu"
> path="/navigateGroup"
> remove="true">
> </popupPredefinedItem>
> <popupPredefinedItem
> id="properties"
> remove="true">
> </popupPredefinedItem>
> </popupContribution>
> </extension>
>
>
> Manoj Mitra wrote:
>
>> Hi! Igor,
>
>
>> I want to remove few context menu item from diagram editor.
>
>
>> Regards,
>> Manoj
>
>
>> Igor Klinchin wrote:
>>
>>> Hi Manoj,
>>>
>>> What are you trying to remove?
>>>
>>> Igor
>>>
>>> On Wed, 15 Oct 2008 12:19:30 +0530, Manoj Mitra wrote:
>>>
>>>
>>>> I have modifide the file accordingly, but it still showing the
>>>> context menu
>>>>
>>>> Regards,
>>>> Manoj
>>>>
>>>> Ajay wrote:
>>>>
>>>>> Hello,
>>>>>
>>>>> There is a class extending the DiagramActionBarContributor ,in the
>>>>> init method you can remove the menus public void init(IActionBars
>>>>> bars, IWorkbenchPage page) {
>>>>> super.init(bars, page);
>>>>> // To remove the submenus from Diagram Menu
>>>>> if (bars instanceof EditorActionBars) {
>>>>> IMenuManager iMenuManager = ((EditorActionBars)
>>>>> bars).getMenuManager();
>>>>> if (iMenuManager instanceof SubMenuManager) {
>>>>> IContributionItem[] iContributionItems =
>>>>> ((SubMenuManager)iMenuManager).getParent().getItems();
>>>>> for (IContributionItem contributionItem : iContributionItems) {
>>>>> if (contributionItem instanceof SubContributionItem) {
>>>>> SubContributionItem subContributionItem =
>>>>> (SubContributionItem)contributionItem;
>>>>> IContributionItem innerContributionItem =
>>>>> subContributionItem.getInnerItem();
>>>>> if (innerContributionItem.getId().equalsIgnoreCase("diagramMenu ")) {
>>>>> IMenuManager menuManager = (IMenuManager) innerContributionItem;
>>>>> menuManager.remove("filterGroup");
>>>>> menuManager.remove("filtersMenu");
>>>>>
>>>>> menuManager.remove("expandFilterGroup");
>>>>> menuManager.remove("alignMenu");
>>>>> menuManager.remove("arrangeMenu");
>>>>>
>>>>> menuManager.remove("copyAppearanceGroup");
>>>>>
>>>>> menuManager.remove("copyAppearancePropertiesAction");
>>>>> menuManager.remove("autoSizeAction");
>>>>>
>>>>> menuManager.remove("lineColorContributionItem");
>>>>> menuManager.remove("routerMenu");
>>>>>
>>>>> menuManager.remove("fillColorContributionItem");
>>>>> }
>>>>> }
>>>>> }
>>>>> }
>>>>> }
>>>>> }
>>>>>
>>>>> Hope this helps you .....
>>>>>
>>>>> Regards,
>>>>> Ajay Kemparaj
>>>>> Igor Klinchin wrote:
>>>>>
>>>>>
>>>>>> Hello,
>>>>>
>>>>>
>>>>>
>>>>>> When I right click on an object in a diagram I have two arate menu
>>>>>> items:
>>>>>> "Show Properties View" which is always enables and "Properties"
>>>>>> which is
>>>>>> always disabled. How can I get rid of "Properties" menu item there?
>>>>>
>>>>>
>>>>>
>>>>>> Also, How can I remove menu item "Filters => Sort/Filter Compartment
>>>>>> Items"? I can remove the whole Filter item in popup menu by adding
>>>>>> these
>>>>>> lines in plugin.xml:
>>>>>
>>>>>
>>>>>
>>>>>> <popupPredefinedItem id="filtersMenu" remove="true"/>
>>>>>> <popupPredefinedItem id="filtersGroup" remove="true"/>
>>>>>
>>>>>
>>>>>
>>>>>> But I cannot remove it from main menu Diagram => Filters. I would
>>>>>> like to
>>>>>> remove only Sort/Filter Compartment Items and leave Filter menu
>>>>>> but even
>>>>>> with Filter it would be fine.
>>>>>
>>>>>
>>>>>
>>>>>> Thank you,
>>>>>> Igor
>>>>>
>>>>>
>>>>>
>>>>>
>>>
>
>
Previous Topic:Relationships on Diagram Disappearing
Next Topic:CrossReferenceAdapter
Goto Forum:
  


Current Time: Sat Mar 06 18:05:12 GMT 2021

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

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

Back to the top