Changeset 37326 for main/trunk/gli/src
- Timestamp:
- 2023-02-16T22:50:02+13:00 (16 months ago)
- File:
-
- 1 edited
Legend:
- Unmodified
- Added
- Removed
-
main/trunk/gli/src/org/greenstone/gatherer/gui/PreviewButton.java
r26312 r37326 34 34 import java.awt.event.*; 35 35 import javax.swing.*; 36 37 import org.webswing.toolkit.api.WebswingUtil; 38 36 39 import org.greenstone.gatherer.Configuration; 37 40 import org.greenstone.gatherer.Dictionary; … … 163 166 Gatherer.configGS3Server(Configuration.site_name, ServletConfiguration.ADD_COMMAND + Gatherer.c_man.getLoadedCollectionName()); 164 167 } 168 165 169 if(preview_address != null) { 166 Gatherer.spawnBrowser(preview_address); 170 if (Gatherer.isWebswing) { 171 WebswingUtil.getWebswingApi().sendActionEvent("previewURL", preview_address, null); 172 } 173 else { 174 Gatherer.spawnBrowser(preview_address); 175 } 167 176 } 168 177 178 179 169 180 } 170 181
Note:
See TracChangeset
for help on using the changeset viewer.