|
Lines 27-32
Link Here
|
| 27 |
import org.eclipse.swt.layout.GridLayout; |
27 |
import org.eclipse.swt.layout.GridLayout; |
| 28 |
import org.eclipse.swt.widgets.Composite; |
28 |
import org.eclipse.swt.widgets.Composite; |
| 29 |
import org.eclipse.swt.widgets.Control; |
29 |
import org.eclipse.swt.widgets.Control; |
|
|
30 |
import org.eclipse.swt.widgets.Display; |
| 30 |
|
31 |
|
| 31 |
import org.eclipse.jface.action.ToolBarManager; |
32 |
import org.eclipse.jface.action.ToolBarManager; |
| 32 |
import org.eclipse.jface.operation.IRunnableContext; |
33 |
import org.eclipse.jface.operation.IRunnableContext; |
|
Lines 118-125
Link Here
|
| 118 |
*/ |
119 |
*/ |
| 119 |
public void init(IJavaProject javaProject) { |
120 |
public void init(IJavaProject javaProject) { |
| 120 |
fJavaProject= javaProject; |
121 |
fJavaProject= javaProject; |
| 121 |
|
122 |
fPackageExplorer.addPostSelectionChangedListener(fHintTextGroup); |
| 122 |
fPackageExplorer.setInput(javaProject); |
123 |
fActionGroup.getResetAllAction().setBreakPoint(javaProject); |
|
|
124 |
|
| 125 |
if (Display.getCurrent() != null) { |
| 126 |
doUpdateUI(); |
| 127 |
} else { |
| 128 |
Display.getDefault().asyncExec(new Runnable() { |
| 129 |
public void run() { |
| 130 |
doUpdateUI(); |
| 131 |
} |
| 132 |
}); |
| 133 |
} |
| 134 |
} |
| 135 |
|
| 136 |
private void doUpdateUI() { |
| 137 |
fPackageExplorer.setInput(fJavaProject); |
| 123 |
|
138 |
|
| 124 |
boolean useFolderOutputs= false; |
139 |
boolean useFolderOutputs= false; |
| 125 |
List cpelements= fClassPathList.getElements(); |
140 |
List cpelements= fClassPathList.getElements(); |
|
Lines 132-139
Link Here
|
| 132 |
} |
147 |
} |
| 133 |
} |
148 |
} |
| 134 |
fUseFolderOutputs.setSelection(useFolderOutputs); |
149 |
fUseFolderOutputs.setSelection(useFolderOutputs); |
| 135 |
|
|
|
| 136 |
fPackageExplorer.addPostSelectionChangedListener(fHintTextGroup); |
| 137 |
} |
150 |
} |
| 138 |
|
151 |
|
| 139 |
public void dispose() { |
152 |
public void dispose() { |
|
Lines 195-201
Link Here
|
| 195 |
excomposite.setClient(fHintTextGroup.createControl(excomposite)); |
208 |
excomposite.setClient(fHintTextGroup.createControl(excomposite)); |
| 196 |
fUseFolderOutputs.doFillIntoGrid(body, 1); |
209 |
fUseFolderOutputs.doFillIntoGrid(body, 1); |
| 197 |
|
210 |
|
| 198 |
fActionGroup= new DialogPackageExplorerActionGroup(fHintTextGroup, fContext, fPackageExplorer, this); |
211 |
fActionGroup= new DialogPackageExplorerActionGroup(fHintTextGroup, fContext, fPackageExplorer, this); |
| 199 |
fActionGroup.addBuildpathModifierListener(this); |
212 |
fActionGroup.addBuildpathModifierListener(this); |
| 200 |
|
213 |
|
| 201 |
|
214 |
|