Skip to content

Commit f389e09

Browse files
committed
fixed #50
1 parent 4487622 commit f389e09

17 files changed

+18
-5
lines changed

plugin/Raven.SQDev.Util/META-INF/MANIFEST.MF

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -2,7 +2,7 @@ Manifest-Version: 1.0
22
Bundle-ManifestVersion: 2
33
Bundle-Name: Util
44
Bundle-SymbolicName: raven.sqdev.util;singleton:=true
5-
Bundle-Version: 0.5.0
5+
Bundle-Version: 0.5.2
66
Bundle-Activator: raven.sqdev.activator.Activator
77
Bundle-Vendor: Raven
88
Require-Bundle: org.eclipse.core.runtime,
Binary file not shown.
Binary file not shown.

plugin/Raven.SQDev.Util/src/raven/sqdev/util/EFileType.java

Lines changed: 14 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -432,6 +432,19 @@ public void run() {
432432
IStructuredSelection structured = (IStructuredSelection) service
433433
.getSelection("org.eclipse.jdt.ui.PackageExplorer");
434434

435+
if (structured == null) {
436+
// The ective explorer might be the project explorer
437+
structured = (IStructuredSelection) service
438+
.getSelection("org.eclipse.ui.navigator.ProjectExplorer");
439+
440+
if (structured == null) {
441+
SQDevInfobox info = new SQDevInfobox("Selection is null!", SWT.ERROR);
442+
info.open();
443+
444+
return;
445+
}
446+
}
447+
435448
// get the selected resource
436449
Object obj = structured.getFirstElement();
437450

@@ -446,7 +459,7 @@ public void run() {
446459

447460
IPath containerLocation = container.getRawLocation();
448461

449-
if(containerLocation == null) {
462+
if (containerLocation == null) {
450463
containerLocation = container.getLocation();
451464
}
452465

plugin/Raven.SQDev/feature.xml

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -2,7 +2,7 @@
22
<feature
33
id="raven.sqdev"
44
label="SQDev"
5-
version="0.5.1"
5+
version="0.5.2"
66
provider-name="Raven">
77

88
<description url="http://krzmbrzl.github.io/SQDev/">
@@ -57,7 +57,7 @@ THE SOFTWARE IS PROVIDED &quot;AS IS&quot;, WITHOUT WARRANTY OF ANY KIND, EXPRES
5757
id="raven.sqdev.util"
5858
download-size="0"
5959
install-size="0"
60-
version="0.5.0"
60+
version="0.5.2"
6161
unpack="false"/>
6262

6363
<plugin

plugin/SQDev/SQDev_0.5.1.zip

573 KB
Binary file not shown.

plugin/SQDev/SQDev_0.5.2.zip

574 KB
Binary file not shown.

plugin/SQDev/artifacts.jar

-1 Bytes
Binary file not shown.

plugin/SQDev/content.jar

-9 Bytes
Binary file not shown.
1.24 KB
Binary file not shown.
Binary file not shown.
Binary file not shown.
0 Bytes
Binary file not shown.
Binary file not shown.
Binary file not shown.
Binary file not shown.

plugin/SQDev/site.xml

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,6 +1,6 @@
11
<?xml version="1.0" encoding="UTF-8"?>
22
<site>
3-
<feature url="features/raven.sqdev_0.5.1.jar" id="raven.sqdev" version="0.5.1">
3+
<feature url="features/raven.sqdev_0.5.2.jar" id="raven.sqdev" version="0.5.2">
44
<category name="Raven.SQDev"/>
55
</feature>
66
<category-def name="Raven.SQDev" label="SQDev"/>

0 commit comments

Comments
 (0)