1 11 package org.eclipse.ui.internal; 12 13 import org.eclipse.core.runtime.IStatus; 14 import org.eclipse.swt.widgets.Composite; 15 import org.eclipse.ui.internal.part.StatusPart; 16 import org.eclipse.ui.part.ViewPart; 17 18 23 public class ErrorViewPart extends ViewPart { 24 25 private IStatus error; 26 27 30 public ErrorViewPart() { 31 } 32 33 36 public ErrorViewPart(IStatus error) { 37 this.error = error; 38 } 39 40 45 public void createPartControl(Composite parent) { 46 if (error != null) { 47 new StatusPart(parent, error); 48 } 49 } 50 51 56 public void setPartName(String newName) { 57 super.setPartName(newName); 58 } 59 60 65 public void setFocus() { 66 } 67 68 } 69 | Popular Tags |