[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]
[List Home]
|
[stp-commits] r3303 - in org.eclipse.stp.sca/trunk: org.eclipse.stp.sca.common/src/org/eclipse/stp/sca/common/internal/actions org.eclipse.stp.sca.common.java/src/org/eclipse/stp/sca/common/java/wizards
|
- From: genie@xxxxxxxxxxx
- Date: Thu, 27 Aug 2009 06:38:15 -0400 (EDT)
- Delivered-to: stp-commits@eclipse.org
Author: vzurczak
Date: 2009-08-27 06:38:15 -0400 (Thu, 27 Aug 2009)
New Revision: 3303
Modified:
org.eclipse.stp.sca/trunk/org.eclipse.stp.sca.common.java/src/org/eclipse/stp/sca/common/java/wizards/ScaJavaProjectWizard.java
org.eclipse.stp.sca/trunk/org.eclipse.stp.sca.common/src/org/eclipse/stp/sca/common/internal/actions/AddScaNatureAction.java
Log:
Add the SCA nature as the first one, so that SCA projects have the SCA nature overlay (narcissism inside).
Modified: org.eclipse.stp.sca/trunk/org.eclipse.stp.sca.common/src/org/eclipse/stp/sca/common/internal/actions/AddScaNatureAction.java
===================================================================
--- org.eclipse.stp.sca/trunk/org.eclipse.stp.sca.common/src/org/eclipse/stp/sca/common/internal/actions/AddScaNatureAction.java 2009-08-27 09:34:21 UTC (rev 3302)
+++ org.eclipse.stp.sca/trunk/org.eclipse.stp.sca.common/src/org/eclipse/stp/sca/common/internal/actions/AddScaNatureAction.java 2009-08-27 10:38:15 UTC (rev 3303)
@@ -61,8 +61,8 @@
String[] natures = description.getNatureIds();
String[] newNatures = new String[ natures.length + 1 ];
- System.arraycopy( natures, 0, newNatures, 0, natures.length );
- newNatures[ natures.length ] = ScaCommonConstants.SCA_NATURE;
+ System.arraycopy( natures, 0, newNatures, 1, natures.length );
+ newNatures[ 0 ] = ScaCommonConstants.SCA_NATURE;
description.setNatureIds( newNatures );
selectedProject.setDescription( description, null );
Modified: org.eclipse.stp.sca/trunk/org.eclipse.stp.sca.common.java/src/org/eclipse/stp/sca/common/java/wizards/ScaJavaProjectWizard.java
===================================================================
--- org.eclipse.stp.sca/trunk/org.eclipse.stp.sca.common.java/src/org/eclipse/stp/sca/common/java/wizards/ScaJavaProjectWizard.java 2009-08-27 09:34:21 UTC (rev 3302)
+++ org.eclipse.stp.sca/trunk/org.eclipse.stp.sca.common.java/src/org/eclipse/stp/sca/common/java/wizards/ScaJavaProjectWizard.java 2009-08-27 10:38:15 UTC (rev 3303)
@@ -105,8 +105,8 @@
IProjectDescription description = project.getDescription();
String[] natures = description.getNatureIds();
String[] newNatures = new String[natures.length + 1];
- System.arraycopy(natures, 0, newNatures, 0, natures.length);
- newNatures[natures.length] = "org.eclipse.stp.sca.common.scaNature"; //$NON-NLS-1$
+ System.arraycopy(natures, 0, newNatures, 1, natures.length);
+ newNatures[ 0 ] = "org.eclipse.stp.sca.common.scaNature"; //$NON-NLS-1$
description.setNatureIds( newNatures );
project.setDescription( description, monitor );