-
Notifications
You must be signed in to change notification settings - Fork 23
/
ILibraryLinker.java
61 lines (41 loc) · 1.87 KB
/
ILibraryLinker.java
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
52
53
54
55
56
57
58
59
60
61
/*******************************************************************************
* Copyright (c) 2024 Primetals Technologies Austria GmbH
*
* This program and the accompanying materials are made available under the
* terms of the Eclipse Public License 2.0 which is available at
* http://www.eclipse.org/legal/epl-2.0.
*
* SPDX-License-Identifier: EPL-2.0
*
* Contributors:
* Fabio Gandolfi - initial API and implementation and/or initial documentation
*******************************************************************************/
package org.eclipse.fordiac.ide.model.typelibrary;
import java.io.File;
import java.io.IOException;
import java.util.Collection;
import java.util.List;
import java.util.Set;
import java.util.zip.ZipEntry;
import org.eclipse.core.resources.IContainer;
import org.eclipse.core.resources.IFolder;
import org.eclipse.core.resources.IProject;
public interface ILibraryLinker {
void extractLibrary(final File file, final IProject project, boolean autoimport) throws IOException;
File newFile(final File destinationDir, final ZipEntry zipEntry) throws IOException;
void setSelectedProject(final IProject project);
void setSelectedProjectWithTypeLib(final IProject project, TypeLibrary typeLib);
File[] listLibDirectories(final String directory);
void importLibrary(final java.net.URI uri);
void importLibraries(final Collection<java.net.URI> uris);
boolean removeOldLibVersion(final IFolder libDirectory);
void createTypeEntriesManually(final IContainer container);
void updateFBInstancesWithNewTypeVersion();
Set<TypeEntry> cacheOldTypes(final IFolder oldFolder);
List<String> findLinkedLibs();
File[] listDirectoriesContainingArchives();
File[] listExtractedFiles();
File[] listStandardLibraries();
void updateLibrary(String symbolicName, String version);
void checkManifestFile(final IProject project, final TypeLibrary typeLibrary);
}