|
Lines 10-15
Link Here
|
| 10 |
* Martin Oberhuber (Wind River) - [168870] refactor org.eclipse.rse.core package of the UI plugin |
10 |
* Martin Oberhuber (Wind River) - [168870] refactor org.eclipse.rse.core package of the UI plugin |
| 11 |
* David Dykstal (IBM) - [186589] move user actions API out of org.eclipse.rse.ui |
11 |
* David Dykstal (IBM) - [186589] move user actions API out of org.eclipse.rse.ui |
| 12 |
* David McKnight (IBM) - [225506] [api][breaking] RSE UI leaks non-API types |
12 |
* David McKnight (IBM) - [225506] [api][breaking] RSE UI leaks non-API types |
|
|
13 |
* Kevin Doyle (IBM) - [252707] Everytime a Compile command is selected a saving profile job is performed |
| 13 |
*******************************************************************************/ |
14 |
*******************************************************************************/ |
| 14 |
package org.eclipse.rse.internal.useractions.api.ui.compile; |
15 |
package org.eclipse.rse.internal.useractions.api.ui.compile; |
| 15 |
|
16 |
|
|
Lines 124-137
Link Here
|
| 124 |
Object element = getFirstSelection(); |
125 |
Object element = getFirstSelection(); |
| 125 |
boolean ok = true; |
126 |
boolean ok = true; |
| 126 |
while (ok && (element != null)) { |
127 |
while (ok && (element != null)) { |
| 127 |
/* FIXME - compile actions not coupled with subsystem API anymore |
|
|
| 128 |
ISystemRemoteElementAdapter rmtAdapter = SystemAdapterHelpers.getRemoteAdapter(element); |
| 129 |
ISubSystem ss = rmtAdapter.getSubSystem(element); |
| 130 |
ss.getParentSubSystemFactory().getCompileManager().setSystemConnection(ss.getHost()); |
| 131 |
*/ |
| 132 |
SystemCompileType compType = compileCmd.getParentType(); |
128 |
SystemCompileType compType = compileCmd.getParentType(); |
| 133 |
compType.setLastUsedCompileCommand(compileCmd); |
129 |
if (!compileCmd.equals(compType.getLastUsedCompileCommand())) { |
| 134 |
compType.getParentProfile().writeToDisk(); |
130 |
compType.setLastUsedCompileCommand(compileCmd); |
|
|
131 |
compType.getParentProfile().writeToDisk(); |
| 132 |
} |
| 135 |
SystemCompilableSource compilableSrc = compType.getParentProfile().getCompilableSourceObject(getShell(), element, compileCmd, isPrompt, viewer); |
133 |
SystemCompilableSource compilableSrc = compType.getParentProfile().getCompilableSourceObject(getShell(), element, compileCmd, isPrompt, viewer); |
| 136 |
ok = compilableSrc.runCompileCommand(); |
134 |
ok = compilableSrc.runCompileCommand(); |
| 137 |
if (ok) element = getNextSelection(); |
135 |
if (ok) element = getNextSelection(); |
|
Lines 189-198
Link Here
|
| 189 |
} |
187 |
} |
| 190 |
WorkbenchContentProvider cprovider = new WorkbenchContentProvider(); |
188 |
WorkbenchContentProvider cprovider = new WorkbenchContentProvider(); |
| 191 |
SystemTableViewProvider lprovider = new SystemTableViewProvider(null); |
189 |
SystemTableViewProvider lprovider = new SystemTableViewProvider(null); |
| 192 |
// TODO: Cannot use WorkbenchMessages -- it's internal |
|
|
| 193 |
ListSelectionDialog dlg = new ListSelectionDialog(getShell(), input, cprovider, lprovider, SystemUDAResources.EditorManager_saveResourcesMessage); |
190 |
ListSelectionDialog dlg = new ListSelectionDialog(getShell(), input, cprovider, lprovider, SystemUDAResources.EditorManager_saveResourcesMessage); |
| 194 |
dlg.setInitialSelections(input.getChildren()); |
191 |
dlg.setInitialSelections(input.getChildren()); |
| 195 |
// TODO: Cannot use WorkbenchMessages -- it's internal |
|
|
| 196 |
dlg.setTitle(SystemUDAResources.EditorManager_saveResourcesTitle); |
192 |
dlg.setTitle(SystemUDAResources.EditorManager_saveResourcesTitle); |
| 197 |
int result = dlg.open(); |
193 |
int result = dlg.open(); |
| 198 |
//Just return false to prevent the operation continuing |
194 |
//Just return false to prevent the operation continuing |