use of org.jboss.ide.eclipse.freemarker.configuration.ContextValue in project liferay-ide by liferay.
the class FreemarkerMultiPageEditor method reloadContextValues.
public void reloadContextValues() {
try {
contextValuesTable.removeAll();
ContextValue[] values = ConfigurationManager.getInstance(vEditor.getFile().getProject()).getContextValues(vEditor.getFile(), false);
for (int i = 0; i < values.length; i++) {
TableItem item = new TableItem(contextValuesTable, SWT.NULL);
String[] arr = { values[i].name, values[i].objClass.getName() };
item.setText(arr);
}
editContextValueButton.setEnabled(false);
deleteContextValueButton.setEnabled(false);
} catch (Exception e) {
Plugin.log(e);
}
contextValuesTable.redraw();
}
Aggregations