Class LibraryFileValidator
java.lang.Object
com.e1c.g5.v8.dt.internal.library.ui.LibraryFileValidator
- All Implemented Interfaces:
org.eclipse.core.databinding.validation.IValidator<String>
- Direct Known Subclasses:
LibraryAlreadyAddedInRepositoryValidator
public class LibraryFileValidator
extends Object
implements org.eclipse.core.databinding.validation.IValidator<String>
The library file validator.
-
Constructor Summary
ConstructorsConstructorDescriptionLibraryFileValidator(org.eclipse.core.databinding.observable.value.IObservableValue<String> libraryNameObservableValue, org.eclipse.core.databinding.observable.value.IObservableValue<String> libraryVersionObservableValue, org.eclipse.core.databinding.observable.value.IObservableValue<String> libraryVendorObservableValue, org.eclipse.core.databinding.observable.value.IObservableValue<String> libraryRuntimeVersionObservableValue, ILibraryProjectManager libraryProjectManager) Creates a new instance. -
Method Summary
Modifier and TypeMethodDescriptionorg.eclipse.core.runtime.IStatusprotected org.eclipse.core.runtime.IStatusvalidateLibraryMetainformation(LibraryDescriptor libraryDescriptor) Validates the library metainformation.
-
Constructor Details
-
LibraryFileValidator
public LibraryFileValidator(org.eclipse.core.databinding.observable.value.IObservableValue<String> libraryNameObservableValue, org.eclipse.core.databinding.observable.value.IObservableValue<String> libraryVersionObservableValue, org.eclipse.core.databinding.observable.value.IObservableValue<String> libraryVendorObservableValue, org.eclipse.core.databinding.observable.value.IObservableValue<String> libraryRuntimeVersionObservableValue, ILibraryProjectManager libraryProjectManager) Creates a new instance.- Parameters:
libraryNameObservableValue- the library name observable value to fill, cannot benulllibraryVersionObservableValue- the library version observable value to fill, cannot benulllibraryVendorObservableValue- the library vendor observable value to fill, cannot benulllibraryRuntimeVersionObservableValue- the library runtime version observable value to fill, cannot benulllibraryProjectManager- the library project manager, cannot benull
-
-
Method Details
-
validate
- Specified by:
validatein interfaceorg.eclipse.core.databinding.validation.IValidator<String>
-
validateLibraryMetainformation
protected org.eclipse.core.runtime.IStatus validateLibraryMetainformation(LibraryDescriptor libraryDescriptor) Validates the library metainformation. By default returns statusStatus#OK_STATUS.- Parameters:
libraryDescriptor- the library descriptor, cannot benull- Returns:
- a status object indicating whether the validation succeeded
Status#OK_STATUSor not, nevernull
-