if (!isShowing()) return;
if (!showing) return;
void drawUnselected(GC gc) {	// Do not draw partial items	if (!isShowing()) return;		Rectangle clipping = gc.getClipping();	Rectangle bounds = getBounds();	if (!clipping.intersects(bounds)) return;		// draw border	if (parent.indexOf(this) != parent.selectedIndex - 1) {		gc.setForeground(CTabFolder.borderColor);		gc.drawLine(x + width - 1, y, x + width - 1, y + height);	}	// draw Image	int xDraw = x + LEFT_MARGIN;	Image image = getImage();	if (image != null && parent.showUnselectedImage) {		Rectangle imageBounds = image.getBounds();		// only draw image if it won't overlap with close button		int maxImageWidth = x + width - xDraw - RIGHT_MARGIN;		if (parent.showUnselectedClose && (parent.showClose || showClose)) {			maxImageWidth -= closeRect.width + INTERNAL_SPACING;		}		if (imageBounds.width < maxImageWidth) {					int imageX = xDraw;			int imageHeight = imageBounds.height;			int imageY = y + (height - imageHeight) / 2;			imageY += parent.onBottom ? -1 : 1;			int imageWidth = imageBounds.width * imageHeight / imageBounds.height;			gc.drawImage(image, 				         imageBounds.x, imageBounds.y, imageBounds.width, imageBounds.height,				         imageX, imageY, imageWidth, imageHeight);			xDraw += imageWidth + INTERNAL_SPACING;		}	}	// draw Text	int textWidth = x + width - xDraw - RIGHT_MARGIN;	if (parent.showUnselectedClose && (parent.showClose || showClose)) {		textWidth -= closeRect.width + INTERNAL_SPACING;	}	if (textWidth > 0) {		Font gcFont = gc.getFont();		gc.setFont(font == null ? parent.getFont() : font);		if (shortenedText == null || shortenedTextWidth != textWidth) {			shortenedText = shortenText(gc, getText(), textWidth);			shortenedTextWidth = textWidth;		}			Point extent = gc.textExtent(shortenedText, FLAGS);		int textY = y + (height - extent.y) / 2;		textY += parent.onBottom ? -1 : 1;		gc.setForeground(parent.getForeground());		gc.drawText(shortenedText, xDraw, textY, FLAGS);		gc.setFont(gcFont);	}	// draw close	if (parent.showUnselectedClose && (parent.showClose || showClose)) drawClose(gc);}