mirror of
https://github.com/eclipse-cdt/cdt
synced 2025-08-09 01:05:38 +02:00
Bug 279853 - enable copy action in project explorer
This commit is contained in:
parent
0991ca6fd9
commit
17264b6f8c
1 changed files with 2 additions and 2 deletions
|
@ -1,5 +1,5 @@
|
||||||
/*******************************************************************************
|
/*******************************************************************************
|
||||||
* Copyright (c) 2000, 2008 IBM Corporation and others.
|
* Copyright (c) 2000, 2010 IBM Corporation and others.
|
||||||
* All rights reserved. This program and the accompanying materials
|
* All rights reserved. This program and the accompanying materials
|
||||||
* are made available under the terms of the Eclipse Public License v1.0
|
* are made available under the terms of the Eclipse Public License v1.0
|
||||||
* which accompanies this distribution, and is available at
|
* which accompanies this distribution, and is available at
|
||||||
|
@ -194,7 +194,7 @@ public class CopyAction extends SelectionListenerAction {
|
||||||
if (!currentResource.getParent().equals(firstParent))
|
if (!currentResource.getParent().equals(firstParent))
|
||||||
return false;
|
return false;
|
||||||
// resource location must exist
|
// resource location must exist
|
||||||
if (currentResource.getLocation() == null)
|
if (currentResource.getLocationURI() == null)
|
||||||
return false;
|
return false;
|
||||||
}
|
}
|
||||||
|
|
||||||
|
|
Loading…
Add table
Reference in a new issue