return addDataSource((DataSource) o);
}
if (action.equals(resources.getString("Properties..."))) {
new LongAction(LongAction.LONG_ACTION_SHAPE, null, this) {
protected void doAction() {
HistoryTextPropertiesPanel panel = (HistoryTextPropertiesPanel) createPanel();
/**
* Only one shape properties dialog box can be displayed at
* once When user opens a dialog box properties while
* another one is still displayed: this last dislaog box is
* closed
*/
Point oldLocation = null;
if (currentDialogBox != null) {
oldLocation = currentDialogBox.getBounds().getLocation();
currentDialogBox.dispose();
}
ArrayList shapes = new ArrayList();
shapes.add(HistoryTextShape.this);
AbstractShapePropertiesDialogBox optionDialog = new AbstractShapePropertiesDialogBox(JSynoptic.gui
.getOwner(), panel, panel.getShapeName() + resources.getString("propertiesTitle"),
shapes, JSynoptic.gui.getActiveComponent());
if (oldLocation != null) {
optionDialog.setLocation(oldLocation);
}