Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

[24114] add isResizable method to dialog #226

Merged
merged 1 commit into from
May 24, 2022
Merged
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Jump to
Jump to file
Failed to load files.
Diff view
Diff view
Original file line number Diff line number Diff line change
Expand Up @@ -52,4 +52,9 @@ protected void okPressed() {
super.okPressed();
}

@Override
protected boolean isResizable() {
return true;
}

}
Original file line number Diff line number Diff line change
Expand Up @@ -332,6 +332,11 @@ public void widgetSelected(SelectionEvent e) {
return area;
}

@Override
protected boolean isResizable() {
return true;
}

private Optional<IContact> getAppointmentContact() {
return Optional.ofNullable(appointment.getContact());
}
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -35,4 +35,8 @@ public void addPages() {
public enum ExportType {
CDA, XDM
}

protected boolean isResizable() {
return true;
}
}
Original file line number Diff line number Diff line change
Expand Up @@ -45,4 +45,8 @@ public void setDocument(InputStream document) {
MessageDialog.openError(getShell(), "Fehler", "Konnte das Dokument nicht öffnen.");
}
}

protected boolean isResizable() {
return true;
}
}
Original file line number Diff line number Diff line change
Expand Up @@ -12,9 +12,9 @@
*******************************************************************************/
package at.medevit.elexis.gdt.ui.dialog;

import org.apache.commons.lang3.StringUtils;
import java.util.List;

import org.apache.commons.lang3.StringUtils;
import org.eclipse.core.databinding.Binding;
import org.eclipse.core.databinding.DataBindingContext;
import org.eclipse.core.databinding.UpdateValueStrategy;
Expand Down Expand Up @@ -347,6 +347,11 @@ public void selectionChanged(SelectionChangedEvent event) {
return area;
}

@Override
protected boolean isResizable() {
return true;
}

/**
* Create contents of the button bar.
*
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -12,9 +12,9 @@
*******************************************************************************/
package at.medevit.elexis.gdt.ui.dialog;

import org.apache.commons.lang3.StringUtils;
import java.util.List;

import org.apache.commons.lang3.StringUtils;
import org.eclipse.core.databinding.Binding;
import org.eclipse.core.databinding.DataBindingContext;
import org.eclipse.core.databinding.UpdateValueStrategy;
Expand Down Expand Up @@ -377,4 +377,9 @@ public void setTargetIdSelection(String targetIdSelection) {
public String getTargetIdSelection() {
return targetIdSelection;
}

@Override
protected boolean isResizable() {
return true;
}
}
Original file line number Diff line number Diff line change
Expand Up @@ -14,6 +14,7 @@
import org.eclipse.swt.layout.GridLayout;
import org.eclipse.swt.widgets.Composite;
import org.eclipse.swt.widgets.Control;
import org.eclipse.swt.widgets.DateTime;
import org.eclipse.swt.widgets.Label;
import org.eclipse.swt.widgets.Shell;
import org.eclipse.swt.widgets.Text;
Expand All @@ -28,8 +29,6 @@
import ch.elexis.data.Patient;
import ch.rgw.tools.TimeTool;

import org.eclipse.swt.widgets.DateTime;

public class EditVaccinationDialog extends TitleAreaDialog {
private Vaccination vacc;

Expand Down Expand Up @@ -139,4 +138,8 @@ protected void okPressed() {
super.okPressed();
}

@Override
protected boolean isResizable() {
return true;
}
}
Original file line number Diff line number Diff line change
Expand Up @@ -261,6 +261,11 @@ public void proposalAccepted(IContentProposal proposal) {
return area;
}

@Override
protected boolean isResizable() {
return true;
}

/**
* Create contents of the button bar.
*
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -48,7 +48,6 @@
import net.fortuna.ical4j.data.CalendarOutputter;
import net.fortuna.ical4j.data.ParserException;
import net.fortuna.ical4j.model.Calendar;
import net.fortuna.ical4j.model.Component;
import net.fortuna.ical4j.model.Date;
import net.fortuna.ical4j.model.DateTime;
import net.fortuna.ical4j.model.TimeZone;
Expand Down Expand Up @@ -268,6 +267,10 @@ protected void okPressed() {
super.okPressed();
}

@Override
protected boolean isResizable() {
return true;
}
}

class ICalExportDlg extends TitleAreaDialog {
Expand Down Expand Up @@ -395,5 +398,9 @@ protected void okPressed() {
super.okPressed();
}

@Override
protected boolean isResizable() {
return true;
}
}
}
Original file line number Diff line number Diff line change
Expand Up @@ -142,5 +142,9 @@ protected void okPressed() {
super.okPressed();
}

@Override
protected boolean isResizable() {
return true;
}
}
}
Original file line number Diff line number Diff line change
Expand Up @@ -11,10 +11,10 @@
*******************************************************************************/
package ch.elexis.dialogs;

import org.apache.commons.lang3.StringUtils;
import java.util.Arrays;
import java.util.List;

import org.apache.commons.lang3.StringUtils;
import org.eclipse.jface.dialogs.TitleAreaDialog;
import org.eclipse.swt.SWT;
import org.eclipse.swt.layout.GridLayout;
Expand Down Expand Up @@ -88,4 +88,8 @@ protected void okPressed() {
super.okPressed();
}

@Override
protected boolean isResizable() {
return true;
}
}
Original file line number Diff line number Diff line change
Expand Up @@ -525,6 +525,11 @@ public void widgetSelected(final SelectionEvent e) {
return sc;
}

