doImports(t);
HorizontalPanel importCols = new HorizontalPanel();
importCols.add(importList);
VerticalPanel importActions = new VerticalPanel();
importActions.add(new ImageButton("images/new_item.gif") { //NON-NLS
{
addClickListener(new ClickListener() {
public void onClick(Widget w) {
showTypeQuestion(w, t, false, constants.FactTypesJarTip());
}
});
}
});
importActions.add(new ImageButton("images/trash.gif") { //NON-NLS
{
addClickListener(new ClickListener() {
public void onClick(Widget w) {
if (Window.confirm(constants.AreYouSureYouWantToRemoveThisFactType())) {
int i = importList.getSelectedIndex();
importList.removeItem(i);
t.imports.remove(i);
updateHeader(t);
}
}
});
}
});
importCols.add(importActions);
imports.add(importCols);
VerticalPanel globals = new VerticalPanel();
globals.add(new Label(constants.Globals()));
globalList = new ListBox(true);
doGlobals(t);
HorizontalPanel globalCols = new HorizontalPanel();
globalCols.add(globalList);
VerticalPanel globalActions = new VerticalPanel();
globalActions.add(new ImageButton("images/new_item.gif") { //NON-NLS
{
addClickListener(new ClickListener() {
public void onClick(Widget w) {
showTypeQuestion(w, t, true, constants.GlobalTypesAreClassesFromJarFilesThatHaveBeenUploadedToTheCurrentPackage());
}
});
}
});
globalActions.add(new ImageButton("images/trash.gif") { //NON-NLS
{
addClickListener(new ClickListener() {
public void onClick(Widget w) {
if (Window.confirm(constants.AreYouSureYouWantToRemoveThisGlobal())) {
int i = globalList.getSelectedIndex();