~veger/ganttproject/manual-import

« back to all changes in this revision

Viewing changes to ganttproject/src/net/sourceforge/ganttproject/task/dependency/TaskDependencySliceImpl.java

  • Committer: Maarten Bezemer
  • Date: 2012-01-22 12:20:00 UTC
  • Revision ID: maarten.bezemer@gmail.com-20120122122000-qwyec45rjx86wi7o
Updated till 2fe683a778c3 

Show diffs side-by-side

added added

removed removed

Lines of Context:
 
1
/*
 
2
Copyright 2003-2012 Dmitry Barashev, GanttProject Team
 
3
 
 
4
This file is part of GanttProject, an opensource project management tool.
 
5
 
 
6
GanttProject is free software: you can redistribute it and/or modify 
 
7
it under the terms of the GNU General Public License as published by
 
8
 the Free Software Foundation, either version 3 of the License, or
 
9
 (at your option) any later version.
 
10
 
 
11
GanttProject is distributed in the hope that it will be useful,
 
12
but WITHOUT ANY WARRANTY; without even the implied warranty of
 
13
MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE.  See the
 
14
GNU General Public License for more details.
 
15
 
 
16
You should have received a copy of the GNU General Public License
 
17
along with GanttProject.  If not, see <http://www.gnu.org/licenses/>.
 
18
*/
1
19
package net.sourceforge.ganttproject.task.dependency;
2
20
 
3
21
import java.util.List;
15
33
        myDependencyCollection = dependencyCollection;
16
34
    }
17
35
 
 
36
    @Override
18
37
    public TaskDependency[] toArray() {
19
38
        return myDependencyCollection.getDependencies(myTask);
20
39
    }
21
40
 
 
41
    @Override
22
42
    public void clear() {
23
43
        TaskDependency[] deps = toArray();
24
44
        for (int i = 0; i < deps.length; i++) {
27
47
    }
28
48
 
29
49
    /** Unlinks only tasks that are selected and leaves links to not selected tasks. */
 
50
    @Override
30
51
    public void clear(List<Task> selection) {
31
52
        TaskDependency[] deps = toArray();
32
53
        for (int i = 0; i < deps.length; i++) {
36
57
        }
37
58
    }
38
59
 
 
60
    @Override
39
61
    public boolean hasLinks(List<Task> selection) {
40
62
        TaskDependency[] deps = toArray();
41
63
        for (int i = 0; i < deps.length; i++) {