[Dive4elements-commits] [PATCH 3 of 6] Remove the new project button from the menue

Wald Commits scm-commit at wald.intevation.org
Fri Nov 16 14:27:39 CET 2012


# HG changeset patch
# User Björn Ricks <bjoern.ricks at intevation.de>
# Date 1353072305 -3600
# Node ID 9d7497f5be0566e68eb735edd03015b5441b10d7
# Parent  ebc22575e4137684d1c39465672b27b33236b78b
Remove the new project button from the menue

diff -r ebc22575e413 -r 9d7497f5be05 flys-client/src/main/java/de/intevation/flys/client/client/ui/MainMenu.java
--- a/flys-client/src/main/java/de/intevation/flys/client/client/ui/MainMenu.java	Fri Nov 16 14:24:38 2012 +0100
+++ b/flys-client/src/main/java/de/intevation/flys/client/client/ui/MainMenu.java	Fri Nov 16 14:25:05 2012 +0100
@@ -40,9 +40,6 @@
     /** The button to log the current user out.*/
     protected Button logout;
 
-    /** The button to add new projects.*/
-    protected Button newProject;
-
     /** The button to open the project list.*/
     protected Button projectList;
 
@@ -64,20 +61,11 @@
         String guest = messages.user() + " " + messages.guest();
 
         userText    = new Label(guest);
-        newProject  = new Button(messages.new_project());
         projectList = new Button(messages.manage_projects());
         logout      = new Button(messages.logout());
         language    = new Button(messages.switch_language());
         info        = new Button(messages.info());
 
-        newProject.addClickHandler(new ClickHandler() {
-            @Override
-            public void onClick(ClickEvent event) {
-                GWT.log("Clicked 'New Project' button.");
-                createNewProject();
-            }
-        });
-
         projectList.addClickHandler(new ClickHandler() {
             @Override
             public void onClick(ClickEvent event) {
@@ -151,10 +139,8 @@
         setHeight("25px");
         setLayoutMargin(5);
 
-        newProject.setStyleName("fontLightSmall");
         projectList.setStyleName("fontLightSmall");
         userText.setStyleName("fontLightSmall");
-        newProject.setStyleName("fontLightSmall");
         logout.setStyleName("fontLightSmall");
         language.setStyleName("fontLightSmall");
         info.setStyleName("fontLightSmall");
@@ -164,7 +150,6 @@
         HLayout leftPanel = new HLayout();
         leftPanel.setWidth("80%");
         leftPanel.setMembersMargin(5);
-        leftPanel.addMember(newProject);
         leftPanel.addMember(projectList);
 
         userText.setAlign(Alignment.RIGHT);


More information about the Dive4elements-commits mailing list