2828
2929import processing .app .Base ;
3030import processing .app .Library ;
31+ import processing .app .Platform ;
3132import processing .app .Preferences ;
3233import processing .app .Sketch ;
3334import processing .app .SketchException ;
@@ -138,7 +139,7 @@ public File createProject() throws IOException, SketchException {
138139 // use the src folder, since 'bin' might be used by the ant build
139140 binFolder = srcFolder ;
140141 if (processing .app .Base .DEBUG ) {
141- Base .openFolder (tmpFolder );
142+ Platform .openFolder (tmpFolder );
142143 }
143144
144145 manifest = new Manifest (sketch );
@@ -258,7 +259,7 @@ protected File createExportFolder() throws IOException {
258259 "Please delete, close, or rename the folder\n " +
259260 androidFolder .getAbsolutePath () + "\n " +
260261 "and try again." , null );
261- Base .openFolder (sketch .getFolder ());
262+ Platform .openFolder (sketch .getFolder ());
262263 return null ;
263264 }
264265 }
@@ -748,7 +749,7 @@ private void writeProjectProps(final File file) {
748749 private void writeLocalProps (final File file ) {
749750 final PrintWriter writer = PApplet .createWriter (file );
750751 final String sdkPath = sdk .getSdkFolder ().getAbsolutePath ();
751- if (Base .isWindows ()) {
752+ if (Platform .isWindows ()) {
752753 // Windows needs backslashes escaped, or it will also accept forward
753754 // slashes in the build file. We're using the forward slashes since this
754755 // path gets concatenated with a lot of others that use forwards anyway.
@@ -770,7 +771,7 @@ private void writeRes(File resFolder,
770771 File layoutFolder = mkdirs (resFolder , "layout" );
771772 File mainActivityLayoutFile = new File (layoutFolder , "main.xml" );
772773 writeResLayoutMainActivity (mainActivityLayoutFile );
773-
774+
774775// File mainFragmentLayoutFile = new File(layoutFolder, "fragment_main.xml");
775776// writeResLayoutMainFragment(mainFragmentLayoutFile);
776777
@@ -860,8 +861,8 @@ private File mkdirs(final File parent, final String name) throws SketchException
860861 }
861862 return result ;
862863 }
863-
864-
864+
865+
865866 private void writeMainActivity (final File srcDirectory ) {
866867 File mainActivityFile = new File (new File (srcDirectory , manifest .getPackageName ().replace ("." , "/" )),
867868 "MainActivity.java" );
@@ -923,7 +924,7 @@ private void writeResLayoutMainActivity(final File file) {
923924 writer .flush ();
924925 writer .close ();
925926 }
926-
927+
927928/*
928929 private void writeResLayoutMainFragment(final File file) {
929930 final PrintWriter writer = PApplet.createWriter(file);
@@ -955,7 +956,7 @@ private void copySupportV4(File libsFolder) throws SketchException {
955956 File sdkLocation = sdk.getSdkFolder();
956957 File supportV4Jar = new File(sdkLocation, "extras/android/support/v4/android-support-v4.jar");
957958 if (!supportV4Jar.exists()) {
958- SketchException sketchException =
959+ SketchException sketchException =
959960 new SketchException("Please install support repository from SDK manager");
960961 throw sketchException;
961962 } else {
0 commit comments