Skip to content

Commit

Permalink
Version 1.0.2
Browse files Browse the repository at this point in the history
  * Fallback only if no files were found from selection
  * Fix for determining project's source folders
  • Loading branch information
dmitrygusev committed Aug 30, 2013
1 parent ed54de4 commit 05e7378
Show file tree
Hide file tree
Showing 4 changed files with 8 additions and 4 deletions.
2 changes: 1 addition & 1 deletion com.anjlab.eclipse.tapestry5.feature/feature.xml
Original file line number Diff line number Diff line change
Expand Up @@ -2,7 +2,7 @@
<feature
id="com.anjlab.eclipse.tapestry5.feature"
label="Eclipse Integration for Tapestry5 Feature"
version="1.0.1"
version="1.0.2"
provider-name="AnjLab Team"
plugin="com.anjlab.eclipse.tapestry5">

Expand Down
2 changes: 1 addition & 1 deletion com.anjlab.eclipse.tapestry5/META-INF/MANIFEST.MF
Original file line number Diff line number Diff line change
Expand Up @@ -2,7 +2,7 @@ Manifest-Version: 1.0
Bundle-ManifestVersion: 2
Bundle-Name: Eclipse Integration for Tapestry5
Bundle-SymbolicName: com.anjlab.eclipse.tapestry5;singleton:=true
Bundle-Version: 1.0.1
Bundle-Version: 1.0.2
Bundle-Activator: com.anjlab.eclipse.tapestry5.Activator
Bundle-Vendor: AnjLab Team
Require-Bundle: org.eclipse.ui,
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -67,6 +67,8 @@ public Object execute(ExecutionEvent event) throws ExecutionException
if (file != null)
{
openComplementFile(window, file);

return null;
}
}
catch (JavaModelException e)
Expand Down Expand Up @@ -250,7 +252,9 @@ private boolean isSourceFolder(IContainer container) throws JavaModelException

private boolean isSourceFolder(IJavaElement javaElement) throws JavaModelException
{
return javaElement != null && (javaElement instanceof IPackageFragmentRoot);
return javaElement != null
&& (javaElement instanceof IPackageFragmentRoot)
&& (((IPackageFragmentRoot) javaElement).getKind() == IPackageFragmentRoot.K_SOURCE);
}

private String getComplementFileName(String fileName, String originalExtension)
Expand Down
2 changes: 1 addition & 1 deletion update-site/site.xml
Original file line number Diff line number Diff line change
@@ -1,6 +1,6 @@
<?xml version="1.0" encoding="UTF-8"?>
<site>
<feature url="features/com.anjlab.eclipse.tapestry5.feature_1.0.1.jar" id="com.anjlab.eclipse.tapestry5.feature" version="1.0.1">
<feature url="features/com.anjlab.eclipse.tapestry5.feature_1.0.2.jar" id="com.anjlab.eclipse.tapestry5.feature" version="1.0.2">
<category name="com.anjlab.tapestry5.category"/>
</feature>
<category-def name="com.anjlab.tapestry5.category" label="Eclipse Integration for Tapestry5">
Expand Down

0 comments on commit 05e7378

Please sign in to comment.