List of usage examples for org.eclipse.jface.viewers IDecoration BOTTOM_LEFT
int BOTTOM_LEFT
To view the source code for org.eclipse.jface.viewers IDecoration BOTTOM_LEFT.
Click Source Link
From source file:org.talend.mdm.repository.ui.navigator.MDMLockDecorator.java
License:Open Source License
private void decorateLockImage(IRepositoryViewObject viewObj, IDecoration decoration) { ERepositoryStatus status = factory.getStatus(viewObj.getProperty().getItem()); if (editableAsReadOnly) { if (status == ERepositoryStatus.LOCK_BY_USER) { status = ERepositoryStatus.DEFAULT; }/*from ww w .jav a2 s.c o m*/ } if (exAdapter != null) { exAdapter.decorateLockImage(decoration, status); } else { if (status == ERepositoryStatus.LOCK_BY_USER) { decoration.addOverlay(IMG_G_LOCK, IDecoration.BOTTOM_LEFT); } else { if (status != ERepositoryStatus.LOCK_BY_OTHER) { decoration.addOverlay(null, IDecoration.BOTTOM_LEFT); } } } }
From source file:org.talend.mdm.repository.ui.navigator.TriggerDecorator.java
License:Open Source License
public void decorate(Object element, IDecoration decoration) { IRepositoryViewObject viewObj = (IRepositoryViewObject) element; Item item = RepositoryResourceUtil.getItemFromRepViewObj(viewObj); if (item != null && item instanceof WSRoutingRuleItem) { WSRoutingRuleE routing = ((WSRoutingRuleItem) item).getWsRoutingRule(); if (routing.isDeactive()) { decoration.addOverlay(IMG_TRIGGER_DEACTIVE, IDecoration.BOTTOM_LEFT); }//from w w w . j a va 2 s . co m } }
From source file:org.xtuml.bp.ui.explorer.decorators.SynchronizationDecorator.java
License:Apache License
@Override public void decorate(Object element, IDecoration decoration) { // rather than check the class for the isSynchronizedMethod through // reflection, only consider the known classes if (!isSynchronized(element)) { int v_dialect = Pref_c.Getactiondialect("bridgepoint_prefs_default_action_language_dialect"); if ((v_dialect == Actiondialect_c.masl)) { // For MASL projects we automatically synchronize if (element instanceof SystemModel_c) { SystemModel_c sys = (SystemModel_c) element; PullSynchronizationChanges sync = new PullSynchronizationChanges(false, sys); sync.run(null);/* w w w. ja va 2 s .c o m*/ } } else { decoration.addOverlay(SYNC_OVERLAY, IDecoration.BOTTOM_LEFT); } } }
From source file:_org.eclipse.jdt.ui.ProblemsLabelDecorator.java
License:Open Source License
@Override public Image decorateImage(Image image, Object obj) { if (image == null) return null; ImageDescriptor overlayImage = computeAdornmentFlags(obj); if (overlayImage != null) { // ImageDescriptor baseImage = new ImageImageDescriptor(image); return getRegistry().get(new DecorationOverlayIcon(image, overlayImage, IDecoration.BOTTOM_LEFT)); }// w w w. j a va 2s. c o m return image; }