Lines 18-24
Link Here
|
18 |
import org.eclipse.pde.internal.ds.core.IDSReference; |
18 |
import org.eclipse.pde.internal.ds.core.IDSReference; |
19 |
import org.eclipse.pde.internal.ds.ui.Messages; |
19 |
import org.eclipse.pde.internal.ds.ui.Messages; |
20 |
import org.eclipse.pde.internal.ds.ui.SharedImages; |
20 |
import org.eclipse.pde.internal.ds.ui.SharedImages; |
|
|
21 |
import org.eclipse.pde.internal.ui.PDEPlugin; |
22 |
import org.eclipse.pde.internal.ui.PDEPluginImages; |
21 |
import org.eclipse.swt.graphics.Image; |
23 |
import org.eclipse.swt.graphics.Image; |
|
|
24 |
import org.eclipse.ui.forms.editor.IFormPage; |
22 |
|
25 |
|
23 |
public class DSLabelProvider extends LabelProvider { |
26 |
public class DSLabelProvider extends LabelProvider { |
24 |
|
27 |
|
Lines 28-33
Link Here
|
28 |
return getObjectText((IDSObject) obj); |
31 |
return getObjectText((IDSObject) obj); |
29 |
} |
32 |
} |
30 |
|
33 |
|
|
|
34 |
if (obj instanceof IFormPage) { |
35 |
return ((IFormPage) obj).getTitle(); |
36 |
} |
37 |
|
31 |
return super.getText(obj); |
38 |
return super.getText(obj); |
32 |
} |
39 |
} |
33 |
|
40 |
|
Lines 42-47
Link Here
|
42 |
if (obj instanceof IDSObject) { |
49 |
if (obj instanceof IDSObject) { |
43 |
return getObjectImage((IDSObject) obj); |
50 |
return getObjectImage((IDSObject) obj); |
44 |
} |
51 |
} |
|
|
52 |
if (obj instanceof IFormPage) { |
53 |
return PDEPlugin.getDefault().getLabelProvider().get( |
54 |
PDEPluginImages.DESC_PAGE_OBJ); |
55 |
} |
45 |
return super.getImage(obj); |
56 |
return super.getImage(obj); |
46 |
} |
57 |
} |
47 |
|
58 |
|