import org.eclipse.jface.viewers.ISelection;
import org.eclipse.jface.viewers.ISelectionProvider;
import org.eclipse.jface.window.Window;
-import org.eclipse.nebula.widgets.richtext.RichTextEditor;
+//import org.eclipse.nebula.widgets.richtext.RichTextEditor;
import org.eclipse.swt.SWT;
import org.eclipse.swt.custom.StyledText;
import org.eclipse.swt.events.FocusAdapter;
import eu.etaxonomy.taxeditor.ui.dialog.CloneClassificationDetailElement;
import eu.etaxonomy.taxeditor.ui.element.MinMaxTextSection.UnitType;
import eu.etaxonomy.taxeditor.ui.mvc.element.DateElement;
+import eu.etaxonomy.taxeditor.ui.mvc.element.DateElementFormElement;
import eu.etaxonomy.taxeditor.ui.openurl.IOpenUrlEnabled;
import eu.etaxonomy.taxeditor.ui.openurl.OpenUrlSelectorElement;
import eu.etaxonomy.taxeditor.ui.password.EditPasswordElement;
@Override
public void adapt(Composite composite) {
composite.addMouseListener(selectionMouseHandler);
+
super.adapt(composite);
}
return labelElement;
}
+// public DateElementFormElement createDateElementForm(ICdmFormElement formElement, String labelText, DateTime dateTime, int style){
+// Label label = new Label(formElement.getLayoutComposite(), style);
+// label.setText(labelText+" (yyyy-MM-dd)");
+// DateElementFormElement dateElement = new DateElementFormElement(this, dateTime, style, formElement.getLayoutComposite());
+// dateElement.initInternalController();
+//
+// return dateElement;
+// }
+
public DateElement createDateElement(ICdmFormElement formElement, String labelText, DateTime dateTime, int style){
- Label label = new Label(formElement.getLayoutComposite(), style);
- label.setText(labelText+" (yyyy-MM-dd)");
- DateElement dateElement = new DateElement(formElement.getLayoutComposite(), dateTime, style);
- dateElement.initController(this, formElement);
- return dateElement;
+ Label label = new Label(formElement.getLayoutComposite(), style);
+ label.setText(labelText+" (yyyy-MM-dd)");
+ DateElement dateElement = new DateElement(formElement.getLayoutComposite(), dateTime, style);
+ dateElement.initController(this, formElement);
+ return dateElement;
}
/**
return section;
}
- public RichTextWithLabelElement createRichTextLabelElement(ICdmFormElement parentElement, String labelString, String initialText, int textHeight, int style) {
- RichTextWithLabelElement element = new RichTextWithLabelElement(this, parentElement, labelString,
- initialText, textHeight, style);
- adapt(element);
- parentElement.addElement(element);
- return element;
- }
+// public RichTextWithLabelElement createRichTextLabelElement(ICdmFormElement parentElement, String labelString, String initialText, int textHeight, int style) {
+// RichTextWithLabelElement element = new RichTextWithLabelElement(this, parentElement, labelString,
+// initialText, textHeight, style);
+// adapt(element);
+// parentElement.addElement(element);
+// return element;
+// }