Download
Getting Started
Members
Projects
Community
Marketplace
Events
Planet Eclipse
Newsletter
Videos
Participate
Report a Bug
Forums
Mailing Lists
Wiki
IRC
How to Contribute
Working Groups
Automotive
Internet of Things
LocationTech
Long-Term Support
PolarSys
Science
OpenMDM
More
Community
Marketplace
Events
Planet Eclipse
Newsletter
Videos
Participate
Report a Bug
Forums
Mailing Lists
Wiki
IRC
How to Contribute
Working Groups
Automotive
Internet of Things
LocationTech
Long-Term Support
PolarSys
Science
OpenMDM
Toggle navigation
Bugzilla – Attachment 77522 Details for
Bug 193182
[UI] If disconnected, user should be prompted to reconnect
Home
|
New
|
Browse
|
Search
|
[?]
|
Reports
|
Requests
|
Help
|
Log In
[x]
|
Terms of Use
|
Copyright Agent
new Dialog to reconnect
ReconnectDialog.java (text/x-java), 2.85 KB, created by
Mariot Chauvin
on 2007-08-31 19:20:37 EDT
(
hide
)
Description:
new Dialog to reconnect
Filename:
MIME Type:
Creator:
Mariot Chauvin
Created:
2007-08-31 19:20:37 EDT
Size:
2.85 KB
patch
obsolete
>/**************************************************************************** > * Copyright (c) 2004, 2007 Composent, Inc. and others. > * All rights reserved. This program and the accompanying materials > * are made available under the terms of the Eclipse Public License v1.0 > * which accompanies this distribution, and is available at > * http://www.eclipse.org/legal/epl-v10.html > * > * Contributors: > * Mariot Chauvin <mariot.chauvin@gmail.com> - initial API and implementation > * > *****************************************************************************/ > >package org.eclipse.ecf.internal.presence.ui.dialogs; > >import org.eclipse.swt.SWT; >import org.eclipse.swt.layout.GridData; >import org.eclipse.swt.layout.GridLayout; >import org.eclipse.swt.widgets.Button; >import org.eclipse.swt.widgets.Composite; >import org.eclipse.swt.widgets.Control; >import org.eclipse.swt.widgets.Label; >import org.eclipse.swt.widgets.Shell; >import org.eclipse.swt.widgets.Text; >import org.eclipse.ecf.internal.presence.ui.Messages; >import org.eclipse.jface.dialogs.IDialogConstants; >import org.eclipse.jface.dialogs.Dialog; >import org.eclipse.jface.window.Window; > >public class ReconnectDialog extends Dialog { > > //private IContainer container; > //private ID connectedID; > > private Text password; > private Button okButton; > > private int result = Window.CANCEL; > > public ReconnectDialog(Shell parent) { > super(parent); > } > > > protected Control createDialogArea(Composite parent) { > Composite ctn = (Composite) super.createDialogArea(parent); > final GridLayout gridLayout = new GridLayout(); > gridLayout.horizontalSpacing = 0; > ctn.setLayout(gridLayout); > > final Composite composite = new Composite(ctn, SWT.NONE); > final GridLayout gridLayout_2 = new GridLayout(); > gridLayout_2.numColumns = 2; > composite.setLayout(gridLayout_2); > > Label l = new Label(composite, SWT.NONE); > l.setText("");//new connection following a disconnection > new Label(composite,SWT.NONE); > > final Label label_1 = new Label(composite, SWT.NONE); > label_1.setText(Messages.ReconnectDialog_REENTER_PASSWORD_LABEL); > > password = new Text(composite, SWT.BORDER); > password.setLayoutData(new GridData(GridData.HORIZONTAL_ALIGN_FILL)); > password.setEchoChar('*');; > > return ctn; > } > > protected void createButtonsForButtonBar(Composite parent) { > createButton(parent, IDialogConstants.OK_ID, IDialogConstants.OK_LABEL, > false); > createButton(parent, IDialogConstants.CANCEL_ID, > IDialogConstants.CANCEL_LABEL, true); > okButton = getButton(IDialogConstants.OK_ID); > okButton.setEnabled(true); > } > > public int getResult() { > return result; > } > > protected void configureShell(Shell newShell) { > super.configureShell(newShell); > newShell.setText(Messages.ReconnectDialog_RECONNECT); > } > > public void buttonPressed(int button) { > result = button; > close(); > } > > public String getPassword() { > return password.getText(); > } >}
You cannot view the attachment while viewing its details because your browser does not support IFRAMEs.
View the attachment on a separate page
.
View Attachment As Raw
Actions:
View
Attachments on
bug 193182
:
77520
|
77521
|
77522
|
77524