Restructered pit-swing to better follow MVC paradigm.

Adding extensibility features for pit-swing.
This commit is contained in:
Jonathan Bernard
2010-03-02 11:59:33 -06:00
parent d77f04f12e
commit a3f9f4b291
8 changed files with 329 additions and 214 deletions

View File

@ -1,8 +1,34 @@
package com.jdbernard.pit.swing
import com.jdbernard.pit.Category
import com.jdbernard.pit.Filter
import com.jdbernard.pit.Issue
import com.jdbernard.pit.Project
import com.jdbernard.pit.Status
import groovy.beans.Bindable
class PITModel {
@Bindable Project rootProject
// cache the ListModels
def projectListModels = [:]
// filter for projects and issues
Filter filter = new Filter(categories: [],
status: [Status.NEW, Status.VALIDATION_REQUIRED])
@Bindable Project popupProject = null
@Bindable Project selectedProject = null
@Bindable Issue popupIssue = null
// configurable exntension points
// ==============================
@Bindable def issueListRenderer
// map of category -> issue template
def templates = [:]
}