Package org.eclipse.jface.action

Examples of org.eclipse.jface.action.MenuManager.find()


       
        assertTrue(manager.getItems().length > 0);
        assertNotNull(manager.find(MATCH_ALL));
        assertNull(manager.find(MATCH_ANY_GEOM));
        assertNull(manager.find(MATCH_GEOM_NAMED_GEO));
        assertNull(manager.find(MATCH_ON_TYPE_NAME));
        assertNull(manager.find(NEVER_SHOWN));
    }

    @Test
    public void testGetEditWithMenuNoGeom() {
View Full Code Here


        assertTrue(manager.getItems().length > 0);
        assertNotNull(manager.find(MATCH_ALL));
        assertNull(manager.find(MATCH_ANY_GEOM));
        assertNull(manager.find(MATCH_GEOM_NAMED_GEO));
        assertNull(manager.find(MATCH_ON_TYPE_NAME));
        assertNull(manager.find(NEVER_SHOWN));
    }

    @Test
    public void testGetEditWithMenuNoGeom() {
        SimpleFeatureTypeBuilder builder = new SimpleFeatureTypeBuilder();
View Full Code Here

        builder.setNamespaceURI(INVALID_TEST_URI);
       
        MenuManager manager = getEditWithFeatureMenuManager(builder, new Object[0], ID);
       
        assertTrue(manager.getItems().length > 0);
        assertNotNull(manager.find(MATCH_ALL));
        assertNull(manager.find(MATCH_ANY_GEOM));
        assertNull(manager.find(MATCH_GEOM_NAMED_GEO));
        assertNull(manager.find(MATCH_ON_TYPE_NAME));
        assertNull(manager.find(NEVER_SHOWN));
    }
View Full Code Here

       
        MenuManager manager = getEditWithFeatureMenuManager(builder, new Object[0], ID);
       
        assertTrue(manager.getItems().length > 0);
        assertNotNull(manager.find(MATCH_ALL));
        assertNull(manager.find(MATCH_ANY_GEOM));
        assertNull(manager.find(MATCH_GEOM_NAMED_GEO));
        assertNull(manager.find(MATCH_ON_TYPE_NAME));
        assertNull(manager.find(NEVER_SHOWN));
    }
View Full Code Here

        MenuManager manager = getEditWithFeatureMenuManager(builder, new Object[0], ID);
       
        assertTrue(manager.getItems().length > 0);
        assertNotNull(manager.find(MATCH_ALL));
        assertNull(manager.find(MATCH_ANY_GEOM));
        assertNull(manager.find(MATCH_GEOM_NAMED_GEO));
        assertNull(manager.find(MATCH_ON_TYPE_NAME));
        assertNull(manager.find(NEVER_SHOWN));
    }

    private MenuManager getEditWithFeatureMenuManager(SimpleFeatureTypeBuilder builder) {
View Full Code Here

       
        assertTrue(manager.getItems().length > 0);
        assertNotNull(manager.find(MATCH_ALL));
        assertNull(manager.find(MATCH_ANY_GEOM));
        assertNull(manager.find(MATCH_GEOM_NAMED_GEO));
        assertNull(manager.find(MATCH_ON_TYPE_NAME));
        assertNull(manager.find(NEVER_SHOWN));
    }

    private MenuManager getEditWithFeatureMenuManager(SimpleFeatureTypeBuilder builder) {
        return getEditWithFeatureMenuManager(builder, DEFAULT_ATTS, ID);
View Full Code Here

        assertTrue(manager.getItems().length > 0);
        assertNotNull(manager.find(MATCH_ALL));
        assertNull(manager.find(MATCH_ANY_GEOM));
        assertNull(manager.find(MATCH_GEOM_NAMED_GEO));
        assertNull(manager.find(MATCH_ON_TYPE_NAME));
        assertNull(manager.find(NEVER_SHOWN));
    }

    private MenuManager getEditWithFeatureMenuManager(SimpleFeatureTypeBuilder builder) {
        return getEditWithFeatureMenuManager(builder, DEFAULT_ATTS, ID);
    }
View Full Code Here

      toolsMenu.add(new Separator());
      IAction preferences = getAction(ActionFactory.PREFERENCES.getId());
      preferences.setImageDescriptor(OwlUI.getImageDescriptor("icons/elcl16/preferences.gif")); //$NON-NLS-1$
      toolsMenu.add(preferences);
      if (Application.IS_MAC) {
        IContributionItem item = toolsMenu.find(ActionFactory.PREFERENCES.getId());
        if (item != null)
          item.setVisible(false);
      }
    }
  }
View Full Code Here

    helpMenu.add(new GroupMarker(IWorkbenchActionConstants.HELP_END));
    helpMenu.add(new Separator());

    helpMenu.add(getAction(ActionFactory.ABOUT.getId()));
    if (Application.IS_MAC) {
      IContributionItem item = helpMenu.find(ActionFactory.ABOUT.getId());
      if (item != null)
        item.setVisible(false);
    }
  }
View Full Code Here

TOP
Copyright © 2018 www.massapi.com. All rights reserved.
All source code are property of their respective owners. Java is a trademark of Sun Microsystems, Inc and owned by ORACLE Inc. Contact coftware#gmail.com.