Skip to main content

[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index] [List Home]
Re: [wtp-incubator-dev] Hi ppl, Any idea why this happens ?

Hi Florian,
I made the content to be cleared at the time of removing the tag. It's clearing the tag as well as content now.
But I disabled a validation code (Which threw DocumentValidationException for unknown reason)
The function where I encountered this is : validator.isValidSequence()

Can you give me a brief idea of what this 'isValidSequence()' method does exactly ?
(The following recursive function that constructs 3 sequences of tags)

org.eclipse.wst.xml.vex.core.internal.validator.WTPVEXValidator.isValidSequence(String, EList<String>, EList<String>, EList<String>, boolean)

On Thu, Jul 22, 2010 at 4:32 PM, NS Gopikrishnan <nksgopikrishnan@xxxxxxxxx> wrote:


---------- Forwarded message ----------
From: Florian Thienel <florian@xxxxxxxxxxx>
Date: Thu, Jul 22, 2010 at 4:26 PM
Subject: Re: [wtp-incubator-dev] Hi ppl, Any idea why this happens ?
To: wtp-incubator-dev@xxxxxxxxxxx


Why it's calling the function : void insertFragment(int offset,
VEXDocumentFragment fragment)
While I delete a tag ?
First of all: this is a different problem. In your original stacktrace there is something wrong while splitting a tag, not removing it. I wasn't able to reproduce this. Please file a bug if you can reproduce it, ideally with one of the supplied document types (DITA or Docbook).

'Remove ... Tag' removes only the Tag, not it's content. This is useful especially for inline tags like <emphasis> in docbook. The implementation of RemoveTagHandler is a little blue-eyed at the moment. There has to happen a lot more validation and conditional logic to meet all possible cases. I'll file a bug tonight for this one.

There are certainly a heck of a lot other nagging bugs in the editing part of Vex. It's good to have somebody actually using it. So please bear with us and keep on finding such problems! This helps us a lot!

Florian

Am 22.07.2010 11:24, schrieb NS Gopikrishnan:
Hi Florian,
I have an other doubt :
Why it's calling the function : void insertFragment(int offset,
VEXDocumentFragment fragment)
While I delete a tag ?

