Your browser does not support JavaScript and this site utilizes JavaScript to build content and provide links to additional information. You should either enable JavaScript in your browser settings or use a browser that supports JavaScript in order to take full advantage of this site.
1 11 package org.eclipse.ui.internal.presentations.util; 12 13 import org.eclipse.swt.graphics.Image; 14 import org.eclipse.ui.internal.util.Util; 15 import org.eclipse.ui.presentations.IPresentablePart; 16 17 20 public final class PartInfo { 21 public String name; 22 public String title; 23 public String contentDescription; 24 public String toolTip; 25 public Image image; 26 public boolean dirty; 27 28 public PartInfo() { 29 name = Util.ZERO_LENGTH_STRING; 30 title = Util.ZERO_LENGTH_STRING; 31 contentDescription = Util.ZERO_LENGTH_STRING; 32 toolTip = Util.ZERO_LENGTH_STRING; 33 image = null; 34 } 35 36 public PartInfo(IPresentablePart part) { 37 set(part); 38 } 39 40 public void set(IPresentablePart part) { 41 name = part.getName(); 42 title = part.getTitle(); 43 contentDescription = part.getTitleStatus(); 44 image = part.getTitleImage(); 45 toolTip = part.getTitleToolTip(); 46 dirty = part.isDirty(); 47 } 48 } 49
| Popular Tags
|