Author: niclas
Date: Sat Sep 11 06:34:45 2004
New Revision: 45896

Modified:
   
avalon/trunk/central/laboratory/studio/ui/src/org/apache/metro/studio/eclipse/ui/panels/RepositorySettingsPanel.java
   
avalon/trunk/central/laboratory/studio/ui/src/org/apache/metro/studio/eclipse/ui/wizards/NewMetroProjectWizard.java
Log:
Formatting...

Modified: 
avalon/trunk/central/laboratory/studio/ui/src/org/apache/metro/studio/eclipse/ui/panels/RepositorySettingsPanel.java
==============================================================================
--- 
avalon/trunk/central/laboratory/studio/ui/src/org/apache/metro/studio/eclipse/ui/panels/RepositorySettingsPanel.java
        (original)
+++ 
avalon/trunk/central/laboratory/studio/ui/src/org/apache/metro/studio/eclipse/ui/panels/RepositorySettingsPanel.java
        Sat Sep 11 06:34:45 2004
@@ -31,214 +31,216 @@
  * TODO To change the template for this generated type comment go to Window -
  * Preferences - Java - Code Generation - Code and Comments
  */
-public class RepositorySettingsPanel {
+public class RepositorySettingsPanel 
+{
 
-       public static final String REPOSITORY_PANEL = "repository.panel";
-       public static final String REPOSITORY_APPLY = "repository.apply";
-       public static final String REPOSITORY_DEFAULT = "repository.default";
-       
-       public static final String REPOSITORY_USER = "repository.user";
-       public static final String REPOSITORY_SYSTEM = "repository.system";
-       public static final String REPOSITORY_REMOTE = "repository.remote";
-       public static final String REPOSITORY_PROXY_HOST = "repository.proxyhost";
-       public static final String REPOSITORY_PROXY_PORT = "repository.proxyport";
-       public static final String REPOSITORY_PROXY_USER = "repository.proxyuser";
-       public static final String REPOSITORY_PROXY_PWD = "repository.proxypwd";
-       
-       private Text password;
-       private Text userName;
-       private Text proxyPort;
-       private Text proxyHome;
-       private List remoteHosts;
-       private Text userRepository;
-       private Text systemRepository;
-       private Text metroHome;
-       private Shell shell;
-       
-       private ModelObject model;
-       
-       /**
-        *  
-        */
-       public RepositorySettingsPanel() {
-               super();
-       }
-       
-       public void initializeControls(ModelObject cModel)
-       {
-               this.model = cModel.windowCreated(REPOSITORY_PANEL);
-               showControls();
-               
-       }
-       
-       public void performApply()
-       {
-               storeControls();
-               model.controlClicked(REPOSITORY_APPLY);
-       }
-       
-       public void performDefaults()
-       {
-               model = model.controlClicked(REPOSITORY_DEFAULT);
-               showControls();
-       }
-       
-       private void storeControls()
-       {
-               model.setString(REPOSITORY_PROXY_PWD, password.getText());
-               model.setString(REPOSITORY_PROXY_USER, userName.getText());
-               model.setString(REPOSITORY_PROXY_PORT, proxyPort.getText());
-               model.setString(REPOSITORY_PROXY_HOST, proxyHome.getText());
-               model.setString(REPOSITORY_USER, userRepository.getText());
-               model.setString(REPOSITORY_SYSTEM, systemRepository.getText());
-       }
-       private void showControls()
-       {
-               password.setText(model.getString(REPOSITORY_PROXY_PWD));
-               userName.setText(model.getString(REPOSITORY_PROXY_USER));
-               proxyPort.setText(model.getString(REPOSITORY_PROXY_PORT));
-               proxyHome.setText(model.getString(REPOSITORY_PROXY_HOST));
-               //remoteHosts.setText(model.getString(REPOSITORY_PROXY_PWD));
-               userRepository.setText(model.getString(REPOSITORY_USER));
-               systemRepository.setText(model.getString(REPOSITORY_SYSTEM));
+    public static final String REPOSITORY_PANEL = "repository.panel";
+    public static final String REPOSITORY_APPLY = "repository.apply";
+    public static final String REPOSITORY_DEFAULT = "repository.default";
+    
+    public static final String REPOSITORY_USER = "repository.user";
+    public static final String REPOSITORY_SYSTEM = "repository.system";
+    public static final String REPOSITORY_REMOTE = "repository.remote";
+    public static final String REPOSITORY_PROXY_HOST = "repository.proxyhost";
+    public static final String REPOSITORY_PROXY_PORT = "repository.proxyport";
+    public static final String REPOSITORY_PROXY_USER = "repository.proxyuser";
+    public static final String REPOSITORY_PROXY_PWD = "repository.proxypwd";
+    
+    private Text password;
+    private Text userName;
+    private Text proxyPort;
+    private Text proxyHome;
+    private List remoteHosts;
+    private Text userRepository;
+    private Text systemRepository;
+    private Text metroHome;
+    private Shell shell;
+    
+    private ModelObject model;
+    
+    /**
+     *  
+     */
+    public RepositorySettingsPanel() 
+    {
+        super();
+    }
+    
+    public void initializeControls(ModelObject cModel)
+    {
+        this.model = cModel.windowCreated(REPOSITORY_PANEL);
+        showControls();
+        
+    }
+    
+    public void performApply()
+    {
+        storeControls();
+        model.controlClicked(REPOSITORY_APPLY);
+    }
+    
+    public void performDefaults()
+    {
+        model = model.controlClicked(REPOSITORY_DEFAULT);
+        showControls();
+    }
+    
+    private void storeControls()
+    {
+        model.setString(REPOSITORY_PROXY_PWD, password.getText());
+        model.setString(REPOSITORY_PROXY_USER, userName.getText());
+        model.setString(REPOSITORY_PROXY_PORT, proxyPort.getText());
+        model.setString(REPOSITORY_PROXY_HOST, proxyHome.getText());
+        model.setString(REPOSITORY_USER, userRepository.getText());
+        model.setString(REPOSITORY_SYSTEM, systemRepository.getText());
+    }
+    private void showControls()
+    {
+        password.setText(model.getString(REPOSITORY_PROXY_PWD));
+        userName.setText(model.getString(REPOSITORY_PROXY_USER));
+        proxyPort.setText(model.getString(REPOSITORY_PROXY_PORT));
+        proxyHome.setText(model.getString(REPOSITORY_PROXY_HOST));
+        //remoteHosts.setText(model.getString(REPOSITORY_PROXY_PWD));
+        userRepository.setText(model.getString(REPOSITORY_USER));
+        systemRepository.setText(model.getString(REPOSITORY_SYSTEM));
+    }
+    
+    /**
+     * Create all controls
+     * @param parent
+     * @return
+     */
+    public Control createControls(Composite parent) {
+        shell = parent.getShell();
+        Composite contents = new Composite(parent, SWT.NONE);
+        final GridLayout gridLayout = new GridLayout();
+        gridLayout.numColumns = 3;
+        contents.setLayout(gridLayout);
+        contents.setLayoutData(new GridData(GridData.FILL_BOTH));
+        {
+            final Label label = new Label(contents, SWT.NONE);
+            label.setText("Metro Home:");
+        }
+        {
+            metroHome = new Text(contents, SWT.BORDER);
+            metroHome.setLayoutData(new GridData(GridData.FILL_HORIZONTAL));
+        }
+        {
+            final Button button = new Button(contents, SWT.NONE);
+            button.addSelectionListener(new SelectionAdapter() {
+                public void widgetSelected(SelectionEvent e) {
+                    metroHome.setText(CommonDialogs.getPath(shell));                }
+            });
+            button.setText("...");
+        }
+        {
+            final Label label = new Label(contents, SWT.NONE);
+            label.setText("System Repository:");
+        }
+        {
+            systemRepository = new Text(contents, SWT.BORDER);
+            systemRepository.setLayoutData(new 
GridData(GridData.HORIZONTAL_ALIGN_FILL));
+        }
+        {
+            final Button button = new Button(contents, SWT.NONE);
+            button.addSelectionListener(new SelectionAdapter() {
+                public void widgetSelected(SelectionEvent e) {
+                    systemRepository.setText(CommonDialogs.getPath(shell));           
     }
+            });
+            button.setText("...");
+        }
+        {
+            final Label label = new Label(contents, SWT.NONE);
+            label.setText("User Repository:");
+        }
+        {
+            userRepository = new Text(contents, SWT.BORDER);
+            userRepository.setLayoutData(new 
GridData(GridData.HORIZONTAL_ALIGN_FILL));
+        }
+        {
+            final Button button = new Button(contents, SWT.NONE);
+            button.addSelectionListener(new SelectionAdapter() {
+                public void widgetSelected(SelectionEvent e) {
+                    userRepository.setText(CommonDialogs.getPath(shell));             
   }
+            });
+            button.setText("...");
+        }
+        {
+            final Label label = new Label(contents, SWT.NONE);
+            final GridData gridData = new GridData(GridData.VERTICAL_ALIGN_BEGINNING);
+            gridData.verticalSpan = 2;
+            label.setLayoutData(gridData);
+            label.setText("Remote Repositories:");
+        }
+        {
+            remoteHosts = new List(contents, SWT.BORDER);
+            final GridData gridData = new GridData(GridData.HORIZONTAL_ALIGN_FILL);
+            gridData.heightHint = 80;
+            gridData.verticalSpan = 2;
+            remoteHosts.setLayoutData(gridData);
+        }
+        {
+            final Button button = new Button(contents, SWT.NONE);
+            final GridData gridData = new GridData(GridData.VERTICAL_ALIGN_BEGINNING);
+            gridData.verticalSpan = 2;
+            button.setLayoutData(gridData);
+            button.setText("...");
+        }
+        {
+            final Label label = new Label(contents, SWT.NONE);
+            label.setText("Proxy Host:");
+        }
+        {
+            proxyHome = new Text(contents, SWT.BORDER);
+            final GridData gridData = new GridData(GridData.HORIZONTAL_ALIGN_FILL);
+            proxyHome.setLayoutData(gridData);
+        }
+        {
+            final Label label = new Label(contents, SWT.NONE);
+        }
+        {
+            final Label label = new Label(contents, SWT.NONE);
+            label.setText("Proxy Port:");
+        }
+        {
+            proxyPort = new Text(contents, SWT.BORDER);
+            final GridData gridData = new GridData();
+            gridData.widthHint = 150;
+            gridData.horizontalSpan = 2;
+            proxyPort.setLayoutData(gridData);
+        }
+        {
+            final Label label = new Label(contents, SWT.NONE);
+            label.setText("Username:");
+        }
+        {
+            userName = new Text(contents, SWT.BORDER);
+            final GridData gridData = new GridData();
+            gridData.widthHint = 150;
+            gridData.horizontalSpan = 2;
+            userName.setLayoutData(gridData);
+        }
+        {
+            final Label label = new Label(contents, SWT.NONE);
+            label.setText("Password:");
+        }
+        {
+            password = new Text(contents, SWT.BORDER);
+            final GridData gridData = new GridData();
+            gridData.widthHint = 150;
+            gridData.horizontalSpan = 2;
+            password.setLayoutData(gridData);
+        }
+        {
+            final Label label = new Label(contents, SWT.NONE);
+        }
+        {
+            final Button button = new Button(contents, SWT.CHECK);
+            button.setText("Test Remote Repository");
+        }
 
-       }
-       /**
-        * Create all controls
-        * @param parent
-        * @return
-        */
-       public Control createControls(Composite parent) {
-               shell = parent.getShell();
-               Composite contents = new Composite(parent, SWT.NONE);
-               final GridLayout gridLayout = new GridLayout();
-               gridLayout.numColumns = 3;
-               contents.setLayout(gridLayout);
-               contents.setLayoutData(new GridData(GridData.FILL_BOTH));
-               {
-                       final Label label = new Label(contents, SWT.NONE);
-                       label.setText("Metro Home:");
-               }
-               {
-                       metroHome = new Text(contents, SWT.BORDER);
-                       metroHome.setLayoutData(new 
GridData(GridData.FILL_HORIZONTAL));
-               }
-               {
-                       final Button button = new Button(contents, SWT.NONE);
-                       button.addSelectionListener(new SelectionAdapter() {
-                               public void widgetSelected(SelectionEvent e) {
-                                       
metroHome.setText(CommonDialogs.getPath(shell));                                }
-                       });
-                       button.setText("...");
-               }
-               {
-                       final Label label = new Label(contents, SWT.NONE);
-                       label.setText("System Repository:");
-               }
-               {
-                       systemRepository = new Text(contents, SWT.BORDER);
-                       systemRepository.setLayoutData(new 
GridData(GridData.HORIZONTAL_ALIGN_FILL));
-               }
-               {
-                       final Button button = new Button(contents, SWT.NONE);
-                       button.addSelectionListener(new SelectionAdapter() {
-                               public void widgetSelected(SelectionEvent e) {
-                                       
systemRepository.setText(CommonDialogs.getPath(shell));                         }
-                       });
-                       button.setText("...");
-               }
-               {
-                       final Label label = new Label(contents, SWT.NONE);
-                       label.setText("User Repository:");
-               }
-               {
-                       userRepository = new Text(contents, SWT.BORDER);
-                       userRepository.setLayoutData(new 
GridData(GridData.HORIZONTAL_ALIGN_FILL));
-               }
-               {
-                       final Button button = new Button(contents, SWT.NONE);
-                       button.addSelectionListener(new SelectionAdapter() {
-                               public void widgetSelected(SelectionEvent e) {
-                                       
userRepository.setText(CommonDialogs.getPath(shell));                           }
-                       });
-                       button.setText("...");
-               }
-               {
-                       final Label label = new Label(contents, SWT.NONE);
-                       final GridData gridData = new 
GridData(GridData.VERTICAL_ALIGN_BEGINNING);
-                       gridData.verticalSpan = 2;
-                       label.setLayoutData(gridData);
-                       label.setText("Remote Repositories:");
-               }
-               {
-                       remoteHosts = new List(contents, SWT.BORDER);
-                       final GridData gridData = new 
GridData(GridData.HORIZONTAL_ALIGN_FILL);
-                       gridData.heightHint = 80;
-                       gridData.verticalSpan = 2;
-                       remoteHosts.setLayoutData(gridData);
-               }
-               {
-                       final Button button = new Button(contents, SWT.NONE);
-                       final GridData gridData = new 
GridData(GridData.VERTICAL_ALIGN_BEGINNING);
-                       gridData.verticalSpan = 2;
-                       button.setLayoutData(gridData);
-                       button.setText("...");
-               }
-               {
-                       final Label label = new Label(contents, SWT.NONE);
-                       label.setText("Proxy Host:");
-               }
-               {
-                       proxyHome = new Text(contents, SWT.BORDER);
-                       final GridData gridData = new 
GridData(GridData.HORIZONTAL_ALIGN_FILL);
-                       proxyHome.setLayoutData(gridData);
-               }
-               {
-                       final Label label = new Label(contents, SWT.NONE);
-               }
-               {
-                       final Label label = new Label(contents, SWT.NONE);
-                       label.setText("Proxy Port:");
-               }
-               {
-                       proxyPort = new Text(contents, SWT.BORDER);
-                       final GridData gridData = new GridData();
-                       gridData.widthHint = 150;
-                       gridData.horizontalSpan = 2;
-                       proxyPort.setLayoutData(gridData);
-               }
-               {
-                       final Label label = new Label(contents, SWT.NONE);
-                       label.setText("Username:");
-               }
-               {
-                       userName = new Text(contents, SWT.BORDER);
-                       final GridData gridData = new GridData();
-                       gridData.widthHint = 150;
-                       gridData.horizontalSpan = 2;
-                       userName.setLayoutData(gridData);
-               }
-               {
-                       final Label label = new Label(contents, SWT.NONE);
-                       label.setText("Password:");
-               }
-               {
-                       password = new Text(contents, SWT.BORDER);
-                       final GridData gridData = new GridData();
-                       gridData.widthHint = 150;
-                       gridData.horizontalSpan = 2;
-                       password.setLayoutData(gridData);
-               }
-               {
-                       final Label label = new Label(contents, SWT.NONE);
-               }
-               {
-                       final Button button = new Button(contents, SWT.CHECK);
-                       button.setText("Test Remote Repository");
-               }
 
-
-               return contents;
-       }
+        return contents;
+    }
 
 }

Modified: 
avalon/trunk/central/laboratory/studio/ui/src/org/apache/metro/studio/eclipse/ui/wizards/NewMetroProjectWizard.java
==============================================================================
--- 
avalon/trunk/central/laboratory/studio/ui/src/org/apache/metro/studio/eclipse/ui/wizards/NewMetroProjectWizard.java
 (original)
+++ 
avalon/trunk/central/laboratory/studio/ui/src/org/apache/metro/studio/eclipse/ui/wizards/NewMetroProjectWizard.java
 Sat Sep 11 06:34:45 2004
@@ -20,19 +20,26 @@
 import java.lang.reflect.InvocationTargetException;
 
 import org.apache.metro.facility.presentationservice.api.IModelChannel;
+
 import org.apache.metro.facility.presentationservice.impl.ModelChannel;
 
 import org.apache.metro.studio.eclipse.ui.MetroStudioUI;
+
 import org.apache.metro.studio.eclipse.ui.controller.CreateBlockProjectOperation;
 import org.apache.metro.studio.eclipse.ui.controller.NewMetroProjectWizardController;
 
 import org.eclipse.jface.operation.IRunnableWithProgress;
+
 import org.eclipse.jface.viewers.IStructuredSelection;
+
 import org.eclipse.jface.wizard.IWizardPage;
 import org.eclipse.jface.wizard.Wizard;
+
 import org.eclipse.ui.INewWizard;
 import org.eclipse.ui.IWorkbench;
+
 import org.eclipse.ui.actions.WorkspaceModifyDelegatingOperation;
+
 import org.eclipse.ui.dialogs.WizardNewProjectCreationPage;
 
 /**

---------------------------------------------------------------------
To unsubscribe, e-mail: [EMAIL PROTECTED]
For additional commands, e-mail: [EMAIL PROTECTED]

Reply via email to