Skip to content

Commit

Permalink
typo fixes
Browse files Browse the repository at this point in the history
  • Loading branch information
modrz committed Jan 10, 2017
1 parent d312a5d commit 0892843
Show file tree
Hide file tree
Showing 3 changed files with 22 additions and 22 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -134,7 +134,7 @@ private SelectionListener createDiscoverListener() {
public void widgetSelected(final SelectionEvent e) {
disableControls();
progressBar = createProgress(parent);

final QualifiedName key = new QualifiedName(RedPlugin.PLUGIN_ID, "result");
final Job job = new Job("Looking for python installations") {
@Override
Expand Down Expand Up @@ -337,7 +337,7 @@ public String apply(final RobotRuntimeEnvironment env) {
}));
getPreferenceStore().putValue(RedPreferences.ACTIVE_RUNTIME, activePath);
getPreferenceStore().putValue(RedPreferences.OTHER_RUNTIMES, allPaths);

MessageDialog.openInformation(getShell(), "Rebuild required",
"The changes you've made requires full workspace rebuild.");

Expand All @@ -362,14 +362,14 @@ public void run(final IProgressMonitor monitor) throws InvocationTargetException
}
} catch (final CoreException e) {
MessageDialog.openError(getShell(), "Workspace rebuild",
"Problems occured during workspace build " + e.getMessage());
"Problems occurred during workspace build " + e.getMessage());
}
}
}
});
} catch (InvocationTargetException | InterruptedException e) {
MessageDialog.openError(getShell(), "Workspace rebuild",
"Problems occured during workspace build " + e.getMessage());
"Problems occurred during workspace build " + e.getMessage());
}
}

Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -125,7 +125,7 @@ public void run() {
}
} catch (final InvocationTargetException e) {
MessageDialog.openError(getActiveShell(), "Discovering libraries",
"Problems occured during discovering libraries: " + e.getCause().getMessage());
"Problems occurred during discovering libraries: " + e.getCause().getMessage());
} finally {
isWorkspaceJobRunning.set(false);
}
Expand Down Expand Up @@ -211,9 +211,9 @@ public void processStartSuiteEvent(final String suiteName) {
}
});

final List<ILineHandler> dryRunOutputlisteners = newArrayList();
dryRunOutputlisteners.add(dryRunOutputParser);
dryRunHandler.startDryRunHandlerThread(dryRunCommandLine.getPort(), dryRunOutputlisteners);
final List<ILineHandler> dryRunOutputListeners = newArrayList();
dryRunOutputListeners.add(dryRunOutputParser);
dryRunHandler.startDryRunHandlerThread(dryRunCommandLine.getPort(), dryRunOutputListeners);

dryRunHandler.executeDryRunProcess(dryRunCommandLine, getProjectLocationFile());
}
Expand Down Expand Up @@ -265,7 +265,7 @@ private void sendProjectConfigChangedEvent(final List<ReferencedLibrary> addedLi
final RedProjectConfigEventData<List<ReferencedLibrary>> eventData = new RedProjectConfigEventData<>(
robotProject.getConfigurationFile(), addedLibs);
if (eventBroker == null) {
eventBroker = (IEventBroker) PlatformUI.getWorkbench().getService(IEventBroker.class);
eventBroker = PlatformUI.getWorkbench().getService(IEventBroker.class);
}
if (eventBroker != null) {
eventBroker.send(RobotProjectConfigEvents.ROBOT_CONFIG_LIBRARIES_STRUCTURE_CHANGED, eventData);
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -304,11 +304,11 @@ private RobotFileOutput parse(final RobotFileOutput parsingOutput, final File ro
libraryFixer.checkAndFixLine(parsingOutput, processingState);
/**
* special for case
*
*
* <pre>
* *** Settings
* Suite Setup Keyword
*
*
* ... argument_x
* </pre>
*/
Expand All @@ -328,14 +328,14 @@ private RobotFileOutput parse(final RobotFileOutput parsingOutput, final File ro
isEOL = true;
final List<RobotLine> fileContent = fileModel.getFileContent();
if (fileContent.size() > 1) {
RobotLine robotLine = fileContent.get(fileContent.size() - 1);
final RobotLine robotLine = fileContent.get(fileContent.size() - 1);
if (robotLine.getEndOfLine().getFilePosition().isNotSet()) {
final List<IRobotLineElement> lastLineElements = robotLine.getLineElements();
robotLine.setEndOfLine(endOfLine, currentOffset,
lastLineElements.get(lastLineElements.size() - 1).getEndColumn());
} else {
if (!robotLine.getEndOfLine().getTypes().contains(EndOfLineTypes.EOF)) {
RobotLine newLine = new RobotLine(lineNumber, fileModel);
final RobotLine newLine = new RobotLine(lineNumber, fileModel);
newLine.setEndOfLine(endOfLine, currentOffset, 0);
fileModel.addNewLine(newLine);
}
Expand Down Expand Up @@ -368,7 +368,7 @@ private RobotFileOutput parse(final RobotFileOutput parsingOutput, final File ro
lineReader.close();
} catch (final IOException e) {
parsingOutput.addBuildMessage(BuildMessage.createErrorMessage(
"Error occured, when file was closing. Stack trace\n\t" + e, robotFile.getAbsolutePath()));
"Error occurred, when file was closing. Stack trace\n\t" + e, robotFile.getAbsolutePath()));
}
}

Expand Down Expand Up @@ -402,10 +402,10 @@ protected int handleCRLFcaseSplittedBetweenBuffers(final RobotFileOutput parsing
final int lineNumber, final int currentOffset) {
int newOffset = currentOffset;
if (lineNumber > 1) {
RobotLine prevLine = parsingOutput.getFileModel().getFileContent().get(lineNumber - 2);
IRobotLineElement prevEOL = prevLine.getEndOfLine();
List<Constant> lineEnd = lineHolder.getLineEnd(prevEOL.getStartOffset());
IRobotLineElement buildEOL = EndOfLineBuilder.newInstance()
final RobotLine prevLine = parsingOutput.getFileModel().getFileContent().get(lineNumber - 2);
final IRobotLineElement prevEOL = prevLine.getEndOfLine();
final List<Constant> lineEnd = lineHolder.getLineEnd(prevEOL.getStartOffset());
final IRobotLineElement buildEOL = EndOfLineBuilder.newInstance()
.setEndOfLines(lineEnd)
.setStartColumn(prevEOL.getStartColumn())
.setStartOffset(prevEOL.getStartOffset())
Expand Down Expand Up @@ -539,11 +539,11 @@ private boolean isCorrectTableHeader(final RobotToken robotToken) {
RobotTokenType.KEYWORDS_TABLE_HEADER);

final String raw = robotToken.getRaw().replaceAll("\\s+|[*]", "");
List<IRobotTokenType> types = robotToken.getTypes();
for (IRobotTokenType type : types) {
final List<IRobotTokenType> types = robotToken.getTypes();
for (final IRobotTokenType type : types) {
if (tableHeadersTypes.contains(type)) {
List<String> representations = type.getRepresentation();
for (String r : representations) {
final List<String> representations = type.getRepresentation();
for (final String r : representations) {
if (r.replaceAll("\\s+", "").equalsIgnoreCase(raw)) {
result = true;
break;
Expand Down

0 comments on commit 0892843

Please sign in to comment.