Working on tokenTool
Moderators: dorpond, trevor, Azhrei
- CoveredInFish
- Demigod
- Posts: 3104
- Joined: Mon Jun 29, 2009 10:37 am
- Location: Germany
- Contact:
Re: Working on tokenTool
This is giving me some trouble.
I updated tokentool and rplib.
1) tokentool does now have a dependency to chartool. I got that as well from SVN. (I also tried to remove the dependency - seems to work as well)
2) there is now: "net.rptools.lib.swing.preference.FramePreferences cannot be resolved TokenToolFrame.java"
- rplib doesnt have a FramePreferences (anymore?)
This does not rely to any changes I made (knowingly).
I updated tokentool and rplib.
1) tokentool does now have a dependency to chartool. I got that as well from SVN. (I also tried to remove the dependency - seems to work as well)
2) there is now: "net.rptools.lib.swing.preference.FramePreferences cannot be resolved TokenToolFrame.java"
- rplib doesnt have a FramePreferences (anymore?)
This does not rely to any changes I made (knowingly).
Re: Working on tokenTool
Shouldn't be a chartool dependency, if I added that I'm sorry. It should have been rplib.CoveredInFish wrote:This is giving me some trouble.
I updated tokentool and rplib.
1) tokentool does now have a dependency to chartool. I got that as well from SVN. (I also tried to remove the dependency - seems to work as well)
There isn't a FramePreferences any longer, but I thought I fixed that. Must not have checked it in. The class is called WindowPreferences now.CoveredInFish wrote:2) there is now: "net.rptools.lib.swing.preference.FramePreferences cannot be resolved TokenToolFrame.java"
- rplib doesnt have a FramePreferences (anymore?)
This does not rely to any changes I made (knowingly).
- CoveredInFish
- Demigod
- Posts: 3104
- Joined: Mon Jun 29, 2009 10:37 am
- Location: Germany
- Contact:
Re: Working on tokenTool
I tried to replace that initially - seemed similar enough - and TT started but threw an exception when I opened the ManageOverlay-Dialog IIRC.jay wrote: There isn't a FramePreferences any longer, but I thought I fixed that. Must not have checked it in. The class is called WindowPreferences now.
I'm at work now but check again asap.
- CoveredInFish
- Demigod
- Posts: 3104
- Joined: Mon Jun 29, 2009 10:37 am
- Location: Germany
- Contact:
Re: Working on tokenTool
Confirmed.
I change the FramePreference to WindowPreference, it starts but throws this
when I open the manage overlay dialog. It does not display the overlays or any other control than "delete" and "restore defaults".
I change the FramePreference to WindowPreference, it starts but throws this
Exception
Exception occurred during event dispatching:
java.lang.UnsupportedOperationException: added by bewer version of RPLIB, but not used here.
at net.rptools.tokentool.ui.OverlayPanelModel.getBackground(OverlayPanelModel.java:119)
at net.rptools.lib.swing.ImagePanel.paintComponent(ImagePanel.java:189)
at javax.swing.JComponent.paint(Unknown Source)
at javax.swing.JComponent.paintToOffscreen(Unknown Source)
at javax.swing.RepaintManager$PaintManager.paintDoubleBuffered(Unknown Source)
at javax.swing.RepaintManager$PaintManager.paint(Unknown Source)
at javax.swing.RepaintManager.paint(Unknown Source)
at javax.swing.JComponent._paintImmediately(Unknown Source)
at javax.swing.JComponent.paintImmediately(Unknown Source)
at javax.swing.RepaintManager.paintDirtyRegions(Unknown Source)
at javax.swing.RepaintManager.paintDirtyRegions(Unknown Source)
at javax.swing.RepaintManager.seqPaintDirtyRegions(Unknown Source)
at javax.swing.SystemEventQueueUtilities$ComponentWorkRequest.run(Unknown Source)
at java.awt.event.InvocationEvent.dispatch(Unknown Source)
at java.awt.EventQueue.dispatchEvent(Unknown Source)
at java.awt.EventDispatchThread.pumpOneEventForFilters(Unknown Source)
at java.awt.EventDispatchThread.pumpEventsForFilter(Unknown Source)
at java.awt.EventDispatchThread.pumpEventsForFilter(Unknown Source)
at java.awt.Dialog$1.run(Unknown Source)
at java.awt.Dialog$3.run(Unknown Source)
at java.security.AccessController.doPrivileged(Native Method)
at java.awt.Dialog.show(Unknown Source)
at java.awt.Component.show(Unknown Source)
at java.awt.Component.setVisible(Unknown Source)
at java.awt.Window.setVisible(Unknown Source)
at java.awt.Dialog.setVisible(Unknown Source)
at net.rptools.tokentool.ui.OverlayManagementDialog.setVisible(OverlayManagementDialog.java:87)
at net.rptools.tokentool.AppActions$4.actionPerformed(AppActions.java:117)
at javax.swing.AbstractButton.fireActionPerformed(Unknown Source)
at javax.swing.AbstractButton$Handler.actionPerformed(Unknown Source)
at javax.swing.DefaultButtonModel.fireActionPerformed(Unknown Source)
at javax.swing.DefaultButtonModel.setPressed(Unknown Source)
at javax.swing.AbstractButton.doClick(Unknown Source)
at de.muntjak.tinylookandfeel.TinyMenuItemUI.doClick(TinyMenuItemUI.java:569)
at de.muntjak.tinylookandfeel.TinyMenuItemUI$MouseInputHandler.mouseReleased(TinyMenuItemUI.java:421)
at java.awt.Component.processMouseEvent(Unknown Source)
at javax.swing.JComponent.processMouseEvent(Unknown Source)
at java.awt.Component.processEvent(Unknown Source)
at java.awt.Container.processEvent(Unknown Source)
at java.awt.Component.dispatchEventImpl(Unknown Source)
at java.awt.Container.dispatchEventImpl(Unknown Source)
at java.awt.Component.dispatchEvent(Unknown Source)
at java.awt.LightweightDispatcher.retargetMouseEvent(Unknown Source)
at java.awt.LightweightDispatcher.processMouseEvent(Unknown Source)
at java.awt.LightweightDispatcher.dispatchEvent(Unknown Source)
at java.awt.Container.dispatchEventImpl(Unknown Source)
at java.awt.Window.dispatchEventImpl(Unknown Source)
at java.awt.Component.dispatchEvent(Unknown Source)
at java.awt.EventQueue.dispatchEvent(Unknown Source)
at java.awt.EventDispatchThread.pumpOneEventForFilters(Unknown Source)
at java.awt.EventDispatchThread.pumpEventsForFilter(Unknown Source)
at java.awt.EventDispatchThread.pumpEventsForHierarchy(Unknown Source)
at java.awt.EventDispatchThread.pumpEvents(Unknown Source)
at java.awt.EventDispatchThread.pumpEvents(Unknown Source)
at java.awt.EventDispatchThread.run(Unknown Source)
java.lang.UnsupportedOperationException: added by bewer version of RPLIB, but not used here.
at net.rptools.tokentool.ui.OverlayPanelModel.getBackground(OverlayPanelModel.java:119)
at net.rptools.lib.swing.ImagePanel.paintComponent(ImagePanel.java:189)
at javax.swing.JComponent.paint(Unknown Source)
at javax.swing.JComponent.paintToOffscreen(Unknown Source)
at javax.swing.RepaintManager$PaintManager.paintDoubleBuffered(Unknown Source)
at javax.swing.RepaintManager$PaintManager.paint(Unknown Source)
at javax.swing.RepaintManager.paint(Unknown Source)
at javax.swing.JComponent._paintImmediately(Unknown Source)
at javax.swing.JComponent.paintImmediately(Unknown Source)
at javax.swing.RepaintManager.paintDirtyRegions(Unknown Source)
at javax.swing.RepaintManager.paintDirtyRegions(Unknown Source)
at javax.swing.RepaintManager.seqPaintDirtyRegions(Unknown Source)
at javax.swing.SystemEventQueueUtilities$ComponentWorkRequest.run(Unknown Source)
at java.awt.event.InvocationEvent.dispatch(Unknown Source)
at java.awt.EventQueue.dispatchEvent(Unknown Source)
at java.awt.EventDispatchThread.pumpOneEventForFilters(Unknown Source)
at java.awt.EventDispatchThread.pumpEventsForFilter(Unknown Source)
at java.awt.EventDispatchThread.pumpEventsForFilter(Unknown Source)
at java.awt.Dialog$1.run(Unknown Source)
at java.awt.Dialog$3.run(Unknown Source)
at java.security.AccessController.doPrivileged(Native Method)
at java.awt.Dialog.show(Unknown Source)
at java.awt.Component.show(Unknown Source)
at java.awt.Component.setVisible(Unknown Source)
at java.awt.Window.setVisible(Unknown Source)
at java.awt.Dialog.setVisible(Unknown Source)
at net.rptools.tokentool.ui.OverlayManagementDialog.setVisible(OverlayManagementDialog.java:87)
at net.rptools.tokentool.AppActions$4.actionPerformed(AppActions.java:117)
at javax.swing.AbstractButton.fireActionPerformed(Unknown Source)
at javax.swing.AbstractButton$Handler.actionPerformed(Unknown Source)
at javax.swing.DefaultButtonModel.fireActionPerformed(Unknown Source)
at javax.swing.DefaultButtonModel.setPressed(Unknown Source)
at javax.swing.AbstractButton.doClick(Unknown Source)
at de.muntjak.tinylookandfeel.TinyMenuItemUI.doClick(TinyMenuItemUI.java:569)
at de.muntjak.tinylookandfeel.TinyMenuItemUI$MouseInputHandler.mouseReleased(TinyMenuItemUI.java:421)
at java.awt.Component.processMouseEvent(Unknown Source)
at javax.swing.JComponent.processMouseEvent(Unknown Source)
at java.awt.Component.processEvent(Unknown Source)
at java.awt.Container.processEvent(Unknown Source)
at java.awt.Component.dispatchEventImpl(Unknown Source)
at java.awt.Container.dispatchEventImpl(Unknown Source)
at java.awt.Component.dispatchEvent(Unknown Source)
at java.awt.LightweightDispatcher.retargetMouseEvent(Unknown Source)
at java.awt.LightweightDispatcher.processMouseEvent(Unknown Source)
at java.awt.LightweightDispatcher.dispatchEvent(Unknown Source)
at java.awt.Container.dispatchEventImpl(Unknown Source)
at java.awt.Window.dispatchEventImpl(Unknown Source)
at java.awt.Component.dispatchEvent(Unknown Source)
at java.awt.EventQueue.dispatchEvent(Unknown Source)
at java.awt.EventDispatchThread.pumpOneEventForFilters(Unknown Source)
at java.awt.EventDispatchThread.pumpEventsForFilter(Unknown Source)
at java.awt.EventDispatchThread.pumpEventsForHierarchy(Unknown Source)
at java.awt.EventDispatchThread.pumpEvents(Unknown Source)
at java.awt.EventDispatchThread.pumpEvents(Unknown Source)
at java.awt.EventDispatchThread.run(Unknown Source)
Re: Working on tokenTool
It looks like you didn't check out any of my changes. I also added the missing methods for OverlayPanelModel. I know there in there 'cause Azhrei was able to check them out
- CoveredInFish
- Demigod
- Posts: 3104
- Joined: Mon Jun 29, 2009 10:37 am
- Location: Germany
- Contact:
Re: Working on tokenTool
Weird.
I "replaced" complete tokentool "with latest from repository". I even deleted all local tokentool and re-got it. It still comes with "FramePreferences" and not "working-out-of-the-box".
I dont know what Im doing wrong
I "replaced" complete tokentool "with latest from repository". I even deleted all local tokentool and re-got it. It still comes with "FramePreferences" and not "working-out-of-the-box".
I dont know what Im doing wrong
Re: Working on tokenTool
Your build path includes the JAR file as well as the project. The order they are listed in the Build Configuration dialog is the order they are searched.
Right-click on the poject and choose Build Path > Configure build path...
Go to the Libraries tab and make sure the needed JAR is there (it should be, but just in case).
Go to the Projects tab and remove all dependent projects.
Click OK to close the dialog.
Go to the Project menu and choose Clean... and tell it to clean the project. It will delete all remnants of previous builds and then build new ones.
Now the application should run.
Right-click on the poject and choose Build Path > Configure build path...
Go to the Libraries tab and make sure the needed JAR is there (it should be, but just in case).
Go to the Projects tab and remove all dependent projects.
Click OK to close the dialog.
Go to the Project menu and choose Clean... and tell it to clean the project. It will delete all remnants of previous builds and then build new ones.
Now the application should run.
- CoveredInFish
- Demigod
- Posts: 3104
- Joined: Mon Jun 29, 2009 10:37 am
- Location: Germany
- Contact:
Re: Working on tokenTool
As far as I can find out revision 5461 changed three files:
* OverlayListModel, OverlayPanelModel, TokenCompositionPanel
Not changed (still rev3770) is TokenToolFrame where FramePreference is used (but not known).
I cant get anything newer from the svn.
And while I cleaned up the buildpath (thx for the explanation) it doesnt work.
* OverlayListModel, OverlayPanelModel, TokenCompositionPanel
Not changed (still rev3770) is TokenToolFrame where FramePreference is used (but not known).
I cant get anything newer from the svn.
And while I cleaned up the buildpath (thx for the explanation) it doesnt work.
Re: Working on tokenTool
It's not you. rplib in SVN is missing the net.rptools.lib.swing.preference.FramePreferences class and the latest build committed to dist doesn't have it either.
Re: Working on tokenTool
Ah, so jay forgot to commit the rplib stuff!
Hm, if I had made a change and tried to commit it, SVN would've committed my changes and left other stuff intact, right? I didn't change that source file but I did make another commit to rplib within the last 7-10 days, I think...
Hm, if I had made a change and tried to commit it, SVN would've committed my changes and left other stuff intact, right? I didn't change that source file but I did make another commit to rplib within the last 7-10 days, I think...
Re: Working on tokenTool
Looks more to me like this was a new class for rplib that Jay forgot to commit. Didn't dig too deep. Just pulled a clean checkout to verify the file wasn't there or in the rplib build you committed at the end of Oct.
Re: Working on tokenTool
Okay, revision 3770 of TokenToolFrame.java is the most recent. It contains an import statement for FramePreferences. The latest revision of rplib no longer has FramePreferences, it has WindowPreferences.
It looks like jay hasn't committed tokentool but he did commit rplib.
I just sent him a PM with a link to this post.
It looks like jay hasn't committed tokentool but he did commit rplib.
I just sent him a PM with a link to this post.
- CoveredInFish
- Demigod
- Posts: 3104
- Joined: Mon Jun 29, 2009 10:37 am
- Location: Germany
- Contact:
Re: Working on tokenTool
Bump.
Still not getting a working tokentool from svn.
Still not getting a working tokentool from svn.
Re: Working on tokenTool
Send a PM directory to jay. It looks like he needs to commit his TokenTool changes.
- CoveredInFish
- Demigod
- Posts: 3104
- Joined: Mon Jun 29, 2009 10:37 am
- Location: Germany
- Contact:
Re: Working on tokenTool
Sadly still no news on this. pm-mailed but not e-mailed yet.