bugged stringlengths 6 599k | fixed stringlengths 6 40.8M | __index_level_0__ int64 0 3.24M |
|---|---|---|
private ErrorNotificationManager getManager() { return ProgressManager.getInstance().errorManager; } | private ErrorNotificationManager getManager() { return ProgressManager.getInstance().errorManager; } | 3,225,385 |
public ErrorInfo getSelectedError() { return selectedError; } | public ErrorInfo getSelectedError() { return selectedError; } | 3,225,386 |
private ErrorInfo getSingleSelection() { ISelection rawSelection = jobListViewer.getSelection(); if (rawSelection != null && rawSelection instanceof IStructuredSelection) { IStructuredSelection selection = (IStructuredSelection) rawSelection; if (selection.size() =... | private ErrorInfo getSingleSelection() { ISelection rawSelection = jobListViewer.getSelection(); if (rawSelection != null && rawSelection instanceof IStructuredSelection) { IStructuredSelection selection = (IStructuredSelection) rawSelection; if (selection.size() =... | 3,225,387 |
private ErrorInfo getSingleSelection() { ISelection rawSelection = jobListViewer.getSelection(); if (rawSelection != null && rawSelection instanceof IStructuredSelection) { IStructuredSelection selection = (IStructuredSelection) rawSelection; if (selection.size() =... | private ErrorInfo getSingleSelection() { ISelection rawSelection = jobListViewer.getSelection(); if (rawSelection != null && rawSelection instanceof IStructuredSelection) { IStructuredSelection selection = (IStructuredSelection) rawSelection; if (selection.size() =... | 3,225,388 |
private ViewerSorter getViewerSorter() { return new ViewerSorter() { /* (non-Javadoc) * * @see org.eclipse.jface.viewers.ViewerSorter#compare(org.eclipse.jface.viewers.Viewer, * java.lang.Object, java.lang.Object) */ public int compa... | private ViewerSorter getViewerSorter() { return new ViewerSorter() { /* (non-Javadoc) * * @see org.eclipse.jface.viewers.ViewerSorter#compare(org.eclipse.jface.viewers.Viewer, * java.lang.Object, java.lang.Object) */ public int compa... | 3,225,389 |
public int compare(Viewer testViewer, Object e1, Object e2) { return ((Comparable) e1).compareTo(e2); } | public int compare(Viewer testViewer, Object e1, Object e2) { return ((Comparable) e1).compareTo(e2); } | 3,225,390 |
void handleSelectionChange() { ErrorInfo newSelection = getSingleSelection(); if (newSelection != null && newSelection != selectedError) { selectedError = newSelection; setStatus(selectedError.getErrorStatus()); updateEnablements(); showDetailsArea(); ... | void handleSelectionChange() { ErrorInfo newSelection = getSingleSelection(); if (newSelection != null && newSelection != selectedError) { selectedError = newSelection; setStatus(selectedError.getErrorStatus()); updateEnablements(); showDetailsArea(); ... | 3,225,391 |
protected void initContentProvider() { IContentProvider provider = new IStructuredContentProvider() { /* * (non-Javadoc) * * @see org.eclipse.jface.viewers.IContentProvider#dispose() */ public void dispose() { //Nothing of ... | protected void initContentProvider() { IContentProvider provider = new IStructuredContentProvider() { /* * (non-Javadoc) * * @see org.eclipse.jface.viewers.IContentProvider#dispose() */ public void dispose() { //Nothing of ... | 3,225,392 |
protected void initContentProvider() { IContentProvider provider = new IStructuredContentProvider() { /* * (non-Javadoc) * * @see org.eclipse.jface.viewers.IContentProvider#dispose() */ public void dispose() { //Nothing of ... | protected void initContentProvider() { IContentProvider provider = new IStructuredContentProvider() { /* * (non-Javadoc) * * @see org.eclipse.jface.viewers.IContentProvider#dispose() */ public void dispose() { //Nothing of ... | 3,225,393 |
protected void initContentProvider() { IContentProvider provider = new IStructuredContentProvider() { /* * (non-Javadoc) * * @see org.eclipse.jface.viewers.IContentProvider#dispose() */ public void dispose() { //Nothing of ... | protected void initContentProvider() { IContentProvider provider = new IStructuredContentProvider() { /* * (non-Javadoc) * * @see org.eclipse.jface.viewers.IContentProvider#dispose() */ public void dispose() { //Nothing of ... | 3,225,394 |
protected void initContentProvider() { IContentProvider provider = new IStructuredContentProvider() { /* * (non-Javadoc) * * @see org.eclipse.jface.viewers.IContentProvider#dispose() */ public void dispose() { //Nothing of ... | protected void initContentProvider() { IContentProvider provider = new IStructuredContentProvider() { /* * (non-Javadoc) * * @see org.eclipse.jface.viewers.IContentProvider#dispose() */ public void dispose() { //Nothing of ... | 3,225,395 |
public void dispose() { //Nothing of interest here } | public void dispose() { //Nothing of interest here } | 3,225,396 |
public Object[] getElements(Object inputElement) { return getManager().getErrors().toArray(); } | public Object[] getElements(Object inputElement) { return getManager().getErrors().toArray(); } | 3,225,397 |
public void inputChanged(Viewer viewer, Object oldInput, Object newInput) { if (newInput != null) { refreshJobList(); } } | public void inputChanged(Viewer viewer, Object oldInput, Object newInput) { if (newInput != null) { refreshJobList(); } } | 3,225,398 |
public void inputChanged(Viewer viewer, Object oldInput, Object newInput) { if (newInput != null) { refreshJobList(); } } | public void inputChanged(Viewer viewer, Object oldInput, Object newInput) { if (newInput != null) { refreshJobList(); } } | 3,225,399 |
private void initLabelProvider() { ITableLabelProvider provider = new ITableLabelProvider() { Map imageTable = new HashMap(); /* * (non-Javadoc) * * @see org.eclipse.jface.viewers.IBaseLabelProvider#addListener(org.eclipse.jface.viewers.ILabelProvide... | private void initLabelProvider() { ITableLabelProvider provider = new ITableLabelProvider() { Map imageTable = new HashMap(); /* * (non-Javadoc) * * @see org.eclipse.jface.viewers.IBaseLabelProvider#addListener(org.eclipse.jface.viewers.ILabelProvide... | 3,225,400 |
private void initLabelProvider() { ITableLabelProvider provider = new ITableLabelProvider() { Map imageTable = new HashMap(); /* * (non-Javadoc) * * @see org.eclipse.jface.viewers.IBaseLabelProvider#addListener(org.eclipse.jface.viewers.ILabelProvide... | private void initLabelProvider() { ITableLabelProvider provider = new ITableLabelProvider() { Map imageTable = new HashMap(); /* * (non-Javadoc) * * @see org.eclipse.jface.viewers.IBaseLabelProvider#addListener(org.eclipse.jface.viewers.ILabelProvide... | 3,225,401 |
private void initLabelProvider() { ITableLabelProvider provider = new ITableLabelProvider() { Map imageTable = new HashMap(); /* * (non-Javadoc) * * @see org.eclipse.jface.viewers.IBaseLabelProvider#addListener(org.eclipse.jface.viewers.ILabelProvide... | private void initLabelProvider() { ITableLabelProvider provider = new ITableLabelProvider() { Map imageTable = new HashMap(); /* * (non-Javadoc) * * @see org.eclipse.jface.viewers.IBaseLabelProvider#addListener(org.eclipse.jface.viewers.ILabelProvide... | 3,225,402 |
private void initLabelProvider() { ITableLabelProvider provider = new ITableLabelProvider() { Map imageTable = new HashMap(); /* * (non-Javadoc) * * @see org.eclipse.jface.viewers.IBaseLabelProvider#addListener(org.eclipse.jface.viewers.ILabelProvide... | private void initLabelProvider() { ITableLabelProvider provider = new ITableLabelProvider() { Map imageTable = new HashMap(); /* * (non-Javadoc) * * @see org.eclipse.jface.viewers.IBaseLabelProvider#addListener(org.eclipse.jface.viewers.ILabelProvide... | 3,225,403 |
private void initLabelProvider() { ITableLabelProvider provider = new ITableLabelProvider() { Map imageTable = new HashMap(); /* * (non-Javadoc) * * @see org.eclipse.jface.viewers.IBaseLabelProvider#addListener(org.eclipse.jface.viewers.ILabelProvide... | private void initLabelProvider() { ITableLabelProvider provider = new ITableLabelProvider() { Map imageTable = new HashMap(); /* * (non-Javadoc) * * @see org.eclipse.jface.viewers.IBaseLabelProvider#addListener(org.eclipse.jface.viewers.ILabelProvide... | 3,225,404 |
private void initLabelProvider() { ITableLabelProvider provider = new ITableLabelProvider() { Map imageTable = new HashMap(); /* * (non-Javadoc) * * @see org.eclipse.jface.viewers.IBaseLabelProvider#addListener(org.eclipse.jface.viewers.ILabelProvide... | private void initLabelProvider() { ITableLabelProvider provider = new ITableLabelProvider() { Map imageTable = new HashMap(); /* * (non-Javadoc) * * @see org.eclipse.jface.viewers.IBaseLabelProvider#addListener(org.eclipse.jface.viewers.ILabelProvide... | 3,225,405 |
public void addListener(ILabelProviderListener listener) { //Do nothing } | public void addListener(ILabelProviderListener listener) { //Do nothing } | 3,225,406 |
public void dispose() { if (!imageTable.isEmpty()) { for (Iterator iter = imageTable.values().iterator(); iter.hasNext();) { Image image = (Image) iter.next(); image.dispose(); } } } | public void dispose() { if (!imageTable.isEmpty()) { for (Iterator iter = imageTable.values().iterator(); iter.hasNext();) { Image image = (Image) iter.next(); image.dispose(); } } } | 3,225,407 |
public Image getColumnImage(Object element, int columnIndex) { return getIcon(((ErrorInfo)element).getJob()); } | public Image getColumnImage(Object element, int columnIndex) { return getIcon(((ErrorInfo)element).getJob()); } | 3,225,408 |
public String getColumnText(Object element, int columnIndex) { return ((ErrorInfo) element).getDisplayString(); } | public String getColumnText(Object element, int columnIndex) { return ((ErrorInfo) element).getDisplayString(); } | 3,225,409 |
private Image getIcon(Job job) { if (job != null) { Object property = job.getProperty(IProgressConstants.ICON_PROPERTY); // If we already have an image cached, return it Image im = (Image)imageTab... | private Image getIcon(Job job) { if (job != null) { Object property = job.getProperty(IProgressConstants.ICON_PROPERTY); // If we already have an image cached, return it Image im = (Image)imageTab... | 3,225,410 |
public boolean isLabelProperty(Object element, String property) { return false; } | public boolean isLabelProperty(Object element, String property) { return false; } | 3,225,411 |
public void removeListener(ILabelProviderListener listener) { //Do nothing } | public void removeListener(ILabelProviderListener listener) { //Do nothing } | 3,225,412 |
protected void initializeBounds() { // We need to refesh here instead of in createContents // because the showDetailsArea requires that the content // composite be set refresh(); super.initializeBounds(); Rectangle shellPosition = getShell().getBounds(); ProgressMana... | protected void initializeBounds() { // We need to refesh here instead of in createContents // because the showDetailsArea requires that the content // composite be set refresh(); super.initializeBounds(); Rectangle shellPosition = getShell().getBounds(); ProgressMana... | 3,225,413 |
private boolean isMultipleJobErrors() { return getManager().getErrors().size() > 1; } | private boolean isMultipleJobErrors() { return getManager().getErrors().size() > 1; } | 3,225,414 |
private boolean isPromptToClose() { IPreferenceStore store = WorkbenchPlugin.getDefault().getPreferenceStore(); if (!store.contains(PREF_SKIP_GOTO_ACTION_PROMPT) || !store.getString(PREF_SKIP_GOTO_ACTION_PROMPT).equals(MessageDialogWithToggle.ALWAYS)) { MessageDialogWithToggle dialog = Message... | private boolean isPromptToClose() { IPreferenceStore store = WorkbenchPlugin.getDefault().getPreferenceStore(); if (!store.contains(PREF_SKIP_GOTO_ACTION_PROMPT) || !store.getString(PREF_SKIP_GOTO_ACTION_PROMPT).equals(MessageDialogWithToggle.ALWAYS)) { MessageDialogWithToggle dialog = Message... | 3,225,415 |
void refreshJobList() { if (jobListViewer != null && !jobListViewer.getControl().isDisposed()) { jobListViewer.refresh(); Point newSize = getShell().computeSize(SWT.DEFAULT, SWT.DEFAULT); getShell().setSize(newSize); } setStatus(selectedError.getErrorStatus()); ... | void refreshJobList() { if (jobListViewer != null && !jobListViewer.getControl().isDisposed()) { jobListViewer.refresh(); Point newSize = getShell().computeSize(SWT.DEFAULT, SWT.DEFAULT); getShell().setSize(newSize); } setStatus(selectedError.getErrorStatus()); ... | 3,225,416 |
private void setMessage(String messageString) { //must not set null text in a label message = messageString == null ? "" : messageString; //$NON-NLS-1$ if (messageLabel == null || messageLabel.isDisposed()) { return; } messageLabel.setText(message); } | private void setMessage(String messageString) { //must not set null text in a label message = messageString == null ? "" : messageString; //$NON-NLS-1$ if (messageLabel == null || messageLabel.isDisposed()) { return; } messageLabel.setText(message); } | 3,225,417 |
private void setMessage(String messageString) { //must not set null text in a label message = messageString == null ? "" : messageString; //$NON-NLS-1$ if (messageLabel == null || messageLabel.isDisposed()) { return; } messageLabel.setText(message); } | private void setMessage(String messageString) { //must not set null text in a label message = messageString == null ? "" : messageString; //$NON-NLS-1$ if (messageLabel == null || messageLabel.isDisposed()) { return; } messageLabel.setText(message); } | 3,225,418 |
private void updateEnablements() { Button details = getButton(IDialogConstants.DETAILS_ID); if (details != null) { details.setEnabled(selectedError.getErrorStatus().isMultiStatus() || isMultipleJobErrors()); } Button gotoButton = getButton(GOTO_ACTION_ID); if (gotoButto... | private void updateEnablements() { Button details = getButton(IDialogConstants.DETAILS_ID); if (details != null) { details.setEnabled(selectedError.getErrorStatus().isMultiStatus() || isMultipleJobErrors()); } Button gotoButton = getButton(GOTO_ACTION_ID); if (gotoButto... | 3,225,419 |
public static void setupVerticalAlign(Context c, CalculatedStyle style, InlineBox box) { Node node = box.getNode(); // get the parent node for styling Node parent = box.getNode().getParentNode(); Element elem = null; if (box.getNode().getNodeType() == box.getNode().TEXT_NODE) { ... | public static void setupVerticalAlign(Context c, CalculatedStyle style, InlineBox box) { Node node = box.getNode(); // get the parent node for styling Element elem = null; if (box.getNode().getNodeType() == box.getNode().TEXT_NODE) { parent = parent.getParentNode(); ... | 3,225,420 |
public static void setupVerticalAlign(Context c, CalculatedStyle style, InlineBox box) { Node node = box.getNode(); // get the parent node for styling Node parent = box.getNode().getParentNode(); Element elem = null; if (box.getNode().getNodeType() == box.getNode().TEXT_NODE) { ... | public static void setupVerticalAlign(Context c, CalculatedStyle style, InlineBox box) { Node node = box.getNode(); // get the parent node for styling Node parent = box.getNode().getParentNode(); Element elem = null; if (box.getNode().getNodeType() == box.getNode().TEXT_NODE) { ... | 3,225,421 |
public String toDetailString() { String modifiedNick; if (modifiedBy == null) { modifiedNick = "-unknown-"; } else { modifiedNick = modifiedBy.nick; } return (deleted ? "(del) " : "") + toString() + ", size: " + size + " bytes, version: " + getVers... | public String toDetailString() { String modifiedNick; if (modifiedBy == null) { modifiedNick = "-unknown-"; } else { modifiedNick = modifiedBy.nick; } return (deleted ? "(del) " : "") + toString() + ", size: " + size + " bytes, version: " + getVers... | 3,225,422 |
public UnmodifiableObservableList(IObservableList wrappedList) { super(wrappedList.getRealm(), wrappedList, wrappedList.getElementType()); this.wrappedList = wrappedList; wrappedList.addListChangeListener(new IListChangeListener() { public void handleListChange(IObservableList source, ListDiff diff) { // Fires... | public UnmodifiableObservableList(IObservableList wrappedList) { super(wrappedList.getRealm(), wrappedList, wrappedList.getElementType()); this.wrappedList = wrappedList; wrappedList.addListChangeListener(new IListChangeListener() { public void handleListChange(IObservableList source, ListDiff diff) { // Fires... | 3,225,423 |
public UnmodifiableObservableList(IObservableList wrappedList) { super(wrappedList.getRealm(), wrappedList, wrappedList.getElementType()); this.wrappedList = wrappedList; wrappedList.addListChangeListener(new IListChangeListener() { public void handleListChange(IObservableList source, ListDiff diff) { // Fires... | public UnmodifiableObservableList(IObservableList wrappedList) { super(wrappedList.getRealm(), wrappedList, wrappedList.getElementType()); this.wrappedList = wrappedList; wrappedList.addListChangeListener(new IListChangeListener() { public void handleListChange(IObservableList source, ListDiff diff) { // Fires... | 3,225,424 |
public UnmodifiableObservableList(IObservableList wrappedList) { super(wrappedList.getRealm(), wrappedList, wrappedList.getElementType()); this.wrappedList = wrappedList; wrappedList.addListChangeListener(new IListChangeListener() { public void handleListChange(IObservableList source, ListDiff diff) { // Fires... | public UnmodifiableObservableList(IObservableList wrappedList) { super(wrappedList.getRealm(), wrappedList, wrappedList.getElementType()); this.wrappedList = wrappedList; wrappedList.addListChangeListener(new IListChangeListener() { public void handleListChange(IObservableList source, ListDiff diff) { // Fires... | 3,225,425 |
public void handleListChange(IObservableList source, ListDiff diff) { // Fires a Change and then ListChange event. fireListChange(diff); } | public void handleListChange(IObservableList source, ListDiff diff) { // Fires a Change and then ListChange event. fireListChange(diff); } | 3,225,426 |
public void handleListChange(IObservableList source, ListDiff diff) { // Fires a Change and then ListChange event. fireListChange(diff); } | public void handleListChange(IObservableList source, ListDiff diff) { // Fires a Change and then ListChange event. fireListChange(diff); } | 3,225,427 |
public void handleStale(IObservable source) { fireStale(); } | public void handleStale(IObservable source) { fireStale(); } | 3,225,428 |
public IRubyObject getDynamicValue(String name) { IRubyObject result = ((DynamicVariableSet) dynamicVarsStack.peek()).get(name); if (result == null) { return runtime.getNil(); } return result; } | public IRubyObject getDynamicValue(String name) { IRubyObject result = ((DynamicVariableSet) dynamicVarsStack.peek()).get(name); if (result == null) { return runtime.getNil(); } return result; } | 3,225,430 |
public IRubyObject yield(IRubyObject value, IRubyObject self, RubyModule klass, boolean checkArguments) { if (! isBlockGiven()) { throw new RaiseException(runtime, runtime.getExceptions().getLocalJumpError(), "yield called out of block"); } pushDynamicVars(); Block currentBloc... | public IRubyObject yield(IRubyObject value, IRubyObject self, RubyModule klass, boolean yieldProc, boolean aValue) { if (! isBlockGiven()) { throw new RaiseException(runtime, runtime.getExceptions().getLocalJumpError(), "yield called out of block"); } pushDynamicVars(); Block ... | 3,225,431 |
public IRubyObject yield(IRubyObject value, IRubyObject self, RubyModule klass, boolean checkArguments) { if (! isBlockGiven()) { throw new RaiseException(runtime, runtime.getExceptions().getLocalJumpError(), "yield called out of block"); } pushDynamicVars(); Block currentBloc... | public IRubyObject yield(IRubyObject value, IRubyObject self, RubyModule klass, boolean checkArguments) { if (! isBlockGiven()) { throw new RaiseException(runtime, runtime.getExceptions().getLocalJumpError(), "yield called out of block"); } pushDynamicVars(); Block currentBloc... | 3,225,432 |
public IRubyObject yield(IRubyObject value, IRubyObject self, RubyModule klass, boolean checkArguments) { if (! isBlockGiven()) { throw new RaiseException(runtime, runtime.getExceptions().getLocalJumpError(), "yield called out of block"); } pushDynamicVars(); Block currentBloc... | public IRubyObject yield(IRubyObject value, IRubyObject self, RubyModule klass, boolean checkArguments) { if (! isBlockGiven()) { throw new RaiseException(runtime, runtime.getExceptions().getLocalJumpError(), "yield called out of block"); } pushDynamicVars(); Block currentBloc... | 3,225,433 |
public ActionForward render( ActionMapping mapping, ActionForm form, PortletConfig config, RenderRequest req, RenderResponse res) throws Exception { String composeAction = ParamUtil.getString(req, "composeAction"); long messageId = ParamUtil.getLong(req, "messageId"); String folderId = ParamUtil.getString(req,... | public ActionForward render( ActionMapping mapping, ActionForm form, PortletConfig config, RenderRequest req, RenderResponse res) throws Exception { String composeAction = ParamUtil.getString(req, "composeAction"); long messageId = ParamUtil.getLong(req, "messageId"); String folderId = ParamUtil.getString(req,... | 3,225,434 |
private long mutate(MutatorOperation.Mutator m, String key, int by) { final SynchronizationObject<Long> sync= new SynchronizationObject<Long>(null); conn.addOperation(getServerForKey(key), new MutatorOperation(m, key, by, new MutatorOperation.Callback() { public void mutatorResult(Long val) { if(val ==... | private long mutate(MutatorOperation.Mutator m, String key, int by) { final SynchronizationObject<Long> sync= new SynchronizationObject<Long>(null); conn.addOperation(getServerForKey(key), new MutatorOperation(m, key, by, new MutatorOperation.Callback() { public void mutatorResult(Long val) { if(val ==... | 3,225,435 |
public PerspectiveExtensionReader() { super();} | public PerspectiveExtensionReader() { super();} | 3,225,436 |
private JButton createSyncNowToolbarButton() { final JButton syncNowButton = createToolbarButton(getUIController() .getSyncAllFoldersAction(), Icons.SYNC_NOW); // Adapt state from folder repository getController().getFolderRepository().addFolderRepositoryListener( new Fold... | private JButton createSyncNowToolbarButton() { final JButton syncNowButton = createToolbarButton(getUIController() .getSyncAllFoldersAction(), Icons.SYNC_NOW); // Adapt state from folder repository getController().getFolderRepository().addFolderRepositoryListener( new Fold... | 3,225,438 |
private JButton createSyncNowToolbarButton() { final JButton syncNowButton = createToolbarButton(getUIController() .getSyncAllFoldersAction(), Icons.SYNC_NOW); // Adapt state from folder repository getController().getFolderRepository().addFolderRepositoryListener( new Fold... | private JButton createSyncNowToolbarButton() { final JButton syncNowButton = createToolbarButton(getUIController() .getSyncAllFoldersAction(), Icons.SYNC_NOW); // Adapt state from folder repository getController().getFolderRepository().addFolderRepositoryListener( new Fold... | 3,225,439 |
public com.liferay.portlet.shopping.model.ShoppingCategory update( com.liferay.portlet.shopping.model.ShoppingCategory shoppingCategory) throws SystemException { Session session = null; try { if (shoppingCategory.isNew() || shoppingCategory.isModified()) { session = openSession(); if (shoppingCategory.isNe... | public com.liferay.portlet.shopping.model.ShoppingCategory update( com.liferay.portlet.shopping.model.ShoppingCategory shoppingCategory) throws SystemException { Session session = null; try { if (shoppingCategory.isNew() || shoppingCategory.isModified()) { session = openSession(); if (shoppingCategory.isNe... | 3,225,440 |
public void setVisible(boolean makeVisible) { super.setVisible(makeVisible); if (isvToolBar != null) { isvToolBar.setVisible(makeVisible); } } | public void setVisible(boolean makeVisible) { super.setVisible(makeVisible); if (isvToolBar != null) { isvToolBar.setVisible(makeVisible); } } | 3,225,441 |
public void createActions() { SelectionMouseListener ma = new SelectionMouseListener(); root.panel.view.addMouseListener( ma ); root.panel.view.addMouseMotionListener( ma ); logger.info( "added a mouse motion listener: " + ma ); } | public void createActions() { SelectionMouseListener ma = new SelectionMouseListener(); root.panel.view.addMouseListener( ma ); root.panel.view.addMouseMotionListener( ma ); logger.info( "added mouse selection listener: " + ma ); HoverListener hl = new HoverListener(root.panel.view); roo... | 3,225,443 |
public void init(ServletConfig sc) throws ServletException { synchronized (ImageServlet.class) { super.init(sc); ServletContext ctx = getServletContext(); _companyId = ctx.getInitParameter("company_id"); } } | public void init(ServletConfig sc) throws ServletException { synchronized (ImageServlet.class) { super.init(sc); ServletContext ctx = getServletContext(); _companyId = ctx.getInitParameter("company_id"); } } | 3,225,445 |
public void init(ServletConfig sc) throws ServletException { synchronized (ImageServlet.class) { super.init(sc); ServletContext ctx = getServletContext(); _companyId = ctx.getInitParameter("company_id"); } } | public void init(ServletConfig sc) throws ServletException { synchronized (ImageServlet.class) { super.init(sc); ServletContext ctx = getServletContext(); _companyId = ctx.getInitParameter("company_id"); } } | 3,225,446 |
private void actionForTemplate ( String direction, int index, ParameterParser params, SessionState state) { // Continue - make any permanent changes, Back - keep any data entered on the form boolean forward = direction.equals("continue") ? true : false; SiteInfo siteInfo = new SiteInfo(); switch (index) { c... | private void actionForTemplate ( String direction, int index, ParameterParser params, SessionState state) { // Continue - make any permanent changes, Back - keep any data entered on the form boolean forward = direction.equals("continue") ? true : false; SiteInfo siteInfo = new SiteInfo(); switch (index) { c... | 3,225,449 |
private void internalRefreshAll(boolean updateLabels) { // the parent // in the code below, it is important to do all disassociates // before any associates, since a later disassociate can undo an // earlier associate // e.g. if (a, b) is replaced by (b, a), the disassociate of b to // item 1 could undo // the ... | private void internalRefreshAll(boolean updateLabels) { // the parent // in the code below, it is important to do all disassociates // before any associates, since a later disassociate can undo an // earlier associate // e.g. if (a, b) is replaced by (b, a), the disassociate of b to // item 1 could undo // the ... | 3,225,450 |
public static void createGlobals(IRuby runtime) { // Version information: IRubyObject version = runtime.newString(Constants.RUBY_VERSION).freeze(); IRubyObject release = runtime.newString(Constants.COMPILE_DATE).freeze(); IRubyObject platform = runtime.newString(Constants.PLATFORM).freez... | public static void createGlobals(IRuby runtime) { // Version information: IRubyObject version = runtime.newString(Constants.RUBY_VERSION).freeze(); IRubyObject release = runtime.newString(Constants.COMPILE_DATE).freeze(); IRubyObject platform = runtime.newString(Constants.PLATFORM).freez... | 3,225,451 |
public static RubyArray frexp(IRubyObject recv, RubyNumeric other) { double mantissa = other.getDoubleValue(); short sign = 1; double exponent = 0; if (mantissa != 0.0) { // Make mantissa same sign so we only have one code path. if (mantissa < 0) { ma... | public static RubyArray frexp(IRubyObject recv, RubyNumeric other) { double mantissa = other.getDoubleValue(); short sign = 1; double exponent = 0; if (mantissa != 0.0) { // Make mantissa same sign so we only have one code path. if (mantissa < 0) { ma... | 3,225,453 |
public RubyObject eval(Ruby ruby, RubyObject self) { RubyObject result = null; try { result = getHeadNode().eval(ruby, self); } finally { if (getEnsureNode() != null) { // RubyObject actExcptn = ruby.getActException(); getEnsureNod... | public RubyObject eval(Ruby ruby, RubyObject self) { try { result = getHeadNode().eval(ruby, self); } finally { if (getEnsureNode() != null) { // RubyObject actExcptn = ruby.getActException(); getEnsureNode().eval(ruby, self); ... | 3,225,455 |
public RubyObject eval(Ruby ruby, RubyObject self) { RubyObject result = null; try { result = getHeadNode().eval(ruby, self); } finally { if (getEnsureNode() != null) { // RubyObject actExcptn = ruby.getActException(); getEnsureNod... | public RubyObject eval(Ruby ruby, RubyObject self) { RubyObject result = null; try { return getHeadNode().eval(ruby, self); } finally { if (getEnsureNode() != null) { // RubyObject actExcptn = ruby.getActException(); getEnsureNod... | 3,225,456 |
public RubyObject eval(Ruby ruby, RubyObject self) { RubyObject result = null; try { result = getHeadNode().eval(ruby, self); } finally { if (getEnsureNode() != null) { // RubyObject actExcptn = ruby.getActException(); getEnsureNod... | public RubyObject eval(Ruby ruby, RubyObject self) {RubyObject result = null;try {result = getHeadNode().eval(ruby, self);} finally {if (getEnsureNode() != null) {// RubyObject actExcptn = ruby.getActException();getEnsureNode().eval(ruby, self);// ruby.setActException(actExcptn);// VALUE retval = prot_tag->retval; /* s... | 3,225,457 |
public RubyObject eval(Ruby ruby, RubyObject self) { RubyObject result = null; try { result = getHeadNode().eval(ruby, self); } finally { if (getEnsureNode() != null) { // RubyObject actExcptn = ruby.getActException(); getEnsureNod... | public RubyObject eval(Ruby ruby, RubyObject self) { RubyObject result = null; try {result = getHeadNode().eval(ruby, self); } finally {if (getEnsureNode() != null) { // RubyObject actExcptn = ruby.getActException(); getEnsureNode().eval(ruby, self); // ruby.setActException(actExcptn); // VALUE retva... | 3,225,458 |
public RubyObject eval(Ruby ruby, RubyObject self) { RubyObject result = null; try { result = getHeadNode().eval(ruby, self); } finally { if (getEnsureNode() != null) { // RubyObject actExcptn = ruby.getActException(); getEnsureNod... | public RubyObject eval(Ruby ruby, RubyObject self) { RubyObject result = null; try { result = getHeadNode().eval(ruby, self); } finally { if (getEnsureNode() != null) { // RubyObject actExcptn = ruby.getActException(); getEnsureNod... | 3,225,459 |
public static void main(String[] args) throws Exception { //System.out.println(new URI("images/Stop24.gif")); JFrame frame = new JFrame(); frame.setDefaultCloseOperation(JFrame.EXIT_ON_CLOSE); BrowserStartup bs = new BrowserStartup(); bs.frame = frame; bs... | public static void main(String[] args) throws Exception { //System.out.println(new URI("images/Stop24.gif")); JFrame frame = new JFrame(); frame.setDefaultCloseOperation(JFrame.EXIT_ON_CLOSE); final BrowserStartup bs = new BrowserStartup(); bs.frame = frame; ... | 3,225,460 |
protected String getResourcePath(String resource) { return getClass().getResource( "dependencies/" + resource).getPath().substring(1); } | protected String getResourcePath(String resource) { return getClass().getResource( "dependencies/" + resource).getPath().substring(1); } | 3,225,462 |
private static void layoutCells(List cells, LayoutContext c, RowBox row, TableBox table, boolean fixed, int borderSpacingHorizontal, int borderSpacingVertical) { int col = 0; for (Iterator i = cells.iterator(); i.hasNext() && !c.shouldStop();) { checkColumns(table, col + 1); whil... | private static void layoutCells(List cells, LayoutContext c, RowBox row, TableBox table, boolean fixed, int borderSpacingHorizontal, int borderSpacingVertical) { int col = 0; for (Iterator i = cells.iterator(); i.hasNext() && !c.shouldStop();) { checkColumns(table, col + 1); whil... | 3,225,463 |
public static void setupFloat(Context c, Box box, CascadedStyle style) { if (ContentUtil.isFloated(style)) { //Uu.p("==== setup float ===="); //Uu.dump_stack(); IdentValue floatVal = style.getIdent(CSSName.FLOAT); if (floatVal == IdentValue.NONE) { r... | public static void setupFloat(Context c, Box box, CascadedStyle style) { if (ContentUtil.isFloated(style)) { //Uu.p("==== setup float ===="); //Uu.dump_stack(); IdentValue floatVal = style.getIdent(CSSName.FLOAT); if (floatVal == IdentValue.NONE) { r... | 3,225,465 |
public static void setupFloat(Context c, Box box, CascadedStyle style) { if (ContentUtil.isFloated(style)) { //Uu.p("==== setup float ===="); //Uu.dump_stack(); IdentValue floatVal = style.getIdent(CSSName.FLOAT); if (floatVal == IdentValue.NONE) { r... | public static void setupFloat(Context c, Box box, CascadedStyle style) { if (ContentUtil.isFloated(style)) { //Uu.p("==== setup float ===="); //Uu.dump_stack(); IdentValue floatVal = c.getCurrentStyle().getIdent(CSSName.FLOAT); if (floatVal == IdentValue.NONE) { ... | 3,225,466 |
private String buildContextForTemplate (int index, VelocityPortlet portlet, Context context, RunData data, SessionState state) { String realmId = ""; String site_type = ""; String sortedBy = ""; String sortedAsc = ""; ParameterParser params = data.getParameters (); context.put("tlang",rb); context.put(... | private String buildContextForTemplate (int index, VelocityPortlet portlet, Context context, RunData data, SessionState state) { String realmId = ""; String site_type = ""; String sortedBy = ""; String sortedAsc = ""; ParameterParser params = data.getParameters (); context.put("tlang",rb); context.put(... | 3,225,468 |
public IRubyObject reopen(IRubyObject arg1, IRubyObject[] args) { if (arg1.isKindOf(getRuntime().getClasses().getIoClass())) { RubyIO ios = (RubyIO) arg1; int keepFileno = handler.getFileno(); // When we reopen, we want our fileno to be preserved even // though we ... | public IRubyObject reopen(IRubyObject arg1, IRubyObject[] args) { if (arg1.isKindOf(getRuntime().getClasses().getIoClass())) { RubyIO ios = (RubyIO) arg1; int keepFileno = handler.getFileno(); // When we reopen, we want our fileno to be preserved even // though we ... | 3,225,469 |
public void scanDownloadFile(FileInfo fInfo, File tempFile) { synchronized (scanLock) { // rename file File targetFile = fInfo.getDiskFile(getController() .getFolderRepository()); if (!tempFile.renameTo(targetFile)) { log().warn( ... | public void scanDownloadFile(FileInfo fInfo, File tempFile) { synchronized (scanLock) { // rename file File targetFile = fInfo.getDiskFile(getController() .getFolderRepository()); if (!tempFile.renameTo(targetFile)) { log().warn( ... | 3,225,470 |
boolean scanFile(FileInfo fInfo, boolean restored) { synchronized (scanLock) { if (fInfo == null) { throw new NullPointerException("File is null"); } // First relink modified by memberinfo to // actual instance if available on nodemanager ... | boolean scanFile(FileInfo fInfo) { synchronized (scanLock) { if (fInfo == null) { throw new NullPointerException("File is null"); } // First relink modified by memberinfo to // actual instance if available on nodemanager Member from = getC... | 3,225,471 |
boolean scanFile(FileInfo fInfo, boolean restored) { synchronized (scanLock) { if (fInfo == null) { throw new NullPointerException("File is null"); } // First relink modified by memberinfo to // actual instance if available on nodemanager ... | boolean scanFile(FileInfo fInfo, boolean restored) { synchronized (scanLock) { if (fInfo == null) { throw new NullPointerException("File is null"); } // First relink modified by memberinfo to // actual instance if available on nodemanager ... | 3,225,472 |
private int scanLocalFile(File file, Set remaining) { synchronized (scanLock) { if (file.isDirectory()) { if (file.equals(getSystemSubDir()) || getController().getRecycleBin().isRecycleBin(this, file)) { // Skipping these subdirs ... | private int scanLocalFile(File file, Set remaining) { synchronized (scanLock) { if (file.isDirectory()) { if (file.equals(getSystemSubDir()) || getController().getRecycleBin().isRecycleBin(this, file)) { // Skipping these subdirs ... | 3,225,474 |
public void scanNewFile(FileInfo fileInfo) { if (scanFile(fileInfo, false)) { folderChanged(); statistic.calculate(); } } | public void scanNewFile(FileInfo fileInfo) { if (scanFile(fileInfo)) { folderChanged(); statistic.calculate(); } } | 3,225,475 |
public void asyncExec(Runnable runnable) { Display display = this.getViewSite().getWorkbenchWindow().getShell().getDisplay(); // If the display is disposed, you cant do anything with it!!! if (display == null || display.isDisposed()) return; display.asyncExec(runnable); } | public void asyncExec(Runnable runnable) { Display display = this.getViewSite().getWorkbenchWindow().getShell().getDisplay(); // If the display is disposed, you cant do anything with it!!! if (display == null || display.isDisposed()) return; display.asyncExec(runnable); } | 3,225,476 |
public void visitDefnNode(DefnNode iVisited) { RubyModule rubyClass = ruby.getRubyClass(); if (rubyClass == null) { throw new TypeError(ruby, "No class to add method."); } //if (ruby_class == getRuby().getObjectClass() && node.nd_mid() == init) { // warn("redefining Obj... | public void visitDefnNode(DefnNode iVisited) { RubyModule rubyClass = ruby.getRubyClass(); if (rubyClass == null) { throw new TypeError(ruby, "No class to add method."); } //if (ruby_class == getRuby().getObjectClass() && node.nd_mid() == init) { // warn("redefining Obj... | 3,225,477 |
public WeakSymbolEntry(RubySymbol symbol) { super(symbol, unusedSymbols); this.name = symbol.asSymbol(); } | public WeakSymbolEntry(RubySymbol symbol) { super(symbol, unusedSymbols); this.name = symbol.asSymbol(); } | 3,225,478 |
private String name() { return name; } | public String name() { return name; } | 3,225,479 |
public void store(RubySymbol symbol) { clean(); table.put(symbol.asSymbol(), new WeakSymbolEntry(symbol)); } | public void store(RubySymbol symbol) { clean(); table.put(symbol.asSymbol(), new WeakSymbolEntry(symbol, unusedSymbols)); } | 3,225,480 |
public static RubySymbol getSymbol(Ruby runtime, long id) { RubySymbol result = runtime.symbolTable.lookup(id); if (result == null) { return nilSymbol(runtime); } return result; } | public static IRubyObject getSymbol(Ruby runtime, long id) { RubySymbol result = runtime.symbolTable.lookup(id); if (result == null) { return nilSymbol(runtime); } return result; } | 3,225,481 |
public static RubySymbol getSymbol(Ruby runtime, long id) { RubySymbol result = runtime.symbolTable.lookup(id); if (result == null) { return nilSymbol(runtime); } return result; } | public static RubySymbol getSymbol(Ruby runtime, long id) { RubySymbol result = runtime.symbolTable.lookup(id); if (result == null) { return runtime.getNil(); } return result; } | 3,225,482 |
public static RubySymbol newSymbol(Ruby runtime, String name) { RubySymbol result; synchronized (RubySymbol.class) { // Locked to prevent the creation of multiple instances of // the same symbol. Most code depends on them being unique. result = runtime.symbolTable.look... | public static RubySymbol newSymbol(Ruby runtime, String name) { RubySymbol result; synchronized (RubySymbol.class) { // Locked to prevent the creation of multiple instances of // the same symbol. Most code depends on them being unique. result = runtime.symbolTable.look... | 3,225,483 |
public Arity getArity() { if (getNode() instanceof AttrSetNode) { return Arity.singleArgument(); } else if (getNode() instanceof InstVarNode) { return Arity.noArguments(); } else { return Arity.optional(); } } | public Arity getArity() { if (getNode() instanceof AttrSetNode) { return Arity.singleArgument(); } else if (getNode() instanceof InstVarNode) { return Arity.noArguments(); } else { return Arity.optional(); } } | 3,225,484 |
protected void doUpdateItem(Widget widget, Object element, boolean fullMap) { if (widget instanceof TableItem) { TableItem item = (TableItem) widget; // remember element we are showing if (fullMap) { associate(element, item); } else { item.setData(element); mapElement(element, item); } IBaseLabelProvide... | protected void doUpdateItem(Widget widget, Object element, boolean fullMap) { if (widget instanceof TableItem) { TableItem item = (TableItem) widget; // remember element we are showing if (fullMap) { associate(element, item); } else { item.setData(element); mapElement(element, item); } IBaseLabelProvide... | 3,225,485 |
public void createContributionItems(IMenuService menuService, List additions) { additions.clear(); IConfigurationElement[] items = additionElement.getChildren(); for (int i = 0; i < items.length; i++) { String itemType = items[i].getName(); IContributionItem newItem = null; if (IWorkbenchRegistryConstants.TAG... | public void createContributionItems(IMenuService menuService, List additions) { additions.clear(); IConfigurationElement[] items = additionElement.getChildren(); for (int i = 0; i < items.length; i++) { String itemType = items[i].getName(); IContributionItem newItem = null; if (IWorkbenchRegistryConstants.TAG... | 3,225,486 |
private IContributionItem createWidgetAdditionContribution( final IConfigurationElement widgetAddition) { return new WidgetContributionItem(getId(widgetAddition), widgetAddition); } | private IContributionItem createWidgetAdditionContribution( final IConfigurationElement widgetAddition) { return new WidgetContributionItem(getId(widgetAddition), widgetAddition); } | 3,225,487 |
public String getStringValue() { assert( getCssValueType() == CSSValue.CSS_PRIMITIVE_VALUE ); if ( getPrimitiveType() == CSSPrimitiveValue.CSS_IDENT ) { return _domCSSValue.getCssText(); } else { if ( cssSACPrimitiveValueType() == CSSPrimitiveValue.CSS_STRING ){ ... | public String getStringValue() { assert( getCssValueType() == CSSValue.CSS_PRIMITIVE_VALUE ); if ( getPrimitiveType() == CSSPrimitiveValue.CSS_IDENT ) { return _domCSSValue.getCssText(); } else { if ( cssSACPrimitiveValueType() == CSSPrimitiveValue.CSS_STRING ){ ... | 3,225,488 |
public void releaseReferences() { id = null; tooltip = null; title = null; //make sure part has inc. the reference count. if(part != null) part.getTitleImage(); ReferenceCounter imageCache = WorkbenchImages.getImageCache(); Image image = (Image)imageCache.get(imageDescritor); if(image != null) { imageCache... | public void releaseReferences() { id = null; tooltip = null; title = null; //make sure part has inc. the reference count. if(part != null) part.getTitleImage(); ReferenceCounter imageCache = WorkbenchImages.getImageCache(); Image image = (Image)imageCache.get(imageDescritor); if(image != null) { imageCache... | 3,225,489 |
public void releaseReferences() { id = null; tooltip = null; title = null; //make sure part has inc. the reference count. if(part != null) part.getTitleImage(); ReferenceCounter imageCache = WorkbenchImages.getImageCache(); Image image = (Image)imageCache.get(imageDescritor); if(image != null) { imageCache... | public void releaseReferences() { id = null; tooltip = null; title = null; //make sure part has inc. the reference count. if(part != null) part.getTitleImage(); ReferenceCounter imageCache = WorkbenchImages.getImageCache(); Image image = (Image)imageCache.get(imageDescritor); if(image != null) { imageCache... | 3,225,490 |
public void cancelOneOrderByClOrdID(String clOrdID) throws NoMoreIDsException { Message latestMessage = fixMessageHistory.getLatestMessage(clOrdID); if (latestMessage != null){ Message cancelMessage = new quickfix.fix42.Message(); cancelMessage.getHeader().setString(MsgType.FIELD, MsgType.ORDER_CANCEL_REQUEST); ... | public void cancelOneOrderByClOrdID(String clOrdID) throws NoMoreIDsException { Message latestMessage = fixMessageHistory.getLatestMessage(clOrdID); if (latestMessage != null){ Message cancelMessage = new quickfix.fix42.Message(); cancelMessage.getHeader().setString(MsgType.FIELD, MsgType.ORDER_CANCEL_REQUEST); ... | 3,225,492 |
public void cancelOneOrderByClOrdID(String clOrdID) throws NoMoreIDsException { Message latestMessage = fixMessageHistory.getLatestMessage(clOrdID); if (latestMessage != null){ Message cancelMessage = new quickfix.fix42.Message(); cancelMessage.getHeader().setString(MsgType.FIELD, MsgType.ORDER_CANCEL_REQUEST); ... | public void cancelOneOrderByClOrdID(String clOrdID) throws NoMoreIDsException { Message latestMessage = fixMessageHistory.getLatestMessage(clOrdID); if (latestMessage != null){ Message cancelMessage = new quickfix.fix42.Message(); cancelMessage.getHeader().setString(MsgType.FIELD, MsgType.ORDER_CANCEL_REQUEST); ... | 3,225,493 |
public void cancelOneOrderByClOrdID(String clOrdID) throws NoMoreIDsException { Message latestMessage = fixMessageHistory.getLatestMessage(clOrdID); if (latestMessage != null){ Message cancelMessage = new quickfix.fix42.Message(); cancelMessage.getHeader().setString(MsgType.FIELD, MsgType.ORDER_CANCEL_REQUEST); ... | publicvoidcancelOneOrderByClOrdID(StringclOrdID)throwsNoMoreIDsException{ MessagelatestMessage=fixMessageHistory.getLatestMessage(clOrdID); if(latestMessage!=null){ MessagecancelMessage=newquickfix.fix42.Message(); cancelMessage.getHeader().setString(MsgType.FIELD,MsgType.ORDER_CANCEL_REQUEST); cancelMessage.s... | 3,225,494 |
private void handleCancelReject(Message aMessage) throws FieldNotFound { String reason = aMessage.getString(CxlRejReason.FIELD); String text = aMessage.getString(Text.FIELD); String origClOrdID = aMessage.getString(OrigClOrdID.FIELD); String errorMsg = "Cancel rejected for order " + origClOrdID + ": " + (text =... | private void handleCancelReject(Message aMessage) throws FieldNotFound { String reason = aMessage.getString(CxlRejReason.FIELD); String text = aMessage.getString(Text.FIELD); String origClOrdID = aMessage.getString(OrigClOrdID.FIELD); String errorMsg = "Cancel rejected for order " + origClOrdID + ": " + (text =... | 3,225,495 |
public void handleInternalMessage(Message aMessage) throws FieldNotFound, MarketceteraException, JMSException { if (FIXMessageUtil.isOrderSingle(aMessage)) { addNewOrder(aMessage); } else if (FIXMessageUtil.isCancelRequest(aMessage)) { try { aMessage.getString(OrigClOrdID.FIELD); cancelOneOrder(aMessage)... | public void handleInternalMessage(Message aMessage) throws FieldNotFound, MarketceteraException, JMSException { if (FIXMessageUtil.isOrderSingle(aMessage)) { addNewOrder(aMessage); } else if (FIXMessageUtil.isCancelRequest(aMessage)) { try { aMessage.getString(OrigClOrdID.FIELD); cancelOneOrder(aMessage)... | 3,225,496 |
public void addIDBox(String id, Box box) { this.sharedContext.addIDBox(id,box); } | public void addIDBox(String id, Box box) { this.sharedContext.addIDBox(id,box); } | 3,225,498 |
Subsets and Splits
No community queries yet
The top public SQL queries from the community will appear here once available.