On Thu, Jul 22, 2010 at 2:09 PM, NS Gopikrishnan
<nksgopikrishnan@xxxxxxxxx <mailto:nksgopikrishnan@xxxxxxxxx>> wrote:

   Hi Florian,
   I was trying to remove a tag. (Right-Click->remove <tagname> tag)


   eclipse.buildId=unknown
   java.version=1.6.0_20
   java.vendor=Sun Microsystems Inc.
   BootLoader constants: OS=win32, ARCH=x86, WS=win32, NL=en_US
   Framework arguments:  -product org.eclipse.sdk.ide
   Command-line arguments:  -product org.eclipse.sdk.ide -data
   C:\Documents and
   Settings\gokrishnan\Vex_Dev_Space/../runtime-EclipseApplication -dev
   file:C:/Documents and
   Settings/gokrishnan/Vex_Dev_Space/.metadata/.plugins/org.eclipse.pde.core/Eclipse
   Application/dev.properties -os win32 -ws win32 -arch x86 -consoleLog


   Error
   Thu Jul 22 14:03:24 IST 2010
   Unhandled event loop exception


   java.lang.NullPointerException
        at
   org.eclipse.wst.xml.vex.core.internal.css.StyleSheet.calculateStyles(StyleSheet.java:211)
        at
   org.eclipse.wst.xml.vex.core.internal.css.StyleSheet.getStyles(StyleSheet.java:194)
        at
   org.eclipse.wst.xml.vex.ui.internal.handlers.SplitBlockElementHandler.execute(SplitBlockElementHandler.java:42)
        at
   org.eclipse.wst.xml.vex.ui.internal.handlers.AbstractVexWidgetHandler.execute(AbstractVexWidgetHandler.java:35)
        at
   org.eclipse.ui.internal.handlers.HandlerProxy.execute(HandlerProxy.java:293)
        at
   org.eclipse.core.commands.Command.executeWithChecks(Command.java:476)
        at
   org.eclipse.core.commands.ParameterizedCommand.executeWithChecks(ParameterizedCommand.java:508)
        at
   org.eclipse.ui.internal.handlers.HandlerService.executeCommand(HandlerService.java:169)
        at
   org.eclipse.ui.internal.keys.WorkbenchKeyboard.executeCommand(WorkbenchKeyboard.java:468)
        at
   org.eclipse.ui.internal.keys.WorkbenchKeyboard.press(WorkbenchKeyboard.java:786)
        at
   org.eclipse.ui.internal.keys.WorkbenchKeyboard.processKeyEvent(WorkbenchKeyboard.java:885)
        at
   org.eclipse.ui.internal.keys.WorkbenchKeyboard.filterKeySequenceBindings(WorkbenchKeyboard.java:567)
        at
   org.eclipse.ui.internal.keys.WorkbenchKeyboard.access$3(WorkbenchKeyboard.java:508)
        at
   org.eclipse.ui.internal.keys.WorkbenchKeyboard$KeyDownFilter.handleEvent(WorkbenchKeyboard.java:123)
        at org.eclipse.swt.widgets.EventTable.sendEvent(EventTable.java:84)
        at org.eclipse.swt.widgets.Display.filterEvent(Display.java:1253)
        at org.eclipse.swt.widgets.Widget.sendEvent(Widget.java:1052)
        at org.eclipse.swt.widgets.Widget.sendEvent(Widget.java:1077)
        at org.eclipse.swt.widgets.Widget.sendEvent(Widget.java:1062)
        at org.eclipse.swt.widgets.Control.traverse(Control.java:3693)
        at
   org.eclipse.swt.widgets.Control.translateTraversal(Control.java:3675)
        at
   org.eclipse.swt.widgets.Composite.translateTraversal(Composite.java:1218)
        at
   org.eclipse.swt.widgets.Display.translateTraversal(Display.java:4691)
        at org.eclipse.swt.widgets.Display.filterMessage(Display.java:1267)
        at
   org.eclipse.swt.widgets.Display.readAndDispatch(Display.java:3653)
        at
   org.eclipse.ui.internal.Workbench.runEventLoop(Workbench.java:2629)
        at org.eclipse.ui.internal.Workbench.runUI(Workbench.java:2593)
        at org.eclipse.ui.internal.Workbench.access$4(Workbench.java:2427)
        at org.eclipse.ui.internal.Workbench$7.run(Workbench.java:670)
        at
   org.eclipse.core.databinding.observable.Realm.runWithDefault(Realm.java:332)
        at
   org.eclipse.ui.internal.Workbench.createAndRunWorkbench(Workbench.java:663)
        at
   org.eclipse.ui.PlatformUI.createAndRunWorkbench(PlatformUI.java:149)
        at
   org.eclipse.ui.internal.ide.application.IDEApplication.start(IDEApplication.java:115)
        at
   org.eclipse.equinox.internal.app.EclipseAppHandle.run(EclipseAppHandle.java:196)
        at
   org.eclipse.core.runtime.internal.adaptor.EclipseAppLauncher.runApplication(EclipseAppLauncher.java:110)
        at
   org.eclipse.core.runtime.internal.adaptor.EclipseAppLauncher.start(EclipseAppLauncher.java:79)
        at
   org.eclipse.core.runtime.adaptor.EclipseStarter.run(EclipseStarter.java:369)
        at
   org.eclipse.core.runtime.adaptor.EclipseStarter.run(EclipseStarter.java:179)
        at sun.reflect.NativeMethodAccessorImpl.invoke0(Native Method)
        at sun.reflect.NativeMethodAccessorImpl.invoke(Unknown Source)
        at sun.reflect.DelegatingMethodAccessorImpl.invoke(Unknown Source)
        at java.lang.reflect.Method.invoke(Unknown Source)
        at org.eclipse.equinox.launcher.Main.invokeFramework(Main.java:619)
        at org.eclipse.equinox.launcher.Main.basicRun(Main.java:574)
        at org.eclipse.equinox.launcher.Main.run(Main.java:1407)
        at org.eclipse.equinox.launcher.Main.main(Main.java:1383)



   On Thu, Jul 22, 2010 at 12:55 PM, Florian Thienel
   <florian@xxxxxxxxxxx <mailto:florian@xxxxxxxxxxx>> wrote:

       Hi NS Gopikrishnan,

       what exactly did you do?

       Florian

       Am 22.07.2010 08:12, schrieb NS Gopikrishnan:

           java.lang.NullPointerException
                at
           org.eclipse.wst.xml.vex.core.internal.css.StyleSheet.calculateStyles(StyleSheet.java:211)
                at
           org.eclipse.wst.xml.vex.core.internal.css.StyleSheet.getStyles(StyleSheet.java:194)
                at
           org.eclipse.wst.xml.vex.ui.internal.handlers.SplitBlockElementHandler.execute(SplitBlockElementHandler.java:42)
                at
           org.eclipse.wst.xml.vex.ui.internal.handlers.AbstractVexWidgetHandler.execute(AbstractVexWidgetHandler.java:35)
                at
           org.eclipse.ui.internal.handlers.HandlerProxy.execute(HandlerProxy.java:293)
                at
           org.eclipse.core.commands.Command.executeWithChecks(Command.java:476)
                at
           org.eclipse.core.commands.ParameterizedCommand.executeWithChecks(ParameterizedCommand.java:508)
                at
           org.eclipse.ui.internal.handlers.HandlerService.executeCommand(HandlerService.java:169)
                at
           org.eclipse.ui.internal.keys.WorkbenchKeyboard.executeCommand(WorkbenchKeyboard.java:468)
                at
           org.eclipse.ui.internal.keys.WorkbenchKeyboard.press(WorkbenchKeyboard.java:786)
                at
           org.eclipse.ui.internal.keys.WorkbenchKeyboard.processKeyEvent(WorkbenchKeyboard.java:885)
                at
           org.eclipse.ui.internal.keys.WorkbenchKeyboard.filterKeySequenceBindings(WorkbenchKeyboard.java:567)
                at
           org.eclipse.ui.internal.keys.WorkbenchKeyboard.access$3(WorkbenchKeyboard.java:508)
                at
           org.eclipse.ui.internal.keys.WorkbenchKeyboard$KeyDownFilter.handleEvent(WorkbenchKeyboard.java:123)
                at
           org.eclipse.swt.widgets.EventTable.sendEvent(EventTable.java:84)
                at
           org.eclipse.swt.widgets.Display.filterEvent(Display.java:1253)
                at
           org.eclipse.swt.widgets.Widget.sendEvent(Widget.java:1052)
                at
           org.eclipse.swt.widgets.Widget.sendEvent(Widget.java:1077)
                at
           org.eclipse.swt.widgets.Widget.sendEvent(Widget.java:1062)
                at
           org.eclipse.swt.widgets.Control.traverse(Control.java:3693)
                at
           org.eclipse.swt.widgets.Control.translateTraversal(Control.java:3675)
                at
           org.eclipse.swt.widgets.Composite.translateTraversal(Composite.java:1218)
                at
           org.eclipse.swt.widgets.Display.translateTraversal(Display.java:4691)
                at
           org.eclipse.swt.widgets.Display.filterMessage(Display.java:1267)
                at
           org.eclipse.swt.widgets.Display.readAndDispatch(Display.java:3653)
                at
           org.eclipse.ui.internal.Workbench.runEventLoop(Workbench.java:2629)
                at
           org.eclipse.ui.internal.Workbench.runUI(Workbench.java:2593)
                at
           org.eclipse.ui.internal.Workbench.access$4(Workbench.java:2427)
                at
           org.eclipse.ui.internal.Workbench$7.run(Workbench.java:670)
                at
           org.eclipse.core.databinding.observable.Realm.runWithDefault(Realm.java:332)
                at
           org.eclipse.ui.internal.Workbench.createAndRunWorkbench(Workbench.java:663)
                at
           org.eclipse.ui.PlatformUI.createAndRunWorkbench(PlatformUI.java:149)
                at
           org.eclipse.ui.internal.ide.application.IDEApplication.start(IDEApplication.java:115)
                at
           org.eclipse.equinox.internal.app.EclipseAppHandle.run(EclipseAppHandle.java:196)
                at
           org.eclipse.core.runtime.internal.adaptor.EclipseAppLauncher.runApplication(EclipseAppLauncher.java:110)
                at
           org.eclipse.core.runtime.internal.adaptor.EclipseAppLauncher.start(EclipseAppLauncher.java:79)
                at
           org.eclipse.core.runtime.adaptor.EclipseStarter.run(EclipseStarter.java:369)
                at
           org.eclipse.core.runtime.adaptor.EclipseStarter.run(EclipseStarter.java:179)
                at sun.reflect.NativeMethodAccessorImpl.invoke0(Native
           Method)
                at sun.reflect.NativeMethodAccessorImpl.invoke(Unknown
           Source)
                at
           sun.reflect.DelegatingMethodAccessorImpl.invoke(Unknown Source)
                at java.lang.reflect.Method.invoke(Unknown Source)
                at
           org.eclipse.equinox.launcher.Main.invokeFramework(Main.java:619)
                at
           org.eclipse.equinox.launcher.Main.basicRun(Main.java:574)
                at org.eclipse.equinox.launcher.Main.run(Main.java:1407)
                at org.eclipse.equinox.launcher.Main.main(Main.java:1383)

           --
           Thanks & Regards,
           NS Gopikrishnan



           _______________________________________________
           wtp-incubator-dev mailing list
           wtp-incubator-dev@xxxxxxxxxxx
           <mailto:wtp-incubator-dev@xxxxxxxxxxx>

           https://dev.eclipse.org/mailman/listinfo/wtp-incubator-dev

       _______________________________________________
       wtp-incubator-dev mailing list
       wtp-incubator-dev@xxxxxxxxxxx <mailto:wtp-incubator-dev@xxxxxxxxxxx>

       https://dev.eclipse.org/mailman/listinfo/wtp-incubator-dev




   --
   Thanks & Regards,
   NS Gopikrishnan




--
Thanks & Regards,
NS Gopikrishnan



_______________________________________________
wtp-incubator-dev mailing list
wtp-incubator-dev@xxxxxxxxxxx
https://dev.eclipse.org/mailman/listinfo/wtp-incubator-dev
_______________________________________________
wtp-incubator-dev mailing list
wtp-incubator-dev@xxxxxxxxxxx
https://dev.eclipse.org/mailman/listinfo/wtp-incubator-dev



--
Thanks & Regards,
NS Gopikrishnan



--
Thanks & Regards,
NS Gopikrishnan

Back to the top