Examples of ApplicationWindow


Examples of org.eclipse.jface.window.ApplicationWindow

      public void run()
      {
       int i = 0;
       PropertyConfigurator.configure (Constants.LOG4J_FILE); bar.setSelection(i + 1); numProgIncr[0]--;
       OnlineIndex oi = new OnlineIndex(null); oi.copyArgs(args); bar.setSelection(i + 1); numProgIncr[0]--;
       ApplicationWindow viewer = oi; bar.setSelection(i + 1); numProgIncr[0]--;
       splash.close(); image.dispose();
       viewer.setBlockOnOpen(true);
       viewer.open();    
      }
    }
   
  ); //*-- end of display asynexec
  
View Full Code Here

Examples of org.eclipse.jface.window.ApplicationWindow

                try {
                    IJavaProject javaProject = JavaCore.create(resource.getProject());
                    if(javaProject != null)
                    {
                        org.eclipse.jdt.core.search.IJavaSearchScope searchScope = SearchEngine.createJavaSearchScope(new IJavaElement[]{javaProject});
                        SelectionDialog sd = JavaUI.createTypeDialog(getShell(), new ApplicationWindow(getShell()), searchScope, 2, false);
                        sd.open();
                        Object objects[] = sd.getResult();
                        if(objects != null && objects.length > 0)
                        {
                            IType type = (IType)objects[0];
                            String fullyQualifiedName = type.getFullyQualifiedName('.');
                            valueText.setText(type.getFullyQualifiedName());
                            String[] interfaces = type.getSuperInterfaceNames();
                            boolean isList = false;
                            if ("java.lang.Object".equals(fullyQualifiedName)) isList = true; //$NON-NLS-1$
                            else {
                              for (int i=0; i<interfaces.length; i++) {
                                  if (interfaces[i].equals("java.util.Collection") || interfaces[i].equals("java.util.List") || interfaces[i].equals("java.util.Set")) { //$NON-NLS-1$ //$NON-NLS-2$ //$NON-NLS-3$
                                      isList = true;
                                      break;
                                  }
                              }
                            }
                            if (isList) {
                                singleBrowse.setEnabled(true);
                                singleLabel.setEnabled(true);
                                singleValueText.setEnabled(true);
                            }
                            else {
                                singleBrowse.setEnabled(false);
                                singleLabel.setEnabled(false);
                                singleValueText.setEnabled(false);
                                singleValueText.setText(""); //$NON-NLS-1$
                            }
                        }
                    }
                    else {
                        MessageDialog.openError(getShell(), Messages.ContextValueDialog_JAVA_PROJECT_ERROR, Messages.ContextValueDialog_MUST_BE_JAVA_PROJECT);
                    }
                }
                catch(JavaModelException _ex) { }
            }

            @Override
      public void mouseDoubleClick(MouseEvent mouseevent)
            {
            }

            @Override
      public void mouseUp(MouseEvent mouseevent)
            {
            }

        });

        boolean enabled = false;
        if (null != contextValue && null != contextValue.singularClass) enabled = true;
    singleLabel = new Label(composite, SWT.NULL);
    singleLabel.setEnabled(enabled);
    singleLabel.setText(Messages.ContextValueDialog_LABEL_LIST_ENTRY_TYPE);
    singleValueText = new Text(composite, SWT.BORDER);
    singleValueText.setEnabled(enabled);
    singleValueText.setBackground(new Color(null, 255, 255, 255));
    gd = new GridData(GridData.FILL_HORIZONTAL);
    gd.widthHint = 250;
    singleValueText.setLayoutData(gd);
    if (enabled) singleValueText.setText(contextValue.singularClass.getName());
        singleBrowse = new Button(composite, 8);
        singleBrowse.setEnabled(enabled);
        singleBrowse.setText(Messages.ContextValueDialog_BUTTON_BROWSE);
        singleBrowse.addMouseListener(new MouseListener() {
            @Override
      public void mouseDown(MouseEvent e)
            {
                try {
                    IJavaProject javaProject = JavaCore.create(resource.getProject());
                    if(javaProject != null)
                    {
                        org.eclipse.jdt.core.search.IJavaSearchScope searchScope = SearchEngine.createJavaSearchScope(new IJavaElement[]{javaProject});
                        SelectionDialog sd = JavaUI.createTypeDialog(getShell(), new ApplicationWindow(getShell()), searchScope, 2, false);
                        sd.open();
                        Object objects[] = sd.getResult();
                        if(objects != null && objects.length > 0)
                        {
                            IType type = (IType)objects[0];
View Full Code Here

Examples of org.eclipse.jface.window.ApplicationWindow

    pluginPreferences.setDefault(CONFIGURATION_VIEW_SHOW_DISABLED, false);
    pluginPreferences.setValue(CONFIGURATION_VIEW_SHOW_DISABLED, true);
    org.eclipse.update.internal.ui.UpdateUI.getDefault().savePluginPreferences();

    /* Open Config Dialog */
    ApplicationWindow appWindow = new org.eclipse.update.internal.ui.ConfigurationManagerWindow(fShell) {
      @Override
      public MenuManager getMenuBarManager() {
        return new MenuManager(); //Disables the Menu Bar
      }
    };
    appWindow.create();
    appWindow.getShell().setText(Messages.ManageConfigurationAction_MANAGE_ADDONS);
    appWindow.getShell().setImages(fShell.getImages());
    appWindow.open();
  }
View Full Code Here

Examples of org.jitterbit.application.ui.window.ApplicationWindow

        );
    }

    private void setAdditionalPopupMenuActions(TransformationPage page) {
        Transformation tx = page.getObject();
        ApplicationWindow appWin = impl.getView().getWindow();
        List<Action> actions = Lists.newArrayList();
        actions.add(null);
        actions.add(new ViewInputJtrAction(appWin, tx));
        actions.add(new ViewOutputJtrAction(appWin, tx));
        impl.setAdditionalToolbarPopupMenuActions(actions);
View Full Code Here

Examples of org.jitterbit.application.ui.window.ApplicationWindow

                }
            });
        }

        private FileChooser getFileChooser() {
            ApplicationWindow window = view.getWindow();
            FileChooser fc = ApplicationFileChooser.getInstance(window);
            return fc;
        }
