controlDecoration.setImage( image ); controlDecoration.setDescriptionText( BaseMessages.getString( PKG, "TextVar.tooltip.InsertVariable" ) ); PropsUI.getInstance().setLook( controlDecoration.getControl() );
controlDecoration.setImage( image ); controlDecoration.setDescriptionText( BaseMessages.getString( PKG, "TextVar.tooltip.InsertVariable" ) ); PropsUI.getInstance().setLook( controlDecoration.getControl() );
controlDecoration .setDescriptionText( BaseMessages.getString( PKG, "StyledTextComp.tooltip.InsertVariable" ) ); PropsUI.getInstance().setLook( controlDecoration.getControl() );
public boolean isDisposed() { return decoration.getControl() == null; }
public boolean isDisposed() { return decoration.getControl() == null; }
private void createPrefix() { if (prefixProvider == null) { prefix = ""; //$NON-NLS-1$ return; } prefix = prefixProvider.getPrefix(decoration.getControl()); if (prefix == null) // make a prefix anyway prefix = ""; //$NON-NLS-1$ }
private boolean checkDecoratorCache() { if (oldDecorators == null) return false; for (Entry<Control, ControlDecorator> next : decorators.entrySet()) { ControlDecorator cd = next.getValue(); ControlDecorator oldCd = oldDecorators.get(cd.decoration.getControl()); if ((oldCd == null && cd.controlMessages.size() > 0) || (oldCd != null && !cd.hasSameMessages(oldCd))) return true; } return false; } }
private void createPrefix() { if (prefixProvider == null) { prefix = ""; //$NON-NLS-1$ return; } prefix = prefixProvider.getPrefix(decoration.getControl()); if (prefix == null) // make a prefix anyway prefix = ""; //$NON-NLS-1$ }
private boolean checkDecoratorCache() { if (oldDecorators == null) return false; for (Entry<Control, ControlDecorator> next : decorators.entrySet()) { ControlDecorator cd = next.getValue(); ControlDecorator oldCd = oldDecorators.get(cd.decoration.getControl()); if ((oldCd == null && cd.controlMessages.size() > 0) || (oldCd != null && !cd.hasSameMessages(oldCd))) return true; } return false; } }
void addMessage(Object key, String text, Object data, int type) { Message message = MessageManager.this.addMessage(getPrefix(), key, text, data, type, controlMessages); message.control = decoration.getControl(); if (isAutoUpdate()) update(); }
void addMessage(Object key, String text, Object data, int type) { Message message = MessageManager.this.addMessage(getPrefix(), key, text, data, type, controlMessages); message.control = decoration.getControl(); if (isAutoUpdate()) update(); }
void updatePosition() { Control control = decoration.getControl(); decoration.dispose(); this.decoration = new ControlDecoration(control, decorationPosition, form.getBody()); update(); }
void updatePosition() { Control control = decoration.getControl(); decoration.dispose(); this.decoration = new ControlDecoration(control, decorationPosition, form.getBody()); update(); }
deleteRefCombo = (Combo) deleteRefDecoration.getControl(); deleteRefCombo.setLayoutData(new GridData(SWT.FILL, SWT.CENTER, true, false));
creationSrcCombo = (Combo) creationSrcDecoration.getControl(); creationSrcCombo.setLayoutData(new GridData(SWT.FILL, SWT.CENTER, true, false)); creationDstCombo = (Combo) creationDstDecoration.getControl(); creationDstCombo.setLayoutData(new GridData(SWT.FILL, SWT.CENTER, true, false));