While addressing ticket #521 and #573 i noticed that there were to names for setting...
[phpeclipse.git] / net.sourceforge.phpeclipse.webbrowser / src / net / sourceforge / phpeclipse / webbrowser / internal / WebBrowserPreferencePage.java
index cda95fd..4a6d28a 100644 (file)
@@ -1,10 +1,10 @@
 /**
  * Copyright (c) 2003 IBM Corporation and others.
- * All rights reserved.   This program and the accompanying materials
+ * All rights reserved. � This program and the accompanying materials
  * are made available under the terms of the Common Public License v1.0
  * which accompanies this distribution, and is available at
  * http://www.eclipse.org/legal/cpl-v10.html
- *
+ �*
  * Contributors:
  *    IBM - Initial API and implementation
  */
@@ -21,10 +21,12 @@ import org.eclipse.swt.widgets.Label;
 import org.eclipse.ui.IWorkbench;
 import org.eclipse.ui.IWorkbenchPreferencePage;
 import org.eclipse.ui.PlatformUI;
+
 /**
  * The preference page that holds webbrowser preferences.
  */
-public class WebBrowserPreferencePage extends PreferencePage implements IWorkbenchPreferencePage {
+public class WebBrowserPreferencePage extends PreferencePage implements
+               IWorkbenchPreferencePage {
        /**
         * WebBrowserPreferencePage constructor comment.
         */
@@ -35,8 +37,9 @@ public class WebBrowserPreferencePage extends PreferencePage implements IWorkben
 
        /**
         * Create the preference options.
-        *
-        * @param parent org.eclipse.swt.widgets.Composite
+        * 
+        * @param parent
+        *            org.eclipse.swt.widgets.Composite
         * @return org.eclipse.swt.widgets.Control
         */
        protected Control createContents(Composite parent) {
@@ -50,16 +53,20 @@ public class WebBrowserPreferencePage extends PreferencePage implements IWorkben
                layout.marginWidth = 0;
                layout.marginHeight = 0;
                composite.setLayout(layout);
-               GridData data = new GridData(GridData.FILL_HORIZONTAL | GridData.VERTICAL_ALIGN_FILL);
+               GridData data = new GridData(GridData.FILL_HORIZONTAL
+                               | GridData.VERTICAL_ALIGN_FILL);
                composite.setLayoutData(data);
-               PlatformUI.getWorkbench().getHelpSystem().setHelp(composite, ContextIds.PREF_BROWSER);
+               PlatformUI.getWorkbench().getHelpSystem().setHelp(composite,
+                               ContextIds.PREF_BROWSER);
 
                Label label = new Label(composite, SWT.WRAP);
-               label.setText(WebBrowserUIPlugin.getResource("%preferenceWebBrowserDescription"));
+               label.setText(WebBrowserUIPlugin
+                               .getResource("%preferenceWebBrowserDescription"));
                data = new GridData(GridData.HORIZONTAL_ALIGN_BEGINNING);
                label.setLayoutData(data);
 
-               BrowserTableComposite browserComposite = new BrowserTableComposite(composite, SWT.NONE);
+               BrowserTableComposite browserComposite = new BrowserTableComposite(
+                               composite, SWT.NONE);
 
                data = new GridData(GridData.FILL_HORIZONTAL | GridData.FILL_VERTICAL);
                browserComposite.setLayoutData(data);
@@ -71,17 +78,20 @@ public class WebBrowserPreferencePage extends PreferencePage implements IWorkben
 
        /**
         * Initializes this preference page using the passed desktop.
-        *
-        * @param desktop the current desktop
+        * 
+        * @param desktop
+        *            the current desktop
         */
-       public void init(IWorkbench workbench) { }
+       public void init(IWorkbench workbench) {
+       }
 
        /**
-        *
+        * 
         */
        public void setVisible(boolean visible) {
                super.setVisible(visible);
                if (visible)
-                       setTitle(WebBrowserUIPlugin.getResource("%preferenceWebBrowserTitleLong"));
+                       setTitle(WebBrowserUIPlugin
+                                       .getResource("%preferenceWebBrowserTitleLong"));
        }
 }
\ No newline at end of file