Package org.eclipse.ui

Examples of org.eclipse.ui.ISharedImages


  public void init() {
    super.init();
    setId(ActionIds.ACTION_DELETE_FROM_MODEL);
    setText(DiagramUIMessages.DiagramEditor_Delete_from_Model);
    setToolTipText(DiagramUIMessages.DiagramEditor_Delete_from_ModelToolTip);
    ISharedImages workbenchImages = PlatformUI.getWorkbench()
        .getSharedImages();
    setHoverImageDescriptor(workbenchImages
        .getImageDescriptor(ISharedImages.IMG_TOOL_DELETE));
    setImageDescriptor(workbenchImages
        .getImageDescriptor(ISharedImages.IMG_TOOL_DELETE));
    setDisabledImageDescriptor(workbenchImages
        .getImageDescriptor(ISharedImages.IMG_TOOL_DELETE_DISABLED));
  }
View Full Code Here


  public void init() {
    super.init();
    setId(ActionIds.ACTION_DELETE_FROM_MODEL);
    setText(DiagramUIMessages.DiagramEditor_Delete_from_Model);
    setToolTipText(DiagramUIMessages.DiagramEditor_Delete_from_ModelToolTip);
    ISharedImages workbenchImages = PlatformUI.getWorkbench()
        .getSharedImages();
    setHoverImageDescriptor(workbenchImages
        .getImageDescriptor(ISharedImages.IMG_TOOL_DELETE));
    setImageDescriptor(workbenchImages
        .getImageDescriptor(ISharedImages.IMG_TOOL_DELETE));
    setDisabledImageDescriptor(workbenchImages
        .getImageDescriptor(ISharedImages.IMG_TOOL_DELETE_DISABLED));
  }
View Full Code Here

  public void init() {
    super.init();
    setId(ActionIds.ACTION_DELETE_FROM_MODEL);
    setText(DiagramUIMessages.DiagramEditor_Delete_from_Model);
    setToolTipText(DiagramUIMessages.DiagramEditor_Delete_from_ModelToolTip);
    ISharedImages workbenchImages = PlatformUI.getWorkbench()
        .getSharedImages();
    setHoverImageDescriptor(workbenchImages
        .getImageDescriptor(ISharedImages.IMG_TOOL_DELETE));
    setImageDescriptor(workbenchImages
        .getImageDescriptor(ISharedImages.IMG_TOOL_DELETE));
    setDisabledImageDescriptor(workbenchImages
        .getImageDescriptor(ISharedImages.IMG_TOOL_DELETE_DISABLED));
  }
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 MultiRevisionDependencyDescriptor) {
                MultiRevisionDependencyDescriptor mrdd = (MultiRevisionDependencyDescriptor) 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 ClasspathContainerDependencyDescriptorComposite) {
                return JavaUI.getSharedImages().getImage(
View Full Code Here

  public void init() {
    super.init();
    setId(ActionIds.ACTION_DELETE_FROM_MODEL);
    setText(DiagramUIMessages.DiagramEditor_Delete_from_Model);
    setToolTipText(DiagramUIMessages.DiagramEditor_Delete_from_ModelToolTip);
    ISharedImages workbenchImages = PlatformUI.getWorkbench()
        .getSharedImages();
    setHoverImageDescriptor(workbenchImages
        .getImageDescriptor(ISharedImages.IMG_TOOL_DELETE));
    setImageDescriptor(workbenchImages
        .getImageDescriptor(ISharedImages.IMG_TOOL_DELETE));
    setDisabledImageDescriptor(workbenchImages
        .getImageDescriptor(ISharedImages.IMG_TOOL_DELETE_DISABLED));
  }
View Full Code Here

  public void init() {
    super.init();
    setId(ActionIds.ACTION_DELETE_FROM_MODEL);
    setText(DiagramUIMessages.DiagramEditor_Delete_from_Model);
    setToolTipText(DiagramUIMessages.DiagramEditor_Delete_from_ModelToolTip);
    ISharedImages workbenchImages = PlatformUI.getWorkbench()
        .getSharedImages();
    setHoverImageDescriptor(workbenchImages
        .getImageDescriptor(ISharedImages.IMG_TOOL_DELETE));
    setImageDescriptor(workbenchImages
        .getImageDescriptor(ISharedImages.IMG_TOOL_DELETE));
    setDisabledImageDescriptor(workbenchImages
        .getImageDescriptor(ISharedImages.IMG_TOOL_DELETE_DISABLED));
  }
View Full Code Here

  public void init() {
    super.init();
    setId(ActionIds.ACTION_DELETE_FROM_MODEL);
    setText(DiagramUIMessages.DiagramEditor_Delete_from_Model);
    setToolTipText(DiagramUIMessages.DiagramEditor_Delete_from_ModelToolTip);
    ISharedImages workbenchImages = PlatformUI.getWorkbench()
        .getSharedImages();
    setHoverImageDescriptor(workbenchImages
        .getImageDescriptor(ISharedImages.IMG_TOOL_DELETE));
    setImageDescriptor(workbenchImages
        .getImageDescriptor(ISharedImages.IMG_TOOL_DELETE));
    setDisabledImageDescriptor(workbenchImages
        .getImageDescriptor(ISharedImages.IMG_TOOL_DELETE_DISABLED));
  }
View Full Code Here

  public void init() {
    super.init();
    setId(ActionIds.ACTION_DELETE_FROM_MODEL);
    setText(DiagramUIMessages.DiagramEditor_Delete_from_Model);
    setToolTipText(DiagramUIMessages.DiagramEditor_Delete_from_ModelToolTip);
    ISharedImages workbenchImages = PlatformUI.getWorkbench()
        .getSharedImages();
    setHoverImageDescriptor(workbenchImages
        .getImageDescriptor(ISharedImages.IMG_TOOL_DELETE));
    setImageDescriptor(workbenchImages
        .getImageDescriptor(ISharedImages.IMG_TOOL_DELETE));
    setDisabledImageDescriptor(workbenchImages
        .getImageDescriptor(ISharedImages.IMG_TOOL_DELETE_DISABLED));
  }
View Full Code Here

  public void init() {
    super.init();
    setId(ActionIds.ACTION_DELETE_FROM_MODEL);
    setText(DiagramUIMessages.DiagramEditor_Delete_from_Model);
    setToolTipText(DiagramUIMessages.DiagramEditor_Delete_from_ModelToolTip);
    ISharedImages workbenchImages = PlatformUI.getWorkbench()
        .getSharedImages();
    setHoverImageDescriptor(workbenchImages
        .getImageDescriptor(ISharedImages.IMG_TOOL_DELETE));
    setImageDescriptor(workbenchImages
        .getImageDescriptor(ISharedImages.IMG_TOOL_DELETE));
    setDisabledImageDescriptor(workbenchImages
        .getImageDescriptor(ISharedImages.IMG_TOOL_DELETE_DISABLED));
  }
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.