Skip to content

Commit

Permalink
TISTUD-6376 Appcelerator Studio 3.3.0.201405211748 is very slow
Browse files Browse the repository at this point in the history
  • Loading branch information
Praveen Innamuri committed Jun 4, 2014
1 parent ffc43a5 commit 43876f7
Showing 1 changed file with 15 additions and 4 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -37,6 +37,7 @@
import org.eclipse.core.runtime.IStatus;
import org.eclipse.core.runtime.MultiStatus;
import org.eclipse.core.runtime.NullProgressMonitor;
import org.eclipse.core.runtime.Path;
import org.eclipse.core.runtime.Platform;
import org.eclipse.core.runtime.Status;
import org.eclipse.core.runtime.SubMonitor;
Expand Down Expand Up @@ -788,7 +789,7 @@ public void refreshAsync(final Collection<IPath> paths)
}
}

private abstract static class FilesRefreshJob implements Callable<IStatus>
private abstract class FilesRefreshJob implements Callable<IStatus>
{

protected GitRepository repo;
Expand Down Expand Up @@ -937,6 +938,16 @@ else if (!tracked && file.status == ChangedFile.Status.NEW)
{
List<String> fileStatus = dictionary.get(path);

if (Path.fromPortableString(path).isAbsolute())
{
IdeLog.logWarning(
GitPlugin.getDefault(),
MessageFormat
.format("Found an entry for an absolute path ({0}), won't add to our changed file listing for repo at {1}",
path, workingDirectory().toOSString()));
continue;
}

ChangedFile.Status status = ChangedFile.Status.MODIFIED;
if (fileStatus.get(4).equals(DELETED_STATUS))
{
Expand Down Expand Up @@ -974,7 +985,7 @@ else if (fileStatus.get(0).equals(":000000")) //$NON-NLS-1$

}

private static final class StagedFilesRefreshJob extends FilesRefreshJob
private final class StagedFilesRefreshJob extends FilesRefreshJob
{
private StagedFilesRefreshJob(GitIndex index, Set<String> filePaths)
{
Expand Down Expand Up @@ -1008,7 +1019,7 @@ private void readStagedFiles(String string)
}
}

private static final class UnstagedFilesRefreshJob extends FilesRefreshJob
private final class UnstagedFilesRefreshJob extends FilesRefreshJob
{
private UnstagedFilesRefreshJob(GitIndex index, Set<String> filePaths)
{
Expand Down Expand Up @@ -1041,7 +1052,7 @@ private void readUnstagedFiles(String string)
}
}

private static final class UntrackedFilesRefreshJob extends FilesRefreshJob
private final class UntrackedFilesRefreshJob extends FilesRefreshJob
{

private UntrackedFilesRefreshJob(GitIndex index, Set<String> filePaths)
Expand Down

0 comments on commit 43876f7

Please sign in to comment.