use of org.mongodb.meclipse.wizards.ConnectionWizard in project meclipse by flaper87.
the class MeclipseView method makeActions.
private void makeActions() {
final MeclipseView mView = this;
connection = new Action() {
public void run() {
ConnectionWizard wizard = new ConnectionWizard();
Shell shell = PlatformUI.getWorkbench().getActiveWorkbenchWindow().getShell();
WizardDialog dialog = new WizardDialog(shell, wizard);
dialog.create();
dialog.open();
mView.refreshMe();
}
};
connection.setText(getCaption("connection.new"));
connection.setToolTipText(getCaption("connection.new"));
connection.setImageDescriptor(Images.getDescriptor(Images.PageCommit));
doubleClickAction = new Action() {
public void run() {
ISelection selection = viewer.getSelection();
TreeObject obj = (TreeObject) ((IStructuredSelection) selection).getFirstElement();
obj.doubleClickAction();
}
};
}
Aggregations