bardsoftware / ganttproject

Official GanttProject repository.
http://ganttproject.biz
GNU General Public License v3.0
860 stars 301 forks source link

Click-n-Drag Progress updating broken in Praha? #357

Closed GoogleCodeExporter closed 9 years ago

GoogleCodeExporter commented 9 years ago
What steps will reproduce the problem?

In Praha beta IV...

1. go to the gantt window and find a low-level task
2. there is no little arrow that pops up that you can drag to update the 
progress bar within the tasks "time bar".

What is the expected output? What do you see instead?

In 2.0.10, a little arrow would appear so that I could drag a black line in the 
task's time bar so as to update the progress percentage.

What version of the product are you using? On what operating system?

Praha Beta 4, Windows XP

Please provide any additional information below.
Just wondering if it was on purpose or not.  I liked the feature in 2.0.10 and 
would be sad to see it go.

Thanks! 

Original issue reported on code.google.com by kro...@gmail.com on 6 Dec 2011 at 2:34

GoogleCodeExporter commented 9 years ago
> 2. there is no little arrow that pops up

It is there. Well, at least on the systems which I use for the development. As 
far as I can see, even the area where mouse pointer switches to progress change 
mode has not changed. Maybe it is some corner-case? Can you try again with 
other tasks in other parts of the chart?

Original comment by dbarashev on 10 Dec 2011 at 10:53

GoogleCodeExporter commented 9 years ago
I get the wider double-headed arrow associated with click/drag to adjust the 
start/end dates of a task, but not the thinner arrow associated with adjusting 
the progress of that task.   

Running Windows XP, running on a standard Lenovo laptop, nothing too weird or 
corner-case-ish with the hardware.  Running GanttProject 2.5 Praha beta IV 
(build 823).  I can make a new file, make a new task, give the task some 
length, and even if I manually type in a progress % to generate a visible bar, 
I can't get the thinner double-headed arrow to show up when I hover over the 
end of that "internal" black bar.  However the thicker double-arrow to adjust 
the begin/end dates shows up fine when I hover over begin / end dates.  

Original comment by kro...@gmail.com on 13 Dec 2011 at 8:00

GoogleCodeExporter commented 9 years ago
When I said "corner-case" I meant special positioning of tasks on the chart or 
some particular zooming. So you can reproduce this problem for any task in any 
part of the chart in any zoom level? If yes then may I ask you to:

1. Post here the log after hovering over the place where progress change cursor 
supposed to be
2. Update your JRE
3. Record a video showing the problem

In any sequence, but the first is probably the easiest :)

Original comment by dbarashev on 13 Dec 2011 at 9:03

GoogleCodeExporter commented 9 years ago
note that you're dealing with a noob.  in the log there is this warning below, 
which show up only after opening the file...I have to do nothing after opening 
it, and the log contains this error:

WARNING: Failed to find directory fonts in plugin org.ganttproject.impex.htmlpdf

hovering over the area as mentioned gives this error...hopefully hits paydirt?

WARNING: This time unit is function of date. Use method createTimeUnit() to 
create a parameterized instance.
java.lang.UnsupportedOperationException: This time unit is function of date. 
Use method createTimeUnit() to create a parameterized instance.
    at net.sourceforge.ganttproject.time.TimeUnitFunctionOfDateImpl.getAtomCount(TimeUnitFunctionOfDateImpl.java:44)
    at net.sourceforge.ganttproject.task.TaskLengthImpl.getLength(TaskLengthImpl.java:69)
    at net.sourceforge.ganttproject.chart.item.TaskProgressChartItem.<init>(TaskProgressChartItem.java:25)
    at net.sourceforge.ganttproject.chart.ChartModelImpl.findTaskProgressItem(ChartModelImpl.java:194)
    at net.sourceforge.ganttproject.chart.ChartModelImpl.getChartItemWithCoordinates(ChartModelImpl.java:178)
    at net.sourceforge.ganttproject.chart.gantt.GanttChartController.getChartItemUnderMousePoint(GanttChartController.java:223)
    at net.sourceforge.ganttproject.chart.gantt.MouseMotionListenerImpl.mouseMoved(MouseMotionListenerImpl.java:46)
    at java.awt.Component.processMouseMotionEvent(Unknown Source)
    at javax.swing.JComponent.processMouseMotionEvent(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.dispatchEventImpl(Unknown Source)
    at java.awt.EventQueue.access$000(Unknown Source)
    at java.awt.EventQueue$1.run(Unknown Source)
    at java.awt.EventQueue$1.run(Unknown Source)
    at java.security.AccessController.doPrivileged(Native Method)
    at java.security.AccessControlContext$1.doIntersectionPrivilege(Unknown Source)
    at java.security.AccessControlContext$1.doIntersectionPrivilege(Unknown Source)
    at java.awt.EventQueue$2.run(Unknown Source)
    at java.awt.EventQueue$2.run(Unknown Source)
    at java.security.AccessController.doPrivileged(Native Method)
    at java.security.AccessControlContext$1.doIntersectionPrivilege(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)

Original comment by kro...@gmail.com on 13 Dec 2011 at 10:05

GoogleCodeExporter commented 9 years ago
So, zoom in? See issue #344

Original comment by dbarashev on 13 Dec 2011 at 10:08

GoogleCodeExporter commented 9 years ago
Yup, that does it.  If I zoom in just enough to show the weeks, I get the 
little black "%>" thingy.  zooming out one more notch so that the months show 
up, I don't get the "%>" symbol and it throws that error.  

Thanks for the workaround for now.  have a nice evening.

Original comment by kro...@gmail.com on 14 Dec 2011 at 2:25

GoogleCodeExporter commented 9 years ago
http://code.google.com/p/ganttproject/issues/detail?id=351   looks like issue 
351 also was running up against a similar thing.  Sorry for the double-posting 
about it.  I had searched on "progress" and that submitter didn't use that word.

Original comment by kro...@gmail.com on 14 Dec 2011 at 2:35

GoogleCodeExporter commented 9 years ago

Original comment by dbarashev on 21 Dec 2011 at 7:15