List of usage examples for org.eclipse.jface.viewers IDecoration TOP_RIGHT
int TOP_RIGHT
To view the source code for org.eclipse.jface.viewers IDecoration TOP_RIGHT.
Click Source Link
From source file:com.vectrace.MercurialEclipse.synchronize.actions.EditChangesetSynchronizeAction.java
License:Open Source License
public EditChangesetSynchronizeAction(String text, ISynchronizePageConfiguration configuration, ISelectionProvider selectionProvider) { super(text, configuration, selectionProvider); setId(ID);//www .j a va2 s . c o m setImageDescriptor(MercurialEclipsePlugin.getImageDescriptor("elcl16/uncommitted_cs.gif", "ovr/edited_ovr.gif", IDecoration.TOP_RIGHT)); }
From source file:com.vectrace.MercurialEclipse.synchronize.actions.ReassignToNewChangeSetSynchronizeAction.java
License:Open Source License
public ReassignToNewChangeSetSynchronizeAction(String text, ISynchronizePageConfiguration configuration, ISelectionProvider selectionProvider, List<IFile> selectedFiles, UncommittedChangesetGroup ucg) { super(text, configuration, selectionProvider, selectedFiles); //// www . j a v a 2 s. c om this.group = ucg; setId(ID); setImageDescriptor(MercurialEclipsePlugin.getImageDescriptor("elcl16/uncommitted_cs.gif", //$NON-NLS-1$ "ovr/add_ovr.gif", //$NON-NLS-1$ IDecoration.TOP_RIGHT)); }
From source file:com.vectrace.MercurialEclipse.synchronize.actions.SetDefaultChangesetSynchronizeAction.java
License:Open Source License
public SetDefaultChangesetSynchronizeAction(String text, ISynchronizePageConfiguration configuration, ISelectionProvider selectionProvider) { super(text, configuration, selectionProvider); setId(ID);/*from w w w. j av a2 s.c o m*/ setImageDescriptor(MercurialEclipsePlugin.getImageDescriptor("elcl16/uncommitted_cs.gif", "ovr/pinned_ovr.gif", IDecoration.TOP_RIGHT)); }
From source file:com.vectrace.MercurialEclipse.synchronize.cs.SyncViewLabelProvider.java
License:Open Source License
public static Image getDefaultChangesetIcon() { return MercurialEclipsePlugin.getImage("elcl16/uncommitted_cs.gif", "ovr/pinned_ovr.gif", IDecoration.TOP_RIGHT); }
From source file:com.vectrace.MercurialEclipse.synchronize.cs.SyncViewLabelProvider.java
License:Open Source License
public static Image getWorkingChangesetIcon() { return MercurialEclipsePlugin.getImage("elcl16/uncommitted_cs.gif", "ovr/edited_ovr.gif", IDecoration.TOP_RIGHT); }
From source file:de.fu_berlin.inf.dpp.ui.decorators.SharedProjectFileDecorator.java
License:Open Source License
@Override public void decorate(Object element, IDecoration decoration) { ImageDescriptor imageDescriptor = resourceToImageMapping.get(element); if (imageDescriptor == null) return;/* w ww . j av a 2s . c o m*/ decoration.addOverlay(imageDescriptor, IDecoration.TOP_RIGHT); }
From source file:eu.geclipse.ui.decorators.GridProjectFolderDecorator.java
License:Open Source License
private void decorate(final IGridContainer container, final IDecoration decoration) { IGridContainer parent = container.getParent(); if (parent instanceof IGridProject) { String id = ((IGridProject) parent).getProjectFolderID(container); if (id != null) { ImageDescriptor image = this.images.get(id); if (image != null) { decoration.addOverlay(image, IDecoration.TOP_RIGHT); }//w ww . ja v a 2 s . c o m } } }
From source file:eu.modelwriter.marker.model.decorators.FileDecorator.java
License:Open Source License
@Override public void decorate(Object resource, IDecoration decoration) { int markers = MarkerFactory.findMarkers((IResource) resource).size(); if (markers > 0) { decoration.addOverlay(ImageDescriptor.createFromFile(FileDecorator.class, ICON), IDecoration.TOP_RIGHT); decoration.setForegroundColor(color); } else {/*from w ww . j a v a2s . co m*/ decoration.addOverlay(null); decoration.setForegroundColor(new Color(null, 0, 0, 0, 0)); } }
From source file:eu.numberfour.n4js.ui.labeling.helper.N4JSDecoratorRow.java
License:Open Source License
/** * Are the decorators aligned vertically on top? *//*from www . j a v a 2s . com*/ private boolean isDecoTop() { switch (quadrant) { case IDecoration.TOP_LEFT: case IDecoration.TOP_RIGHT: return true; default: return false; } }
From source file:ext.org.eclipse.jdt.internal.ui.InterfaceIndicatorLabelDecorator.java
License:Open Source License
private void addOverlaysFromFlags(int flags, IDecoration decoration) { ImageDescriptor type;/* w w w. j a v a 2 s .com*/ if (Flags.isAnnotation(flags)) { type = JavaPluginImages.DESC_OVR_ANNOTATION; } else if (Flags.isEnum(flags)) { type = JavaPluginImages.DESC_OVR_ENUM; } else if (Flags.isInterface(flags)) { type = JavaPluginImages.DESC_OVR_INTERFACE; } else if (/* is class */ Flags.isAbstract(flags)) { type = JavaPluginImages.DESC_OVR_ABSTRACT_CLASS; } else { type = null; } boolean deprecated = Flags.isDeprecated(flags); boolean packageDefault = Flags.isPackageDefault(flags); /* Each decoration position can only be used once. Since we don't want to take all positions * away from other decorators, we confine ourselves to only use the top right position. */ if (type != null && !deprecated && !packageDefault) { decoration.addOverlay(type, IDecoration.TOP_RIGHT); } else if (type == null && deprecated && !packageDefault) { decoration.addOverlay(JavaPluginImages.DESC_OVR_DEPRECATED, IDecoration.TOP_RIGHT); } else if (type != null || deprecated || packageDefault) { decoration.addOverlay(new TypeIndicatorOverlay(type, deprecated, packageDefault), IDecoration.TOP_RIGHT); } }