aboutsummaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
authorzzhongwei2013-01-25 07:28:02 (EST)
committerzzhongwei2013-01-25 07:28:02 (EST)
commitf24367aa0a989cdb835eaf7136a0c541697ef038 (patch)
tree6e19cb56326116e6ea41a982bb6a5d4f29966049
parent912aa69e17663660b96578c1ac49f9f40c4ebbb1 (diff)
downloadorg.eclipse.pdt-f24367aa0a989cdb835eaf7136a0c541697ef038.zip
org.eclipse.pdt-f24367aa0a989cdb835eaf7136a0c541697ef038.tar.gz
org.eclipse.pdt-f24367aa0a989cdb835eaf7136a0c541697ef038.tar.bz2
399056: [Regression] Toggle comment option is disabled in Source menu.
Shortcuts don't work. https://bugs.eclipse.org/bugs/show_bug.cgi?id=399056
-rw-r--r--plugins/org.eclipse.php.ui/src/org/eclipse/php/internal/ui/editor/PHPStructuredEditor.java8
1 files changed, 0 insertions, 8 deletions
diff --git a/plugins/org.eclipse.php.ui/src/org/eclipse/php/internal/ui/editor/PHPStructuredEditor.java b/plugins/org.eclipse.php.ui/src/org/eclipse/php/internal/ui/editor/PHPStructuredEditor.java
index 18b5110..e360d96 100644
--- a/plugins/org.eclipse.php.ui/src/org/eclipse/php/internal/ui/editor/PHPStructuredEditor.java
+++ b/plugins/org.eclipse.php.ui/src/org/eclipse/php/internal/ui/editor/PHPStructuredEditor.java
@@ -15,7 +15,6 @@ import java.io.IOException;
import java.text.CharacterIterator;
import java.util.*;
-import org.eclipse.core.commands.IHandler;
import org.eclipse.core.filebuffers.FileBuffers;
import org.eclipse.core.filebuffers.IFileBufferStatusCodes;
import org.eclipse.core.filebuffers.ITextFileBuffer;
@@ -115,7 +114,6 @@ import org.eclipse.ui.actions.ActionGroup;
import org.eclipse.ui.dnd.IDragAndDropService;
import org.eclipse.ui.editors.text.EditorsUI;
import org.eclipse.ui.editors.text.IFoldingCommandIds;
-import org.eclipse.ui.handlers.IHandlerService;
import org.eclipse.ui.texteditor.*;
import org.eclipse.ui.views.contentoutline.IContentOutlinePage;
import org.eclipse.wst.sse.core.internal.provisional.text.IStructuredDocument;
@@ -1973,12 +1971,6 @@ public class PHPStructuredEditor extends StructuredTextEditor implements
protected void createActions() {
super.createActions();
- // add handlers to handler service
- IHandlerService handlerService = (IHandlerService) getSite()
- .getService(IHandlerService.class);
- IHandler toggleCommentHandler = new PHPToggleLineCommentHandler();
- handlerService.activateHandler(ActionDefinitionIds.TOGGLE_COMMENT,
- toggleCommentHandler);
final ResourceBundle resourceBundle = PHPUIMessages.getResourceBundle();
Action action = new GotoMatchingBracketAction(this);