Skip to content

Commit

Permalink
removed old unused methods
Browse files Browse the repository at this point in the history
  • Loading branch information
LorenzoBettini committed Dec 4, 2022
1 parent bc82b51 commit 57dfeec
Show file tree
Hide file tree
Showing 2 changed files with 23 additions and 42 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -28,9 +28,7 @@ Require-Bundle: org.eclipse.swtbot.go;bundle-version="2.3.0",
org.eclipse.xtext.ui.testing,
org.eclipse.xtext.testing,
org.slf4j.api;bundle-version="1.7.30",
org.apache.log4j;bundle-version="1.2.19",
org.eclipse.jdt.core;bundle-version="3.32.0",
org.apache.commons.commons-io;bundle-version="2.11.0"
org.apache.log4j;bundle-version="1.2.19"
Bundle-Activator: org.eclipse.emf.parsley.tests.swtbot.activator.EmfParsleySwtBotTestsActivator
Export-Package: org.eclipse.emf.parsley.tests.swtbot,
org.eclipse.emf.parsley.tests.swtbot.editors,
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -30,7 +30,6 @@
import java.util.regex.Matcher;
import java.util.regex.Pattern;

import org.apache.commons.io.FileUtils;
import org.apache.log4j.Logger;
import org.eclipse.core.resources.IFile;
import org.eclipse.core.resources.IMarker;
Expand All @@ -53,7 +52,6 @@
import org.eclipse.emf.parsley.tests.swtbot.activator.EmfParsleySwtBotTestsActivator;
import org.eclipse.emf.parsley.tests.swtbot.views.TestOnSelectionLibraryTreeViewWithResourceURI;
import org.eclipse.emf.parsley.util.ActionBarsUtils;
import org.eclipse.jdt.core.JavaCore;
import org.eclipse.jface.action.IStatusLineManager;
import org.eclipse.jface.action.StatusLineManager;
import org.eclipse.jface.action.SubStatusLineManager;
Expand Down Expand Up @@ -1323,21 +1321,6 @@ private boolean shouldIgnoreIssue(IMarker iMarker) throws CoreException {
string.contains("This plug-in does not export all of its packages");
}

protected void setEditorContentsSaveAndWaitForAutoBuild(
SWTBotEditor editor, CharSequence contents) throws CoreException {
setEditorContentsSaveAndWaitForAutoBuild(editor, contents, true);
}

protected void setEditorContentsSaveAndWaitForAutoBuild(
SWTBotEditor editor, CharSequence contents, boolean expectNoErrors) throws CoreException {
editor.toTextEditor().setText(contents.toString());
editor.save();
if (expectNoErrors)
assertNoErrorsInProjectAfterAutoBuild();
else
waitForBuild();
}

protected void assertTextComponent(SWTFormsBot formbot, String text, final boolean editable) {
final SWTBotText t = formbot.text(text);
Display.getDefault().syncExec(new Runnable() {
Expand Down Expand Up @@ -1642,28 +1625,28 @@ protected void createNewSiblingAndAssertTableSize(SWTBotTable table, int initial
assertTableItemsSize(table, initialTableItemsSize+1);
}

protected void clearJdtIndex() {
var jdtMetadata = JavaCore.getPlugin().getStateLocation().toFile();
bot.waitUntil(new DefaultCondition() {

@Override
public boolean test() {
System.err.println("Clean up index " + jdtMetadata.getAbsolutePath());
try {
FileUtils.deleteDirectory(jdtMetadata);
} catch (IOException e) {
System.err.println("retrying due to exception while cleaning");
return false;
}
return true;
}

@Override
public String getFailureMessage() {
return "cannot delete " + jdtMetadata;
}
});
}
// protected void clearJdtIndex() {
// var jdtMetadata = JavaCore.getPlugin().getStateLocation().toFile();
// bot.waitUntil(new DefaultCondition() {
//
// @Override
// public boolean test() {
// System.err.println("Clean up index " + jdtMetadata.getAbsolutePath());
// try {
// FileUtils.deleteDirectory(jdtMetadata);
// } catch (IOException e) {
// System.err.println("retrying due to exception while cleaning");
// return false;
// }
// return true;
// }
//
// @Override
// public String getFailureMessage() {
// return "cannot delete " + jdtMetadata;
// }
// });
// }

// protected void maximizeCurrentWindow() {
// Display.getDefault().syncExec(new Runnable() {
Expand Down

0 comments on commit 57dfeec

Please sign in to comment.