From e840516736570dea3d67334786f56ba3c8d16079 Mon Sep 17 00:00:00 2001 From: khartlage Date: Sun, 27 Apr 2003 12:32:17 +0000 Subject: [PATCH] improved color settings through Preference page --- net.sourceforge.phpeclipse/.classpath | 4 +- net.sourceforge.phpeclipse/plugin.properties | 220 +++++++++++++++++++- net.sourceforge.phpeclipse/plugin.xml | 198 +++++++++++------- .../ui/preferences/PHPEditorPreferencePage.java | 3 +- .../ui/preferences/TemplatePreferencePage.java | 7 +- .../sourceforge/phpdt/ui/text/JavaTextTools.java | 14 +- .../phpeclipse/phpeditor/OverviewRuler.java | 47 ++--- .../phpeclipse/phpeditor/PHPEditor.java | 12 +- .../phpeclipse/phpeditor/PHPEditorEnvironment.java | 86 -------- .../phpeditor/PHPSourceViewerConfiguration.java | 2 +- .../phpeclipse/phpeditor/PHPUnitEditor.java | 6 +- 11 files changed, 382 insertions(+), 217 deletions(-) delete mode 100644 net.sourceforge.phpeclipse/src/net/sourceforge/phpeclipse/phpeditor/PHPEditorEnvironment.java diff --git a/net.sourceforge.phpeclipse/.classpath b/net.sourceforge.phpeclipse/.classpath index 63d1517..719c648 100644 --- a/net.sourceforge.phpeclipse/.classpath +++ b/net.sourceforge.phpeclipse/.classpath @@ -30,10 +30,10 @@ - + diff --git a/net.sourceforge.phpeclipse/plugin.properties b/net.sourceforge.phpeclipse/plugin.properties index 4cddf37..535b7c6 100644 --- a/net.sourceforge.phpeclipse/plugin.properties +++ b/net.sourceforge.phpeclipse/plugin.properties @@ -54,14 +54,90 @@ CommentAction.label= Co&mment@Ctrl+/ UncommentAction.label= &Uncomment@Ctrl+\\ +ShiftRightAction.label= Sh&ift Right + +ShiftLeftAction.label= S&hift Left + FormatAction.label= F&ormat@Ctrl+Shift+F + +AddImportAction.label= A&dd Import@Ctrl+Shift+M + +OrganizeImportsAction.label= Or&ganize Imports@Ctrl+Shift+O + +SurroundWithTryCatchAction.label= Surround with &try/catch block + +OverrideMethodsAction.label= O&verride/Implement Methods... + +GenerateGetterSetterAction.label= Gene&rate Getter and Setter... + +AddConstructorFromSuperclassAction.label= Add &Constructor from Superclass + +AddJavaDocCommentAction.label= Add &PHPdoc Comment + +FindStringsToExternalizeAction.label= &Find Strings to Externalize... + +ExternalizeStringsAction.label= &Externalize Strings... + +ConvertLineDelimitersActions.label= Co&nvert Line Delimiters +ConvertLineDelimitersToWindowsAction.label= To &Windows +ConvertLineDelimitersToUNIXAction.label= To &UNIX +ConvertLineDelimitersToMacAction.label= To &Mac + +########################################################################## +# Javadoc Support +########################################################################## +PHPDocWizard.name= PHPDoc +PHPDocWizard.description=Generate PHPDoc +PHPDoc.preferencePageName= PHPDoc +CreatePHPDocAction.label= Run PHPDoc &Wizard... +CreatePHPDocAction.tooltip= Run PHPDoc Wizard + +########################################################################## +# PHP Working Set Support +########################################################################## +PHPWorkingSetPage.name= PHP + + ########################################################################## # Action Definitions ########################################################################## #--- Edit menu +ActionDefinition.show.outline.name= Show Outline +ActionDefinition.show.outline.description= Open the outline for the editor input + +ActionDefinition.open.structure.name= Open Structure +ActionDefinition.open.structure.description= Show the structure of the selected element + +ActionDefinition.gotoNextMember.name= Go to Next Member +ActionDefinition.gotoNextMember.description= Move the caret to the next member of the compilation unit + +ActionDefinition.gotoPreviousMember.name= Go to Previous Member +ActionDefinition.gotoPreviousMember.description= Move the caret to the previous member of the compilation unit + +ActionDefinition.selectEnclosing.name= Select Enclosing Element +ActionDefinition.selectEnclosing.description= Expand selection to include enclosing element + +ActionDefinition.selectNext.name= Select Next Element +ActionDefinition.selectNext.description= Expand selection to include next sibling + +ActionDefinition.selectPrevious.name= Select Previous Element +ActionDefinition.selectPrevious.description= Expand selection to include previous sibling + +ActionDefinition.selectLast.name= Restore Last Selection +ActionDefinition.selectLast.description= Restore last selection + ActionDefinition.contentAssistProposals.name= Content Assist ActionDefinition.contentAssistProposals.description= Content Assist +ActionDefinition.contentAssistContextInformation.name= Parameter Hints +ActionDefinition.contentAssistContextInformation.description= Show Method Parameter Hints + +ActionDefinition.correctionAssistProposals.name= Quick Fix +ActionDefinition.correctionAssistProposals.description= Quick Fix + +ActionDefinition.showJavadoc.name= Show Tooltip Description +ActionDefinition.showJavadoc.description= Shows the tooltip description for the element at the cursor + #--- Source menu ActionDefinition.comment.name= Comment ActionDefinition.comment.description= Turn the selected lines into PHP comments @@ -70,4 +146,146 @@ ActionDefinition.uncomment.name= Uncomment ActionDefinition.uncomment.description= Uncomment the selected PHP comment lines ActionDefinition.format.name= Format -ActionDefinition.format.description= Format the source code \ No newline at end of file +ActionDefinition.format.description= Format the selected text + +ActionDefinition.addImport.name= Add Import +ActionDefinition.addImport.description= Create import statement on selection + +ActionDefinition.organizeImports.name= Organize Imports +ActionDefinition.organizeImports.description= Evaluate all required imports and replace the current imports + +ActionDefinition.surroundWith.tryCatch.name= Surround with try/catch block +ActionDefinition.surroundWith.tryCatch.description= Surround the selected text with a try/catch block + +ActionDefinition.overrideMethods.name= Override/Implement Methods +ActionDefinition.overrideMethods.description= Override or implement methods from super types + +ActionDefinition.addUnimplementedConstructors.name= Add Constructors from Superclass +ActionDefinition.addUnimplementedConstructors.description= Evaluate and add constructors from superclass + +ActionDefinition.findStringsToExternalize.name= Find Strings to Externalize +ActionDefinition.findStringsToExternalize.description= Find strings that are not externalized + +ActionDefinition.externalizeStrings.name= Externalize Strings +ActionDefinition.externalizeStrings.description= Find all string that are not externalized and puts them into a separate property file + +ActionDefinition.nextProblem.name= Go to Next Problem +ActionDefinition.nextProblem.description= Go to next problem + +ActionDefinition.previousProblem.name= Go to Previous Problem +ActionDefinition.previousProblem.description= Go to previous problem + +#--- Refactor menu +ActionDefinition.refactorRedo.name= Redo +ActionDefinition.refactorRedo.description= Redo the last refactoring + +ActionDefinition.refactorUndo.name= Undo +ActionDefinition.refactorUndo.description= Undo the last refactoring + +ActionDefinition.pullUp.name= Pull Up +ActionDefinition.pullUp.description= Move members to a superclass + +ActionDefinition.renameElement.name= Rename +ActionDefinition.renameElement.description= Rename the selected element + +ActionDefinition.modifyMethodParameters.name= Change Method Signature +ActionDefinition.modifyMethodParameters.description= Change method signature include parameter names and parameter order + +ActionDefinition.moveElement.name= Move +ActionDefinition.moveElement.description= Move the selected element to a new location + +ActionDefinition.extractLocalVariable.name= Extract Local Variable +ActionDefinition.extractLocalVariable.description= Extract an expression into a new local variable and uses the local instead + +ActionDefinition.extractConstant.name= Extract Constant +ActionDefinition.extractConstant.description= Extract a constant into a new static field and uses the field instead + +ActionDefinition.inline.name= Inline +ActionDefinition.inline.description= Inline a constant, local variable or method + +ActionDefinition.selfEncapsulateField.name= Self Encapsulate Field +ActionDefinition.selfEncapsulateField.description= Create getting and setting methods for the field and use only those to access the field + +ActionDefinition.extractMethod.name= Extract Method +ActionDefinition.extractMethod.description= Extract a set of statements or an expression into a new method and use the method instead + +ActionDefinition.extractInterface.name= Extract Interface +ActionDefinition.extractInterface.description= Extract a set of members into a new interface and tries to use that interface instead + +ActionDefinition.moveInnerToTopLevel.name= Move to Top Level +ActionDefinition.moveInnerToTopLevel.description= Convert an inner class to a top level class + +ActionDefinition.useSupertype.name= Use Supertype Where Possible +ActionDefinition.useSupertype.description= Try to re-route the access via a supertype where possible + +ActionDefinition.promoteLocalVariable.name= Promote Local Variable to Field +ActionDefinition.promoteLocalVariable.description= Convert a local variable into a field + +ActionDefinition.convertAnonymousToNested.name= Convert Anonymous to Nested +ActionDefinition.convertAnonymousToNested.description= Convert an anonymous class to a nest class + +#--- Navigate menu +ActionDefinition.openEditor.name= Open +ActionDefinition.openEditor.description= Open an editor on the selected element + +ActionDefinition.openSuperImplementation.name= Open Super Implementation +ActionDefinition.openSuperImplementation.description= Open the Implementation in the Super Type + +ActionDefinition.openExternalJavadoc.name= Open E&xternal PHPdoc +ActionDefinition.openExternalJavadoc.description= Open the PHPdoc of the selected element in an external browser + +ActionDefinition.openTypeHierarchy.name= Open Type Hierarchy +ActionDefinition.openTypeHierarchy.description= Open a type hierarchy on the selected element + +ActionDefinition.showInPackageView.name= Show in Package Explorer +ActionDefinition.showInPackageView.description= Show the selected element in Package Explorer + +ActionDefinition.showInNavigatorView.name= Show in &Navigator View +ActionDefinition.showInNavigatorView.description= Show the selected element in the Resource Navigator + +#--- Search menu +ActionDefinition.referencesInWorkspace.name= Search References in Workspace +ActionDefinition.referencesInWorkspace.description= Search for References to the Selected Element in the Workspace + +ActionDefinition.referencesInHierarchy.name= Search References in Hierarchy +ActionDefinition.referencesInHierarchy.description= Search for References of the Selected Element in its Hierarchy + +ActionDefinition.referencesInWorkingSet.name= Search References in Working Set +ActionDefinition.referencesInWorkingSet.description= Search for References to the Selected Element in a Working Set + +ActionDefinition.readAccessInworkspace.name= Search Read Access in Workspace +ActionDefinition.readAccessInWorkspace.description= Search for Read References to the Selected Element in the Workspace + +ActionDefinition.readAccessInHierarchy.name= Search Read Access in Hierarchy +ActionDefinition.readAccessInHierarchy.description= Search for Read References of the Selected Element in its Hierarchy + +ActionDefinition.readAccessInWorkingSet.name= Search Read Access in Working Set +ActionDefinition.readAccessInWorkingSet.description= Search for Read References to the Selected Element in a Working Set + +ActionDefinition.writeAccessInWorkspace.name=Search Write Access in Workspace +ActionDefinition.writeAccessInWorkspace.description= Search for Write References to the Selected Element in the Workspace + +ActionDefinition.writeAccessInHierarchy.name= Search Write Access in Hierarchy +ActionDefinition.writeAccessInHierarchy.description= Search for Write References of the Selected Element in its Hierarchy + +ActionDefinition.writeAccessInWorkingSet.name= Search Write Access in Working Set +ActionDefinition.writeAccessInWorkingSet.description= Search for Write References to the Selected Element in a Working Set + +ActionDefinition.declarationsInWorkspace.name= Search Declaration in Workspace +ActionDefinition.declarationsInWorkspace.description= Search for Declarations of the Selected Element in the Workspace + +ActionDefinition.declarationsInHierarchy.name= Search Declaration in Hierarchy +ActionDefinition.declarationsInHierarchy.description= Search for Declarations of the Selected Element in its Hierarchy + +ActionDefinition.declarationsInWorkingSet.name= Search Declaration in Working Set +ActionDefinition.declarationsInWorkingSet.description= Search for Declarations of the Selected Element in a Working Set + +ActionDefinition.implementorsInWorkspace.name= Search Implementors in Workspace +ActionDefinition.implementorsInWorkspace.description= Search for Implementors of the Selected Interface + +ActionDefinition.implementorsInWorkingSet.name= Search Implementors in Working Set +ActionDefinition.implementorsInWorkingSet.description= Search for Implementors of the Selected Interface in a Working Set + +#--- miscellaenous +ActionDefinition.togglePresentation.name= Show Source of Selected Element Only +ActionDefinition.togglePresentation.description= Show Source of Selected Element Only \ No newline at end of file diff --git a/net.sourceforge.phpeclipse/plugin.xml b/net.sourceforge.phpeclipse/plugin.xml index 89e8568..94fce9a 100644 --- a/net.sourceforge.phpeclipse/plugin.xml +++ b/net.sourceforge.phpeclipse/plugin.xml @@ -18,7 +18,6 @@ - @@ -85,7 +84,8 @@ + + + Create a new PHP project. - + --> @@ -153,7 +154,7 @@ Temporarily replaced until errors can be ironed out... @@ -176,7 +177,6 @@ Temporarily replaced until errors can be ironed out... point="org.eclipse.ui.actionSets"> - - - + + + - - - - - + + + + + + + + + + + + + + + @@ -272,26 +289,30 @@ Temporarily replaced until errors can be ironed out... point="org.eclipse.ui.actionDefinitions"> - - + + + + + + + + + + - - + + @@ -671,16 +691,27 @@ Temporarily replaced until errors can be ironed out... key="Ctrl+\" id="net.sourceforge.phpeclipse.phpeditor.uncomment"> - + + + + - + + @@ -694,17 +725,28 @@ Temporarily replaced until errors can be ironed out... key="Ctrl+\" id="net.sourceforge.phpeclipse.phpeditor.uncomment"> - + + + + - - + +