This repository has been archived by the owner on Dec 5, 2024. It is now read-only.
-
Notifications
You must be signed in to change notification settings - Fork 44
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
Add installation of one p2 site at once, fixes #2140
Signed-off-by: Ondrej Dockal <[email protected]>
- Loading branch information
Showing
3 changed files
with
63 additions
and
1 deletion.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
42 changes: 42 additions & 0 deletions
42
...ntegration/test/installation/common/preferences/AvailableSoftwareSitesPreferencePage.java
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,42 @@ | ||
/******************************************************************************* | ||
* Copyright (c) 2017 Red Hat, Inc and others. | ||
* 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: | ||
* Red Hat, Inc - initial API and implementation | ||
*******************************************************************************/ | ||
package org.eclipse.reddeer.integration.test.installation.common.preferences; | ||
|
||
import java.util.List; | ||
|
||
import org.eclipse.reddeer.core.reference.ReferencedComposite; | ||
import org.eclipse.reddeer.jface.preference.PreferencePage; | ||
import org.eclipse.reddeer.swt.api.TableItem; | ||
import org.eclipse.reddeer.swt.impl.table.DefaultTable; | ||
|
||
/** | ||
* Represents a Install/Update -> Available Update Sites preference page. | ||
* | ||
* @author Ondrej Dockal | ||
*/ | ||
public class AvailableSoftwareSitesPreferencePage extends PreferencePage { | ||
|
||
public AvailableSoftwareSitesPreferencePage(ReferencedComposite referencedComposite) { | ||
super(referencedComposite, new String[] {"Install/Update", "Available Software Sites"}); | ||
} | ||
|
||
public List<TableItem> getItems() { | ||
return new DefaultTable().getItems(); | ||
} | ||
|
||
public void toggleAllItems(boolean toggle) { | ||
for(TableItem item: getItems()) { | ||
item.setChecked(toggle); | ||
} | ||
} | ||
|
||
} |