mirror of
https://github.com/eclipse-cdt/cdt
synced 2025-06-05 08:46:02 +02:00
autotools: Cosmetics.
Various small readability improvements in autotools.ui bundle: * Remove useless comments * Remove methods merely calling super(). * Use SelectionAdapter when only one method of SelectionListener implemented * Multi-catch exceptions * Specialize return types to reduce casting after that * Remove commented code * Remove unused methods * Use String.isEmpty Change-Id: Iacda4094ee8b3bf80e1509cc3b39f55b6fcb96c9 Signed-off-by: Alexander Kurtakov <akurtako@redhat.com>
This commit is contained in:
parent
85b481a99a
commit
ca3aa5de95
19 changed files with 26 additions and 256 deletions
|
@ -12,7 +12,6 @@ package org.eclipse.cdt.autotools.ui.editors;
|
||||||
|
|
||||||
import java.util.Iterator;
|
import java.util.Iterator;
|
||||||
|
|
||||||
import org.eclipse.core.runtime.CoreException;
|
|
||||||
import org.eclipse.jface.text.IDocument;
|
import org.eclipse.jface.text.IDocument;
|
||||||
import org.eclipse.ui.editors.text.TextFileDocumentProvider;
|
import org.eclipse.ui.editors.text.TextFileDocumentProvider;
|
||||||
|
|
||||||
|
@ -25,15 +24,6 @@ public class AutoconfDocumentProvider extends TextFileDocumentProvider {
|
||||||
disconnect(e.next());
|
disconnect(e.next());
|
||||||
}
|
}
|
||||||
|
|
||||||
@Override
|
|
||||||
public void connect(Object element) throws CoreException {
|
|
||||||
super.connect(element);
|
|
||||||
// Remove all error markers for file as we will parse
|
|
||||||
// from scratch.
|
|
||||||
// AutoconfErrorHandler h = new AutoconfErrorHandler(getDocument(element));
|
|
||||||
// h.removeAllExistingMarkers();
|
|
||||||
}
|
|
||||||
|
|
||||||
@Override
|
@Override
|
||||||
public IDocument getDocument(Object element) {
|
public IDocument getDocument(Object element) {
|
||||||
FileInfo info= getFileInfo(element);
|
FileInfo info= getFileInfo(element);
|
||||||
|
|
|
@ -362,10 +362,6 @@ public class AutoconfEditor extends TextEditor implements IAutotoolsEditor, IPro
|
||||||
return fHoverInfo.toString();
|
return fHoverInfo.toString();
|
||||||
}
|
}
|
||||||
|
|
||||||
/*
|
|
||||||
* @see org.eclipse.jface.text.information.IInformationProviderExtension#getInformation2(org.eclipse.jface.text.ITextViewer, org.eclipse.jface.text.IRegion)
|
|
||||||
* @since 3.2
|
|
||||||
*/
|
|
||||||
@Override
|
@Override
|
||||||
public Object getInformation2(ITextViewer textViewer, IRegion subject) {
|
public Object getInformation2(ITextViewer textViewer, IRegion subject) {
|
||||||
return fHoverInfo;
|
return fHoverInfo;
|
||||||
|
|
|
@ -26,14 +26,6 @@ public class Console implements IConsole {
|
||||||
contextId);
|
contextId);
|
||||||
}
|
}
|
||||||
|
|
||||||
// /**
|
|
||||||
// * Constructor for ConfigureConsole.
|
|
||||||
// */
|
|
||||||
// public CConfigureConsole() {
|
|
||||||
// fConsoleManager = AutotoolsPlugin.getDefault().getConsoleManager();
|
|
||||||
// }
|
|
||||||
//
|
|
||||||
|
|
||||||
@Override
|
@Override
|
||||||
public void start(IProject project ) {
|
public void start(IProject project ) {
|
||||||
this.project = project;
|
this.project = project;
|
||||||
|
|
|
@ -96,7 +96,6 @@ public class ErrorParserBlock extends AbstractErrorParserBlock {
|
||||||
} catch (CoreException e) {
|
} catch (CoreException e) {
|
||||||
}
|
}
|
||||||
useBuildInfo = true;
|
useBuildInfo = true;
|
||||||
} else {
|
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
|
||||||
|
|
|
@ -46,9 +46,6 @@ public abstract class AbstractElementListSelectionDialog extends SelectionStatus
|
||||||
|
|
||||||
private StatusInfo fCurrStatus;
|
private StatusInfo fCurrStatus;
|
||||||
|
|
||||||
/*
|
|
||||||
* @private
|
|
||||||
*/
|
|
||||||
protected void access$superOpen() {
|
protected void access$superOpen() {
|
||||||
super.open();
|
super.open();
|
||||||
}
|
}
|
||||||
|
@ -107,10 +104,7 @@ public abstract class AbstractElementListSelectionDialog extends SelectionStatus
|
||||||
text.setLayoutData(spec);
|
text.setLayoutData(spec);
|
||||||
return text;
|
return text;
|
||||||
}
|
}
|
||||||
/*
|
|
||||||
* @private
|
|
||||||
* @see Window#create(Shell)
|
|
||||||
*/
|
|
||||||
@Override
|
@Override
|
||||||
public void create() {
|
public void create() {
|
||||||
super.create();
|
super.create();
|
||||||
|
@ -188,9 +182,6 @@ public abstract class AbstractElementListSelectionDialog extends SelectionStatus
|
||||||
protected AbstractElementListSelectionDialog(Shell parent, ILabelProvider renderer, boolean ignoreCase, boolean multipleSelection) {
|
protected AbstractElementListSelectionDialog(Shell parent, ILabelProvider renderer, boolean ignoreCase, boolean multipleSelection) {
|
||||||
this(parent, "", null, renderer, ignoreCase, multipleSelection); //$NON-NLS-1$
|
this(parent, "", null, renderer, ignoreCase, multipleSelection); //$NON-NLS-1$
|
||||||
}
|
}
|
||||||
/*
|
|
||||||
* @private
|
|
||||||
*/
|
|
||||||
@Override
|
@Override
|
||||||
public int open() {
|
public int open() {
|
||||||
BusyIndicator.showWhile(null, () -> access$superOpen());
|
BusyIndicator.showWhile(null, () -> access$superOpen());
|
||||||
|
|
|
@ -50,8 +50,7 @@ public class AutomakeEditor extends MakefileEditor {
|
||||||
}
|
}
|
||||||
|
|
||||||
@Override
|
@Override
|
||||||
protected void doSetInput(IEditorInput newInput) throws CoreException
|
protected void doSetInput(IEditorInput newInput) throws CoreException {
|
||||||
{
|
|
||||||
super.doSetInput(newInput);
|
super.doSetInput(newInput);
|
||||||
this.input = newInput;
|
this.input = newInput;
|
||||||
|
|
||||||
|
@ -78,7 +77,7 @@ public class AutomakeEditor extends MakefileEditor {
|
||||||
}
|
}
|
||||||
|
|
||||||
public AutomakeDocumentProvider getAutomakefileDocumentProvider() {
|
public AutomakeDocumentProvider getAutomakefileDocumentProvider() {
|
||||||
return (AutomakeDocumentProvider) AutomakeEditorFactory.getDefault().getAutomakefileDocumentProvider();
|
return AutomakeEditorFactory.getDefault().getAutomakefileDocumentProvider();
|
||||||
}
|
}
|
||||||
|
|
||||||
public AutomakefileContentOutlinePage getAutomakeOutlinePage() {
|
public AutomakefileContentOutlinePage getAutomakeOutlinePage() {
|
||||||
|
|
|
@ -18,7 +18,7 @@ import org.eclipse.swt.graphics.Color;
|
||||||
|
|
||||||
public class AutomakeEditorFactory {
|
public class AutomakeEditorFactory {
|
||||||
private IWorkingCopyManager workingCopyManager;
|
private IWorkingCopyManager workingCopyManager;
|
||||||
private IMakefileDocumentProvider automakeFileDocumentProvider;
|
private AutomakeDocumentProvider automakeFileDocumentProvider;
|
||||||
private static volatile AutomakeEditorFactory factory;
|
private static volatile AutomakeEditorFactory factory;
|
||||||
|
|
||||||
/**
|
/**
|
||||||
|
@ -28,7 +28,7 @@ public class AutomakeEditorFactory {
|
||||||
factory = this;
|
factory = this;
|
||||||
}
|
}
|
||||||
|
|
||||||
public synchronized IMakefileDocumentProvider getAutomakefileDocumentProvider() {
|
public synchronized AutomakeDocumentProvider getAutomakefileDocumentProvider() {
|
||||||
if (automakeFileDocumentProvider == null) {
|
if (automakeFileDocumentProvider == null) {
|
||||||
automakeFileDocumentProvider= new AutomakeDocumentProvider();
|
automakeFileDocumentProvider= new AutomakeDocumentProvider();
|
||||||
}
|
}
|
||||||
|
|
|
@ -11,7 +11,6 @@
|
||||||
*******************************************************************************/
|
*******************************************************************************/
|
||||||
package org.eclipse.cdt.internal.autotools.ui.editors.automake;
|
package org.eclipse.cdt.internal.autotools.ui.editors.automake;
|
||||||
|
|
||||||
import java.util.Arrays;
|
|
||||||
import java.util.List;
|
import java.util.List;
|
||||||
|
|
||||||
import org.eclipse.jface.dialogs.IDialogConstants;
|
import org.eclipse.jface.dialogs.IDialogConstants;
|
||||||
|
@ -80,12 +79,6 @@ public class ElementListSelectionDialog extends AbstractElementListSelectionDial
|
||||||
public ElementListSelectionDialog(Shell parent, ILabelProvider renderer, boolean ignoreCase, boolean multipleSelection) {
|
public ElementListSelectionDialog(Shell parent, ILabelProvider renderer, boolean ignoreCase, boolean multipleSelection) {
|
||||||
this(parent, "", null, renderer, ignoreCase, multipleSelection); //$NON-NLS-1$
|
this(parent, "", null, renderer, ignoreCase, multipleSelection); //$NON-NLS-1$
|
||||||
}
|
}
|
||||||
public int open(Object[] elements) {
|
|
||||||
return open(Arrays.asList(elements));
|
|
||||||
}
|
|
||||||
public int open(Object[] elements, String initialSelection) {
|
|
||||||
return open(Arrays.asList(elements), initialSelection);
|
|
||||||
}
|
|
||||||
/**
|
/**
|
||||||
* Open the dialog.
|
* Open the dialog.
|
||||||
* @param elements The elements to show in the list
|
* @param elements The elements to show in the list
|
||||||
|
|
|
@ -174,7 +174,7 @@ public class GNUAutomakefile extends AbstractMakefile implements IGNUMakefile {
|
||||||
}
|
}
|
||||||
line = line.substring(0, pound);
|
line = line.substring(0, pound);
|
||||||
// If all we have left are spaces continue
|
// If all we have left are spaces continue
|
||||||
if (Util.isEmptyLine(line)) {
|
if (line.trim().isEmpty()) {
|
||||||
continue;
|
continue;
|
||||||
}
|
}
|
||||||
// The rest of the line maybe a valid directives.
|
// The rest of the line maybe a valid directives.
|
||||||
|
@ -182,7 +182,7 @@ public class GNUAutomakefile extends AbstractMakefile implements IGNUMakefile {
|
||||||
}
|
}
|
||||||
|
|
||||||
// 3- Empty lines ?
|
// 3- Empty lines ?
|
||||||
if (Util.isEmptyLine(line)) {
|
if (line.trim().isEmpty()) {
|
||||||
Directive empty = new EmptyLine(this);
|
Directive empty = new EmptyLine(this);
|
||||||
empty.setLines(startLine, endLine);
|
empty.setLines(startLine, endLine);
|
||||||
if (rules != null) {
|
if (rules != null) {
|
||||||
|
|
|
@ -111,13 +111,4 @@ public class OpenDeclarationAction extends TextEditorAction {
|
||||||
}
|
}
|
||||||
return null;
|
return null;
|
||||||
}
|
}
|
||||||
|
|
||||||
/*
|
|
||||||
* (non-Javadoc)
|
|
||||||
*
|
|
||||||
* @see org.eclipse.jdt.ui.actions.SelectionDispatchAction#selectionChanged(org.eclipse.jface.text.ITextSelection)
|
|
||||||
*/
|
|
||||||
//public void selectionChanged(ITextSelection selection) {
|
|
||||||
//setEnabled(fEditor != null);
|
|
||||||
//}
|
|
||||||
}
|
}
|
||||||
|
|
|
@ -44,18 +44,12 @@ public abstract class SelectionStatusDialog extends SelectionDialog {
|
||||||
* Compute the result and return it.
|
* Compute the result and return it.
|
||||||
*/
|
*/
|
||||||
protected abstract void computeResult();
|
protected abstract void computeResult();
|
||||||
/* (non-Javadoc)
|
|
||||||
* Method declared in Window.
|
|
||||||
*/
|
|
||||||
@Override
|
@Override
|
||||||
protected void configureShell(Shell shell) {
|
protected void configureShell(Shell shell) {
|
||||||
super.configureShell(shell);
|
super.configureShell(shell);
|
||||||
if (fImage != null)
|
if (fImage != null)
|
||||||
shell.setImage(fImage);
|
shell.setImage(fImage);
|
||||||
}
|
}
|
||||||
/* (non-Javadoc)
|
|
||||||
* Method declared in Dialog.
|
|
||||||
*/
|
|
||||||
@Override
|
@Override
|
||||||
protected Control createButtonBar(Composite parent) {
|
protected Control createButtonBar(Composite parent) {
|
||||||
Composite composite= new Composite(parent, SWT.NULL);
|
Composite composite= new Composite(parent, SWT.NULL);
|
||||||
|
@ -77,9 +71,6 @@ public abstract class SelectionStatusDialog extends SelectionDialog {
|
||||||
super.createButtonBar(composite);
|
super.createButtonBar(composite);
|
||||||
return composite;
|
return composite;
|
||||||
}
|
}
|
||||||
/* (non-Javadoc)
|
|
||||||
* Method declared in Dialog.
|
|
||||||
*/
|
|
||||||
@Override
|
@Override
|
||||||
public void create() {
|
public void create() {
|
||||||
super.create();
|
super.create();
|
||||||
|
|
|
@ -26,10 +26,6 @@ public class Util {
|
||||||
return (line.endsWith("\\") && !line.endsWith("\\\\")); //$NON-NLS-1$ //$NON-NLS-2$
|
return (line.endsWith("\\") && !line.endsWith("\\\\")); //$NON-NLS-1$ //$NON-NLS-2$
|
||||||
}
|
}
|
||||||
|
|
||||||
public static boolean isEmptyLine(String line) {
|
|
||||||
return line.trim().length() == 0;
|
|
||||||
}
|
|
||||||
|
|
||||||
public static int indexOfComment(String line) {
|
public static int indexOfComment(String line) {
|
||||||
boolean escaped = false;
|
boolean escaped = false;
|
||||||
for (int i = 0; i < line.length(); i++) {
|
for (int i = 0; i < line.length(); i++) {
|
||||||
|
|
|
@ -28,8 +28,8 @@ import org.eclipse.jface.viewers.StructuredSelection;
|
||||||
import org.eclipse.jface.viewers.TableViewer;
|
import org.eclipse.jface.viewers.TableViewer;
|
||||||
import org.eclipse.jface.viewers.Viewer;
|
import org.eclipse.jface.viewers.Viewer;
|
||||||
import org.eclipse.swt.SWT;
|
import org.eclipse.swt.SWT;
|
||||||
|
import org.eclipse.swt.events.SelectionAdapter;
|
||||||
import org.eclipse.swt.events.SelectionEvent;
|
import org.eclipse.swt.events.SelectionEvent;
|
||||||
import org.eclipse.swt.events.SelectionListener;
|
|
||||||
import org.eclipse.swt.graphics.Color;
|
import org.eclipse.swt.graphics.Color;
|
||||||
import org.eclipse.swt.graphics.RGB;
|
import org.eclipse.swt.graphics.RGB;
|
||||||
import org.eclipse.swt.layout.GridData;
|
import org.eclipse.swt.layout.GridData;
|
||||||
|
@ -399,11 +399,7 @@ public class AutoconfEditorPreferencePage extends AbstractEditorPreferencePage {
|
||||||
|
|
||||||
fHighlightingColorListViewer.addSelectionChangedListener(event -> handleSyntaxColorListSelection());
|
fHighlightingColorListViewer.addSelectionChangedListener(event -> handleSyntaxColorListSelection());
|
||||||
|
|
||||||
foregroundColorButton.addSelectionListener(new SelectionListener() {
|
foregroundColorButton.addSelectionListener(new SelectionAdapter() {
|
||||||
@Override
|
|
||||||
public void widgetDefaultSelected(SelectionEvent e) {
|
|
||||||
// do nothing
|
|
||||||
}
|
|
||||||
@Override
|
@Override
|
||||||
public void widgetSelected(SelectionEvent e) {
|
public void widgetSelected(SelectionEvent e) {
|
||||||
HighlightingColorListItem item= getHighlightingColorListItem();
|
HighlightingColorListItem item= getHighlightingColorListItem();
|
||||||
|
@ -411,11 +407,7 @@ public class AutoconfEditorPreferencePage extends AbstractEditorPreferencePage {
|
||||||
}
|
}
|
||||||
});
|
});
|
||||||
|
|
||||||
fBoldCheckBox.addSelectionListener(new SelectionListener() {
|
fBoldCheckBox.addSelectionListener(new SelectionAdapter() {
|
||||||
@Override
|
|
||||||
public void widgetDefaultSelected(SelectionEvent e) {
|
|
||||||
// do nothing
|
|
||||||
}
|
|
||||||
@Override
|
@Override
|
||||||
public void widgetSelected(SelectionEvent e) {
|
public void widgetSelected(SelectionEvent e) {
|
||||||
HighlightingColorListItem item= getHighlightingColorListItem();
|
HighlightingColorListItem item= getHighlightingColorListItem();
|
||||||
|
@ -423,11 +415,7 @@ public class AutoconfEditorPreferencePage extends AbstractEditorPreferencePage {
|
||||||
}
|
}
|
||||||
});
|
});
|
||||||
|
|
||||||
fItalicCheckBox.addSelectionListener(new SelectionListener() {
|
fItalicCheckBox.addSelectionListener(new SelectionAdapter() {
|
||||||
@Override
|
|
||||||
public void widgetDefaultSelected(SelectionEvent e) {
|
|
||||||
// do nothing
|
|
||||||
}
|
|
||||||
@Override
|
@Override
|
||||||
public void widgetSelected(SelectionEvent e) {
|
public void widgetSelected(SelectionEvent e) {
|
||||||
HighlightingColorListItem item= getHighlightingColorListItem();
|
HighlightingColorListItem item= getHighlightingColorListItem();
|
||||||
|
@ -456,16 +444,12 @@ public class AutoconfEditorPreferencePage extends AbstractEditorPreferencePage {
|
||||||
fFoldingCheckbox.setText(AutotoolsPreferencesMessages.getString("AutomakeEditorPreferencePage.foldingenable")); //$NON-NLS-1$
|
fFoldingCheckbox.setText(AutotoolsPreferencesMessages.getString("AutomakeEditorPreferencePage.foldingenable")); //$NON-NLS-1$
|
||||||
gd= new GridData(GridData.HORIZONTAL_ALIGN_BEGINNING | GridData.VERTICAL_ALIGN_BEGINNING);
|
gd= new GridData(GridData.HORIZONTAL_ALIGN_BEGINNING | GridData.VERTICAL_ALIGN_BEGINNING);
|
||||||
fFoldingCheckbox.setLayoutData(gd);
|
fFoldingCheckbox.setLayoutData(gd);
|
||||||
fFoldingCheckbox.addSelectionListener(new SelectionListener() {
|
fFoldingCheckbox.addSelectionListener(new SelectionAdapter() {
|
||||||
@Override
|
@Override
|
||||||
public void widgetSelected(SelectionEvent e) {
|
public void widgetSelected(SelectionEvent e) {
|
||||||
boolean enabled= fFoldingCheckbox.getSelection();
|
boolean enabled= fFoldingCheckbox.getSelection();
|
||||||
getOverlayStore().setValue(AutotoolsEditorPreferenceConstants.EDITOR_FOLDING_ENABLED, enabled);
|
getOverlayStore().setValue(AutotoolsEditorPreferenceConstants.EDITOR_FOLDING_ENABLED, enabled);
|
||||||
}
|
}
|
||||||
|
|
||||||
@Override
|
|
||||||
public void widgetDefaultSelected(SelectionEvent e) {
|
|
||||||
}
|
|
||||||
});
|
});
|
||||||
|
|
||||||
return composite;
|
return composite;
|
||||||
|
@ -489,16 +473,12 @@ public class AutoconfEditorPreferencePage extends AbstractEditorPreferencePage {
|
||||||
fACVersionCombo.select(fACVersions.length - 1);
|
fACVersionCombo.select(fACVersions.length - 1);
|
||||||
gd= new GridData(GridData.HORIZONTAL_ALIGN_BEGINNING | GridData.VERTICAL_ALIGN_BEGINNING);
|
gd= new GridData(GridData.HORIZONTAL_ALIGN_BEGINNING | GridData.VERTICAL_ALIGN_BEGINNING);
|
||||||
fACVersionCombo.setLayoutData(gd);
|
fACVersionCombo.setLayoutData(gd);
|
||||||
fACVersionCombo.addSelectionListener(new SelectionListener() {
|
fACVersionCombo.addSelectionListener(new SelectionAdapter() {
|
||||||
@Override
|
@Override
|
||||||
public void widgetSelected(SelectionEvent e) {
|
public void widgetSelected(SelectionEvent e) {
|
||||||
int index = fACVersionCombo.getSelectionIndex();
|
int index = fACVersionCombo.getSelectionIndex();
|
||||||
getOverlayStore().setValue(AutotoolsEditorPreferenceConstants.AUTOCONF_VERSION, fACVersionCombo.getItem(index));
|
getOverlayStore().setValue(AutotoolsEditorPreferenceConstants.AUTOCONF_VERSION, fACVersionCombo.getItem(index));
|
||||||
}
|
}
|
||||||
|
|
||||||
@Override
|
|
||||||
public void widgetDefaultSelected(SelectionEvent e) {
|
|
||||||
}
|
|
||||||
});
|
});
|
||||||
|
|
||||||
Label label= new Label(composite, SWT.LEFT);
|
Label label= new Label(composite, SWT.LEFT);
|
||||||
|
@ -513,16 +493,12 @@ public class AutoconfEditorPreferencePage extends AbstractEditorPreferencePage {
|
||||||
fAMVersionCombo.select(fAMVersions.length - 1);
|
fAMVersionCombo.select(fAMVersions.length - 1);
|
||||||
gd= new GridData(GridData.HORIZONTAL_ALIGN_BEGINNING | GridData.VERTICAL_ALIGN_BEGINNING);
|
gd= new GridData(GridData.HORIZONTAL_ALIGN_BEGINNING | GridData.VERTICAL_ALIGN_BEGINNING);
|
||||||
fAMVersionCombo.setLayoutData(gd);
|
fAMVersionCombo.setLayoutData(gd);
|
||||||
fAMVersionCombo.addSelectionListener(new SelectionListener() {
|
fAMVersionCombo.addSelectionListener(new SelectionAdapter() {
|
||||||
@Override
|
@Override
|
||||||
public void widgetSelected(SelectionEvent e) {
|
public void widgetSelected(SelectionEvent e) {
|
||||||
int index = fAMVersionCombo.getSelectionIndex();
|
int index = fAMVersionCombo.getSelectionIndex();
|
||||||
getOverlayStore().setValue(AutotoolsEditorPreferenceConstants.AUTOMAKE_VERSION, fAMVersionCombo.getItem(index));
|
getOverlayStore().setValue(AutotoolsEditorPreferenceConstants.AUTOMAKE_VERSION, fAMVersionCombo.getItem(index));
|
||||||
}
|
}
|
||||||
|
|
||||||
@Override
|
|
||||||
public void widgetDefaultSelected(SelectionEvent e) {
|
|
||||||
}
|
|
||||||
});
|
});
|
||||||
|
|
||||||
Label label2= new Label(composite, SWT.LEFT);
|
Label label2= new Label(composite, SWT.LEFT);
|
||||||
|
|
|
@ -28,8 +28,8 @@ import org.eclipse.jface.viewers.StructuredSelection;
|
||||||
import org.eclipse.jface.viewers.TableViewer;
|
import org.eclipse.jface.viewers.TableViewer;
|
||||||
import org.eclipse.jface.viewers.Viewer;
|
import org.eclipse.jface.viewers.Viewer;
|
||||||
import org.eclipse.swt.SWT;
|
import org.eclipse.swt.SWT;
|
||||||
|
import org.eclipse.swt.events.SelectionAdapter;
|
||||||
import org.eclipse.swt.events.SelectionEvent;
|
import org.eclipse.swt.events.SelectionEvent;
|
||||||
import org.eclipse.swt.events.SelectionListener;
|
|
||||||
import org.eclipse.swt.graphics.Color;
|
import org.eclipse.swt.graphics.Color;
|
||||||
import org.eclipse.swt.graphics.RGB;
|
import org.eclipse.swt.graphics.RGB;
|
||||||
import org.eclipse.swt.layout.GridData;
|
import org.eclipse.swt.layout.GridData;
|
||||||
|
@ -338,11 +338,7 @@ public class AutomakeEditorPreferencePage extends AbstractEditorPreferencePage {
|
||||||
|
|
||||||
fHighlightingColorListViewer.addSelectionChangedListener(event -> handleSyntaxColorListSelection());
|
fHighlightingColorListViewer.addSelectionChangedListener(event -> handleSyntaxColorListSelection());
|
||||||
|
|
||||||
foregroundColorButton.addSelectionListener(new SelectionListener() {
|
foregroundColorButton.addSelectionListener(new SelectionAdapter() {
|
||||||
@Override
|
|
||||||
public void widgetDefaultSelected(SelectionEvent e) {
|
|
||||||
// do nothing
|
|
||||||
}
|
|
||||||
@Override
|
@Override
|
||||||
public void widgetSelected(SelectionEvent e) {
|
public void widgetSelected(SelectionEvent e) {
|
||||||
HighlightingColorListItem item= getHighlightingColorListItem();
|
HighlightingColorListItem item= getHighlightingColorListItem();
|
||||||
|
@ -350,11 +346,7 @@ public class AutomakeEditorPreferencePage extends AbstractEditorPreferencePage {
|
||||||
}
|
}
|
||||||
});
|
});
|
||||||
|
|
||||||
fBoldCheckBox.addSelectionListener(new SelectionListener() {
|
fBoldCheckBox.addSelectionListener(new SelectionAdapter() {
|
||||||
@Override
|
|
||||||
public void widgetDefaultSelected(SelectionEvent e) {
|
|
||||||
// do nothing
|
|
||||||
}
|
|
||||||
@Override
|
@Override
|
||||||
public void widgetSelected(SelectionEvent e) {
|
public void widgetSelected(SelectionEvent e) {
|
||||||
HighlightingColorListItem item= getHighlightingColorListItem();
|
HighlightingColorListItem item= getHighlightingColorListItem();
|
||||||
|
@ -362,11 +354,7 @@ public class AutomakeEditorPreferencePage extends AbstractEditorPreferencePage {
|
||||||
}
|
}
|
||||||
});
|
});
|
||||||
|
|
||||||
fItalicCheckBox.addSelectionListener(new SelectionListener() {
|
fItalicCheckBox.addSelectionListener(new SelectionAdapter() {
|
||||||
@Override
|
|
||||||
public void widgetDefaultSelected(SelectionEvent e) {
|
|
||||||
// do nothing
|
|
||||||
}
|
|
||||||
@Override
|
@Override
|
||||||
public void widgetSelected(SelectionEvent e) {
|
public void widgetSelected(SelectionEvent e) {
|
||||||
HighlightingColorListItem item= getHighlightingColorListItem();
|
HighlightingColorListItem item= getHighlightingColorListItem();
|
||||||
|
@ -395,16 +383,12 @@ public class AutomakeEditorPreferencePage extends AbstractEditorPreferencePage {
|
||||||
fFoldingCheckbox.setText(AutotoolsPreferencesMessages.getString("AutomakeEditorPreferencePage.foldingenable")); //$NON-NLS-1$
|
fFoldingCheckbox.setText(AutotoolsPreferencesMessages.getString("AutomakeEditorPreferencePage.foldingenable")); //$NON-NLS-1$
|
||||||
gd= new GridData(GridData.HORIZONTAL_ALIGN_BEGINNING | GridData.VERTICAL_ALIGN_BEGINNING);
|
gd= new GridData(GridData.HORIZONTAL_ALIGN_BEGINNING | GridData.VERTICAL_ALIGN_BEGINNING);
|
||||||
fFoldingCheckbox.setLayoutData(gd);
|
fFoldingCheckbox.setLayoutData(gd);
|
||||||
fFoldingCheckbox.addSelectionListener(new SelectionListener() {
|
fFoldingCheckbox.addSelectionListener(new SelectionAdapter() {
|
||||||
@Override
|
@Override
|
||||||
public void widgetSelected(SelectionEvent e) {
|
public void widgetSelected(SelectionEvent e) {
|
||||||
boolean enabled= fFoldingCheckbox.getSelection();
|
boolean enabled= fFoldingCheckbox.getSelection();
|
||||||
getOverlayStore().setValue(AutotoolsEditorPreferenceConstants.EDITOR_FOLDING_ENABLED, enabled);
|
getOverlayStore().setValue(AutotoolsEditorPreferenceConstants.EDITOR_FOLDING_ENABLED, enabled);
|
||||||
}
|
}
|
||||||
|
|
||||||
@Override
|
|
||||||
public void widgetDefaultSelected(SelectionEvent e) {
|
|
||||||
}
|
|
||||||
});
|
});
|
||||||
|
|
||||||
return composite;
|
return composite;
|
||||||
|
|
|
@ -214,269 +214,173 @@ class OverlayPreferenceStore implements IPreferenceStore {
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
|
||||||
/*
|
|
||||||
* @see IPreferenceStore#addPropertyChangeListener(IPropertyChangeListener)
|
|
||||||
*/
|
|
||||||
@Override
|
@Override
|
||||||
public void addPropertyChangeListener(IPropertyChangeListener listener) {
|
public void addPropertyChangeListener(IPropertyChangeListener listener) {
|
||||||
fStore.addPropertyChangeListener(listener);
|
fStore.addPropertyChangeListener(listener);
|
||||||
}
|
}
|
||||||
|
|
||||||
/*
|
|
||||||
* @see IPreferenceStore#removePropertyChangeListener(IPropertyChangeListener)
|
|
||||||
*/
|
|
||||||
@Override
|
@Override
|
||||||
public void removePropertyChangeListener(IPropertyChangeListener listener) {
|
public void removePropertyChangeListener(IPropertyChangeListener listener) {
|
||||||
fStore.removePropertyChangeListener(listener);
|
fStore.removePropertyChangeListener(listener);
|
||||||
}
|
}
|
||||||
|
|
||||||
/*
|
|
||||||
* @see IPreferenceStore#firePropertyChangeEvent(String, Object, Object)
|
|
||||||
*/
|
|
||||||
@Override
|
@Override
|
||||||
public void firePropertyChangeEvent(String name, Object oldValue, Object newValue) {
|
public void firePropertyChangeEvent(String name, Object oldValue, Object newValue) {
|
||||||
fStore.firePropertyChangeEvent(name, oldValue, newValue);
|
fStore.firePropertyChangeEvent(name, oldValue, newValue);
|
||||||
}
|
}
|
||||||
|
|
||||||
/*
|
|
||||||
* @see IPreferenceStore#contains(String)
|
|
||||||
*/
|
|
||||||
@Override
|
@Override
|
||||||
public boolean contains(String name) {
|
public boolean contains(String name) {
|
||||||
return fStore.contains(name);
|
return fStore.contains(name);
|
||||||
}
|
}
|
||||||
|
|
||||||
/*
|
|
||||||
* @see IPreferenceStore#getBoolean(String)
|
|
||||||
*/
|
|
||||||
@Override
|
@Override
|
||||||
public boolean getBoolean(String name) {
|
public boolean getBoolean(String name) {
|
||||||
return fStore.getBoolean(name);
|
return fStore.getBoolean(name);
|
||||||
}
|
}
|
||||||
|
|
||||||
/*
|
|
||||||
* @see IPreferenceStore#getDefaultBoolean(String)
|
|
||||||
*/
|
|
||||||
@Override
|
@Override
|
||||||
public boolean getDefaultBoolean(String name) {
|
public boolean getDefaultBoolean(String name) {
|
||||||
return fStore.getDefaultBoolean(name);
|
return fStore.getDefaultBoolean(name);
|
||||||
}
|
}
|
||||||
|
|
||||||
/*
|
|
||||||
* @see IPreferenceStore#getDefaultDouble(String)
|
|
||||||
*/
|
|
||||||
@Override
|
@Override
|
||||||
public double getDefaultDouble(String name) {
|
public double getDefaultDouble(String name) {
|
||||||
return fStore.getDefaultDouble(name);
|
return fStore.getDefaultDouble(name);
|
||||||
}
|
}
|
||||||
|
|
||||||
/*
|
|
||||||
* @see IPreferenceStore#getDefaultFloat(String)
|
|
||||||
*/
|
|
||||||
@Override
|
@Override
|
||||||
public float getDefaultFloat(String name) {
|
public float getDefaultFloat(String name) {
|
||||||
return fStore.getDefaultFloat(name);
|
return fStore.getDefaultFloat(name);
|
||||||
}
|
}
|
||||||
|
|
||||||
/*
|
|
||||||
* @see IPreferenceStore#getDefaultInt(String)
|
|
||||||
*/
|
|
||||||
@Override
|
@Override
|
||||||
public int getDefaultInt(String name) {
|
public int getDefaultInt(String name) {
|
||||||
return fStore.getDefaultInt(name);
|
return fStore.getDefaultInt(name);
|
||||||
}
|
}
|
||||||
|
|
||||||
/*
|
|
||||||
* @see IPreferenceStore#getDefaultLong(String)
|
|
||||||
*/
|
|
||||||
@Override
|
@Override
|
||||||
public long getDefaultLong(String name) {
|
public long getDefaultLong(String name) {
|
||||||
return fStore.getDefaultLong(name);
|
return fStore.getDefaultLong(name);
|
||||||
}
|
}
|
||||||
|
|
||||||
/*
|
|
||||||
* @see IPreferenceStore#getDefaultString(String)
|
|
||||||
*/
|
|
||||||
@Override
|
@Override
|
||||||
public String getDefaultString(String name) {
|
public String getDefaultString(String name) {
|
||||||
return fStore.getDefaultString(name);
|
return fStore.getDefaultString(name);
|
||||||
}
|
}
|
||||||
|
|
||||||
/*
|
|
||||||
* @see IPreferenceStore#getDouble(String)
|
|
||||||
*/
|
|
||||||
@Override
|
@Override
|
||||||
public double getDouble(String name) {
|
public double getDouble(String name) {
|
||||||
return fStore.getDouble(name);
|
return fStore.getDouble(name);
|
||||||
}
|
}
|
||||||
|
|
||||||
/*
|
|
||||||
* @see IPreferenceStore#getFloat(String)
|
|
||||||
*/
|
|
||||||
@Override
|
@Override
|
||||||
public float getFloat(String name) {
|
public float getFloat(String name) {
|
||||||
return fStore.getFloat(name);
|
return fStore.getFloat(name);
|
||||||
}
|
}
|
||||||
|
|
||||||
/*
|
|
||||||
* @see IPreferenceStore#getInt(String)
|
|
||||||
*/
|
|
||||||
@Override
|
@Override
|
||||||
public int getInt(String name) {
|
public int getInt(String name) {
|
||||||
return fStore.getInt(name);
|
return fStore.getInt(name);
|
||||||
}
|
}
|
||||||
|
|
||||||
/*
|
|
||||||
* @see IPreferenceStore#getLong(String)
|
|
||||||
*/
|
|
||||||
@Override
|
@Override
|
||||||
public long getLong(String name) {
|
public long getLong(String name) {
|
||||||
return fStore.getLong(name);
|
return fStore.getLong(name);
|
||||||
}
|
}
|
||||||
|
|
||||||
/*
|
|
||||||
* @see IPreferenceStore#getString(String)
|
|
||||||
*/
|
|
||||||
@Override
|
@Override
|
||||||
public String getString(String name) {
|
public String getString(String name) {
|
||||||
return fStore.getString(name);
|
return fStore.getString(name);
|
||||||
}
|
}
|
||||||
|
|
||||||
/*
|
|
||||||
* @see IPreferenceStore#isDefault(String)
|
|
||||||
*/
|
|
||||||
@Override
|
@Override
|
||||||
public boolean isDefault(String name) {
|
public boolean isDefault(String name) {
|
||||||
return fStore.isDefault(name);
|
return fStore.isDefault(name);
|
||||||
}
|
}
|
||||||
|
|
||||||
/*
|
|
||||||
* @see IPreferenceStore#needsSaving()
|
|
||||||
*/
|
|
||||||
@Override
|
@Override
|
||||||
public boolean needsSaving() {
|
public boolean needsSaving() {
|
||||||
return fStore.needsSaving();
|
return fStore.needsSaving();
|
||||||
}
|
}
|
||||||
|
|
||||||
/*
|
|
||||||
* @see IPreferenceStore#putValue(String, String)
|
|
||||||
*/
|
|
||||||
@Override
|
@Override
|
||||||
public void putValue(String name, String value) {
|
public void putValue(String name, String value) {
|
||||||
if (covers(name))
|
if (covers(name))
|
||||||
fStore.putValue(name, value);
|
fStore.putValue(name, value);
|
||||||
}
|
}
|
||||||
|
|
||||||
/*
|
|
||||||
* @see IPreferenceStore#setDefault(String, double)
|
|
||||||
*/
|
|
||||||
@Override
|
@Override
|
||||||
public void setDefault(String name, double value) {
|
public void setDefault(String name, double value) {
|
||||||
if (covers(name))
|
if (covers(name))
|
||||||
fStore.setDefault(name, value);
|
fStore.setDefault(name, value);
|
||||||
}
|
}
|
||||||
|
|
||||||
/*
|
|
||||||
* @see IPreferenceStore#setDefault(String, float)
|
|
||||||
*/
|
|
||||||
@Override
|
@Override
|
||||||
public void setDefault(String name, float value) {
|
public void setDefault(String name, float value) {
|
||||||
if (covers(name))
|
if (covers(name))
|
||||||
fStore.setDefault(name, value);
|
fStore.setDefault(name, value);
|
||||||
}
|
}
|
||||||
|
|
||||||
/*
|
|
||||||
* @see IPreferenceStore#setDefault(String, int)
|
|
||||||
*/
|
|
||||||
@Override
|
@Override
|
||||||
public void setDefault(String name, int value) {
|
public void setDefault(String name, int value) {
|
||||||
if (covers(name))
|
if (covers(name))
|
||||||
fStore.setDefault(name, value);
|
fStore.setDefault(name, value);
|
||||||
}
|
}
|
||||||
|
|
||||||
/*
|
|
||||||
* @see IPreferenceStore#setDefault(String, long)
|
|
||||||
*/
|
|
||||||
@Override
|
@Override
|
||||||
public void setDefault(String name, long value) {
|
public void setDefault(String name, long value) {
|
||||||
if (covers(name))
|
if (covers(name))
|
||||||
fStore.setDefault(name, value);
|
fStore.setDefault(name, value);
|
||||||
}
|
}
|
||||||
|
|
||||||
/*
|
|
||||||
* @see IPreferenceStore#setDefault(String, String)
|
|
||||||
*/
|
|
||||||
@Override
|
@Override
|
||||||
public void setDefault(String name, String value) {
|
public void setDefault(String name, String value) {
|
||||||
if (covers(name))
|
if (covers(name))
|
||||||
fStore.setDefault(name, value);
|
fStore.setDefault(name, value);
|
||||||
}
|
}
|
||||||
|
|
||||||
/*
|
|
||||||
* @see IPreferenceStore#setDefault(String, boolean)
|
|
||||||
*/
|
|
||||||
@Override
|
@Override
|
||||||
public void setDefault(String name, boolean value) {
|
public void setDefault(String name, boolean value) {
|
||||||
if (covers(name))
|
if (covers(name))
|
||||||
fStore.setDefault(name, value);
|
fStore.setDefault(name, value);
|
||||||
}
|
}
|
||||||
|
|
||||||
/*
|
|
||||||
* @see IPreferenceStore#setToDefault(String)
|
|
||||||
*/
|
|
||||||
@Override
|
@Override
|
||||||
public void setToDefault(String name) {
|
public void setToDefault(String name) {
|
||||||
fStore.setToDefault(name);
|
fStore.setToDefault(name);
|
||||||
}
|
}
|
||||||
|
|
||||||
/*
|
|
||||||
* @see IPreferenceStore#setValue(String, double)
|
|
||||||
*/
|
|
||||||
@Override
|
@Override
|
||||||
public void setValue(String name, double value) {
|
public void setValue(String name, double value) {
|
||||||
if (covers(name))
|
if (covers(name))
|
||||||
fStore.setValue(name, value);
|
fStore.setValue(name, value);
|
||||||
}
|
}
|
||||||
|
|
||||||
/*
|
|
||||||
* @see IPreferenceStore#setValue(String, float)
|
|
||||||
*/
|
|
||||||
@Override
|
@Override
|
||||||
public void setValue(String name, float value) {
|
public void setValue(String name, float value) {
|
||||||
if (covers(name))
|
if (covers(name))
|
||||||
fStore.setValue(name, value);
|
fStore.setValue(name, value);
|
||||||
}
|
}
|
||||||
|
|
||||||
/*
|
|
||||||
* @see IPreferenceStore#setValue(String, int)
|
|
||||||
*/
|
|
||||||
@Override
|
@Override
|
||||||
public void setValue(String name, int value) {
|
public void setValue(String name, int value) {
|
||||||
if (covers(name))
|
if (covers(name))
|
||||||
fStore.setValue(name, value);
|
fStore.setValue(name, value);
|
||||||
}
|
}
|
||||||
|
|
||||||
/*
|
|
||||||
* @see IPreferenceStore#setValue(String, long)
|
|
||||||
*/
|
|
||||||
@Override
|
@Override
|
||||||
public void setValue(String name, long value) {
|
public void setValue(String name, long value) {
|
||||||
if (covers(name))
|
if (covers(name))
|
||||||
fStore.setValue(name, value);
|
fStore.setValue(name, value);
|
||||||
}
|
}
|
||||||
|
|
||||||
/*
|
|
||||||
* @see IPreferenceStore#setValue(String, String)
|
|
||||||
*/
|
|
||||||
@Override
|
@Override
|
||||||
public void setValue(String name, String value) {
|
public void setValue(String name, String value) {
|
||||||
if (covers(name))
|
if (covers(name))
|
||||||
fStore.setValue(name, value);
|
fStore.setValue(name, value);
|
||||||
}
|
}
|
||||||
|
|
||||||
/*
|
|
||||||
* @see IPreferenceStore#setValue(String, boolean)
|
|
||||||
*/
|
|
||||||
@Override
|
@Override
|
||||||
public void setValue(String name, boolean value) {
|
public void setValue(String name, boolean value) {
|
||||||
if (covers(name))
|
if (covers(name))
|
||||||
|
|
|
@ -19,7 +19,6 @@ import org.eclipse.core.runtime.CoreException;
|
||||||
import org.eclipse.swt.SWT;
|
import org.eclipse.swt.SWT;
|
||||||
import org.eclipse.swt.events.SelectionAdapter;
|
import org.eclipse.swt.events.SelectionAdapter;
|
||||||
import org.eclipse.swt.events.SelectionEvent;
|
import org.eclipse.swt.events.SelectionEvent;
|
||||||
import org.eclipse.swt.events.SelectionListener;
|
|
||||||
import org.eclipse.swt.layout.GridData;
|
import org.eclipse.swt.layout.GridData;
|
||||||
import org.eclipse.swt.layout.GridLayout;
|
import org.eclipse.swt.layout.GridLayout;
|
||||||
import org.eclipse.swt.widgets.Button;
|
import org.eclipse.swt.widgets.Button;
|
||||||
|
@ -101,18 +100,13 @@ public class AutotoolsBuildPropertyPage extends AbstractCBuildPropertyTab {
|
||||||
gd= new GridData(GridData.HORIZONTAL_ALIGN_BEGINNING | GridData.VERTICAL_ALIGN_BEGINNING | GridData.FILL_HORIZONTAL);
|
gd= new GridData(GridData.HORIZONTAL_ALIGN_BEGINNING | GridData.VERTICAL_ALIGN_BEGINNING | GridData.FILL_HORIZONTAL);
|
||||||
fCleanMakeTarget.setLayoutData(gd);
|
fCleanMakeTarget.setLayoutData(gd);
|
||||||
|
|
||||||
fCleanDelete.addSelectionListener(new SelectionListener() {
|
fCleanDelete.addSelectionListener(new SelectionAdapter() {
|
||||||
@Override
|
@Override
|
||||||
public void widgetSelected(SelectionEvent e) {
|
public void widgetSelected(SelectionEvent e) {
|
||||||
fCleanMake.setSelection(false);
|
fCleanMake.setSelection(false);
|
||||||
fCleanDelete.setSelection(true);
|
fCleanDelete.setSelection(true);
|
||||||
fCleanMakeTarget.setEnabled(false);
|
fCleanMakeTarget.setEnabled(false);
|
||||||
}
|
}
|
||||||
|
|
||||||
@Override
|
|
||||||
public void widgetDefaultSelected(SelectionEvent e) {
|
|
||||||
// do nothing
|
|
||||||
}
|
|
||||||
});
|
});
|
||||||
|
|
||||||
fCleanMake.addSelectionListener(new SelectionAdapter() {
|
fCleanMake.addSelectionListener(new SelectionAdapter() {
|
||||||
|
|
|
@ -67,7 +67,6 @@ import org.w3c.dom.NamedNodeMap;
|
||||||
import org.w3c.dom.Node;
|
import org.w3c.dom.Node;
|
||||||
import org.w3c.dom.NodeList;
|
import org.w3c.dom.NodeList;
|
||||||
import org.xml.sax.SAXException;
|
import org.xml.sax.SAXException;
|
||||||
import org.xml.sax.SAXParseException;
|
|
||||||
|
|
||||||
|
|
||||||
public class AutoconfTextHover implements ITextHover, ITextHoverExtension {
|
public class AutoconfTextHover implements ITextHover, ITextHoverExtension {
|
||||||
|
@ -170,23 +169,13 @@ public class AutoconfTextHover implements ITextHover, ITextHoverExtension {
|
||||||
try {
|
try {
|
||||||
DocumentBuilder builder = factory.newDocumentBuilder();
|
DocumentBuilder builder = factory.newDocumentBuilder();
|
||||||
doc = builder.parse(docStream);
|
doc = builder.parse(docStream);
|
||||||
} catch (SAXParseException saxException) {
|
} catch (SAXException | ParserConfigurationException | IOException saxEx) {
|
||||||
doc = null;
|
|
||||||
} catch (SAXException saxEx) {
|
|
||||||
doc = null;
|
|
||||||
} catch (ParserConfigurationException pce) {
|
|
||||||
doc = null;
|
|
||||||
} catch (IOException ioe) {
|
|
||||||
doc = null;
|
doc = null;
|
||||||
} finally {
|
} finally {
|
||||||
if (docStream != null)
|
if (docStream != null)
|
||||||
docStream.close();
|
docStream.close();
|
||||||
}
|
}
|
||||||
} catch (FileNotFoundException e) {
|
} catch (FileNotFoundException|MalformedURLException|URISyntaxException e) {
|
||||||
AutotoolsPlugin.log(e);
|
|
||||||
} catch (MalformedURLException e) {
|
|
||||||
AutotoolsPlugin.log(e);
|
|
||||||
} catch (URISyntaxException e) {
|
|
||||||
AutotoolsPlugin.log(e);
|
AutotoolsPlugin.log(e);
|
||||||
}
|
}
|
||||||
acDocument = doc;
|
acDocument = doc;
|
||||||
|
@ -231,23 +220,13 @@ public class AutoconfTextHover implements ITextHover, ITextHoverExtension {
|
||||||
try {
|
try {
|
||||||
DocumentBuilder builder = factory.newDocumentBuilder();
|
DocumentBuilder builder = factory.newDocumentBuilder();
|
||||||
doc = builder.parse(docStream);
|
doc = builder.parse(docStream);
|
||||||
} catch (SAXParseException saxException) {
|
} catch (SAXException | ParserConfigurationException | IOException ex) {
|
||||||
doc = null;
|
|
||||||
} catch (SAXException saxEx) {
|
|
||||||
doc = null;
|
|
||||||
} catch (ParserConfigurationException pce) {
|
|
||||||
doc = null;
|
|
||||||
} catch (IOException ioe) {
|
|
||||||
doc = null;
|
doc = null;
|
||||||
} finally {
|
} finally {
|
||||||
if (docStream != null)
|
if (docStream != null)
|
||||||
docStream.close();
|
docStream.close();
|
||||||
}
|
}
|
||||||
} catch (FileNotFoundException e) {
|
} catch (FileNotFoundException|MalformedURLException|URISyntaxException e) {
|
||||||
AutotoolsPlugin.log(e);
|
|
||||||
} catch (MalformedURLException e) {
|
|
||||||
AutotoolsPlugin.log(e);
|
|
||||||
} catch (URISyntaxException e) {
|
|
||||||
AutotoolsPlugin.log(e);
|
AutotoolsPlugin.log(e);
|
||||||
}
|
}
|
||||||
amDocument = doc;
|
amDocument = doc;
|
||||||
|
@ -496,7 +475,6 @@ public class AutoconfTextHover implements ITextHover, ITextHoverExtension {
|
||||||
} catch (BadLocationException e) {
|
} catch (BadLocationException e) {
|
||||||
// do nothing
|
// do nothing
|
||||||
}
|
}
|
||||||
// TODO Auto-generated method stub
|
|
||||||
return hoverInfo;
|
return hoverInfo;
|
||||||
}
|
}
|
||||||
|
|
||||||
|
|
|
@ -162,9 +162,7 @@ public class AutotoolsProjectImportWizard extends NewMakeProjFromExisting {
|
||||||
|
|
||||||
try {
|
try {
|
||||||
getContainer().run(true, true, op);
|
getContainer().run(true, true, op);
|
||||||
} catch (InvocationTargetException e) {
|
} catch (InvocationTargetException | InterruptedException e) {
|
||||||
return false;
|
|
||||||
} catch (InterruptedException e) {
|
|
||||||
return false;
|
return false;
|
||||||
}
|
}
|
||||||
return true;
|
return true;
|
||||||
|
|
|
@ -207,9 +207,7 @@ public class ConvertToAutotoolsProjectWizard extends ConversionWizard {
|
||||||
{
|
{
|
||||||
try {
|
try {
|
||||||
operations[k].run(monitor);
|
operations[k].run(monitor);
|
||||||
} catch(InvocationTargetException e) {
|
} catch(InvocationTargetException |InterruptedException e) {
|
||||||
//TODO: what should we do?
|
|
||||||
} catch(InterruptedException e) {
|
|
||||||
//TODO: what should we do?
|
//TODO: what should we do?
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
|
Loading…
Add table
Reference in a new issue