Package org.eclipse.ui

Examples of org.eclipse.ui.ISharedImages


*
*/
public class ComponentTypeNode extends PackageTreeNode {
    public ComponentTypeNode(Component comp) {
        super(comp);
        ISharedImages sharedImages = PlatformUI.getWorkbench().getSharedImages();
        image = sharedImages.getImage(ISharedImages.IMG_OBJ_FOLDER);
    }
View Full Code Here


    preferences.setExcludePatterns( excludePatterns );
  }

  private void createImages() {
    Display display = getDisplay();
    ISharedImages images = PlatformUI.getWorkbench().getSharedImages();
    fileImage = images.getImageDescriptor( ISharedImages.IMG_OBJ_FILE ).createImage( display );
  }
View Full Code Here

    public void createPartControl(Composite parent) {
        display = parent.getDisplay();
        Composite composite = new Composite(parent, SWT.NONE);
        composite.setLayout(new GridLayout(1, false));

        ISharedImages sharedImages = PlatformUI.getWorkbench().getSharedImages();

        Action syncAction = new Action() {
            public void run() {
                if (MessageDialog.openConfirm(Display.getCurrent().getActiveShell(),
                    "Fix dependencies",
                    "Alter dependencies?\n\nAnything marked in green will be synchronized.")) {
                    Job job = new SyncIvyFilesJob(dependencies);
                    job.addJobChangeListener(new JobChangeAdapter() {
                        public void done(IJobChangeEvent arg0) {
                            refresh(true);
                        }
                    });
                    job.schedule();
                }
            }
        };
        syncAction.setToolTipText("Synchronize ivy dependencies");
        syncAction.setImageDescriptor(IvyPlugin.getImageDescriptor("icons/synced.gif"));

        Action refreshAction = new Action() {
            public void run() {
                refresh(true);
            }
        };
        refreshAction.setToolTipText("Refresh");
        refreshAction.setImageDescriptor(IvyPlugin.getImageDescriptor("icons/refresh.gif"));

        Action refreshAllAction = new Action() {
            public void run() {
                ReverseDependencyExplorerView.setSelectedProjects(null);
                refresh(true);
            }
        };
        refreshAllAction.setToolTipText("Show all projects in workspace");
        refreshAllAction.setImageDescriptor(sharedImages
                .getImageDescriptor(ISharedImages.IMG_TOOL_UP));

        IToolBarManager toolbar = getViewSite().getActionBars().getToolBarManager();
        toolbar.add(syncAction);
        toolbar.add(refreshAction);
View Full Code Here

            return null;
        }

        public Image getImage(Object obj) {
            ISharedImages sharedImages = PlatformUI.getWorkbench().getSharedImages();
            if (obj instanceof MultiRevDependencyDescriptor) {
                MultiRevDependencyDescriptor mrdd = (MultiRevDependencyDescriptor) obj;

                if (mrdd.hasMultipleRevisons() && !mrdd.hasNewRevision()) {
                    return sharedImages.getImage(ISharedImages.IMG_OBJS_WARN_TSK);
                } else {
                    return IvyPlugin.getImageDescriptor("icons/synced.gif").createImage();
                }
            } else if (obj instanceof CPDependencyDescriptor) {
                return JavaUI.getSharedImages().getImage(
View Full Code Here

    else
      formTitle = "_UI_Metadata_Dependencies_title";

    managedForm.getForm().setText(UIPlugin.getLocalString(formTitle));

    ISharedImages sharedImages = PlatformUI.getWorkbench().getSharedImages();
    error = sharedImages.getImage(ISharedImages.IMG_OBJS_ERROR_TSK);
    warning = sharedImages.getImage(ISharedImages.IMG_OBJS_WARN_TSK);

    Composite body = managedForm.getForm().getBody();

    Display display = body.getDisplay();
    colorOfBadText = display.getSystemColor(SWT.COLOR_RED);
View Full Code Here

  private static final void initializeImageMaps() {
    if(imagesInitialized)
      return;

    ISharedImages sharedImages = PlatformUI.getWorkbench().getSharedImages();
    Image error = sharedImages.getImage(ISharedImages.IMG_OBJS_ERROR_TSK);
    Image warning = sharedImages.getImage(ISharedImages.IMG_OBJS_WARN_TSK);
    annotationImagesNonFixable.put(XtextEditor.ERROR_ANNOTATION_TYPE, error);
    annotationImagesNonFixable.put(XtextEditor.WARNING_ANNOTATION_TYPE, warning);

    Display display = Display.getCurrent();
    annotationImagesDeleted.put(XtextEditor.ERROR_ANNOTATION_TYPE, new Image(display, error, SWT.IMAGE_GRAY));
View Full Code Here

    }
  }

  private IAction[] createActions() {

    ISharedImages sharedImages = PlatformUI.getWorkbench()
        .getSharedImages();

    projectsAction = new TopLevelContentAction(false);
    projectsAction
        .setText(WorkbenchNavigatorMessages.WorkingSetRootModeActionGroup_Project_);
    projectsAction.setImageDescriptor(sharedImages
        .getImageDescriptor(IDE.SharedImages.IMG_OBJ_PROJECT));

    workingSetsAction = new TopLevelContentAction(true);
    workingSetsAction
        .setText(WorkbenchNavigatorMessages.WorkingSetRootModeActionGroup_Working_Set_);
View Full Code Here

TOP

Related Classes of org.eclipse.ui.ISharedImages

Copyright © 2018 www.massapicom. 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.