import net.sourceforge.phpeclipse.ui.WebUI;
//import org.eclipse.core.runtime.CoreException;
-import org.eclipse.core.runtime.Preferences;
+//import org.eclipse.core.runtime.Preferences;
import org.eclipse.jface.preference.IPreferenceStore;
import org.eclipse.jface.text.BadLocationException;
import org.eclipse.jface.text.DefaultIndentLineAutoEditStrategy;
// lineDelimiter);
// }
- public static int getTabWidth() {
- Preferences preferences = WebUI.getDefault()
- .getPluginPreferences();
- return preferences
- .getInt(AbstractDecoratedTextEditorPreferenceConstants.EDITOR_TAB_WIDTH);
- }
+// public static int getTabWidth() {
+// Preferences preferences = WebUI.getDefault()
+// .getPluginPreferences();
+// return preferences
+// .getInt(AbstractDecoratedTextEditorPreferenceConstants.EDITOR_TAB_WIDTH);
+// }
// private String createTypeTags(IDocument document, DocumentCommand command,
// String indentation, String lineDelimiter, IType type)
private TemplateEngine fTemplateEngine;
- private boolean fRestrictToMatchingCase;
+ //private boolean fRestrictToMatchingCase;
private IEditorPart fEditor;
.getTemplateContextRegistry().getContextType("phpdoc"); //$NON-NLS-1$
if (contextType != null)
fTemplateEngine = new TemplateEngine(contextType);
- fRestrictToMatchingCase = false;
+ //fRestrictToMatchingCase = false;
fComparator = new PHPCompletionProposalComparator();
}
* <code>true</code> if proposals should be restricted
*/
public void restrictProposalsToMatchingCases(boolean restrict) {
- fRestrictToMatchingCase = restrict;
+ //fRestrictToMatchingCase = restrict;
}
/**
IStatus.ERROR, message, t));
}
- public static void handle(CoreException e, String title, String message) {
- handle(e, WebUI.getActiveWorkbenchShell(), title, message);
- }
+// public static void handle(CoreException e, String title, String message) {
+// handle(e, WebUI.getActiveWorkbenchShell(), title, message);
+// }
public static void handle(CoreException e, Shell parent, String title,
String message) {
fgInstance.perform(e, parent, title, message);
}
- public static void handle(InvocationTargetException e, String title,
- String message) {
- handle(e, WebUI.getActiveWorkbenchShell(), title, message);
- }
+// public static void handle(InvocationTargetException e, String title,
+// String message) {
+// handle(e, WebUI.getActiveWorkbenchShell(), title, message);
+// }
public static void handle(InvocationTargetException e, Shell parent,
String title, String message) {
/**
* Sets the filter matcher.
*/
- public void setFilterMatcher(FilterMatcher filterMatcher) {
- Assert.isNotNull(filterMatcher);
- fFilterMatcher = filterMatcher;
- }
+// public void setFilterMatcher(FilterMatcher filterMatcher) {
+// Assert.isNotNull(filterMatcher);
+// fFilterMatcher = filterMatcher;
+// }
/**
* Sets a custom comparator for sorting the list.
* @return the starting index in the text of the pattern , or -1 if not
* found
*/
- protected int regExpPosIn(String text, int start, int end, String p) {
+ private int regExpPosIn(String text, int start, int end, String p) {
int plen = p.length();
int max = end - plen;
* @param <code>ignoreCase</code>, boolean indicating wether code>p</code>
* is case sensitive
*/
- protected boolean regExpRegionMatches(String text, int tStart, String p,
+ private boolean regExpRegionMatches(String text, int tStart, String p,
int pStart, int plen) {
while (plen-- > 0) {
char tchar = text.charAt(tStart++);
* @return the starting index in the text of the pattern , or -1 if not
* found
*/
- protected int textPosIn(String text, int start, int end, String p) {
+ private int textPosIn(String text, int start, int end, String p) {
int plen = p.length();
int max = end - plen;
/**
* Creates a labelProvider with DEFAULT_TEXTFLAGS and DEFAULT_IMAGEFLAGS
*/
- public AppearanceAwareLabelProvider() {
- this(DEFAULT_TEXTFLAGS, DEFAULT_IMAGEFLAGS);
- }
+// public AppearanceAwareLabelProvider() {
+// this(DEFAULT_TEXTFLAGS, DEFAULT_IMAGEFLAGS);
+// }
private void initMasks() {
IPreferenceStore store = PreferenceConstants.getPreferenceStore();
*
* @see CheckboxTreeViewer#CheckboxTreeViewer(Composite)
*/
- public ContainerCheckedTreeViewer(Composite parent) {
- super(parent);
- initViewer();
- }
+// public ContainerCheckedTreeViewer(Composite parent) {
+// super(parent);
+// initViewer();
+// }
/**
* Constructor for ContainerCheckedTreeViewer.
*
* @see CheckboxTreeViewer#CheckboxTreeViewer(Tree)
*/
- public ContainerCheckedTreeViewer(Tree tree) {
- super(tree);
- initViewer();
- }
+// public ContainerCheckedTreeViewer(Tree tree) {
+// super(tree);
+// initViewer();
+// }
private void initViewer() {
setUseHashlookup(true);
/**
* Creates a new label provider with default flags.
*/
- public JavaUILabelProvider() {
- this(JavaElementLabels.M_PARAMETER_TYPES,
- JavaElementImageProvider.OVERLAY_ICONS);
- }
+// public JavaUILabelProvider() {
+// this(JavaElementLabels.M_PARAMETER_TYPES,
+// JavaElementImageProvider.OVERLAY_ICONS);
+// }
/**
* @param textFlags
super.removeListener(listener);
}
- public static ILabelDecorator[] getDecorators(boolean errortick,
- ILabelDecorator extra) {
- if (errortick) {
- if (extra == null) {
- return new ILabelDecorator[] {};
- } else {
- return new ILabelDecorator[] { extra };
- }
- }
- if (extra != null) {
- return new ILabelDecorator[] { extra };
- }
- return null;
- }
+// public static ILabelDecorator[] getDecorators(boolean errortick,
+// ILabelDecorator extra) {
+// if (errortick) {
+// if (extra == null) {
+// return new ILabelDecorator[] {};
+// } else {
+// return new ILabelDecorator[] { extra };
+// }
+// }
+// if (extra != null) {
+// return new ILabelDecorator[] { extra };
+// }
+// return null;
+// }
}
public void dispose() {
}
- public boolean isDeleted(Object o) {
- return fContents != null && !fContents.contains(o);
- }
+// public boolean isDeleted(Object o) {
+// return fContents != null && !fContents.contains(o);
+// }
}
/*
* @see ViewerFilter@isFilterProperty
*/
- public boolean isFilterProperty(Object element, Object property) {
- return false;
- }
+// public boolean isFilterProperty(Object element, Object property) {
+// return false;
+// }
/*
* @see ViewerFilter@select
import org.eclipse.jface.viewers.IBaseLabelProvider;
import org.eclipse.jface.viewers.LabelProviderChangedEvent;
import org.eclipse.jface.viewers.TableViewer;
-import org.eclipse.swt.widgets.Composite;
+//import org.eclipse.swt.widgets.Composite;
import org.eclipse.swt.widgets.Item;
import org.eclipse.swt.widgets.Table;
import org.eclipse.swt.widgets.Widget;
*
* @param parent
*/
- public ProblemTableViewer(Composite parent) {
- super(parent);
- initMapper();
- }
+// public ProblemTableViewer(Composite parent) {
+// super(parent);
+// initMapper();
+// }
/**
* Constructor for ProblemTableViewer.
* @param parent
* @param style
*/
- public ProblemTableViewer(Composite parent, int style) {
- super(parent, style);
- initMapper();
- }
+// public ProblemTableViewer(Composite parent, int style) {
+// super(parent, style);
+// initMapper();
+// }
/**
* Constructor for ProblemTableViewer.