public void paintControl(PaintEvent e) { if (image == null && (text == null || text.equals(BLANK))) { label.setVisible(false); } else { label.setVisible(true); drawTitleBackground(e); } } });
@Override public void paintControl(PaintEvent e) { if (image == null && (text == null || text.equals(BLANK))) { label.setVisible(false); } else { label.setVisible(true); } drawTitleBackground(e); } });
/** * Enable the title and disable the message text and image. */ public void restoreTitle() { titleLabel.setVisible(true); messageComposite.setVisible(false); lastMessageText = null; lastMessageType = IMessageProvider.NONE; }
/** * Enable the title and disable the message text and image. */ public void restoreTitle() { titleLabel.setVisible(true); messageComposite.setVisible(false); lastMessageText = null; lastMessageType = IMessageProvider.NONE; }
/** * Enable the title and disable the message text and image. */ public void restoreTitle() { titleLabel.setVisible(true); messageComposite.setVisible(false); lastMessageText = null; lastMessageType = IMessageProvider.NONE; }
fAncestorLabel.setVisible(true); y+= headerHeight; handleResizeAncestor(0, y, r.width, height1); y+= height1; } else { fAncestorLabel.setVisible(false); handleResizeAncestor(0, 0, 0, 0); fDirectionLabel.setVisible(true); fDirectionLabel.setBounds(width1 + 1, y, centerWidth - 1, headerHeight); fRightLabel.setBounds(width1+centerWidth, y, width2, headerHeight); } else { fLeftLabel.setBounds(0, y, width1, headerHeight); fDirectionLabel.setVisible(false); fRightLabel.setBounds(width1, y, r.width - width1, headerHeight);
fAncestorLabel.setVisible(true); y+= headerHeight; handleResizeAncestor(0, y, r.width, height1); y+= height1; } else { fAncestorLabel.setVisible(false); handleResizeAncestor(0, 0, 0, 0); fDirectionLabel.setVisible(true); fDirectionLabel.setBounds(width1+1, y, centerWidth-1, headerHeight); fRightLabel.setBounds(width1+centerWidth, y, width2, headerHeight); } else { fLeftLabel.setBounds(0, y, width1, headerHeight); fDirectionLabel.setVisible(false); fRightLabel.setBounds(width1, y, r.width-width1, headerHeight);
titleLabel.setVisible(false);
titleLabel.setVisible(false);
titleLabel.setVisible(false);
@Override public void setInput(Object input) { super.setInput(input); if (getViewer() == null || !Utilities.okToUse(getViewer().getControl())) return; ViewerDescriptor[] vd = CompareUIPlugin.getDefault() .findContentViewerDescriptor(getViewer(), getInput(), getCompareConfiguration()); toolBar.setVisible(vd != null && vd.length > 1); CompareConfiguration cc = getCompareConfiguration(); Boolean isOptimized = (Boolean) cc.getProperty(OPTIMIZED_ALGORITHM_USED); boolean optimizedVisible = isOptimized != null && isOptimized.booleanValue(); labelOptimized.setVisible(optimizedVisible); recomputeLink.setVisible(optimizedVisible); }
private void ensureControlExists() { if (needHyperlink()) { if (messageLabel != null) messageLabel.setVisible(false); if (messageHyperlink == null) { messageHyperlink = new Hyperlink(FormHeading.this, SWT.NULL); } else if (!messageLabel.getVisible()) { messageLabel.setText(message); messageLabel.setVisible(true);
private void ensureControlExists() { if (needHyperlink()) { if (messageLabel != null) messageLabel.setVisible(false); if (messageHyperlink == null) { messageHyperlink = new Hyperlink(FormHeading.this, SWT.NULL); } else if (!messageLabel.getVisible()) { messageLabel.setText(message); messageLabel.setVisible(true);
labelOptimized.setImage(CompareUIPlugin.getImageDescriptor( OPTIMIZED_INFO_IMAGE_NAME).createImage()); labelOptimized.setVisible(false); // hide by default labelOptimized.addDisposeListener(e -> { Image img = labelOptimized.getImage();