/** * Sets or clears the title tool tip text of this part. Clients should call this method instead of * overriding <code>getTitleToolTip</code> * * @param toolTip the new tool tip text, or <code>null</code> to clear */ protected void setTitleToolTip(String toolTip) { toolTip = Util.safeString(toolTip); // Do not send changes if they are the same if (Util.equals(this.toolTip, toolTip)) { return; } this.toolTip = toolTip; firePropertyChange(IWorkbenchPart.PROP_TITLE); }
/** * Sets or clears the title of this part. Clients should call this method instead of overriding * getTitle. * * <p>This may change a title that was previously set using setPartName or setContentDescription. * * @deprecated new code should use setPartName and setContentDescription * @param title the title, or <code>null</code> to clear */ protected void setTitle(String title) { title = Util.safeString(title); // Do not send changes if they are the same if (Util.equals(this.title, title)) { return; } this.title = title; firePropertyChange(IWorkbenchPart.PROP_TITLE); }
void internalSetContentDescription(String description) { Assert.isNotNull(description); // Do not send changes if they are the same if (Util.equals(contentDescription, description)) { return; } this.contentDescription = description; firePropertyChange(IWorkbenchPartConstants.PROP_CONTENT_DESCRIPTION); }
void internalSetPartName(String partName) { partName = Util.safeString(partName); Assert.isNotNull(partName); // Do not send changes if they are the same if (Util.equals(this.partName, partName)) { return; } this.partName = partName; firePropertyChange(IWorkbenchPartConstants.PROP_PART_NAME); }
/** * Sets or clears the title image of this part. * * @param titleImage the title image, or <code>null</code> to clear */ protected void setTitleImage(Image titleImage) { // Assert.isTrue(titleImage == null || !titleImage.isDisposed()); Assert.isTrue(titleImage != null); // Do not send changes if they are the same if (this.titleImage == titleImage) { return; } this.titleImage = titleImage; firePropertyChange(IWorkbenchPart.PROP_TITLE); if (imageDescriptor != null) { JFaceResources.getResources().destroyImage(imageDescriptor); imageDescriptor = null; } }