diff --git a/src/org/ntlab/traceDebugger/JavaElementFinder.java b/src/org/ntlab/traceDebugger/JavaElementFinder.java index 08877a5..7617bf7 100644 --- a/src/org/ntlab/traceDebugger/JavaElementFinder.java +++ b/src/org/ntlab/traceDebugger/JavaElementFinder.java @@ -123,9 +123,16 @@ private static boolean checkProjectPath(IProject project, String projectPath) { String projectLocation = project.getLocation().toString(); +// if (projectPath.startsWith(projectLocation)) { +// String[] projectPathSplit = projectPath.split(projectLocation); +// return (projectPathSplit[1].charAt(0) == '/'); // �v���W�F�N�g���̑O����v�ɂ�鑼�v���W�F�N�g�Ƃ̌딻�������� +// } if (projectPath.startsWith(projectLocation)) { String[] projectPathSplit = projectPath.split(projectLocation); - return (projectPathSplit[1].charAt(0) == '/'); // �v���W�F�N�g���̑O����v�ɂ�鑼�v���W�F�N�g�Ƃ̌딻�������� + return (projectPathSplit[1].charAt(0) == '/'); // �v���W�F�N�g���̑O����v�ɂ�鑼�v���W�F�N�g�Ƃ̌딻�������� + } else if (projectPath.startsWith(projectLocation.substring(1))) { + String[] projectPathSplit = projectPath.split(projectLocation.substring(1)); + return (projectPathSplit[1].charAt(0) == '/'); // �v���W�F�N�g���̑O����v�ɂ�鑼�v���W�F�N�g�Ƃ̌딻�������� } return false; }