Added
Link Here
|
1 |
/** |
2 |
* |
3 |
*/ |
4 |
package org.eclipse.jdt.internal.debug.ui.variables; |
5 |
|
6 |
import org.eclipse.debug.ui.IDetailPane; |
7 |
import org.eclipse.jdt.internal.debug.ui.SWTFactory; |
8 |
import org.eclipse.jface.viewers.IStructuredSelection; |
9 |
import org.eclipse.swt.widgets.Composite; |
10 |
import org.eclipse.swt.widgets.Control; |
11 |
import org.eclipse.swt.widgets.Label; |
12 |
import org.eclipse.ui.IWorkbenchPartSite; |
13 |
|
14 |
/** |
15 |
* @author DeleteMe |
16 |
* |
17 |
*/ |
18 |
public class ImageDetailPane implements IDetailPane { |
19 |
|
20 |
public static final String ID = "IMAGE_DETAIL_PANE"; //$NON-NLS-1$ |
21 |
|
22 |
private Label fLabel; |
23 |
|
24 |
/* (non-Javadoc) |
25 |
* @see org.eclipse.debug.ui.IDetailPane#createControl(org.eclipse.swt.widgets.Composite) |
26 |
*/ |
27 |
public Control createControl(Composite parent) { |
28 |
if (fLabel == null){ |
29 |
fLabel = SWTFactory.createLabel(parent, "", 1); |
30 |
} |
31 |
return fLabel; |
32 |
} |
33 |
|
34 |
/* (non-Javadoc) |
35 |
* @see org.eclipse.debug.ui.IDetailPane#display(org.eclipse.jface.viewers.IStructuredSelection) |
36 |
*/ |
37 |
public void display(IStructuredSelection selection) { |
38 |
System.out.println(selection); |
39 |
} |
40 |
|
41 |
/* (non-Javadoc) |
42 |
* @see org.eclipse.debug.ui.IDetailPane#dispose() |
43 |
*/ |
44 |
public void dispose() { |
45 |
} |
46 |
|
47 |
/* (non-Javadoc) |
48 |
* @see org.eclipse.debug.ui.IDetailPane#getDescription() |
49 |
*/ |
50 |
public String getDescription() { |
51 |
return "Awesomest detail pane ever"; |
52 |
} |
53 |
|
54 |
/* (non-Javadoc) |
55 |
* @see org.eclipse.debug.ui.IDetailPane#getID() |
56 |
*/ |
57 |
public String getID() { |
58 |
return ID; |
59 |
} |
60 |
|
61 |
/* (non-Javadoc) |
62 |
* @see org.eclipse.debug.ui.IDetailPane#getName() |
63 |
*/ |
64 |
public String getName() { |
65 |
return "Image detail pane"; |
66 |
} |
67 |
|
68 |
/* (non-Javadoc) |
69 |
* @see org.eclipse.debug.ui.IDetailPane#init(org.eclipse.ui.IWorkbenchPartSite) |
70 |
*/ |
71 |
public void init(IWorkbenchPartSite partSite) { |
72 |
} |
73 |
|
74 |
/* (non-Javadoc) |
75 |
* @see org.eclipse.debug.ui.IDetailPane#setFocus() |
76 |
*/ |
77 |
public boolean setFocus() { |
78 |
return false; |
79 |
} |
80 |
|
81 |
} |