From dde9c35cf16e26ca3974edab3bb1d1e1f1c6e1f8 Mon Sep 17 00:00:00 2001 From: khartlage Date: Wed, 26 Feb 2003 19:16:27 +0000 Subject: [PATCH] Added "External preview" View (win32 only HTML Browser) to the PHP Perspective. --- net.sourceforge.phpeclipse/.classpath | 2 + net.sourceforge.phpeclipse/icons/obj16/html.gif | Bin 0 -> 884 bytes net.sourceforge.phpeclipse/plugin.properties | 1 + net.sourceforge.phpeclipse/plugin.xml | 289 +++++++++++--------- .../phpeclipse/PHPPerspectiveFactory.java | 31 ++- 5 files changed, 183 insertions(+), 140 deletions(-) create mode 100644 net.sourceforge.phpeclipse/icons/obj16/html.gif diff --git a/net.sourceforge.phpeclipse/.classpath b/net.sourceforge.phpeclipse/.classpath index 8e0620c..63d1517 100644 --- a/net.sourceforge.phpeclipse/.classpath +++ b/net.sourceforge.phpeclipse/.classpath @@ -32,6 +32,8 @@ + diff --git a/net.sourceforge.phpeclipse/icons/obj16/html.gif b/net.sourceforge.phpeclipse/icons/obj16/html.gif new file mode 100644 index 0000000000000000000000000000000000000000..35eccbe5fda4880603f198b5824a630c4e05bf6e GIT binary patch literal 884 zcmV-)1B?7eNk%w1VGsZi0QUd@0000^Oi<|O>Qqu%SXN-t&)wSC;>yU^#lzL#-sW3c zW=Tj_WMg!Hfu5et zY;1M!EpSz@`ziVxedwrsZiLpvcV1|gRrKitkXMSjDe`RKSbajh*eyN6v zxPpbUhKja#dZ15HX;@lxEiOBMgQ;d|gpZQ3t*^ul4iyv?9cF8eV`z$GXo$|x-knP+mSV{V~rcB^P|q;GkyV{MyYX_bD8!E=19Wo?#UXN_=qrJSYDl$^q|y4$d} z)49LfyTIGW%;v$y-O<+Wi;kVy-0R`w^GsWwQDC7`VWLuDp;Tj|Q(~f1Vxd)Jq*Y|2 zR%N7CWTRVZs##~ISZ1VKYN%Ujs9I>IS!ktMXQf_ktW;u}U2CaZX{K0ZpkZ*ZU~jHo zY^q#pr&?&ES!bajB|2MZqD)taTxp_TY^GaipJZ~aQ(us0b+JNAa$|6+IznRy2n=U* zu3c%JYeTlt;kHLzS#gd%Kq^;Gbu-CJ^;;psW zx4zxI#N)cb-MGHly~EwS!rZ>Z-j9-=Zg6KphJ+g$86F)RBO)P3MnzIlPzeYK&d$!Vva+eEsRacE0|NsA z0RjL2{{R30A^8LW007DWEC2ui01yBW000P40F?SY|W=V=LWqL#?F=RxE33*No KN;GId00280=bhjH literal 0 HcmV?d00001 diff --git a/net.sourceforge.phpeclipse/plugin.properties b/net.sourceforge.phpeclipse/plugin.properties index 7070756..50f37d3 100644 --- a/net.sourceforge.phpeclipse/plugin.properties +++ b/net.sourceforge.phpeclipse/plugin.properties @@ -6,6 +6,7 @@ providerName=EclipseProject.de naturePHP.name=PHP Project perspectivePHP.name=PHP +perspectiveHTML.name=HTML viewPHPResources.name=PHP Resources newWizardCategory.name=PHP diff --git a/net.sourceforge.phpeclipse/plugin.xml b/net.sourceforge.phpeclipse/plugin.xml index 3f512ea..5d25fbb 100644 --- a/net.sourceforge.phpeclipse/plugin.xml +++ b/net.sourceforge.phpeclipse/plugin.xml @@ -19,6 +19,7 @@ + @@ -96,8 +97,8 @@ Temporarily replaced until errors can be ironed out... ---> - + Create a new PHP project. - - + - - + Create a Xaraya module. - + @@ -151,7 +152,7 @@ Temporarily replaced until errors can be ironed out... value="net.sourceforge.phpeclipse.phpnature"> - - - - - - - - - - - - - - - - + label="%CodingActionSet.label" + description="%CodingActionSet.description" + visible="false" + id="net.sourceforge.phpeclipse.ui.CodingActionSet"> + + + + + + + + + + + + - - - - + + + + + + - - - - + - + - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + - + diff --git a/net.sourceforge.phpeclipse/src/net/sourceforge/phpeclipse/PHPPerspectiveFactory.java b/net.sourceforge.phpeclipse/src/net/sourceforge/phpeclipse/PHPPerspectiveFactory.java index d489d3d..30019d3 100644 --- a/net.sourceforge.phpeclipse/src/net/sourceforge/phpeclipse/PHPPerspectiveFactory.java +++ b/net.sourceforge.phpeclipse/src/net/sourceforge/phpeclipse/PHPPerspectiveFactory.java @@ -1,9 +1,11 @@ package net.sourceforge.phpeclipse; import org.eclipse.debug.ui.IDebugUIConstants; +import org.eclipse.swt.SWT; import org.eclipse.ui.IFolderLayout; import org.eclipse.ui.IPageLayout; import org.eclipse.ui.IPerspectiveFactory; +import org.eclipse.update.internal.ui.UpdatePerspective; public class PHPPerspectiveFactory implements IPerspectiveFactory { @@ -20,22 +22,37 @@ public class PHPPerspectiveFactory implements IPerspectiveFactory { folder.addView(IPageLayout.ID_RES_NAV); //folder.addPlaceholder(IPageLayout.ID_RES_NAV); - IFolderLayout consoleArea = layout.createFolder("consoleArea", IPageLayout.BOTTOM, (float) 0.75, editorArea); + IFolderLayout consoleArea = + layout.createFolder( + "consoleArea", + IPageLayout.BOTTOM, + (float) 0.75, + editorArea); consoleArea.addView(IPageLayout.ID_TASK_LIST); consoleArea.addView(IDebugUIConstants.ID_CONSOLE_VIEW); + if (SWT.getPlatform().equals("win32")) { + consoleArea.addView(UpdatePerspective.ID_BROWSER); + } consoleArea.addView(IPageLayout.ID_BOOKMARKS); - layout.addView(IPageLayout.ID_OUTLINE, IPageLayout.RIGHT, (float) 0.75, editorArea); + layout.addView( + IPageLayout.ID_OUTLINE, + IPageLayout.RIGHT, + (float) 0.75, + editorArea); layout.addActionSet(IDebugUIConstants.LAUNCH_ACTION_SET); - layout.addActionSet(IPageLayout.ID_NAVIGATE_ACTION_SET); - layout.addActionSet(PHPeclipsePlugin.PHP_CODING_ACTION_SET_ID); - + layout.addActionSet(IPageLayout.ID_NAVIGATE_ACTION_SET); + layout.addActionSet(PHPeclipsePlugin.PHP_CODING_ACTION_SET_ID); + layout.addShowViewShortcut(IDebugUIConstants.ID_CONSOLE_VIEW); + if (SWT.getPlatform().equals("win32")) { + layout.addShowViewShortcut(UpdatePerspective.ID_BROWSER); + } + + // layout.addShowViewShortcut(PHPeclipsePlugin.PHP_RESOURCES_VIEW_ID); - // layout.addShowViewShortcut(PHPeclipsePlugin.PHP_RESOURCES_VIEW_ID); - // views - standard workbench layout.addShowViewShortcut(IPageLayout.ID_OUTLINE); layout.addShowViewShortcut(IPageLayout.ID_TASK_LIST); -- 1.7.1