Skip to main content



      Home
Home » Language IDEs » Java Development Tools (JDT) » Problems with templates in M4
Problems with templates in M4 [message #105604] Wed, 15 October 2003 13:41 Go to next message
Eclipse UserFriend
Hi,

I experienced a problem with using template variables (using templates
from the preferences/java/editor/templates). They do not expand to the
variable value but instead the variable names are pasted. Does anyone
experience similar problems (stacktrace below)? I tried this on M4, Linux
GTK. With M3 it works fine.

David


!SESSION Oct 15, 2003 09:42:45.970
---------------------------------------------
java.version=1.4.2
java.vendor=Sun Microsystems Inc.
BootLoader constants: OS=linux, ARCH=x86, WS=gtk, NL=en_US
Command-line arguments: -os linux -ws gtk -arch x86 -install
file:/home/daco/pro
grams/eclipse3M4/
!ENTRY org.eclipse.jdt.ui 2 0 Oct 15, 2003 09:42:45.971
!MESSAGE LinkedPositionUI is not active: LinkedPositionUI.caret.position6
!STACK 0
java.lang.IllegalStateException
at
org.eclipse.jdt.internal.ui.text.link.LinkedPositionUI.getSe lectedReg
ion(LinkedPositionUI.java:335)
at
org.eclipse.jdt.internal.ui.text.template.TemplateProposal.a pply(Temp
lateProposal.java:160)
at
org.eclipse.jface.text.contentassist.CompletionProposalPopup .insertPr
oposal(CompletionProposalPopup.java:367)
at
org.eclipse.jface.text.contentassist.CompletionProposalPopup .access$1
0(CompletionProposalPopup.java:348)
at
org.eclipse.jface.text.contentassist.CompletionProposalPopup $2.run(Co
mpletionProposalPopup.java:199)
at
org.eclipse.swt.custom.BusyIndicator.showWhile(BusyIndicator .java:84)
at
org.eclipse.jface.text.contentassist.CompletionProposalPopup .showProp
osals(CompletionProposalPopup.java:183)
at
org.eclipse.jface.text.contentassist.ContentAssistant.showPo ssibleCom
pletions(ContentAssistant.java:1243)
at
org.eclipse.jdt.internal.ui.javaeditor.CompilationUnitEditor $AdaptedS
ourceViewer.doOperation(CompilationUnitEditor.java:154)
at
org.eclipse.ui.texteditor.ContentAssistAction$1.run(ContentA ssistActi
on.java:83)
at
org.eclipse.swt.custom.BusyIndicator.showWhile(BusyIndicator .java:84)
at
org.eclipse.ui.texteditor.ContentAssistAction.run(ContentAss istAction
java:81)
at
org.eclipse.ui.texteditor.RetargetTextEditorAction.run(Retar getTextEd
itorAction.java:239)
at org.eclipse.jface.action.Action.runWithEvent(Action.java:842 )
at
org.eclipse.ui.actions.RetargetAction.runWithEvent(RetargetA ction.jav
a:203)
at
org.eclipse.jface.action.ActionContributionItem.handleWidget Selection
(ActionContributionItem.java:541)
at
org.eclipse.jface.action.ActionContributionItem.access$4(Act ionContri
butionItem.java:494)
at
org.eclipse.jface.action.ActionContributionItem$6.handleEven t(ActionC
ontributionItem.java:466)
at org.eclipse.swt.widgets.EventTable.sendEvent(EventTable.java :82)
at org.eclipse.swt.widgets.Widget.sendEvent(Widget.java:962)
at
org.eclipse.swt.widgets.Display.runDeferredEvents(Display.ja va:1815)
at
org.eclipse.swt.widgets.Display.readAndDispatch(Display.java :1595)
at
org.eclipse.ui.internal.Workbench.runEventLoop(Workbench.jav a:2347)
at org.eclipse.ui.internal.Workbench.run(Workbench.java:2330)
at
org.eclipse.core.internal.boot.InternalBootLoader.run(Intern alBootLoa
der.java:858)
at org.eclipse.core.boot.BootLoader.run(BootLoader.java:461)
at sun.reflect.NativeMethodAccessorImpl.invoke0(Native Method)
at
sun.reflect.NativeMethodAccessorImpl.invoke(NativeMethodAcce ssorImpl.
java:39)
at
sun.reflect.DelegatingMethodAccessorImpl.invoke(DelegatingMe thodAcces
sorImpl.java:25)
at java.lang.reflect.Method.invoke(Method.java:324)
at org.eclipse.core.launcher.Main.basicRun(Main.java:299)
at org.eclipse.core.launcher.Main.run(Main.java:765)
at org.eclipse.core.launcher.Main.main(Main.java:599)
Re: Problems with templates in M4 [message #105917 is a reply to message #105604] Thu, 16 October 2003 03:29 Go to previous messageGo to next message
Eclipse UserFriend
David van Coevorden wrote:
> Hi,
>
> I experienced a problem with using template variables (using templates
> from the preferences/java/editor/templates). They do not expand to the
> variable value but instead the variable names are pasted. Does anyone
> experience similar problems (stacktrace below)? I tried this on M4,
> Linux GTK. With M3 it works fine.

Yes, I experience the same problem with M4 under Windows.

Take care, Ilja
Re: Problems with templates in M4 [message #105975 is a reply to message #105604] Thu, 16 October 2003 05:53 Go to previous message
Eclipse UserFriend
Originally posted by: daniel.megert.gmx.net

Please attach your comments to:

https://bugs.eclipse.org/bugs/show_bug.cgi?id=43977

Dani

David van Coevorden wrote:

>Hi,
>
>I experienced a problem with using template variables (using templates
>from the preferences/java/editor/templates). They do not expand to the
>variable value but instead the variable names are pasted. Does anyone
>experience similar problems (stacktrace below)? I tried this on M4, Linux
>GTK. With M3 it works fine.
>
>David
>
>
>!SESSION Oct 15, 2003 09:42:45.970
>---------------------------------------------
>java.version=1.4.2
>java.vendor=Sun Microsystems Inc.
>BootLoader constants: OS=linux, ARCH=x86, WS=gtk, NL=en_US
>Command-line arguments: -os linux -ws gtk -arch x86 -install
>file:/home/daco/pro
>grams/eclipse3M4/
>!ENTRY org.eclipse.jdt.ui 2 0 Oct 15, 2003 09:42:45.971
>!MESSAGE LinkedPositionUI is not active: LinkedPositionUI.caret.position6
>!STACK 0
>java.lang.IllegalStateException
> at
> org.eclipse.jdt.internal.ui.text.link.LinkedPositionUI.getSe lectedReg
>ion(LinkedPositionUI.java:335)
> at
> org.eclipse.jdt.internal.ui.text.template.TemplateProposal.a pply(Temp
>lateProposal.java:160)
> at
> org.eclipse.jface.text.contentassist.CompletionProposalPopup .insertPr
>oposal(CompletionProposalPopup.java:367)
> at
> org.eclipse.jface.text.contentassist.CompletionProposalPopup .access$1
>0(CompletionProposalPopup.java:348)
> at
> org.eclipse.jface.text.contentassist.CompletionProposalPopup $2.run(Co
>mpletionProposalPopup.java:199)
> at
> org.eclipse.swt.custom.BusyIndicator.showWhile(BusyIndicator .java:84)
> at
> org.eclipse.jface.text.contentassist.CompletionProposalPopup .showProp
>osals(CompletionProposalPopup.java:183)
> at
> org.eclipse.jface.text.contentassist.ContentAssistant.showPo ssibleCom
>pletions(ContentAssistant.java:1243)
> at
> org.eclipse.jdt.internal.ui.javaeditor.CompilationUnitEditor $AdaptedS
>ourceViewer.doOperation(CompilationUnitEditor.java:154)
> at
> org.eclipse.ui.texteditor.ContentAssistAction$1.run(ContentA ssistActi
>on.java:83)
> at
> org.eclipse.swt.custom.BusyIndicator.showWhile(BusyIndicator .java:84)
> at
> org.eclipse.ui.texteditor.ContentAssistAction.run(ContentAss istAction
>java:81)
> at
> org.eclipse.ui.texteditor.RetargetTextEditorAction.run(Retar getTextEd
>itorAction.java:239)
> at org.eclipse.jface.action.Action.runWithEvent(Action.java:842 )
> at
> org.eclipse.ui.actions.RetargetAction.runWithEvent(RetargetA ction.jav
>a:203)
> at
> org.eclipse.jface.action.ActionContributionItem.handleWidget Selection
>(ActionContributionItem.java:541)
> at
> org.eclipse.jface.action.ActionContributionItem.access$4(Act ionContri
>butionItem.java:494)
> at
> org.eclipse.jface.action.ActionContributionItem$6.handleEven t(ActionC
>ontributionItem.java:466)
> at org.eclipse.swt.widgets.EventTable.sendEvent(EventTable.java :82)
> at org.eclipse.swt.widgets.Widget.sendEvent(Widget.java:962)
> at
> org.eclipse.swt.widgets.Display.runDeferredEvents(Display.ja va:1815)
> at
> org.eclipse.swt.widgets.Display.readAndDispatch(Display.java :1595)
> at
> org.eclipse.ui.internal.Workbench.runEventLoop(Workbench.jav a:2347)
> at org.eclipse.ui.internal.Workbench.run(Workbench.java:2330)
> at
> org.eclipse.core.internal.boot.InternalBootLoader.run(Intern alBootLoa
>der.java:858)
> at org.eclipse.core.boot.BootLoader.run(BootLoader.java:461)
> at sun.reflect.NativeMethodAccessorImpl.invoke0(Native Method)
> at
> sun.reflect.NativeMethodAccessorImpl.invoke(NativeMethodAcce ssorImpl.
>java:39)
> at
> sun.reflect.DelegatingMethodAccessorImpl.invoke(DelegatingMe thodAcces
>sorImpl.java:25)
> at java.lang.reflect.Method.invoke(Method.java:324)
> at org.eclipse.core.launcher.Main.basicRun(Main.java:299)
> at org.eclipse.core.launcher.Main.run(Main.java:765)
> at org.eclipse.core.launcher.Main.main(Main.java:599)
>
>
>
>
Previous Topic:Simple Remote Debugging
Next Topic:Programmatically import java sources to a java Project
Goto Forum:
  


Current Time: Sat Jul 19 05:39:06 EDT 2025

Powered by FUDForum. Page generated in 0.24350 seconds
.:: Contact :: Home ::.

Powered by: FUDforum 3.0.2.
Copyright ©2001-2010 FUDforum Bulletin Board Software

Back to the top