Chromium Code Reviews
chromiumcodereview-hr@appspot.gserviceaccount.com (chromiumcodereview-hr) | Please choose your nickname with Settings | Help | Chromium Project | Gerrit Changes | Sign out
(161)

Side by Side Diff: dart/editor/tools/plugins/com.google.dart.tools.debug.core/src/com/google/dart/tools/debug/core/DartLaunchConfigWrapper.java

Issue 321583008: Merge to trunk cl - fixes/features for mobile support in the editor (Closed) Base URL: http://dart.googlecode.com/svn/trunk/
Patch Set: Created 6 years, 6 months ago
Use n/p to move between diff chunks; N/P to move between comments. Draft comments are only viewable by you.
Jump to:
View unified diff | Download patch | Annotate | Revision Log
OLDNEW
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
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
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 }
OLDNEW

Powered by Google App Engine
This is Rietveld 408576698