Skip to content

Commit

Permalink
Convert plugin option to a list (#169)
Browse files Browse the repository at this point in the history
* Implement plugins path option as a list
  • Loading branch information
byrnHDF authored Dec 4, 2023
1 parent 680b721 commit 60b09ee
Show file tree
Hide file tree
Showing 5 changed files with 734 additions and 267 deletions.
17 changes: 13 additions & 4 deletions src/org.hdfgroup.hdfview/hdf/view/HDFView.java
Original file line number Diff line number Diff line change
Expand Up @@ -295,7 +295,7 @@ public HDFView(String root, String start_dir)
}

if (FileFormat.getFileFormat(FileFormat.FILE_TYPE_HDF5) != null)
H5.H5PLappend(ViewProperties.getPluginDir());
ViewProperties.loadPluginPaths();

treeViews = ViewProperties.getTreeViewList();
metaDataViews = ViewProperties.getMetaDataViewList();
Expand Down Expand Up @@ -937,9 +937,6 @@ public void widgetSelected(SelectionEvent e)
// currentDir until isWorkDirChanged() is fixed
currentDir = ViewProperties.getWorkDir();

if (FileFormat.getFileFormat(FileFormat.FILE_TYPE_HDF5) != null)
H5.H5PLappend(ViewProperties.getPluginDir());

// if (userOptionDialog.isFontChanged()) {
Font font = null;

Expand Down Expand Up @@ -1381,26 +1378,36 @@ public void drop(DropTargetEvent e)
}

/**
* Get a list of treeview implementations.
*
* @return a list of treeview implementations.
*/
public static final List<String> getListOfTreeViews() { return treeViews; }

/**
* Get a list of imageview implementations.
*
* @return a list of imageview implementations.
*/
public static final List<String> getListOfImageViews() { return imageViews; }

/**
* Get a list of tableview implementations.
*
* @return a list of tableview implementations.
*/
public static final List<?> getListOfTableViews() { return tableViews; }

/**
* Get a list of metaDataview implementations.
*
* @return a list of metaDataview implementations.
*/
public static final List<?> getListOfMetaDataViews() { return metaDataViews; }

/**
* Get a list of paletteview implementations.
*
* @return a list of paletteview implementations.
*/
public static final List<?> getListOfPaletteViews() { return paletteViews; }
Expand All @@ -1412,6 +1419,8 @@ public TreeView getTreeView()
}

/**
* Get the combobox associated with a URL entry.
*
* @return the combobox associated with a URL entry.
*/
public Combo getUrlBar() { return urlBar; }
Expand Down
Loading

0 comments on commit 60b09ee

Please sign in to comment.