summaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
authorSteffen Kriese2011-04-14 05:47:49 (EDT)
committerSteffen Kriese2011-04-14 05:47:49 (EDT)
commitf2172570bca57b466d945ad8585d287bcdf02915 (patch)
treef182024cc291d400d5cfdc68fbb14708954182a8
parent59b3fc01736c60a5921a665a370c48a8b63e5a06 (diff)
downloadorg.eclipse.riena.toolbox-f2172570bca57b466d945ad8585d287bcdf02915.zip
org.eclipse.riena.toolbox-f2172570bca57b466d945ad8585d287bcdf02915.tar.gz
org.eclipse.riena.toolbox-f2172570bca57b466d945ad8585d287bcdf02915.tar.bz2
fixed bug in previewer: removed warning that lnf was not found, when selecting an element in the package explorer
-rw-r--r--org.eclipse.riena.toolbox.previewer/src/org/eclipse/riena/toolbox/previewer/WorkspaceClassLoader.java11
-rw-r--r--org.eclipse.riena.toolbox.previewer/src/org/eclipse/riena/toolbox/previewer/handler/CompilationUnitPropertyTester.java2
2 files changed, 10 insertions, 3 deletions
diff --git a/org.eclipse.riena.toolbox.previewer/src/org/eclipse/riena/toolbox/previewer/WorkspaceClassLoader.java b/org.eclipse.riena.toolbox.previewer/src/org/eclipse/riena/toolbox/previewer/WorkspaceClassLoader.java
index 75bb542..dd0a853 100644
--- a/org.eclipse.riena.toolbox.previewer/src/org/eclipse/riena/toolbox/previewer/WorkspaceClassLoader.java
+++ b/org.eclipse.riena.toolbox.previewer/src/org/eclipse/riena/toolbox/previewer/WorkspaceClassLoader.java
@@ -68,6 +68,10 @@ public final class WorkspaceClassLoader {
}
public ViewPartInfo loadClass(final ICompilationUnit comp) {
+ return loadClass(comp, true);
+ }
+
+ public ViewPartInfo loadClass(final ICompilationUnit comp, final boolean notifyHooks) {
final IPath path = comp.getPath();
@@ -89,9 +93,12 @@ public final class WorkspaceClassLoader {
}
}
- final IPreviewCustomizer contrib = getContributedPreviewCustomizer();
-
+ IPreviewCustomizer contrib = null;
Class<?> parentClass = ViewPart.class;
+ if (notifyHooks) {
+ contrib = getContributedPreviewCustomizer();
+ }
+
if (null != contrib && null != contrib.getParentClass()) {
parentClass = contrib.getParentClass();
}
diff --git a/org.eclipse.riena.toolbox.previewer/src/org/eclipse/riena/toolbox/previewer/handler/CompilationUnitPropertyTester.java b/org.eclipse.riena.toolbox.previewer/src/org/eclipse/riena/toolbox/previewer/handler/CompilationUnitPropertyTester.java
index 261e863..4a15947 100644
--- a/org.eclipse.riena.toolbox.previewer/src/org/eclipse/riena/toolbox/previewer/handler/CompilationUnitPropertyTester.java
+++ b/org.eclipse.riena.toolbox.previewer/src/org/eclipse/riena/toolbox/previewer/handler/CompilationUnitPropertyTester.java
@@ -27,7 +27,7 @@ public class CompilationUnitPropertyTester extends PropertyTester {
public boolean test(final Object receiver, final String property, final Object[] args, final Object expectedValue) {
final ICompilationUnit comp = (ICompilationUnit) receiver;
- final ViewPartInfo partInfo = WorkspaceClassLoader.getInstance().loadClass(comp);
+ final ViewPartInfo partInfo = WorkspaceClassLoader.getInstance().loadClass(comp, false);
if (null == partInfo) {
return false;
}