Opened 9 years ago

Closed 9 years ago

Last modified 45 years ago

#321 closed Bugs (None)

*.class PHP file can not be saved

Reported by: corinnekrych Owned by: axelcl
Priority: 5 Milestone:
Component: PHP Editor Version: None
Keywords: Cc:

Description

Eclipse 3.1 WTP 0.7/ PHPEclipse1.1.6.

When opening PHP file with .class extension and trying 
to save them:

!ENTRY org.eclipse.ui 2 0 2005-08-18 14:16:47.232
!MESSAGE Save Failed
!STACK 0
java.lang.UnsupportedOperationException
	at 
org.eclipse.core.internal.content.ContentType.describe
(ContentType.java:160)
	at 
org.eclipse.core.internal.content.ContentType.internalGet
DescriptionFor(ContentType.java:448)
	at 
org.eclipse.core.internal.content.ContentTypeCatalog.get
DescriptionFor(ContentTypeCatalog.java:312)
	at 
org.eclipse.core.internal.content.ContentTypeCatalog.get
DescriptionFor(ContentTypeCatalog.java:320)
	at 
org.eclipse.core.internal.content.ContentTypeMatcher.ge
tDescriptionFor(ContentTypeMatcher.java:94)
	at 
org.eclipse.core.internal.filebuffers.ResourceTextFileBuffe
r.computeEncoding(ResourceTextFileBuffer.java:373)
	at 
org.eclipse.core.internal.filebuffers.ResourceTextFileBuffe
r.commitFileBufferContent
(ResourceTextFileBuffer.java:292)
	at 
org.eclipse.core.internal.filebuffers.ResourceFileBuffer.co
mmit(ResourceFileBuffer.java:317)
	at 
net.sourceforge.phpeclipse.phpeditor.DocumentAdapter.
save(DocumentAdapter.java:353)
	at 
net.sourceforge.phpdt.internal.core.CommitWorkingCopy
Operation.executeOperation
(CommitWorkingCopyOperation.java:112)
	at 
net.sourceforge.phpdt.internal.core.JavaModelOperation.r
un(JavaModelOperation.java:749)
	at 
org.eclipse.core.internal.resources.Workspace.run
(Workspace.java:1719)
	at 
net.sourceforge.phpdt.internal.core.JavaModelOperation.r
unOperation(JavaModelOperation.java:794)
	at 
net.sourceforge.phpdt.internal.core.CompilationUnit.com
mitWorkingCopy(CompilationUnit.java:249)
	at 
net.sourceforge.phpeclipse.phpeditor.PHPDocumentProvi
der.commitWorkingCopy
(PHPDocumentProvider.java:1127)
	at 
net.sourceforge.phpeclipse.phpeditor.PHPDocumentProvi
der$2.execute(PHPDocumentProvider.java:1200)
	at 
org.eclipse.ui.editors.text.TextFileDocumentProvider$Do
cumentProviderOperation.run
(TextFileDocumentProvider.java:126)
	at 
org.eclipse.ui.actions.WorkspaceModifyDelegatingOpera
tion.execute
(WorkspaceModifyDelegatingOperation.java:68)
	at 
org.eclipse.ui.actions.WorkspaceModifyOperation$1.run
(WorkspaceModifyOperation.java:98)
	at 
org.eclipse.core.internal.resources.Workspace.run
(Workspace.java:1719)
	at 
org.eclipse.ui.actions.WorkspaceModifyOperation.run
(WorkspaceModifyOperation.java:110)
	at 
org.eclipse.ui.internal.editors.text.WorkspaceOperationR
unner.run(WorkspaceOperationRunner.java:73)
	at 
org.eclipse.ui.internal.editors.text.WorkspaceOperationR
unner.run(WorkspaceOperationRunner.java:63)
	at 
org.eclipse.ui.editors.text.TextFileDocumentProvider.exe
cuteOperation(TextFileDocumentProvider.java:441)
	at 
org.eclipse.ui.editors.text.TextFileDocumentProvider.sav
eDocument(TextFileDocumentProvider.java:700)
	at 
org.eclipse.ui.texteditor.AbstractTextEditor.performSave
(AbstractTextEditor.java:3736)
	at 
net.sourceforge.phpeclipse.phpeditor.PHPUnitEditor.perf
ormSave(PHPUnitEditor.java:2297)
	at 
net.sourceforge.phpeclipse.phpeditor.PHPUnitEditor.doS
ave(PHPUnitEditor.java:2091)
	at 
org.eclipse.ui.internal.SaveableHelper$1.run
(SaveableHelper.java:95)
	at 
org.eclipse.ui.internal.SaveableHelper$2.run
(SaveableHelper.java:116)
	at 
org.eclipse.jface.operation.ModalContext.runInCurrentThr
ead(ModalContext.java:346)
	at 
org.eclipse.jface.operation.ModalContext.run
(ModalContext.java:291)
	at 
org.eclipse.jface.window.ApplicationWindow$1.run
(ApplicationWindow.java:624)
	at 
org.eclipse.swt.custom.BusyIndicator.showWhile
(BusyIndicator.java:69)
	at 
org.eclipse.jface.window.ApplicationWindow.run
(ApplicationWindow.java:621)
	at 
org.eclipse.ui.internal.WorkbenchWindow.run
(WorkbenchWindow.java:2134)
	at 
org.eclipse.ui.internal.SaveableHelper.runProgressMonito
rOperation(SaveableHelper.java:122)
	at 