@Override
protected boolean isResizable() {
return true;
}

/**
* mögliche Termintypen setzen (nur die, die eine Dauer!=0 haben)
*
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -11,10 +11,10 @@
import org.eclipse.swt.widgets.DateTime;
import org.eclipse.swt.widgets.Shell;

import ch.rgw.tools.TimeTool;

import com.ibm.icu.util.Calendar;

import ch.rgw.tools.TimeTool;

public class DatePeriodSelectorDialog extends TitleAreaDialog {

private TimeTool _startDate;
Expand Down Expand Up @@ -85,4 +85,9 @@ protected Point getInitialSize() {
Point p = startDateTime.computeSize(SWT.DEFAULT, SWT.DEFAULT);
return new Point((p.x * 2) + 10, 300);
}

@Override
protected boolean isResizable() {
return true;
}
}
Original file line number Diff line number Diff line change
Expand Up @@ -11,9 +11,9 @@
*******************************************************************************/
package ch.elexis.base.ch.ebanking.esr;

import org.apache.commons.lang3.StringUtils;
import java.text.MessageFormat;

import org.apache.commons.lang3.StringUtils;
import org.eclipse.jface.dialogs.Dialog;
import org.eclipse.jface.dialogs.InputDialog;
import org.eclipse.jface.dialogs.TitleAreaDialog;
Expand Down Expand Up @@ -226,4 +226,8 @@ protected void okPressed() {
super.okPressed();
}

@Override
protected boolean isResizable() {
return true;
}
}
Original file line number Diff line number Diff line change
Expand Up @@ -169,4 +169,8 @@ protected void okPressed() {
super.okPressed();
}

@Override
protected boolean isResizable() {
return true;
}
}
Original file line number Diff line number Diff line change
Expand Up @@ -88,4 +88,8 @@ protected void okPressed() {
super.okPressed();
}

@Override
protected boolean isResizable() {
return true;
}
}
Original file line number Diff line number Diff line change
Expand Up @@ -143,4 +143,8 @@ protected void okPressed() {
super.okPressed();
}

@Override
protected boolean isResizable() {
return true;
}
}
Original file line number Diff line number Diff line change
Expand Up @@ -69,4 +69,8 @@ protected void okPressed() {
super.okPressed();
}

@Override
protected boolean isResizable() {
return true;
}
}
Original file line number Diff line number Diff line change
Expand Up @@ -53,4 +53,8 @@ protected void okPressed() {
super.okPressed();
}

@Override
protected boolean isResizable() {
return true;
}
}
Original file line number Diff line number Diff line change
Expand Up @@ -43,4 +43,9 @@ protected void okPressed() {
nPaymentModes.replaceAll(StringUtils.CR, StringUtils.EMPTY));
super.okPressed();
}

@Override
protected boolean isResizable() {
return true;
}
}
Original file line number Diff line number Diff line change
Expand Up @@ -11,12 +11,12 @@

package ch.elexis.omnivore.ui.views;

import org.apache.commons.lang3.StringUtils;
import java.text.MessageFormat;
import java.util.Collections;
import java.util.Date;
import java.util.List;

import org.apache.commons.lang3.StringUtils;
import org.eclipse.jface.dialogs.Dialog;
import org.eclipse.jface.dialogs.InputDialog;
import org.eclipse.jface.dialogs.TitleAreaDialog;
Expand Down Expand Up @@ -252,4 +252,8 @@ private void setDateValues() {
}
}

@Override
protected boolean isResizable() {
return true;
}
}
Original file line number Diff line number Diff line change
Expand Up @@ -13,11 +13,11 @@

package com.hilotec.elexis.messwerte.v2.views;

import org.apache.commons.lang3.StringUtils;
import java.text.SimpleDateFormat;
import java.util.Date;
import java.util.List;

import org.apache.commons.lang3.StringUtils;
import org.eclipse.jface.dialogs.Dialog;
import org.eclipse.jface.dialogs.MessageDialog;
import org.eclipse.swt.SWT;
Expand All @@ -35,13 +35,13 @@
import org.eclipse.swt.widgets.Shell;
import org.eclipse.swt.widgets.Text;

import com.hilotec.elexis.messwerte.v2.data.ExportData;
import com.tiff.common.ui.datepicker.DatePickerCombo;

import ch.elexis.data.Patient;
import ch.elexis.data.Query;
import ch.rgw.tools.TimeTool;

import com.hilotec.elexis.messwerte.v2.data.ExportData;
import com.tiff.common.ui.datepicker.DatePickerCombo;

public class ExportDialog extends Dialog {

private ExportData expData;
Expand Down Expand Up @@ -257,4 +257,9 @@ private void calcMinMaxPatNumbers() {
}
this.getShell().setCursor(null);
}

@Override
protected boolean isResizable() {
return true;
}
}
Original file line number Diff line number Diff line change
Expand Up @@ -13,12 +13,12 @@

package com.hilotec.elexis.messwerte.v2.views;

import org.apache.commons.lang3.StringUtils;
import java.io.File;
import java.text.SimpleDateFormat;
import java.util.ArrayList;
import java.util.List;

import org.apache.commons.lang3.StringUtils;
import org.eclipse.jface.dialogs.TitleAreaDialog;
import org.eclipse.swt.SWT;
import org.eclipse.swt.custom.ScrolledComposite;
Expand Down Expand Up @@ -348,4 +348,9 @@ public boolean close() {
}
return super.close();
}

@Override
protected boolean isResizable() {
return true;
}
}