Author: akazakov
Date: 2012-04-19 19:19:28 -0400 (Thu, 19 Apr 2012)
New Revision: 40365
Modified:
trunk/common/plugins/org.jboss.tools.common.ui/src/org/jboss/tools/common/ui/JBossPerspectiveFactory.java
Log:
https://issues.jboss.org/browse/JBIDE-11546 compile failed in org.jboss.tools.common.ui
when run against Juno TP.
Modified:
trunk/common/plugins/org.jboss.tools.common.ui/src/org/jboss/tools/common/ui/JBossPerspectiveFactory.java
===================================================================
---
trunk/common/plugins/org.jboss.tools.common.ui/src/org/jboss/tools/common/ui/JBossPerspectiveFactory.java 2012-04-19
23:06:46 UTC (rev 40364)
+++
trunk/common/plugins/org.jboss.tools.common.ui/src/org/jboss/tools/common/ui/JBossPerspectiveFactory.java 2012-04-19
23:19:28 UTC (rev 40365)
@@ -99,7 +99,7 @@
// to make placeholder working it should be removed first
// We have to use reflection because org.eclipse.ui.internal.PageLayout was renamed in
Eclipse 4.2 (see
https://issues.jboss.org/browse/JBIDE-11546 )
// ((PageLayout)layout).removePlaceholder(ICheatSheetResource.CHEAT_SHEET_VIEW_ID);
- Class pageLayoutClass =
Class.forName("org.eclipse.ui.internal.PageLayout");
+ Class pageLayoutClass =
CommonUIPlugin.getDefault().getBundle().loadClass("org.eclipse.ui.internal.PageLayout");
Method removePlaceholder = pageLayoutClass.getMethod("removePlaceholder",
String.class);
removePlaceholder.invoke(layout,
"org.eclipse.ui.cheatsheets.views.CheatSheetView");
} catch (ClassNotFoundException e) {