[
Date Prev][
Date Next][
Thread Prev][
Thread Next][
Date Index][
Thread Index]
[
List Home]
Re: [platform-core-dev] Releasing formatter settings
|
Hi Markus
I checked it out again, and found that I add a generate serial number in missing code tab. If not selected, it works.
But if selected serial number, stack followed do not provide details about this rule.
If need more info about this?
Thanks.
Regards
Qinxian
java.lang.IllegalArgumentException: Attempted to beginRule: R/, does not match outer scope rule: L/Test.java
at org.eclipse.core.runtime.Assert.isLegal
(Assert.java:62)
at org.eclipse.core.internal.jobs.ThreadJob.illegalPush(ThreadJob.java:116)
at org.eclipse.core.internal.jobs.ThreadJob.push(ThreadJob.java:225)
at org.eclipse.core.internal.jobs.ImplicitJobs.begin
(ImplicitJobs.java:58)
at org.eclipse.core.internal.jobs.JobManager.beginRule(JobManager.java:219)
at org.eclipse.core.internal.resources.WorkManager.checkIn(WorkManager.java:96)
at org.eclipse.core.internal.resources.Workspace.prepareOperation
(Workspace.java:1689)
at org.eclipse.core.internal.resources.Project.internalBuild(Project.java:485)
at org.eclipse.core.internal.resources.Project.build(Project.java:75)
at org.eclipse.debug.core.model.LaunchConfigurationDelegate.buildProjects
(LaunchConfigurationDelegate.java:397)
at org.eclipse.debug.core.model.LaunchConfigurationDelegate.buildForLaunch(LaunchConfigurationDelegate.java:123)
at org.eclipse.debug.internal.core.LaunchConfiguration.launch(LaunchConfiguration.java
:689)
at org.eclipse.jdt.internal.ui.text.correction.SerialVersionComputationHelper.computeSerialIDs(SerialVersionComputationHelper.java:95)
at org.eclipse.jdt.internal.ui.text.correction.SerialVersionHashOperation.calculateSerialVersionIds
(SerialVersionHashOperation.java:104)
at org.eclipse.jdt.internal.corext.fix.PotentialProgrammingProblemsFix$SerialVersionHashContext.initialize(PotentialProgrammingProblemsFix.java:133)
at org.eclipse.jdt.internal.corext.fix.PotentialProgrammingProblemsFix.checkPreConditions
(PotentialProgrammingProblemsFix.java:355)
at org.eclipse.jdt.internal.ui.fix.PotentialProgrammingProblemsCleanUp.checkPreConditions(PotentialProgrammingProblemsCleanUp.java:184)
at org.eclipse.jdt.internal.corext.fix.CleanUpPostSaveListener.saved
(CleanUpPostSaveListener.java:60)
at org.eclipse.jdt.internal.ui.javaeditor.CompilationUnitDocumentProvider$5.run(CompilationUnitDocumentProvider.java:1458)
at org.eclipse.core.runtime.SafeRunner.run(SafeRunner.java
:37)
at org.eclipse.jdt.internal.ui.javaeditor.CompilationUnitDocumentProvider.notifyPostSaveListeners(CompilationUnitDocumentProvider.java:1453)
at org.eclipse.jdt.internal.ui.javaeditor.CompilationUnitDocumentProvider.commitWorkingCopy
(CompilationUnitDocumentProvider.java:1210)
at org.eclipse.jdt.internal.ui.javaeditor.CompilationUnitDocumentProvider$4.execute(CompilationUnitDocumentProvider.java:1274)
at org.eclipse.ui.editors.text.TextFileDocumentProvider$DocumentProviderOperation.run
(TextFileDocumentProvider.java:144)
at org.eclipse.ui.actions.WorkspaceModifyDelegatingOperation.execute(WorkspaceModifyDelegatingOperation.java:68)
at org.eclipse.ui.actions.WorkspaceModifyOperation$1.run(WorkspaceModifyOperation.java
:101)
at org.eclipse.core.internal.resources.Workspace.run(Workspace.java:1742)
at org.eclipse.ui.actions.WorkspaceModifyOperation.run(WorkspaceModifyOperation.java:113)
at org.eclipse.ui.internal.editors.text.WorkspaceOperationRunner.run
(WorkspaceOperationRunner.java:73)
at org.eclipse.ui.internal.editors.text.WorkspaceOperationRunner.run(WorkspaceOperationRunner.java:63)
at org.eclipse.ui.editors.text.TextFileDocumentProvider.executeOperation(TextFileDocumentProvider.java
:461)
at org.eclipse.ui.editors.text.TextFileDocumentProvider.saveDocument(TextFileDocumentProvider.java:745)
at org.eclipse.ui.texteditor.AbstractTextEditor.performSave(AbstractTextEditor.java:4076)
at org.eclipse.jdt.internal.ui.javaeditor.CompilationUnitEditor.performSave
(CompilationUnitEditor.java:1350)
at org.eclipse.jdt.internal.ui.javaeditor.CompilationUnitEditor.doSave(CompilationUnitEditor.java:1403)
at org.eclipse.ui.internal.SaveableHelper$1.run(SaveableHelper.java:131)
at
org.eclipse.ui.internal.SaveableHelper$4.run(SaveableHelper.java:252)
at org.eclipse.jface.operation.ModalContext.runInCurrentThread(ModalContext.java:369)
at org.eclipse.jface.operation.ModalContext.run(ModalContext.java
:313)
at org.eclipse.jface.window.ApplicationWindow$1.run(ApplicationWindow.java:767)
at org.eclipse.swt.custom.BusyIndicator.showWhile(BusyIndicator.java:67)
at org.eclipse.jface.window.ApplicationWindow.run(ApplicationWindow.java
:764)
at org.eclipse.ui.internal.WorkbenchWindow.run(WorkbenchWindow.java:2280)
at org.eclipse.ui.internal.SaveableHelper.runProgressMonitorOperation(SaveableHelper.java:258)
at org.eclipse.ui.internal.SaveableHelper.savePart
(SaveableHelper.java:136)
at org.eclipse.ui.internal.EditorManager.savePart(EditorManager.java:1384)
at org.eclipse.ui.internal.WorkbenchPage.savePart(WorkbenchPage.java:2971)
at org.eclipse.ui.internal.WorkbenchPage.saveEditor
(WorkbenchPage.java:2984)
at org.eclipse.ui.internal.SaveAction.run(SaveAction.java:67)
at org.eclipse.jface.action.Action.runWithEvent(Action.java:499)
at org.eclipse.jface.commands.ActionHandler.execute(ActionHandler.java
:119)
at org.eclipse.core.commands.Command.executeWithChecks(Command.java:461)
at org.eclipse.core.commands.ParameterizedCommand.executeWithChecks(ParameterizedCommand.java:424)
at org.eclipse.ui.internal.handlers.HandlerService.executeCommand
(HandlerService.java:160)
at org.eclipse.ui.internal.keys.WorkbenchKeyboard.executeCommand(WorkbenchKeyboard.java:465)
at org.eclipse.ui.internal.keys.WorkbenchKeyboard.press(WorkbenchKeyboard.java:791)
at org.eclipse.ui.internal.keys.WorkbenchKeyboard.processKeyEvent
(WorkbenchKeyboard.java:838)
at org.eclipse.ui.internal.keys.WorkbenchKeyboard.filterKeySequenceBindings(WorkbenchKeyboard.java:563)
at org.eclipse.ui.internal.keys.WorkbenchKeyboard.access$3(WorkbenchKeyboard.java:505)
at org.eclipse.ui.internal.keys.WorkbenchKeyboard$KeyDownFilter.handleEvent(WorkbenchKeyboard.java:122)
at org.eclipse.swt.widgets.EventTable.sendEvent(EventTable.java:66)
at org.eclipse.swt.widgets.Display.filterEvent
(Display.java:1380)
at org.eclipse.swt.widgets.Widget.sendEvent(Widget.java:1094)
at org.eclipse.swt.widgets.Widget.sendEvent(Widget.java:1119)
at org.eclipse.swt.widgets.Widget.sendEvent(Widget.java:1104)
at
org.eclipse.swt.widgets.Widget.sendKeyEvent(Widget.java:1131)
at org.eclipse.swt.widgets.Widget.gtk_key_press_event(Widget.java:661)
at org.eclipse.swt.widgets.Control.gtk_key_press_event(Control.java:2125)
at org.eclipse.swt.widgets.Composite.gtk_key_press_event
(Composite.java:637)
at org.eclipse.swt.widgets.Widget.windowProc(Widget.java:1476)
at org.eclipse.swt.widgets.Display.windowProc(Display.java:3837)
at org.eclipse.swt.internal.gtk.OS._gtk_main_do_event(Native Method)
at org.eclipse.swt.internal.gtk.OS.gtk_main_do_event(OS.java:5506)
at org.eclipse.swt.widgets.Display.eventProc(Display.java:1149)
at org.eclipse.swt.internal.gtk.OS._g_main_context_iteration(Native Method)
at
org.eclipse.swt.internal.gtk.OS.g_main_context_iteration(OS.java:1472)
at org.eclipse.swt.widgets.Display.readAndDispatch(Display.java:2879)
at org.eclipse.ui.internal.Workbench.runEventLoop(Workbench.java:1924)
at org.eclipse.ui.internal.Workbench.runUI(Workbench.java:1888)
at org.eclipse.ui.internal.Workbench.createAndRunWorkbench(Workbench.java:419)
at org.eclipse.ui.PlatformUI.createAndRunWorkbench(PlatformUI.java:149)
at org.eclipse.ui.internal.ide.IDEApplication.run(IDEApplication.java:95)
at org.eclipse.core.internal.runtime.PlatformActivator$1.run(PlatformActivator.java:78)
at org.eclipse.core.runtime.internal.adaptor.EclipseAppLauncher.runApplication
(EclipseAppLauncher.java:104)
at org.eclipse.core.runtime.internal.adaptor.EclipseAppLauncher.start(EclipseAppLauncher.java:74)
at org.eclipse.core.runtime.adaptor.EclipseStarter.run(EclipseStarter.java:348)
at org.eclipse.core.runtime.adaptor.EclipseStarter.run
(EclipseStarter.java:165)
at sun.reflect.NativeMethodAccessorImpl.invoke0(Native Method)
at sun.reflect.NativeMethodAccessorImpl.invoke(NativeMethodAccessorImpl.java:64)
at sun.reflect.DelegatingMethodAccessorImpl.invoke
(DelegatingMethodAccessorImpl.java:43)
at java.lang.reflect.Method.invoke(Method.java:615)
at org.eclipse.core.launcher.Main.invokeFramework(Main.java:341)
at org.eclipse.core.launcher.Main.basicRun(Main.java:285)
at org.eclipse.core.launcher.Main.run(Main.java:987)
at org.eclipse.core.launcher.Main.main(Main.java:962)
在06-11-8,Markus Keller <
markus_keller@xxxxxxxxxx> 写道:
Hi Qinxian
Your example works for me. If you can
reproduce (or if you still have the complete stacktrace), please
open a bug at https://bugs.eclipse.org/bugs/enter_bug.cgi?product=JDT
for the UI component.
Thanks,
Markus
Hi,
I do it as your advice, most thing is OK, besides of Enum class.
If save a Enum class, for example:
public enum Test {
ID,NAME;
}
got a error report, as follows:
The save participant 'org.eclipse.jdt.ui.postsavelistener.cleanup' caused
an exception: java.lang.IllegalArgumentException: Attempted to beginRule:
R/, does not match outer scope rule: L/model/Test.java
eclipse.buildId=I20061102-1715
java.fullversion=J2RE 1.5.0 IBM J9 2.3 Linux amd64-64 j9vmxa6423-20061001
(JIT enabled)
J9VM - 20060915_08260_LHdSMr
JIT - 20060908_1811_r8
GC - 20060906_AA
BootLoader constants: OS=linux, ARCH=x86_64, WS=gtk, NL=zh_CN
Command-line arguments: -os linux -ws gtk -arch x86_64 -clean
Regards,
Qinxian
2006/11/4, John Arthorne <
John_Arthorne@xxxxxxxxxx
>:
As you may already know, 3.3 M3 now has support for running things like
code formatter and organize imports on editor save. You can turn
it on under Preferences > Java > Editor > Save Participants. I
recommend editing the default profile and turning off format comments,
since the core formatter conventions have never formatted comments. Turning
this on will make a big mess of your code if you are not using the core
formatter and organize import settings:
http://www.eclipse.org/eclipse/platform-core/documents/coding_conventions.html
To prevent this happening, I have released the core formatter and organize
import settings in the project preference scope for all org.eclipse.core.*
projects. Since we have manually formatted all core projects according
to these conventions in the past, this will avoid mangling of your code
when you commit changes.
Enjoy!
_______________________________________________
platform-core-dev mailing list
platform-core-dev@xxxxxxxxxxx
https://dev.eclipse.org/mailman/listinfo/platform-core-dev
--
向秦贤 _______________________________________________
platform-core-dev mailing list
platform-core-dev@xxxxxxxxxxx
https://dev.eclipse.org/mailman/listinfo/platform-core-dev
_______________________________________________
platform-core-dev mailing list
platform-core-dev@xxxxxxxxxxx
https://dev.eclipse.org/mailman/listinfo/platform-core-dev
--
向秦贤