public class FileStoreCustomizations extends java.lang.Object implements IXViewerCustomizations
Constructor and Description |
---|
FileStoreCustomizations(java.io.File pathToCustomizations,
java.lang.String fileNamePrefix,
java.lang.String fileNamePostfix,
java.lang.String defaultCustomizationFileName,
java.lang.String defaultCustomDataXml) |
Modifier and Type | Method and Description |
---|---|
void |
deleteCustomization(org.eclipse.nebula.widgets.xviewer.core.model.CustomizeData custData)
Delete customization
|
java.util.List<org.eclipse.nebula.widgets.xviewer.core.model.CustomizeData> |
getSavedCustDatas()
Load and return saved customizations
|
org.eclipse.nebula.widgets.xviewer.core.model.CustomizeData |
getUserDefaultCustData()
Return customization saved as default
|
boolean |
isCustomizationPersistAvailable()
Return true if this XViewer is allowed to save local/shared customizations
|
boolean |
isCustomizationUserDefault(org.eclipse.nebula.widgets.xviewer.core.model.CustomizeData custData)
Return true if given customization is the default
|
void |
saveCustomization(org.eclipse.nebula.widgets.xviewer.core.model.CustomizeData custData)
Called to have customization saved
|
void |
setUserDefaultCustData(org.eclipse.nebula.widgets.xviewer.core.model.CustomizeData newCustData,
boolean set)
Set given customization as the user default
|
public FileStoreCustomizations(java.io.File pathToCustomizations, java.lang.String fileNamePrefix, java.lang.String fileNamePostfix, java.lang.String defaultCustomizationFileName, java.lang.String defaultCustomDataXml)
public void deleteCustomization(org.eclipse.nebula.widgets.xviewer.core.model.CustomizeData custData) throws java.lang.Exception
IXViewerCustomizations
deleteCustomization
in interface IXViewerCustomizations
java.lang.Exception
public java.util.List<org.eclipse.nebula.widgets.xviewer.core.model.CustomizeData> getSavedCustDatas() throws XViewerException
IXViewerCustomizations
getSavedCustDatas
in interface IXViewerCustomizations
XViewerException
public org.eclipse.nebula.widgets.xviewer.core.model.CustomizeData getUserDefaultCustData() throws XViewerException
IXViewerCustomizations
getUserDefaultCustData
in interface IXViewerCustomizations
XViewerException
public boolean isCustomizationPersistAvailable()
IXViewerCustomizations
isCustomizationPersistAvailable
in interface IXViewerCustomizations
public boolean isCustomizationUserDefault(org.eclipse.nebula.widgets.xviewer.core.model.CustomizeData custData) throws XViewerException
IXViewerCustomizations
isCustomizationUserDefault
in interface IXViewerCustomizations
XViewerException
public void saveCustomization(org.eclipse.nebula.widgets.xviewer.core.model.CustomizeData custData) throws java.lang.Exception
IXViewerCustomizations
saveCustomization
in interface IXViewerCustomizations
java.lang.Exception
public void setUserDefaultCustData(org.eclipse.nebula.widgets.xviewer.core.model.CustomizeData newCustData, boolean set) throws XViewerException
IXViewerCustomizations
setUserDefaultCustData
in interface IXViewerCustomizations
XViewerException