public ContributionTab(ContributionType type, ContributionManagerDialog dialog) { this.contribType = type; this.contribDialog = dialog; /* if (type == ContributionType.MODE) { title = Language.text("contrib.manager_title.mode"); } else if (type == ContributionType.TOOL) { title = Language.text("contrib.manager_title.tool"); } else if (type == ContributionType.LIBRARY) { title = Language.text("contrib.manager_title.library"); } else if (type == ContributionType.EXAMPLES) { title = Language.text("contrib.manager_title.examples"); } */ filter = new Contribution.Filter() { public boolean matches(Contribution contrib) { return contrib.getType() == contribType; } }; contribListing = ContributionListing.getInstance(); statusPanel = new StatusPanel(650, this); contributionListPanel = new ListPanel(this, filter); contribListing.addListener(contributionListPanel); }