Java Code Examples for org.eclipse.ui.ISharedImages#getImageDescriptor()

The following examples show how to use org.eclipse.ui.ISharedImages#getImageDescriptor() . You can vote up the ones you like or vote down the ones you don't like, and go to the original project or source file by following the links above each example. You may check out the related API usage on the sidebar.
Example 1
Source File: ERVirtualDiagramPopupMenuManager.java    From erflute with Apache License 2.0 6 votes vote down vote up
protected MenuManager prepareExportMenu(ISharedImages sharedImages) {
    final MenuManager exportMenu =
            new MenuManager(DisplayMessages.getMessage("action.title.export"), sharedImages.getImageDescriptor("IMG_ETOOL_EXPORT_WIZ"),
                    "Export");

    exportMenu.add(getAction(ExportToDDLAction.ID));
    exportMenu.add(getAction(ExportToImageAction.ID));

    // #deleted
    //exportMenu.add(this.getAction(ExportToExcelAction.ID));
    //exportMenu.add(this.getAction(ExportToHtmlAction.ID));
    //exportMenu.add(this.getAction(ExportToDictionaryAction.ID));
    //exportMenu.add(this.getAction(ExportToTranslationDictionaryAction.ID));
    //exportMenu.add(this.getAction(ExportToTestDataAction.ID));
    //exportMenu.add(this.getAction(ExportToJavaAction.ID));

    exportMenu.add(new GroupMarker("export"));

    return exportMenu;
}
 
Example 2
Source File: ERVirtualDiagramPopupMenuManager.java    From erflute with Apache License 2.0 5 votes vote down vote up
private MenuManager prepareImportMenu(final ISharedImages sharedImages) {
    final MenuManager importMenu = new MenuManager("Import", sharedImages.getImageDescriptor("IMG_ETOOL_IMPORT_WIZ"), "Import");
    importMenu.add(getAction(ImportFromDBAction.ID));

    // #deleted only from DB
    //importMenu.add(getAction(ImportFromFileAction.ID));
    return importMenu;
}
 
Example 3
Source File: ERDiagramPopupMenuManager.java    From erflute with Apache License 2.0 5 votes vote down vote up
private MenuManager prepareImportMenu(final ISharedImages sharedImages) {
    final String message = "Import";
    final MenuManager importMenu = new MenuManager(message, sharedImages.getImageDescriptor("IMG_ETOOL_IMPORT_WIZ"), "Import");
    importMenu.add(getAction(ImportFromDBAction.ID));
    importMenu.add(getAction(ImportFromFileAction.ID));
    return importMenu;
}
 
Example 4
Source File: ERDiagramPopupMenuManager.java    From erflute with Apache License 2.0 5 votes vote down vote up
private MenuManager prepareExportMenu(final ISharedImages sharedImages) {
    final String message = "Export";
    final MenuManager exportMenu = new MenuManager(message, sharedImages.getImageDescriptor("IMG_ETOOL_EXPORT_WIZ"), "Export");
    exportMenu.add(getAction(ExportToDDLAction.ID));
    exportMenu.add(getAction(ExportToImageAction.ID));
    exportMenu.add(new GroupMarker("export"));
    return exportMenu;
}