Download
Getting Started
Members
Projects
Community
Marketplace
Events
Planet Eclipse
Newsletter
Videos
Participate
Report a Bug
Forums
Mailing Lists
Wiki
IRC
How to Contribute
Working Groups
Automotive
Internet of Things
LocationTech
Long-Term Support
PolarSys
Science
OpenMDM
More
Community
Marketplace
Events
Planet Eclipse
Newsletter
Videos
Participate
Report a Bug
Forums
Mailing Lists
Wiki
IRC
How to Contribute
Working Groups
Automotive
Internet of Things
LocationTech
Long-Term Support
PolarSys
Science
OpenMDM
Toggle navigation
Bugzilla – Attachment 193073 Details for
Bug 342519
Toggle refactoring: misleading error message
Home
|
New
|
Browse
|
Search
|
[?]
|
Reports
|
Requests
|
Help
|
Log In
[x]
|
Terms of Use
|
Copyright Agent
Some Eclipse Foundation services are deprecated, or will be soon. Please ensure you've read
this important communication.
[patch]
Toggle Function, mutliple declarators message patch
ToggleFunctionMutliDeclaratorMsg-patch.txt (text/plain), 3.69 KB, created by
Marc-André Laperle
on 2011-04-12 12:47:08 EDT
(
hide
)
Description:
Toggle Function, mutliple declarators message patch
Filename:
MIME Type:
Creator:
Marc-André Laperle
Created:
2011-04-12 12:47:08 EDT
Size:
3.69 KB
patch
obsolete
>### Eclipse Workspace Patch 1.0 >#P org.eclipse.cdt.ui >Index: src/org/eclipse/cdt/internal/ui/refactoring/togglefunction/DeclaratorFinder.java >=================================================================== >RCS file: /cvsroot/tools/org.eclipse.cdt/all/org.eclipse.cdt.ui/src/org/eclipse/cdt/internal/ui/refactoring/togglefunction/DeclaratorFinder.java,v >retrieving revision 1.1 >diff -u -r1.1 DeclaratorFinder.java >--- src/org/eclipse/cdt/internal/ui/refactoring/togglefunction/DeclaratorFinder.java 12 Apr 2011 09:08:14 -0000 1.1 >+++ src/org/eclipse/cdt/internal/ui/refactoring/togglefunction/DeclaratorFinder.java 12 Apr 2011 16:43:50 -0000 >@@ -89,6 +89,10 @@ > } > if (node instanceof IASTSimpleDeclaration) { > IASTDeclarator[] declarators = ((IASTSimpleDeclaration) node).getDeclarators(); >+ if (declarators.length > 1) { >+ throw new NotSupportedException(Messages.DeclaratorFinder_MultipleDeclarators); >+ } >+ > if (declarators.length == 1 && > declarators[0] instanceof IASTFunctionDeclarator) > return (IASTFunctionDeclarator) declarators[0]; >Index: src/org/eclipse/cdt/internal/ui/refactoring/togglefunction/Messages.java >=================================================================== >RCS file: /cvsroot/tools/org.eclipse.cdt/all/org.eclipse.cdt.ui/src/org/eclipse/cdt/internal/ui/refactoring/togglefunction/Messages.java,v >retrieving revision 1.1 >diff -u -r1.1 Messages.java >--- src/org/eclipse/cdt/internal/ui/refactoring/togglefunction/Messages.java 12 Apr 2011 09:08:14 -0000 1.1 >+++ src/org/eclipse/cdt/internal/ui/refactoring/togglefunction/Messages.java 12 Apr 2011 16:43:50 -0000 >@@ -17,6 +17,7 @@ > private static final String BUNDLE_NAME = "org.eclipse.cdt.internal.ui.refactoring.togglefunction.messages"; //$NON-NLS-1$ > public static String DeclaratorFinder_NestedFunction; > public static String DeclaratorFinder_NoDeclarator; >+ public static String DeclaratorFinder_MultipleDeclarators; > public static String RefactoringJob_UndoName; > public static String ToggleFileCreator_andMove; > public static String ToggleFileCreator_CanNotCreateNewFile; >Index: src/org/eclipse/cdt/internal/ui/refactoring/togglefunction/messages.properties >=================================================================== >RCS file: /cvsroot/tools/org.eclipse.cdt/all/org.eclipse.cdt.ui/src/org/eclipse/cdt/internal/ui/refactoring/togglefunction/messages.properties,v >retrieving revision 1.1 >diff -u -r1.1 messages.properties >--- src/org/eclipse/cdt/internal/ui/refactoring/togglefunction/messages.properties 12 Apr 2011 09:08:14 -0000 1.1 >+++ src/org/eclipse/cdt/internal/ui/refactoring/togglefunction/messages.properties 12 Apr 2011 16:43:50 -0000 >@@ -1,5 +1,17 @@ >+############################################################################### >+# Copyright (c) 2011 Institute for Software, HSR Hochschule fuer Technik >+# Rapperswil, University of applied sciences and others. >+# All rights reserved. This program and the accompanying materials >+# are 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: >+# Martin Schwab & Thomas Kallenberg - initial API and implementation >+############################################################################### > DeclaratorFinder_NestedFunction=Nested function declarations not supported > DeclaratorFinder_NoDeclarator=cannot work without declarator >+DeclaratorFinder_MultipleDeclarators=cannot work with multiple declarators > RefactoringJob_UndoName=toggle function definition > ToggleFileCreator_andMove=\ and move > ToggleFileCreator_CanNotCreateNewFile=Cannot create new filechange
You cannot view the attachment while viewing its details because your browser does not support IFRAMEs.
View the attachment on a separate page
.
View Attachment As Diff
View Attachment As Raw
Flags:
malaperle
:
iplog-
Actions:
View
|
Diff
Attachments on
bug 342519
: 193073