View Full Code Here

Examples of org.jitterbit.application.ui.window.ApplicationWindow

        public File getFile() {
            return UiThreadSupplier.call(new Supplier<File>() {

                @Override
                public File get() {
                    ApplicationWindow window = view.getWindow();
                    FileChooser fc = ApplicationFileChooser.getInstance(window);
                    File file = fc.getFileToOpen(null, FILE_FILTER, recentFiles, "Import mappings from file:");
                    return file;
                }
            });
View Full Code Here

Examples of org.jitterbit.application.ui.window.ApplicationWindow

            if (ds instanceof DatabaseStructure) {
                input = DatabaseFilterDefiner.getInput((DatabaseStructure) ds);
            } else if (ds instanceof LdapStructure) {
                input = new LoadLdapSourceDataInput();
            } else {
                ApplicationWindow window = page.getWindow();
                input = getInputFile(window);
            }
        }
        return input;
    }
View Full Code Here

Examples of org.jitterbit.application.ui.window.ApplicationWindow

        impl.addAdditionalToolbarButtons(buttons);
    }

    private List<? extends ApplicationAction> createActivityActions(IntegrationEntityPage page) {
        List<ActivityAction> actions = Lists.newArrayList();
        ApplicationWindow window = impl.getView().getWindow();
        EditorDisplayer pd = new ProjectPageDisplayer(impl.getView());
        if (logApi != null) {
            ShowLogAction log = new ShowLogAction(window, logApi);
            log.setPageDisplayer(pd);
            actions.add(log);
View Full Code Here

Examples of org.jitterbit.application.ui.window.ApplicationWindow

* @since 1.3.0
*/
public final class ProjectSourceDataInputFileProviderTest {

    public void run() throws Exception {
        ApplicationWindow appWin = new DummyApplicationWindow();
        // FIXME: Pass in a ServerManager and LoadSourceFileStore
        ProjectSourceDataFileInputProvider provider = new ProjectSourceDataFileInputProvider(
                        appWin, null, PluginSettingsStore.EMPTY, false);
        LoadSourceDataFileInput input = provider.getInput();
        if (input != null) {
View Full Code Here

Examples of org.jitterbit.application.ui.window.ApplicationWindow

    /**
     * Returns the application's main frame.
     */
    public static JFrame getAppWinFrame() {
        ApplicationWindow appWin = getAppWin();
        return appWin != null ? appWin.getFrame() : null;
    }
View Full Code Here
TOP
Copyright © 2018 www.massapi.com. All rights reserved.
All source code are property of their respective owners. Java is a trademark of Sun Microsystems, Inc and owned by ORACLE Inc. Contact coftware#gmail.com.