Skip to content

Commit

Permalink
Merge pull request #1012 from Mailaender/static-data-explorer-toolbar
Browse files Browse the repository at this point in the history
Fixed Data Explorer buttons disappearing on perspective reset
  • Loading branch information
eselmeister authored May 4, 2022
2 parents e2f3473 + 3518674 commit e025f2a
Show file tree
Hide file tree
Showing 9 changed files with 454 additions and 479 deletions.
Original file line number Diff line number Diff line change
@@ -1,5 +1,5 @@
/*******************************************************************************
* Copyright (c) 2013, 2020 Lablicate GmbH.
* Copyright (c) 2013, 2022 Lablicate GmbH.
*
* All rights reserved.
* This program and the accompanying materials are made available under the
Expand All @@ -18,18 +18,18 @@

import org.eclipse.chemclipse.ux.extension.msd.ui.Activator;
import org.eclipse.chemclipse.ux.extension.msd.ui.support.MassSpectrumSupport;
import org.eclipse.chemclipse.ux.extension.ui.swt.DataExplorerUI;
import org.eclipse.chemclipse.ux.extension.ui.swt.MultiDataExplorerTreeUI;
import org.eclipse.e4.ui.di.Focus;
import org.eclipse.swt.widgets.Composite;

public class MassSpectrumFileExplorer {

private DataExplorerUI explorerUI;
private MultiDataExplorerTreeUI explorerUI;

@Inject
public MassSpectrumFileExplorer(Composite parent) {

explorerUI = new DataExplorerUI(parent, Activator.getDefault().getPreferenceStore());
explorerUI = new MultiDataExplorerTreeUI(parent, Activator.getDefault().getPreferenceStore());
explorerUI.setSupplierFileIdentifier(Collections.singleton(MassSpectrumSupport.getInstanceEditorSupport()));
explorerUI.expandLastDirectoryPath();
}
Expand Down
Original file line number Diff line number Diff line change
@@ -1,5 +1,5 @@
/*******************************************************************************
* Copyright (c) 2014, 2020 Lablicate GmbH.
* Copyright (c) 2014, 2022 Lablicate GmbH.
*
* All rights reserved.
* This program and the accompanying materials are made available under the
Expand All @@ -18,18 +18,18 @@

import org.eclipse.chemclipse.ux.extension.msd.ui.Activator;
import org.eclipse.chemclipse.ux.extension.msd.ui.support.DatabaseSupport;
import org.eclipse.chemclipse.ux.extension.ui.swt.DataExplorerUI;
import org.eclipse.chemclipse.ux.extension.ui.swt.MultiDataExplorerTreeUI;
import org.eclipse.e4.ui.di.Focus;
import org.eclipse.swt.widgets.Composite;

public class MassSpectrumLibraryExplorer {

private DataExplorerUI explorerUI;
private MultiDataExplorerTreeUI explorerUI;

@Inject
public MassSpectrumLibraryExplorer(Composite parent) {

explorerUI = new DataExplorerUI(parent, Activator.getDefault().getPreferenceStore());
explorerUI = new MultiDataExplorerTreeUI(parent, Activator.getDefault().getPreferenceStore());
explorerUI.setSupplierFileIdentifier((Collections.singleton(DatabaseSupport.getInstanceEditorSupport())));
explorerUI.expandLastDirectoryPath();
}
Expand Down

This file was deleted.

Loading

0 comments on commit e025f2a

Please sign in to comment.