| OLD | NEW |
| 1 /* | 1 /* |
| 2 * Copyright (c) 2012, the Dart project authors. | 2 * Copyright (c) 2012, the Dart project authors. |
| 3 * | 3 * |
| 4 * Licensed under the Eclipse Public License v1.0 (the "License"); you may not u
se this file except | 4 * Licensed under the Eclipse Public License v1.0 (the "License"); you may not u
se this file except |
| 5 * in compliance with the License. You may obtain a copy of the License at | 5 * in compliance with the License. You may obtain a copy of the License at |
| 6 * | 6 * |
| 7 * http://www.eclipse.org/legal/epl-v10.html | 7 * http://www.eclipse.org/legal/epl-v10.html |
| 8 * | 8 * |
| 9 * Unless required by applicable law or agreed to in writing, software distribut
ed under the License | 9 * Unless required by applicable law or agreed to in writing, software distribut
ed under the License |
| 10 * is distributed on an "AS IS" BASIS, WITHOUT WARRANTIES OR CONDITIONS OF ANY K
IND, either express | 10 * is distributed on an "AS IS" BASIS, WITHOUT WARRANTIES OR CONDITIONS OF ANY K
IND, either express |
| (...skipping 212 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 223 return launchConfig.getAttribute(APPLICATION_ENVIRONMENT, ""); | 223 return launchConfig.getAttribute(APPLICATION_ENVIRONMENT, ""); |
| 224 } catch (CoreException e) { | 224 } catch (CoreException e) { |
| 225 DartDebugCorePlugin.logError(e); | 225 DartDebugCorePlugin.logError(e); |
| 226 | 226 |
| 227 return ""; | 227 return ""; |
| 228 } | 228 } |
| 229 } | 229 } |
| 230 | 230 |
| 231 public boolean getInstallContentShell() { | 231 public boolean getInstallContentShell() { |
| 232 try { | 232 try { |
| 233 return launchConfig.getAttribute(INSTALL_CONTENT_SHELL, getLaunchContentSh
ell()); | 233 return launchConfig.getAttribute(INSTALL_CONTENT_SHELL, true); |
| 234 } catch (CoreException e) { | 234 } catch (CoreException e) { |
| 235 DartDebugCorePlugin.logError(e); | 235 DartDebugCorePlugin.logError(e); |
| 236 | 236 |
| 237 return false; | 237 return false; |
| 238 } | 238 } |
| 239 } | 239 } |
| 240 | 240 |
| 241 /** | 241 /** |
| 242 * @return the last time this config was launched, or 0 or no such | 242 * @return the last time this config was launched, or 0 or no such |
| 243 */ | 243 */ |
| (...skipping 373 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 617 private void updateMappedResources(String resourcePath) { | 617 private void updateMappedResources(String resourcePath) { |
| 618 IResource resource = ResourcesPlugin.getWorkspace().getRoot().findMember(res
ourcePath); | 618 IResource resource = ResourcesPlugin.getWorkspace().getRoot().findMember(res
ourcePath); |
| 619 | 619 |
| 620 if (resource != null && !(resource instanceof IWorkspaceRoot)) { | 620 if (resource != null && !(resource instanceof IWorkspaceRoot)) { |
| 621 getWorkingCopy().setMappedResources(new IResource[] {resource}); | 621 getWorkingCopy().setMappedResources(new IResource[] {resource}); |
| 622 } else { | 622 } else { |
| 623 getWorkingCopy().setMappedResources(null); | 623 getWorkingCopy().setMappedResources(null); |
| 624 } | 624 } |
| 625 } | 625 } |
| 626 } | 626 } |
| OLD | NEW |