Commit 08905ce1 authored by slogic-sa's avatar slogic-sa Committed by Thomas Huster

[17333] Dokumente View, Aktionen rechts neben dem Filter Text (#384)

parent e1f34478
Pipeline #12544 passed with stages
in 5 minutes and 4 seconds
......@@ -27,6 +27,7 @@ Import-Package: ch.elexis.admin,
ch.elexis.data,
ch.rgw.tools,
org.apache.commons.io;version="2.4.0",
org.eclipse.e4.core.commands,
org.eclipse.e4.core.di.annotations;version="1.6.0",
org.osgi.service.component.annotations,
org.slf4j;version="1.7.2"
......
......@@ -27,12 +27,16 @@ import org.eclipse.core.commands.ExecutionEvent;
import org.eclipse.core.commands.ExecutionException;
import org.eclipse.core.commands.NotEnabledException;
import org.eclipse.core.commands.NotHandledException;
import org.eclipse.core.commands.ParameterizedCommand;
import org.eclipse.core.commands.common.NotDefinedException;
import org.eclipse.e4.core.commands.ECommandService;
import org.eclipse.e4.core.commands.EHandlerService;
import org.eclipse.e4.core.contexts.IEclipseContext;
import org.eclipse.e4.core.di.annotations.Optional;
import org.eclipse.e4.ui.di.UIEventTopic;
import org.eclipse.jface.action.Action;
import org.eclipse.jface.action.MenuManager;
import org.eclipse.jface.action.ToolBarManager;
import org.eclipse.jface.dialogs.MessageDialog;
import org.eclipse.jface.viewers.DoubleClickEvent;
import org.eclipse.jface.viewers.IDoubleClickListener;
......@@ -91,6 +95,7 @@ import ch.elexis.core.ui.documents.service.DocumentStoreServiceHolder;
import ch.elexis.core.ui.icons.Images;
import ch.elexis.core.ui.services.LocalDocumentServiceHolder;
import ch.elexis.core.ui.util.SWTHelper;
import ch.elexis.data.AUF;
import ch.rgw.tools.TimeTool;
/**
......@@ -169,6 +174,13 @@ public class DocumentsView extends ViewPart {
}
}
@SuppressWarnings("restriction")
@Inject
ECommandService commandService;
@SuppressWarnings("restriction")
@Inject
EHandlerService handlerService;
class ViewFilterProvider extends ViewerFilter {
@Override
......@@ -396,8 +408,14 @@ public class DocumentsView extends ViewPart {
public void createPartControl(Composite parent){
parent.setLayout(new GridLayout(4, false));
final Text tSearch = new Text(parent, SWT.BORDER);
tSearch.setLayoutData(new GridData(SWT.FILL, SWT.TOP, true, false));
Composite filterComposite = new Composite(parent, SWT.NONE);
GridData data = new GridData(GridData.FILL_HORIZONTAL);
filterComposite.setLayoutData(data);
filterComposite.setLayout(new GridLayout(2, false));
final Text tSearch = new Text(filterComposite, SWT.BORDER);
data = new GridData(GridData.FILL_HORIZONTAL);
tSearch.setLayoutData(data);
tSearch.setMessage(Messages.DocumentView_searchLabel);
// Add search listener
ModifyListener searchListener = new ModifyListener() {
......@@ -413,6 +431,7 @@ public class DocumentsView extends ViewPart {
};
tSearch.addModifyListener(searchListener);
createFlatMenu(filterComposite);
// Table to display documents
table = new Tree(parent, SWT.MULTI | SWT.H_SCROLL | SWT.V_SCROLL | SWT.FULL_SELECTION);
TreeColumn[] cols = new TreeColumn[colLabels.length];
......@@ -561,6 +580,55 @@ public class DocumentsView extends ViewPart {
viewer.setInput(ContextServiceHolder.get().getActivePatient().orElse(null));
}
private void createFlatMenu(Composite filterComposite){
ToolBarManager tMenuManager = new ToolBarManager(SWT.FLAT | SWT.HORIZONTAL | SWT.WRAP);
tMenuManager.add(new Action("Neuer Brief", Action.AS_PUSH_BUTTON) {
@SuppressWarnings("restriction")
@Override
public void run(){
ParameterizedCommand cmd =
commandService.createCommand("ch.elexis.core.ui.commands.BriefNew", null);
if (cmd != null) {
handlerService.executeHandler(cmd);
}
super.run();
}
});
tMenuManager.add(new Action("AUF", Action.AS_PUSH_BUTTON) {
@SuppressWarnings("restriction")
@Override
public void run(){
ParameterizedCommand cmd =
commandService.createCommand("ch.elexis.core.ui.commands.AufNew", null);
if (cmd != null) {
Object createdAuf = handlerService.executeHandler(cmd);
if (createdAuf instanceof AUF) {
// print
cmd = commandService.createCommand("ch.elexis.core.ui.commands.AufPrint",
null);
if (cmd != null) {
handlerService.executeHandler(cmd);
}
}
}
super.run();
}
});
tMenuManager.add(new Action("Import", Action.AS_PUSH_BUTTON) {
@SuppressWarnings("restriction")
@Override
public void run(){
ParameterizedCommand cmd =
commandService.createCommand(DocumentCrudHandler.CMD_NEW_DOCUMENT, null);
if (cmd != null) {
handlerService.executeHandler(cmd);
}
super.run();
}
});
tMenuManager.createControl(filterComposite);
}
private DocumentsFilterBarComposite addFilterBar(Composite parent){
......
......@@ -72,6 +72,9 @@ elexis.textPrefs = Text processor
elexis.textTemplate = Text template requirement
elexis.userCasePrefs = cases
elexis.userPrefs = Users
elexis.briefNew = New document
elexis.aufNew = New AUF
elexis.aufPrint = Print AUF
open.compendium = Open Compendium Website
......
......@@ -793,6 +793,21 @@
id="ch.elexis.core.ui.PrintMedicationHistory"
name="Print medication history">
</command>
<command
defaultHandler="ch.elexis.core.ui.commands.BriefNewHandler"
id="ch.elexis.core.ui.commands.BriefNew"
name="%elexis.briefNew">
</command>
<command
defaultHandler="ch.elexis.core.ui.commands.AufNewHandler"
id="ch.elexis.core.ui.commands.AufNew"
name="%elexis.aufNew">
</command>
<command
defaultHandler="ch.elexis.core.ui.commands.AufPrintHandler"
id="ch.elexis.core.ui.commands.AufPrint"
name="%elexis.aufPrint">
</command>
</extension>
<extension
point="ch.elexis.core.ui.KonsExtension">
......
......@@ -72,6 +72,9 @@ elexis.textPrefs = Textverarbeitung
elexis.textTemplate = Notwendige Textvorlagen
elexis.userCasePrefs = F\u00E4lle
elexis.userPrefs = Anwender
elexis.briefNew = Neuer Brief
elexis.aufNew = AUF erstellen
elexis.aufPrint = AUF drucken
open.compendium = Compendium.ch \u00F6ffnen
......
......@@ -71,6 +71,9 @@ elexis.textPrefs = word processing
elexis.textTemplate = Necessary text templates
elexis.userCasePrefs = cases
elexis.userPrefs = Users
elexis.briefNew = New document
elexis.aufNew = New AUF
elexis.aufPrint = Print AUF
open.compendium = Open Compendium Website
......
package ch.elexis.core.ui.commands;
import org.eclipse.core.commands.AbstractHandler;
import org.eclipse.core.commands.ExecutionEvent;
import org.eclipse.core.commands.ExecutionException;
import org.eclipse.core.commands.IHandler;
import org.eclipse.jface.dialogs.Dialog;
import org.eclipse.ui.IViewPart;
import org.eclipse.ui.PlatformUI;
import ch.elexis.core.data.events.ElexisEventDispatcher;
import ch.elexis.core.ui.dialogs.EditAUFDialog;
import ch.elexis.core.ui.util.SWTHelper;
import ch.elexis.core.ui.views.AUF2;
import ch.elexis.core.ui.views.Messages;
import ch.elexis.data.Fall;
import ch.elexis.data.Konsultation;
import ch.elexis.data.Patient;
public class AufNewHandler extends AbstractHandler implements IHandler {
public static final String CMD_ID = "ch.elexis.core.ui.commands.AufNew";
@Override
public Object execute(ExecutionEvent event) throws ExecutionException{
Patient pat = (Patient) ElexisEventDispatcher.getSelected(Patient.class);
if (pat == null) {
SWTHelper.showError(Messages.AUF2_NoPatientSelected, //$NON-NLS-1$
Messages.AUF2_PleaseDoSelectPatient); //$NON-NLS-1$
return null;
}
Konsultation kons = (Konsultation) ElexisEventDispatcher.getSelected(Konsultation.class);
Fall fall = null;
if (kons != null) {
fall = kons.getFall();
if (fall == null) {
SWTHelper.showError(Messages.AUF2_noCaseSelected, Messages.AUF2_selectCase); //$NON-NLS-1$ //$NON-NLS-2$
return null;
}
if (!fall.getPatient().equals(pat)) {
kons = null;
}
}
if (kons == null) {
kons = pat.getLetzteKons(false);
if (kons == null) {
SWTHelper.showError(Messages.AUF2_noCaseSelected, Messages.AUF2_selectCase); //$NON-NLS-1$ //$NON-NLS-2$
return null;
}
fall = kons.getFall();
}
EditAUFDialog dlg =
new EditAUFDialog(PlatformUI.getWorkbench().getActiveWorkbenchWindow().getShell(), null,
fall);
if (dlg.open() == Dialog.OK) {
IViewPart viewPart = PlatformUI.getWorkbench().getActiveWorkbenchWindow()
.getActivePage().findView(AUF2.ID);
if (viewPart instanceof AUF2) {
((AUF2) viewPart).refreshTable(false);
}
return dlg.getAuf();
}
return null;
}
}
package ch.elexis.core.ui.commands;
import org.eclipse.core.commands.AbstractHandler;
import org.eclipse.core.commands.ExecutionEvent;
import org.eclipse.core.commands.ExecutionException;
import org.eclipse.core.commands.IHandler;
import org.eclipse.ui.IViewPart;
import org.eclipse.ui.PlatformUI;
import ch.elexis.core.ui.views.AUFZeugnis;
import ch.rgw.tools.ExHandler;
public class AufPrintHandler extends AbstractHandler implements IHandler {
public static final String CMD_ID = "ch.elexis.core.ui.commands.AufPrint";
@Override
public Object execute(ExecutionEvent event) throws ExecutionException{
try {
IViewPart viewPart = PlatformUI.getWorkbench().getActiveWorkbenchWindow()
.getActivePage().showView(AUFZeugnis.ID);
if (viewPart instanceof AUFZeugnis) {
((AUFZeugnis) viewPart).createAUZ();
}
} catch (Exception ex) {
ExHandler.handle(ex);
}
return null;
}
}
package ch.elexis.core.ui.commands;
import org.eclipse.core.commands.AbstractHandler;
import org.eclipse.core.commands.ExecutionEvent;
import org.eclipse.core.commands.ExecutionException;
import org.eclipse.core.commands.IHandler;
import org.eclipse.jface.dialogs.Dialog;
import org.eclipse.jface.dialogs.MessageDialog;
import org.eclipse.ui.IViewPart;
import org.eclipse.ui.PlatformUI;
import ch.elexis.core.data.activator.CoreHub;
import ch.elexis.core.data.events.ElexisEventDispatcher;
import ch.elexis.core.ui.UiDesk;
import ch.elexis.core.ui.dialogs.DocumentSelectDialog;
import ch.elexis.core.ui.dialogs.SelectFallDialog;
import ch.elexis.core.ui.util.viewers.CommonViewer;
import ch.elexis.core.ui.views.BriefAuswahl;
import ch.elexis.core.ui.views.Messages;
import ch.elexis.core.ui.views.TextView;
import ch.elexis.data.Fall;
import ch.elexis.data.Konsultation;
import ch.elexis.data.Kontakt;
import ch.elexis.data.Patient;
import ch.rgw.tools.ExHandler;
public class BriefNewHandler extends AbstractHandler implements IHandler {
public static final String CMD_ID = "ch.elexis.core.ui.commands.BriefNew";
@Override
public Object execute(ExecutionEvent event) throws ExecutionException{
Patient pat = ElexisEventDispatcher.getSelectedPatient();
if (pat == null) {
MessageDialog.openInformation(UiDesk.getTopShell(),
Messages.BriefAuswahlNoPatientSelected, Messages.BriefAuswahlNoPatientSelected);
return null;
}
Fall selectedFall = (Fall) ElexisEventDispatcher.getSelected(Fall.class);
if (selectedFall == null) {
SelectFallDialog sfd = new SelectFallDialog(UiDesk.getTopShell());
sfd.open();
if (sfd.result != null) {
ElexisEventDispatcher.fireSelectionEvent(sfd.result);
} else {
MessageDialog.openInformation(UiDesk.getTopShell(),
Messages.TextView_NoCaseSelected, //$NON-NLS-1$
Messages.TextView_SaveNotPossibleNoCaseAndKonsSelected); //$NON-NLS-1$
return null;
}
}
Konsultation selectedKonsultation =
(Konsultation) ElexisEventDispatcher.getSelected(Konsultation.class);
if (selectedKonsultation == null) {
Konsultation k = pat.getLetzteKons(false);
if (k == null) {
k = ((Fall) ElexisEventDispatcher.getSelected(Fall.class)).neueKonsultation();
k.setMandant(CoreHub.actMandant);
}
ElexisEventDispatcher.fireSelectionEvent(k);
}
TextView tv = null;
try {
DocumentSelectDialog bs = new DocumentSelectDialog(
PlatformUI.getWorkbench().getActiveWorkbenchWindow().getShell(),
CoreHub.actMandant, DocumentSelectDialog.TYPE_CREATE_DOC_WITH_TEMPLATE);
if (bs.open() == Dialog.OK) {
tv = (TextView) PlatformUI.getWorkbench().getActiveWorkbenchWindow().getActivePage()
.showView(TextView.ID);
// trick: just supply a dummy address for creating the doc
Kontakt address = null;
if (DocumentSelectDialog
.getDontAskForAddresseeForThisTemplate(bs.getSelectedDocument()))
address = Kontakt.load("-1"); //$NON-NLS-1$
tv.createDocument(bs.getSelectedDocument(), bs.getBetreff(), address);
tv.setName();
IViewPart viewPart = PlatformUI.getWorkbench().getActiveWorkbenchWindow()
.getActivePage().findView(BriefAuswahl.ID);
if (viewPart instanceof BriefAuswahl) {
((BriefAuswahl) viewPart).refreshCV(CommonViewer.Message.update_keeplabels);
}
}
} catch (Exception ex) {
ExHandler.handle(ex);
}
return null;
}
}
......@@ -141,4 +141,7 @@ public class EditAUFDialog extends TitleAreaDialog {
super.okPressed();
}
public AUF getAuf(){
return auf;
}
}
......@@ -28,25 +28,26 @@ import org.eclipse.swt.dnd.DragSourceEvent;
import org.eclipse.swt.dnd.TextTransfer;
import org.eclipse.swt.dnd.Transfer;
import org.eclipse.swt.widgets.Composite;
import org.eclipse.ui.PlatformUI;
import org.eclipse.ui.handlers.IHandlerService;
import org.eclipse.ui.part.ViewPart;
import org.slf4j.LoggerFactory;
import ch.elexis.core.data.events.ElexisEvent;
import ch.elexis.core.data.events.ElexisEventDispatcher;
import ch.elexis.core.data.events.ElexisEventListener;
import ch.elexis.core.ui.actions.GlobalEventDispatcher;
import ch.elexis.core.ui.actions.IActivationListener;
import ch.elexis.core.ui.commands.AufNewHandler;
import ch.elexis.core.ui.commands.AufPrintHandler;
import ch.elexis.core.ui.dialogs.EditAUFDialog;
import ch.elexis.core.ui.events.ElexisUiEventListenerImpl;
import ch.elexis.core.ui.icons.Images;
import ch.elexis.core.ui.util.SWTHelper;
import ch.elexis.core.ui.util.ViewMenus;
import ch.elexis.core.ui.util.viewers.DefaultLabelProvider;
import ch.elexis.data.AUF;
import ch.elexis.data.Fall;
import ch.elexis.data.Konsultation;
import ch.elexis.data.Patient;
import ch.elexis.data.Query;
import ch.rgw.tools.ExHandler;
/**
* Arbeitsunfähigkeitszeugnisse erstellen und verwalten.
......@@ -146,36 +147,13 @@ public class AUF2 extends ViewPart implements IActivationListener {
@Override
public void run(){
Patient pat = (Patient) ElexisEventDispatcher.getSelected(Patient.class);
if (pat == null) {
SWTHelper.showError(Messages.AUF2_NoPatientSelected, //$NON-NLS-1$
Messages.AUF2_PleaseDoSelectPatient); //$NON-NLS-1$
return;
}
Konsultation kons =
(Konsultation) ElexisEventDispatcher.getSelected(Konsultation.class);
Fall fall = null;
if (kons != null) {
fall = kons.getFall();
if (fall == null) {
SWTHelper.showError(Messages.AUF2_noCaseSelected, Messages.AUF2_selectCase); //$NON-NLS-1$ //$NON-NLS-2$
return;
}
if (!fall.getPatient().equals(pat)) {
kons = null;
}
}
if (kons == null) {
kons = pat.getLetzteKons(false);
if (kons == null) {
SWTHelper.showError(Messages.AUF2_noCaseSelected, Messages.AUF2_selectCase); //$NON-NLS-1$ //$NON-NLS-2$
return;
}
fall = kons.getFall();
IHandlerService handlerService =
(IHandlerService) PlatformUI.getWorkbench().getService(IHandlerService.class);
try {
handlerService.executeCommand(AufNewHandler.CMD_ID, null);
} catch (Exception e) {
LoggerFactory.getLogger(BriefAuswahl.class).error("cannot execute cmd", e);
}
new EditAUFDialog(getViewSite().getShell(), null, fall).open();
tv.refresh(false);
}
};
delAUF = new Action(Messages.AUF2_delete) { //$NON-NLS-1$
......@@ -219,14 +197,13 @@ public class AUF2 extends ViewPart implements IActivationListener {
@Override
public void run(){
IHandlerService handlerService =
(IHandlerService) PlatformUI.getWorkbench().getService(IHandlerService.class);
try {
AUFZeugnis az = (AUFZeugnis) getViewSite().getPage().showView(AUFZeugnis.ID);
AUF actAUF = (ch.elexis.data.AUF) ElexisEventDispatcher.getSelected(AUF.class);
az.createAUZ(actAUF);
} catch (Exception ex) {
ExHandler.handle(ex);
handlerService.executeCommand(AufPrintHandler.CMD_ID, null);
} catch (Exception e) {
LoggerFactory.getLogger(BriefAuswahl.class).error("cannot execute cmd", e);
}
}
};
}
......@@ -276,4 +253,10 @@ public class AUF2 extends ViewPart implements IActivationListener {
}
}
public void refreshTable(boolean updateLbls){
if (tv != null) {
tv.refresh(updateLbls);
}
}
}
......@@ -27,7 +27,6 @@ import ch.elexis.core.ui.text.EditLocalDocumentUtil;
import ch.elexis.core.ui.text.ITextPlugin.ICallback;
import ch.elexis.core.ui.text.ITextPlugin.Parameter;
import ch.elexis.core.ui.text.TextContainer;
import ch.elexis.data.AUF;
import ch.elexis.data.Brief;
import ch.elexis.data.Konsultation;
......@@ -60,7 +59,7 @@ public class AUFZeugnis extends ViewPart implements ICallback, IActivationListen
text.setFocus();
}
public void createAUZ(final AUF auf){
public void createAUZ(){
actBrief =
text.createFromTemplateName(Konsultation.getAktuelleKons(), TT_AUF_CERT, Brief.AUZ, //$NON-NLS-1$
null, null);
......
......@@ -57,7 +57,9 @@ import org.eclipse.ui.PlatformUI;
import org.eclipse.ui.commands.ICommandService;
import org.eclipse.ui.forms.widgets.Form;
import org.eclipse.ui.forms.widgets.FormToolkit;
import org.eclipse.ui.handlers.IHandlerService;
import org.eclipse.ui.part.ViewPart;
import org.slf4j.LoggerFactory;
import ch.elexis.core.constants.Preferences;
import ch.elexis.core.data.activator.CoreHub;
......@@ -68,8 +70,7 @@ import ch.elexis.core.ui.UiDesk;
import ch.elexis.core.ui.actions.GlobalActions;
import ch.elexis.core.ui.actions.GlobalEventDispatcher;
import ch.elexis.core.ui.actions.IActivationListener;
import ch.elexis.core.ui.dialogs.DocumentSelectDialog;
import ch.elexis.core.ui.dialogs.SelectFallDialog;
import ch.elexis.core.ui.commands.BriefNewHandler;
import ch.elexis.core.ui.events.ElexisUiEventListenerImpl;
import ch.elexis.core.ui.icons.Images;
import ch.elexis.core.ui.locks.LockRequestingAction;
......@@ -77,6 +78,7 @@ import ch.elexis.core.ui.services.LocalDocumentServiceHolder;
import ch.elexis.core.ui.util.SWTHelper;
import ch.elexis.core.ui.util.ViewMenus;
import ch.elexis.core.ui.util.viewers.CommonViewer;
import ch.elexis.core.ui.util.viewers.CommonViewer.Message;
import ch.elexis.core.ui.util.viewers.CommonViewer.PoDoubleClickListener;
import ch.elexis.core.ui.util.viewers.DefaultContentProvider;
import ch.elexis.core.ui.util.viewers.DefaultControlFieldProvider;
......@@ -84,9 +86,6 @@ import ch.elexis.core.ui.util.viewers.DefaultLabelProvider;
import ch.elexis.core.ui.util.viewers.SimpleWidgetProvider;
import ch.elexis.core.ui.util.viewers.ViewerConfigurer;
import ch.elexis.data.Brief;
import ch.elexis.data.Fall;
import ch.elexis.data.Konsultation;
import ch.elexis.data.Kontakt;
import ch.elexis.data.Patient;
import ch.elexis.data.PersistentObject;
import ch.elexis.data.Query;
......@@ -413,62 +412,12 @@ public class BriefAuswahl extends ViewPart implements
briefNeuAction = new Action(Messages.BriefAuswahlNewButtonText) { //$NON-NLS-1$
@Override
public void run(){
Patient pat = ElexisEventDispatcher.getSelectedPatient();
if (pat == null) {
MessageDialog.openInformation(UiDesk.getTopShell(),
Messages.BriefAuswahlNoPatientSelected,
Messages.BriefAuswahlNoPatientSelected);
return;
}
Fall selectedFall = (Fall) ElexisEventDispatcher.getSelected(Fall.class);
if (selectedFall == null) {
SelectFallDialog sfd = new SelectFallDialog(UiDesk.getTopShell());
sfd.open();
if (sfd.result != null) {
ElexisEventDispatcher.fireSelectionEvent(sfd.result);
} else {
MessageDialog.openInformation(UiDesk.getTopShell(),
Messages.TextView_NoCaseSelected, //$NON-NLS-1$
Messages.TextView_SaveNotPossibleNoCaseAndKonsSelected); //$NON-NLS-1$
return;
}
}
Konsultation selectedKonsultation =
(Konsultation) ElexisEventDispatcher.getSelected(Konsultation.class);
if (selectedKonsultation == null) {
Konsultation k = pat.getLetzteKons(false);
if (k == null) {
k = ((Fall) ElexisEventDispatcher.getSelected(Fall.class))
.neueKonsultation();
k.setMandant(CoreHub.actMandant);
}
ElexisEventDispatcher.fireSelectionEvent(k);
}
TextView tv = null;
IHandlerService handlerService =
(IHandlerService) PlatformUI.getWorkbench().getService(IHandlerService.class);
try {
DocumentSelectDialog bs = new DocumentSelectDialog(getViewSite().getShell(),
CoreHub.actMandant, DocumentSelectDialog.TYPE_CREATE_DOC_WITH_TEMPLATE);
if (bs.open() == Dialog.OK) {
tv = (TextView) getSite().getPage().showView(TextView.ID);
// trick: just supply a dummy address for creating the doc
Kontakt address = null;
if (DocumentSelectDialog
.getDontAskForAddresseeForThisTemplate(bs.getSelectedDocument()))
address = Kontakt.load("-1"); //$NON-NLS-1$
tv.createDocument(bs.getSelectedDocument(), bs.getBetreff(), address);
tv.setName();
CTabItem sel = ctab.getSelection();
if (sel != null) {
CommonViewer cv = (CommonViewer) sel.getData();
cv.notify(CommonViewer.Message.update_keeplabels);
}
}
} catch (Exception ex) {
ExHandler.handle(ex);
handlerService.executeCommand(BriefNewHandler.CMD_ID, null);
} catch (Exception e) {
LoggerFactory.getLogger(BriefAuswahl.class).error("cannot execute cmd", e);
}
}
};
......@@ -768,4 +717,14 @@ public class BriefAuswahl extends ViewPart implements
public ElexisEvent getElexisEventFilter(){
return template;
}
public void refreshCV(Message updateKeeplabels){
if (ctab != null && !ctab.isDisposed()) {
CTabItem sel = ctab.getSelection();
if (sel != null) {
CommonViewer cv = (CommonViewer) sel.getData();
cv.notify(updateKeeplabels);
}
}
}
}
......@@ -451,7 +451,7 @@ public class TextView extends ViewPart implements IActivationListener {
}
void setName(){
public void setName(){
String n = ""; //$NON-NLS-1$
if (actBrief == null) {
setPartName(Messages.TextView_noLetterSelected); //$NON-NLS-1$
......
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment