org.eclipse.ui.plugin.AbstractUIPlugin Java Examples
The following examples show how to use
org.eclipse.ui.plugin.AbstractUIPlugin.
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: ResourceUtils.java From http4e with Apache License 2.0 | 6 votes |
public static Image getImage( String pluginID, String image){ /*--- create from class file location ImageDescriptor iDescr = ImageDescriptor.createFromFile(CoreResources.class, name); Image image = resourceCache.getImage(iDescr); return image; --- get workbench shared image IWorkbench workbench = PlatformUI.getWorkbench(); ISharedImages images = workbench.getSharedImages(); image = images.getImage(ISharedImages.IMG_OBJ_FOLDER); --- image from plugin MyPlugin.getImageDescriptor("icons/a_image.gif").createImage(); AbstractUIPlugin.imageDescriptorFromPlugin(myPluginID, image)).createImage(); */ if (Utils.isIDE()) { return resourceCache.getImage(AbstractUIPlugin.imageDescriptorFromPlugin(pluginID, image)); } else { return resourceCache.getImage(image); } }
Example #2
Source File: AbapGitStagingView.java From ADT_Frontend with MIT License | 5 votes |
/** * Action for unstaging an object from staged section to unstaged section */ private void createUnstageAction() { this.actionUnstage = new Action(Messages.AbapGitStaging_action_unstage_xtol, AbstractUIPlugin.imageDescriptorFromPlugin(AbapGitUIPlugin.PLUGIN_ID, "icons/etool/unstage.png")) { //$NON-NLS-1$ public void run() { IStructuredSelection selection = (IStructuredSelection) AbapGitStagingView.this.stagedTreeViewer.getSelection(); unstageSelectedObjects(selection); } }; }
Example #3
Source File: PipelineArgumentsTab.java From google-cloud-eclipse with Apache License 2.0 | 5 votes |
@VisibleForTesting PipelineArgumentsTab(IWorkspaceRoot workspaceRoot, DataflowDependencyManager dependencyManager) { this.workspaceRoot = workspaceRoot; this.dependencyManager = dependencyManager; hierarchy = pipelineOptionsHierarchyFactory.global(new NullProgressMonitor()); ImageDescriptor descriptor = AbstractUIPlugin .imageDescriptorFromPlugin(DataflowUiPlugin.PLUGIN_ID, "icons/Dataflow_16.png"); image = descriptor != null ? descriptor.createImage() : null;; }
Example #4
Source File: FindbugsPlugin.java From spotbugs with GNU Lesser General Public License v2.1 | 5 votes |
/** * Call this method to retrieve the (cache) ImageDescriptor for the given * id. * * @param id * the id of the image descriptor or relative icon path if icon * is inside of default icons folder * @return the ImageDescriptor instance. */ public ImageDescriptor getImageDescriptor(String id) { ImageDescriptor imageDescriptor = imageDescriptors.get(id); if (imageDescriptor == null) { String pluginId = getDefault().getBundle().getSymbolicName(); imageDescriptor = AbstractUIPlugin.imageDescriptorFromPlugin(pluginId, ICON_PATH + id); imageDescriptors.put(id, imageDescriptor); } return imageDescriptor; }
Example #5
Source File: AltConfigWizard.java From CogniCrypt with Eclipse Public License 2.0 | 5 votes |
public AltConfigWizard() { super(); // Set the Look and Feel of the application to the operating // system's look and feel. try { UIManager.setLookAndFeel(UIManager.getSystemLookAndFeelClassName()); } catch (ClassNotFoundException | InstantiationException | IllegalAccessException | UnsupportedLookAndFeelException e) { Activator.getDefault().logError(e); } setWindowTitle("CogniCrypt"); final ImageDescriptor image = AbstractUIPlugin.imageDescriptorFromPlugin("de.cognicrypt.codegenerator", "platform:/plugin/de.cognicrypt.core/icons/cognicrypt-medium.png "); setDefaultPageImageDescriptor(image); this.constraints = new LinkedHashMap<>(); }
Example #6
Source File: QuickfixCrossrefTestLanguageUiModule.java From xtext-eclipse with Eclipse Public License 2.0 | 4 votes |
public QuickfixCrossrefTestLanguageUiModule(AbstractUIPlugin plugin) { super(plugin); }
Example #7
Source File: Bug309949TestLanguageUiModule.java From xtext-eclipse with Eclipse Public License 2.0 | 4 votes |
public Bug309949TestLanguageUiModule(AbstractUIPlugin plugin) { super(plugin); }
Example #8
Source File: EnumRulesUiTestLanguageUiModule.java From xtext-eclipse with Eclipse Public License 2.0 | 4 votes |
public EnumRulesUiTestLanguageUiModule(AbstractUIPlugin plugin) { super(plugin); }
Example #9
Source File: AbstractContentAssistTestLanguageUiModule.java From xtext-eclipse with Eclipse Public License 2.0 | 4 votes |
public AbstractContentAssistTestLanguageUiModule(AbstractUIPlugin plugin) { super(plugin); }
Example #10
Source File: DefaultCommonTypesUiModule.java From xtext-eclipse with Eclipse Public License 2.0 | 4 votes |
public DefaultCommonTypesUiModule(AbstractUIPlugin plugin) { super(plugin); }
Example #11
Source File: AbstractBacktrackingContentAssistTestLanguageUiModule.java From xtext-eclipse with Eclipse Public License 2.0 | 4 votes |
public AbstractBacktrackingContentAssistTestLanguageUiModule(AbstractUIPlugin plugin) { super(plugin); }
Example #12
Source File: CrossReferenceProposalTestLanguageUiModule.java From xtext-eclipse with Eclipse Public License 2.0 | 4 votes |
public CrossReferenceProposalTestLanguageUiModule(AbstractUIPlugin plugin) { super(plugin); }
Example #13
Source File: AbstractValidUiModule.java From dsl-devkit with Eclipse Public License 1.0 | 4 votes |
public AbstractValidUiModule(AbstractUIPlugin plugin) { super(plugin); }
Example #14
Source File: AbstractBug309949TestLanguageUiModule.java From xtext-eclipse with Eclipse Public License 2.0 | 4 votes |
public AbstractBug309949TestLanguageUiModule(AbstractUIPlugin plugin) { super(plugin); }
Example #15
Source File: AbstractBug462047LangUiModule.java From xtext-eclipse with Eclipse Public License 2.0 | 4 votes |
public AbstractBug462047LangUiModule(AbstractUIPlugin plugin) { super(plugin); }
Example #16
Source File: XtendUiModule.java From xtext-xtend with Eclipse Public License 2.0 | 4 votes |
public XtendUiModule(AbstractUIPlugin plugin) { super(plugin); }
Example #17
Source File: XImportSectionTestLangUiModule.java From xtext-eclipse with Eclipse Public License 2.0 | 4 votes |
public XImportSectionTestLangUiModule(AbstractUIPlugin plugin) { super(plugin); }
Example #18
Source File: AbstractFoldingTestLanguageUiModule.java From xtext-eclipse with Eclipse Public License 2.0 | 4 votes |
public AbstractFoldingTestLanguageUiModule(AbstractUIPlugin plugin) { super(plugin); }
Example #19
Source File: Bug289187TestLanguageUiModule.java From xtext-eclipse with Eclipse Public License 2.0 | 4 votes |
public Bug289187TestLanguageUiModule(AbstractUIPlugin plugin) { super(plugin); }
Example #20
Source File: Bug348199TestLanguageUiModule.java From xtext-eclipse with Eclipse Public License 2.0 | 4 votes |
public Bug348199TestLanguageUiModule(AbstractUIPlugin plugin) { super(plugin); }
Example #21
Source File: AbstractXImportSectionTestLangUiModule.java From xtext-eclipse with Eclipse Public License 2.0 | 4 votes |
public AbstractXImportSectionTestLangUiModule(AbstractUIPlugin plugin) { super(plugin); }
Example #22
Source File: RefactoringTestLanguageUiModule.java From xtext-eclipse with Eclipse Public License 2.0 | 4 votes |
public RefactoringTestLanguageUiModule(AbstractUIPlugin plugin) { super(plugin); }
Example #23
Source File: DotColorListUiModule.java From gef with Eclipse Public License 2.0 | 4 votes |
public DotColorListUiModule(AbstractUIPlugin plugin) { super(plugin); }
Example #24
Source File: Bug347012TestLanguageUiModule.java From xtext-eclipse with Eclipse Public License 2.0 | 4 votes |
public Bug347012TestLanguageUiModule(AbstractUIPlugin plugin) { super(plugin); }
Example #25
Source File: Activator.java From APICloud-Studio with GNU General Public License v3.0 | 4 votes |
public static ImageDescriptor getImageDescriptor(String imagePath) { return AbstractUIPlugin.imageDescriptorFromPlugin(PLUGIN_ID, imagePath); }
Example #26
Source File: CheckUiModule.java From dsl-devkit with Eclipse Public License 1.0 | 4 votes |
public CheckUiModule(final AbstractUIPlugin plugin) { super(plugin); }
Example #27
Source File: AbstractNoJdtTestLanguageUiModule.java From xtext-eclipse with Eclipse Public License 2.0 | 4 votes |
public AbstractNoJdtTestLanguageUiModule(AbstractUIPlugin plugin) { super(plugin); }
Example #28
Source File: Bug304681TestLanguageUiModule.java From xtext-eclipse with Eclipse Public License 2.0 | 4 votes |
public Bug304681TestLanguageUiModule(AbstractUIPlugin plugin) { super(plugin); }
Example #29
Source File: DotRectUiModule.java From gef with Eclipse Public License 2.0 | 4 votes |
public DotRectUiModule(AbstractUIPlugin plugin) { super(plugin); }
Example #30
Source File: EmfUiModule.java From xtext-eclipse with Eclipse Public License 2.0 | 4 votes |
@Override public void configure(Binder binder) { super.configure(binder); binder.bind(AbstractUIPlugin.class).toInstance(plugin); binder.bind(IDialogSettings.class).toInstance(plugin.getDialogSettings()); }