From: Andy J. <and...@us...> - 2007-03-07 12:33:49
|
Update of /cvsroot/jpox/JPOX/IDE_Eclipse/plugins/org.jpox.ide.eclipse/src/java/org/jpox/ide/eclipse/preferences In directory sc8-pr-cvs6.sourceforge.net:/tmp/cvs-serv32004/src/java/org/jpox/ide/eclipse/preferences Modified Files: MainPreferencePage.java Log Message: Added JPOX logo Index: MainPreferencePage.java =================================================================== RCS file: /cvsroot/jpox/JPOX/IDE_Eclipse/plugins/org.jpox.ide.eclipse/src/java/org/jpox/ide/eclipse/preferences/MainPreferencePage.java,v retrieving revision 1.7 retrieving revision 1.8 diff -C2 -d -r1.7 -r1.8 *** MainPreferencePage.java 7 Mar 2007 11:19:21 -0000 1.7 --- MainPreferencePage.java 7 Mar 2007 12:33:26 -0000 1.8 *************** *** 1,13 **** /********************************************************************** ! Copyright (c) 2005 Michael Grundmann and others. ! All rights reserved. This program and the accompanying materials ! are made available under the terms of the JPOX License v1.0 ! which accompanies this distribution. ! Contributors: ! ... ! **********************************************************************/ package org.jpox.ide.eclipse.preferences; import org.eclipse.swt.SWT; import org.eclipse.swt.layout.GridData; --- 1,23 ---- /********************************************************************** ! Copyright (c) 2005 Michael Grundmann and others. All rights reserved ! Licensed under the Apache License, Version 2.0 (the "License"); ! you may not use this file except in compliance with the License. ! You may obtain a copy of the License at ! http://www.apache.org/licenses/LICENSE-2.0 ! ! Unless required by applicable law or agreed to in writing, software ! distributed under the License is distributed on an "AS IS" BASIS, ! WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. ! See the License for the specific language governing permissions and ! limitations under the License. ! ! Contributors: ! 2006 Andy Jefferson - added content of the page ! ... ! **********************************************************************/ package org.jpox.ide.eclipse.preferences; + import org.eclipse.jface.resource.ImageDescriptor; import org.eclipse.swt.SWT; import org.eclipse.swt.layout.GridData; *************** *** 15,21 **** --- 25,33 ---- import org.eclipse.swt.widgets.Composite; import org.eclipse.swt.widgets.Control; + import org.eclipse.swt.widgets.Label; import org.eclipse.swt.widgets.Text; import org.eclipse.ui.IWorkbench; import org.eclipse.ui.IWorkbenchPreferencePage; + import org.jpox.ide.eclipse.Plugin; import org.jpox.ide.eclipse.PluginMessages; *************** *** 43,46 **** --- 55,62 ---- composite.setLayout(layout); + Label logoLabel = new Label(composite, SWT.BORDER); + ImageDescriptor imageDesc = Plugin.imageDescriptorFromPlugin(Plugin.ID, "icons/logo.gif"); + logoLabel.setImage(imageDesc.createImage()); + Text description = new Text(composite, SWT.READ_ONLY | SWT.MULTI | SWT.BORDER | SWT.WRAP); description.setText(PluginMessages.getString("MainPreferences.Description")); *************** *** 50,57 **** description.setLayoutData(data); - /*Label logoLabel = new Label(composite, SWT.NULL); - Image image = new Image(parent.getDisplay(), MainPreferencePage.class.getResourceAsStream("logo.gif")); - logoLabel.setImage(image);*/ - return composite; } --- 66,69 ---- |