Creates the content in the form hosted in this page.
super.createFormContent(managedForm);
ScrolledForm form = managedForm.getForm();
String configText = null;
IEditorInput input = mEditor.getEditorInput();
if (input instanceof FileEditorInput) {
FileEditorInput fileInput = (FileEditorInput)input;
IFile iFile = fileInput.getFile();
ResourceFolder resFolder = ResourceManager.getInstance().getResourceFolder(iFile);
if (resFolder != null) {
configText = resFolder.getConfiguration().toDisplayString();
}
}
if (configText != null) {
form.setText(String.format("Android Resources (%1$s)", configText));
} else {
form.setText("Android Resources");
}
form.setImage(AdtPlugin.getAndroidLogo());
UiElementNode resources = mEditor.getUiRootNode();
UiTreeBlock block = new UiTreeBlock(mEditor, resources,
true /* autoCreateRoot */,
null /* no element filters */,
"Resources Elements",
"List of all resources elements in this XML file.");
block.createContent(managedForm);