Author: dazarov
Date: 2008-04-01 08:45:29 -0400 (Tue, 01 Apr 2008)
New Revision: 7238
Added:
trunk/common/tests/org.jboss.tools.common.test/src/org/jboss/tools/common/util/WorkbenchUtils.java
Removed:
trunk/common/plugins/org.jboss.tools.common/src/org/jboss/tools/common/util/WorkbenchUtils.java
Modified:
trunk/common/tests/org.jboss.tools.common.test/META-INF/MANIFEST.MF
Log:
http://jira.jboss.com/jira/browse/JBIDE-1496
Deleted:
trunk/common/plugins/org.jboss.tools.common/src/org/jboss/tools/common/util/WorkbenchUtils.java
===================================================================
---
trunk/common/plugins/org.jboss.tools.common/src/org/jboss/tools/common/util/WorkbenchUtils.java 2008-04-01
12:00:06 UTC (rev 7237)
+++
trunk/common/plugins/org.jboss.tools.common/src/org/jboss/tools/common/util/WorkbenchUtils.java 2008-04-01
12:45:29 UTC (rev 7238)
@@ -1,53 +0,0 @@
-/*******************************************************************************
- * Copyright (c) 2007 Red Hat, Inc.
- * Distributed under license by Red Hat, Inc. All rights reserved.
- * This program is made available under the terms of the
- * Eclipse Public License v1.0 which accompanies this distribution,
- * and is available at
http://www.eclipse.org/legal/epl-v10.html
- *
- * Contributors:
- * Red Hat, Inc. - initial API and implementation
- ******************************************************************************/
-
-package org.jboss.tools.common.util;
-
-import org.eclipse.core.runtime.CoreException;
-import org.eclipse.jface.wizard.IWizard;
-import org.eclipse.ui.IWorkbench;
-import org.eclipse.ui.IWorkbenchPage;
-import org.eclipse.ui.IWorkbenchWizard;
-import org.eclipse.ui.PlatformUI;
-import org.eclipse.ui.wizards.IWizardDescriptor;
-import org.jboss.tools.common.CommonPlugin;
-
-/**
- * @author eskimo
- *
- */
-public class WorkbenchUtils {
-
- static public IWizard findWizardByDefId(String definitionId) {
- IWizardDescriptor aWizardDescr =
- getWorkbench().getNewWizardRegistry()
- .findWizard(definitionId);
- IWorkbenchWizard aWizard=null;
- try {
- aWizard = aWizardDescr.createWizard();
- } catch (CoreException e) {
- CommonPlugin.getPluginLog().logError("Cannot create IWorkbenchWizard
instance",e);
- }
- return aWizard;
- }
-
- public static IWorkbench getWorkbench() {
- return PlatformUI.getWorkbench();
- }
-
- /**
- * @return
- */
- public static IWorkbenchPage getWorkbenchActivePage() {
- // TODO Auto-generated method stub
- return getWorkbench().getActiveWorkbenchWindow().getActivePage();
- }
-}
Modified: trunk/common/tests/org.jboss.tools.common.test/META-INF/MANIFEST.MF
===================================================================
--- trunk/common/tests/org.jboss.tools.common.test/META-INF/MANIFEST.MF 2008-04-01
12:00:06 UTC (rev 7237)
+++ trunk/common/tests/org.jboss.tools.common.test/META-INF/MANIFEST.MF 2008-04-01
12:45:29 UTC (rev 7238)
@@ -14,6 +14,7 @@
Export-Package: org.jboss.tools.common.reporting.test,
org.jboss.tools.common.test,
org.jboss.tools.common.test.util,
+ org.jboss.tools.common.util,
org.jboss.tools.common.util.test,
org.jboss.tools.common.xml.test
Bundle-ClassPath: common-tests.jar
Copied:
trunk/common/tests/org.jboss.tools.common.test/src/org/jboss/tools/common/util/WorkbenchUtils.java
(from rev 3923,
trunk/common/plugins/org.jboss.tools.common/src/org/jboss/tools/common/util/WorkbenchUtils.java)
===================================================================
---
trunk/common/tests/org.jboss.tools.common.test/src/org/jboss/tools/common/util/WorkbenchUtils.java
(rev 0)
+++
trunk/common/tests/org.jboss.tools.common.test/src/org/jboss/tools/common/util/WorkbenchUtils.java 2008-04-01
12:45:29 UTC (rev 7238)
@@ -0,0 +1,53 @@
+/*******************************************************************************
+ * Copyright (c) 2007 Red Hat, Inc.
+ * Distributed under license by Red Hat, Inc. All rights reserved.
+ * This program is made available under the terms of the
+ * Eclipse Public License v1.0 which accompanies this distribution,
+ * and is available at
http://www.eclipse.org/legal/epl-v10.html
+ *
+ * Contributors:
+ * Red Hat, Inc. - initial API and implementation
+ ******************************************************************************/
+
+package org.jboss.tools.common.util;
+
+import org.eclipse.core.runtime.CoreException;
+import org.eclipse.jface.wizard.IWizard;
+import org.eclipse.ui.IWorkbench;
+import org.eclipse.ui.IWorkbenchPage;
+import org.eclipse.ui.IWorkbenchWizard;
+import org.eclipse.ui.PlatformUI;
+import org.eclipse.ui.wizards.IWizardDescriptor;
+import org.jboss.tools.common.CommonPlugin;
+
+/**
+ * @author eskimo
+ *
+ */
+public class WorkbenchUtils {
+
+ static public IWizard findWizardByDefId(String definitionId) {
+ IWizardDescriptor aWizardDescr =
+ getWorkbench().getNewWizardRegistry()
+ .findWizard(definitionId);
+ IWorkbenchWizard aWizard=null;
+ try {
+ aWizard = aWizardDescr.createWizard();
+ } catch (CoreException e) {
+ CommonPlugin.getPluginLog().logError("Cannot create IWorkbenchWizard
instance",e);
+ }
+ return aWizard;
+ }
+
+ public static IWorkbench getWorkbench() {
+ return PlatformUI.getWorkbench();
+ }
+
+ /**
+ * @return
+ */
+ public static IWorkbenchPage getWorkbenchActivePage() {
+ // TODO Auto-generated method stub
+ return getWorkbench().getActiveWorkbenchWindow().getActivePage();
+ }
+}