org.eclipse.ui.internal.SaveableHelper.savePart
(SaveableHelper.java:100)
	at 
org.eclipse.ui.internal.EditorManager.savePart
(EditorManager.java:1149)
	at 
org.eclipse.ui.internal.WorkbenchPage.savePart
(WorkbenchPage.java:2673)
	at 
org.eclipse.ui.internal.WorkbenchPage.saveEditor
(WorkbenchPage.java:2686)
	at org.eclipse.ui.internal.SaveAction.run
(SaveAction.java:69)
	at 
org.eclipse.jface.action.Action.runWithEvent
(Action.java:996)
	at 
org.eclipse.jface.commands.ActionHandler.execute
(ActionHandler.java:117)
	at 
org.eclipse.core.commands.Command.execute
(Command.java:311)
	at 
org.eclipse.core.commands.ParameterizedCommand.ex
ecute(ParameterizedCommand.java:396)
	at 
org.eclipse.ui.internal.keys.WorkbenchKeyboard.execute
Command(WorkbenchKeyboard.java:459)
	at 
org.eclipse.ui.internal.keys.WorkbenchKeyboard.press
(WorkbenchKeyboard.java:781)
	at 
org.eclipse.ui.internal.keys.WorkbenchKeyboard.process
KeyEvent(WorkbenchKeyboard.java:828)
	at 
org.eclipse.ui.internal.keys.WorkbenchKeyboard.filterKe
ySequenceBindings(WorkbenchKeyboard.java:550)
	at 
org.eclipse.ui.internal.keys.WorkbenchKeyboard.access
$3(WorkbenchKeyboard.java:493)
	at 
org.eclipse.ui.internal.keys.WorkbenchKeyboard$KeyDo
wnFilter.handleEvent(WorkbenchKeyboard.java:117)
	at 
org.eclipse.swt.widgets.EventTable.sendEvent
(EventTable.java:66)
	at org.eclipse.swt.widgets.Display.filterEvent
(Display.java:917)
	at org.eclipse.swt.widgets.Widget.sendEvent
(Widget.java:842)
	at org.eclipse.swt.widgets.Widget.sendEvent
(Widget.java:867)
	at org.eclipse.swt.widgets.Widget.sendEvent
(Widget.java:852)
	at 
org.eclipse.swt.widgets.Widget.sendKeyEvent
(Widget.java:880)
	at 
org.eclipse.swt.widgets.Widget.sendKeyEvent
(Widget.java:876)
	at org.eclipse.swt.widgets.Widget.wmChar
(Widget.java:1190)
	at org.eclipse.swt.widgets.Control.WM_CHAR
(Control.java:3135)
	at 
org.eclipse.swt.widgets.Control.windowProc
(Control.java:3038)
	at 
org.eclipse.swt.widgets.Display.windowProc
(Display.java:3706)
	at 
org.eclipse.swt.internal.win32.OS.DispatchMessageW
(Native Method)
	at 
org.eclipse.swt.internal.win32.OS.DispatchMessage
(OS.java:1656)
	at 
org.eclipse.swt.widgets.Display.readAndDispatch
(Display.java:2711)
	at 
org.eclipse.ui.internal.Workbench.runEventLoop
(Workbench.java:1699)
	at org.eclipse.ui.internal.Workbench.runUI
(Workbench.java:1663)
	at 
org.eclipse.ui.internal.Workbench.createAndRunWorkbe
nch(Workbench.java:367)
	at 
org.eclipse.ui.PlatformUI.createAndRunWorkbench
(PlatformUI.java:143)
	at 
org.eclipse.ui.internal.ide.IDEApplication.run
(IDEApplication.java:103)
	at 
org.eclipse.core.internal.runtime.PlatformActivator$1.run
(PlatformActivator.java:226)
	at 
org.eclipse.core.runtime.adaptor.EclipseStarter.run
(EclipseStarter.java:376)
	at 
org.eclipse.core.runtime.adaptor.EclipseStarter.run
(EclipseStarter.java:163)
	at 
sun.reflect.NativeMethodAccessorImpl.invoke0(Native 
Method)
	at 
sun.reflect.NativeMethodAccessorImpl.invoke
(NativeMethodAccessorImpl.java:39)
	at 
sun.reflect.DelegatingMethodAccessorImpl.invoke
(DelegatingMethodAccessorImpl.java:25)
	at java.lang.reflect.Method.invoke
(Method.java:585)
	at 
org.eclipse.core.launcher.Main.invokeFramework
(Main.java:334)
	at org.eclipse.core.launcher.Main.basicRun
(Main.java:278)
	at org.eclipse.core.launcher.Main.run
(Main.java:973)
	at org.eclipse.core.launcher.Main.main
(Main.java:948)

Change History (2)

comment:1 Changed 9 years ago by axelcl

Logged In: YES 
user_id=1143825

It's probably a problem that the Eclipse JDT also use the
*.class extension, but as a binary file.

Could you please try an installation with the Eclipse
Platform Runtime Binary:
http://download.eclipse.org/downloads/drops/R-3.1-200506271435/index.php

where the Java development tools and Plug-in Development
Environment are NOT included.

comment:2 Changed 9 years ago by sf-robot

  • Status changed from assigned to closed
Logged In: YES 
user_id=1312539

This Tracker item was closed automatically by the system. It was
previously set to a Pending status, and the original submitter
did not respond within 14 days (the time period specified by
the administrator of this Tracker).
Note: See TracTickets for help on using tickets.