Images.InternetWebBrowser);
protected boolean closeCheckEnabled;
public ContentEditor() {
if (getSessionUser().isAdministrator()) {
editProperties.addClickListener(new ActionListener() {
public void actionPerformed(Event event) {
propertyManager.toogleEdit();
}
});
getButtons().appendChild(editProperties);
}
if (Registry.getParameter(Names.JEASE_SITE_DESIGN) != null) {
viewContent.addClickListener(new ActionListener() {
public void actionPerformed(Event event) {
viewContent();
}
});
getButtons().appendChild(viewContent);
}
revisionSelection.setNullable(false);
revisionSelection.addSelectListener(new ActionListener() {
public void actionPerformed(Event event) {
peek(Revisions.checkout(getNode(),
revisionSelection.getSelectedIndex()));
viewContent.setVisible(true);
lastNodeModification = null;
}
});
addEventListener(Events.ON_CLOSE, new ActionListener() {
public void actionPerformed(Event event) {
closePerformed(event);
}
});
closeCheckEnabled = true;