|
From: Robert E. <sky...@us...> - 2006-04-25 08:00:39
|
Update of /cvsroot/jcommander/plugins/org.jcommander.ui.filepanel/src/org/jcommander/ui/filepanel/bookmarks In directory sc8-pr-cvs1.sourceforge.net:/tmp/cvs-serv21804/src/org/jcommander/ui/filepanel/bookmarks Modified Files: BookmarkPanel.java Log Message: Temporary hide of bookmark navigation buttons Index: BookmarkPanel.java =================================================================== RCS file: /cvsroot/jcommander/plugins/org.jcommander.ui.filepanel/src/org/jcommander/ui/filepanel/bookmarks/BookmarkPanel.java,v retrieving revision 1.16 retrieving revision 1.17 diff -C2 -d -r1.16 -r1.17 *** BookmarkPanel.java 24 Apr 2006 20:26:33 -0000 1.16 --- BookmarkPanel.java 25 Apr 2006 08:00:28 -0000 1.17 *************** *** 20,29 **** public class BookmarkPanel extends Composite { ! private Button leftScrollButton = null; private BookmarkComposite bookmarkComposite = null; ! private Button rightScrollButton = null; private Button goUpButton = null; ! private Button startScrollButton = null; ! private Button endScrollButton = null; protected ArrayList bookmarkSelectionListeners; protected MouseAdapter focusFileControlAdapter; --- 20,29 ---- public class BookmarkPanel extends Composite { ! // private Button leftScrollButton = null; private BookmarkComposite bookmarkComposite = null; ! // private Button rightScrollButton = null; private Button goUpButton = null; ! // private Button startScrollButton = null; ! // private Button endScrollButton = null; protected ArrayList bookmarkSelectionListeners; protected MouseAdapter focusFileControlAdapter; *************** *** 59,74 **** GridLayout gridLayout1 = new GridLayout(); createComposite2(); ! startScrollButton = new Button(this, SWT.ARROW | SWT.LEFT | SWT.BORDER); ! startScrollButton.setEnabled(false); ! ! leftScrollButton = new Button(this, SWT.ARROW | SWT.LEFT); ! leftScrollButton.setEnabled(false); ! createComposite(); ! rightScrollButton = new Button(this, SWT.ARROW | SWT.RIGHT); ! rightScrollButton.setEnabled(false); ! ! endScrollButton = new Button(this, SWT.ARROW | SWT.RIGHT | SWT.BORDER); ! endScrollButton.setEnabled(false); goUpButton = new Button(this, SWT.ARROW | SWT.UP); --- 59,74 ---- GridLayout gridLayout1 = new GridLayout(); createComposite2(); ! // startScrollButton = new Button(this, SWT.ARROW | SWT.LEFT | SWT.BORDER); ! // startScrollButton.setEnabled(false); ! // ! // leftScrollButton = new Button(this, SWT.ARROW | SWT.LEFT); ! // leftScrollButton.setEnabled(false); ! // createComposite(); ! // rightScrollButton = new Button(this, SWT.ARROW | SWT.RIGHT); ! // rightScrollButton.setEnabled(false); ! // ! // endScrollButton = new Button(this, SWT.ARROW | SWT.RIGHT | SWT.BORDER); ! // endScrollButton.setEnabled(false); goUpButton = new Button(this, SWT.ARROW | SWT.UP); *************** *** 79,96 **** gridLayout1.verticalSpacing = 2; gridLayout1.horizontalSpacing = 2; ! leftScrollButton.setText("<"); ! leftScrollButton.setToolTipText("Scroll left"); ! leftScrollButton.setBackground(org.eclipse.swt.widgets.Display.getDefault().getSystemColor(org.eclipse.swt.SWT.COLOR_TITLE_INACTIVE_BACKGROUND_GRADIENT)); ! rightScrollButton.setText(">"); ! rightScrollButton.setToolTipText("Scroll right"); goUpButton.setText("^"); goUpButton.setEnabled(true); goUpButton.setToolTipText("Go to parent bookmark group"); ! startScrollButton.setText("|<"); ! startScrollButton.setToolTipText("Scroll to start"); ! startScrollButton.setForeground(org.eclipse.swt.widgets.Display.getDefault().getSystemColor(org.eclipse.swt.SWT.COLOR_BLACK)); ! startScrollButton.setLayoutData(gridData5); ! endScrollButton.setText(">|"); ! endScrollButton.setToolTipText("Scroll to end"); gridData5.verticalAlignment = org.eclipse.swt.layout.GridData.CENTER; gridData5.grabExcessVerticalSpace = false; --- 79,96 ---- gridLayout1.verticalSpacing = 2; gridLayout1.horizontalSpacing = 2; ! // leftScrollButton.setText("<"); ! // leftScrollButton.setToolTipText("Scroll left"); ! // leftScrollButton.setBackground(org.eclipse.swt.widgets.Display.getDefault().getSystemColor(org.eclipse.swt.SWT.COLOR_TITLE_INACTIVE_BACKGROUND_GRADIENT)); ! // rightScrollButton.setText(">"); ! // rightScrollButton.setToolTipText("Scroll right"); goUpButton.setText("^"); goUpButton.setEnabled(true); goUpButton.setToolTipText("Go to parent bookmark group"); ! // startScrollButton.setText("|<"); ! // startScrollButton.setToolTipText("Scroll to start"); ! // startScrollButton.setForeground(org.eclipse.swt.widgets.Display.getDefault().getSystemColor(org.eclipse.swt.SWT.COLOR_BLACK)); ! // startScrollButton.setLayoutData(gridData5); ! // endScrollButton.setText(">|"); ! // endScrollButton.setToolTipText("Scroll to end"); gridData5.verticalAlignment = org.eclipse.swt.layout.GridData.CENTER; gridData5.grabExcessVerticalSpace = false; *************** *** 102,126 **** } }); ! endScrollButton.addSelectionListener(new org.eclipse.swt.events.SelectionAdapter() { ! public void widgetSelected(org.eclipse.swt.events.SelectionEvent e) { ! bookmarkComposite.scrollEnd(); ! } ! }); ! startScrollButton.addSelectionListener(new org.eclipse.swt.events.SelectionAdapter() { ! public void widgetSelected(org.eclipse.swt.events.SelectionEvent e) { ! bookmarkComposite.scrollStart(); ! } ! }); ! rightScrollButton.addSelectionListener(new org.eclipse.swt.events.SelectionAdapter() { ! public void widgetSelected(org.eclipse.swt.events.SelectionEvent e) { ! bookmarkComposite.scrollRight(); ! } ! }); ! leftScrollButton.addSelectionListener(new org.eclipse.swt.events.SelectionAdapter() { ! public void widgetSelected(org.eclipse.swt.events.SelectionEvent e) { ! bookmarkComposite.scrollLeft(); ! } ! ! }); } /** --- 102,126 ---- } }); ! // endScrollButton.addSelectionListener(new org.eclipse.swt.events.SelectionAdapter() { ! // public void widgetSelected(org.eclipse.swt.events.SelectionEvent e) { ! // bookmarkComposite.scrollEnd(); ! // } ! // }); ! // startScrollButton.addSelectionListener(new org.eclipse.swt.events.SelectionAdapter() { ! // public void widgetSelected(org.eclipse.swt.events.SelectionEvent e) { ! // bookmarkComposite.scrollStart(); ! // } ! // }); ! // rightScrollButton.addSelectionListener(new org.eclipse.swt.events.SelectionAdapter() { ! // public void widgetSelected(org.eclipse.swt.events.SelectionEvent e) { ! // bookmarkComposite.scrollRight(); ! // } ! // }); ! // leftScrollButton.addSelectionListener(new org.eclipse.swt.events.SelectionAdapter() { ! // public void widgetSelected(org.eclipse.swt.events.SelectionEvent e) { ! // bookmarkComposite.scrollLeft(); ! // } ! // ! // }); } /** *************** *** 191,202 **** */ public void setFocusFileControlAdapter(MouseAdapter focusFileControlAdapter) { ! this.focusFileControlAdapter = focusFileControlAdapter; ! startScrollButton.addMouseListener(focusFileControlAdapter); ! leftScrollButton.addMouseListener(focusFileControlAdapter); ! rightScrollButton.addMouseListener(focusFileControlAdapter); ! endScrollButton.addMouseListener(focusFileControlAdapter); ! bookmarkComposite.setFocusFileControlAdapter(focusFileControlAdapter); } --- 191,202 ---- */ public void setFocusFileControlAdapter(MouseAdapter focusFileControlAdapter) { ! // this.focusFileControlAdapter = focusFileControlAdapter; ! // startScrollButton.addMouseListener(focusFileControlAdapter); ! // leftScrollButton.addMouseListener(focusFileControlAdapter); ! // rightScrollButton.addMouseListener(focusFileControlAdapter); ! // endScrollButton.addMouseListener(focusFileControlAdapter); ! // bookmarkComposite.setFocusFileControlAdapter(focusFileControlAdapter); } |