Author: dazarov
Date: 2007-10-29 09:29:47 -0400 (Mon, 29 Oct 2007)
New Revision: 4554
Removed:
trunk/jst/plugins/org.jboss.tools.jst.web.ui/src/org/jboss/tools/jst/web/ui/BrowserView.java
trunk/jst/plugins/org.jboss.tools.jst.web.ui/src/org/jboss/tools/jst/web/ui/action/OpenOnlineHelpActionDelegate.java
Modified:
trunk/jst/plugins/org.jboss.tools.jst.web.ui/plugin.xml
trunk/jst/plugins/org.jboss.tools.jst.web.ui/src/org/jboss/tools/jst/web/ui/WebDevelopmentPerspectiveFactory.java
Log:
http://jira.jboss.com/jira/browse/JBIDE-1208
Modified: trunk/jst/plugins/org.jboss.tools.jst.web.ui/plugin.xml
===================================================================
--- trunk/jst/plugins/org.jboss.tools.jst.web.ui/plugin.xml 2007-10-29 13:26:41 UTC (rev
4553)
+++ trunk/jst/plugins/org.jboss.tools.jst.web.ui/plugin.xml 2007-10-29 13:29:47 UTC (rev
4554)
@@ -231,8 +231,6 @@
</view>
<view category="web.views.category.id"
class="org.jboss.tools.jst.web.ui.navigator.WebProjectsNavigator"
icon="images/xstudio/views/web_project.gif"
id="org.jboss.tools.jst.web.ui.navigator.WebProjectsView" name="Web
Projects">
</view>
- <view category="web.views.category.id"
class="org.jboss.tools.jst.web.ui.BrowserView"
icon="images/xstudio/views/web_help.gif"
id="org.jboss.tools.jst.web.ui.action.BrowserView" name="Online
Help">
- </view>
</extension>
Deleted:
trunk/jst/plugins/org.jboss.tools.jst.web.ui/src/org/jboss/tools/jst/web/ui/BrowserView.java
===================================================================
---
trunk/jst/plugins/org.jboss.tools.jst.web.ui/src/org/jboss/tools/jst/web/ui/BrowserView.java 2007-10-29
13:26:41 UTC (rev 4553)
+++
trunk/jst/plugins/org.jboss.tools.jst.web.ui/src/org/jboss/tools/jst/web/ui/BrowserView.java 2007-10-29
13:29:47 UTC (rev 4554)
@@ -1,83 +0,0 @@
-/*******************************************************************************
- * Copyright (c) 2007 Exadel, Inc. and 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:
- * Exadel, Inc. and Red Hat, Inc. - initial API and implementation
- ******************************************************************************/
-package org.jboss.tools.jst.web.ui;
-
-import java.util.ResourceBundle;
-
-import org.eclipse.jface.viewers.ISelection;
-import org.eclipse.jface.viewers.ISelectionChangedListener;
-import org.eclipse.jface.viewers.ISelectionProvider;
-import org.eclipse.swt.widgets.Composite;
-import org.eclipse.ui.IWorkbenchPartSite;
-import org.eclipse.ui.browser.IWorkbenchBrowserSupport;
-import org.eclipse.ui.internal.browser.BrowserViewer;
-import org.eclipse.ui.internal.browser.WebBrowserView;
-
-public class BrowserView extends WebBrowserView {
-
- public static final String ID =
"org.jboss.tools.jst.web.ui.action.BrowserView";
-
- private static final String RESOURCE_BUNDLE_NAME =
"org.jboss.tools.jst.web.ui.help";
- private static final String HELP_URL_KEY = "Help.url";
-
- private static ResourceBundle RESOURCE_BUNDLE =
ResourceBundle.getBundle(RESOURCE_BUNDLE_NAME);
- private static final String HELP_URL = RESOURCE_BUNDLE.getString(HELP_URL_KEY);
-
- /**
- * The constructor.
- */
- public BrowserView() {
- }
-
- /**
- * This is a callback that will allow us
- * to create the viewer and initialize it.
- */
- public void createPartControl(Composite parent) {
-// super.createPartControl(parent);
-
-// int style = WebBrowserUtil.decodeStyle(getViewSite().getSecondaryId());
- int style = IWorkbenchBrowserSupport.STATUS;
- viewer = new BrowserViewer(parent, style);
- viewer.setContainer(this);
-
- setURL(HELP_URL);
-
-// try {
-// IWorkbenchBrowserSupport browserSupport =
WebUiPlugin.getDefault().getWorkbench().getBrowserSupport();
-// IWebBrowser browser = browserSupport.createBrowser(IWorkbenchBrowserSupport.STATUS |
IWorkbenchBrowserSupport.NAVIGATION_BAR | IWorkbenchBrowserSupport.AS_VIEW, null, null,
null);
-// browser.openURL(new URL(HELP_URL));
-// } catch (Exception e) {
-// WebModelPlugin.log(e);
-// }
-
-/// new WebBrowser(parent, false, true).getBrowser().setUrl(HELP_URL);
- }
-
- public void setSite(IWorkbenchPartSite site) {
- super.setSite(site);
- getViewSite().setSelectionProvider(NULL_PROVIDER);
- }
-
- static NullSelectionProvider NULL_PROVIDER = new NullSelectionProvider();
-
- static class NullSelectionProvider implements ISelectionProvider {
- public void addSelectionChangedListener(ISelectionChangedListener listener) {
- }
- public ISelection getSelection() {
- return null;
- }
- public void removeSelectionChangedListener(ISelectionChangedListener listener) {
- }
- public void setSelection(ISelection selection) {
- }
- }
-}
\ No newline at end of file
Modified:
trunk/jst/plugins/org.jboss.tools.jst.web.ui/src/org/jboss/tools/jst/web/ui/WebDevelopmentPerspectiveFactory.java
===================================================================
---
trunk/jst/plugins/org.jboss.tools.jst.web.ui/src/org/jboss/tools/jst/web/ui/WebDevelopmentPerspectiveFactory.java 2007-10-29
13:26:41 UTC (rev 4553)
+++
trunk/jst/plugins/org.jboss.tools.jst.web.ui/src/org/jboss/tools/jst/web/ui/WebDevelopmentPerspectiveFactory.java 2007-10-29
13:29:47 UTC (rev 4554)
@@ -42,7 +42,6 @@
IFolderLayout bottom = layout.createFolder("bottom", IPageLayout.BOTTOM,
(float)0.78, editorArea); //$NON-NLS-1$
- bottom.addView(BrowserView.ID);
bottom.addView(IPageLayout.ID_PROBLEM_VIEW);
bottom.addView(IPageLayout.ID_TASK_LIST);
Deleted:
trunk/jst/plugins/org.jboss.tools.jst.web.ui/src/org/jboss/tools/jst/web/ui/action/OpenOnlineHelpActionDelegate.java
===================================================================
---
trunk/jst/plugins/org.jboss.tools.jst.web.ui/src/org/jboss/tools/jst/web/ui/action/OpenOnlineHelpActionDelegate.java 2007-10-29
13:26:41 UTC (rev 4553)
+++
trunk/jst/plugins/org.jboss.tools.jst.web.ui/src/org/jboss/tools/jst/web/ui/action/OpenOnlineHelpActionDelegate.java 2007-10-29
13:29:47 UTC (rev 4554)
@@ -1,47 +0,0 @@
-/*******************************************************************************
- * Copyright (c) 2007 Exadel, Inc. and 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:
- * Exadel, Inc. and Red Hat, Inc. - initial API and implementation
- ******************************************************************************/
-package org.jboss.tools.jst.web.ui.action;
-
-import org.eclipse.jface.action.IAction;
-import org.eclipse.jface.viewers.ISelection;
-import org.eclipse.ui.IWorkbenchWindow;
-import org.eclipse.ui.IWorkbenchWindowActionDelegate;
-
-import org.jboss.tools.common.reporting.ProblemReportingHelper;
-import org.jboss.tools.jst.web.ui.BrowserView;
-import org.jboss.tools.jst.web.ui.WebUiPlugin;
-
-/**
- * @author Igels
- */
-public class OpenOnlineHelpActionDelegate implements IWorkbenchWindowActionDelegate {
-
- /**
- * @see org.eclipse.ui.IWorkbenchWindowActionDelegate#dispose()
- */
- public void dispose() {
- }
-
- public void init(IWorkbenchWindow window) {
- }
-
- public void run(IAction action) {
- try {
- WebUiPlugin.getDefault().getWorkbench().getActiveWorkbenchWindow().getActivePage().showView(BrowserView.ID);
- } catch (Exception e) {
- ProblemReportingHelper.reportProblem(WebUiPlugin.PLUGIN_ID, e);
- }
- }
-
- public void selectionChanged(IAction action, ISelection selection) {
- }
-
-}
\ No newline at end of file